:root {
  --bg: #f6f3ee;
  --bg-accent: #ebe4d8;
  --ink: #1c1916;
  --muted: #5c564e;
  --line: #d8d0c4;
  --brand: #1f4d3a;
  --brand-soft: #e4efe9;
  --card: #fffcf7;
  --max: 42rem;
  --radius: 12px;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, #dce8e1 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, #f0e6d4 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-accent) 100%);
  line-height: 1.65;
}

a {
  color: var(--brand);
}

a:hover {
  text-decoration-thickness: 2px;
}

.wrap {
  width: min(100% - 2rem, 52rem);
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

header.site {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
}

.brand span {
  color: var(--brand);
}

nav.site {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.88rem;
}

nav.site a {
  color: var(--muted);
  text-decoration: none;
}

nav.site a:hover,
nav.site a[aria-current="page"] {
  color: var(--brand);
}

main.card {
  background: color-mix(in srgb, var(--card) 92%, white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: 0 18px 40px rgba(28, 25, 22, 0.05);
}

h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.75rem, 4vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.meta {
  margin: 0 0 1.75rem;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
}

h2 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.15rem;
}

p,
li {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.98rem;
  color: #2a2621;
}

p.lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: var(--max);
}

ul {
  padding-left: 1.15rem;
}

li + li {
  margin-top: 0.35rem;
}

.links {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}

.links a {
  display: block;
  padding: 0.95rem 1.1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--brand-soft);
  text-decoration: none;
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 600;
}

.links a:hover {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
}

.note {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  background: #f3ebe0;
  border: 1px solid var(--line);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.92rem;
}

footer.site {
  margin-top: 2rem;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
}

@media (max-width: 520px) {
  header.site {
    flex-direction: column;
    align-items: flex-start;
  }
}
