:root {
  color-scheme: light;
  --bg: #f3f0e8;
  --bg-elevated: #fffcf7;
  --ink: #1c1915;
  --muted: #5c564c;
  --line: #ddd6c8;
  --accent: #1e4a38;
  --accent-ink: #f4faf6;
  --accent-hover: #16382b;
  --soon-bg: #e7e2d8;
  --soon-ink: #4e4940;
  --flag-bg: #efe4c8;
  --flag-ink: #3f3418;
  --focus: #1e4a38;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #121411;
    --bg-elevated: #1c1f1a;
    --ink: #f4f0e6;
    --muted: #c8c0b2;
    --line: #33382f;
    --accent: #c5e0d2;
    --accent-ink: #13241b;
    --accent-hover: #d7ebe1;
    --soon-bg: #2a2e28;
    --soon-ink: #c9c2b4;
    --flag-bg: #3a3422;
    --flag-ink: #f3e6c0;
    --focus: #e6d7a2;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

h1, h2, h3, .wordmark {
  font-family: Georgia, "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  font-weight: 500;
  letter-spacing: -0.03em;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 0.4em;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
}

h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
}

h3 { margin-bottom: 0; font-size: 1.35rem; line-height: 1.2; }

p { margin-bottom: 0; }

a { color: var(--accent); text-underline-offset: 0.18em; }

a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 2;
  padding: 8px 12px;
  background: var(--bg-elevated);
  color: var(--ink);
}

.skip:focus { top: 12px; }

.wrap {
  width: min(960px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header { border-bottom: 1px solid var(--line); }

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  min-height: 72px;
  padding: 16px 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  font-size: 1.2rem;
  text-decoration: none;
}

.mark { display: block; flex: none; }

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

nav a {
  color: var(--ink);
  font-size: 0.95rem;
  text-decoration: none;
}

nav a:hover { color: var(--accent); }

nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.22em; }

.hero { padding: 3.25rem 0 0.5rem; }

.tagline {
  max-width: 22em;
  margin-bottom: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  line-height: 1.35;
}

main section + section { padding-top: 3.25rem; }

.prose { max-width: 66ch; }

.prose p + p { margin-top: 1rem; }

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  padding: 22px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.card p { flex: 1; color: var(--muted); }

.button {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: auto;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
}

a.button {
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
}

a.button:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
}

.button-soon {
  background: var(--soon-bg);
  color: var(--soon-ink);
  border: 1px solid var(--line);
  cursor: default;
}

.site-footer {
  margin-top: 4rem;
  padding: 1.75rem 0 2.75rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

address {
  font-style: normal;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.preview-flag {
  margin-bottom: 1rem;
  padding: 10px 12px;
  background: var(--flag-bg);
  color: var(--flag-ink);
  border-radius: 8px;
}

.footer-nav { margin-top: 1rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 720px) {
  .wrap { width: min(960px, calc(100% - 64px)); }
  .cards { grid-template-columns: 1fr 1fr; }
}
