:root {
  --paper: #f4f1e8;
  --paper-deep: #ebe7da;
  --ink: #18211c;
  --moss: #315b45;
  --moss-soft: #dfe9dc;
  --line: #c8d0c6;
  --muted: #5e6d63;
  --white: #fffdf8;
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 82% -8%, rgba(185, 210, 184, .55) 0, rgba(185, 210, 184, 0) 34rem),
    linear-gradient(180deg, var(--paper) 0%, #f7f4ed 52%, var(--paper) 100%);
}
a { color: inherit; }
.shell { width: min(1120px, calc(100% - 40px)); min-height: 100vh; margin: 0 auto; }

.masthead {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -.035em;
}
.languageSwitcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, .58);
  font-size: 12px;
  letter-spacing: .08em;
}
.languageSwitcher a { padding: 4px 6px; color: var(--muted); text-decoration: none; }
.languageSwitcher a.active { color: var(--ink); font-weight: 800; }
.languageSwitcher span { color: #9aa59c; }

.hero { padding: 110px 0 76px; max-width: 850px; }
.eyebrow {
  margin: 0;
  color: var(--moss);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .19em;
}
h1 {
  margin: 20px 0 26px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 8vw, 92px);
  font-weight: 500;
  line-height: .99;
  letter-spacing: -.055em;
}
.lede {
  max-width: 710px;
  margin: 0;
  color: #506057;
  font-size: 19px;
  line-height: 1.68;
}

.routeGrid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.routeGrid a {
  grid-column: span 2;
  min-height: 205px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 27px;
  text-decoration: none;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: transform .18s ease, background .18s ease;
}
.routeGrid a:nth-child(4), .routeGrid a:nth-child(5) { grid-column: span 3; }
.routeGrid a:hover { background: rgba(255, 253, 248, .82); transform: translateY(-3px); }
.routeGrid span { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--moss); }
.routeGrid strong { margin-top: auto; font: 26px Georgia, "Times New Roman", serif; font-weight: 500; }
.routeGrid small { max-width: 32rem; color: var(--muted); font-size: 13px; line-height: 1.48; }

.policy { max-width: 1010px; }
.policyTitle { max-width: 810px; padding: 74px 0 60px; }
.policyTitle h1 { margin-bottom: 18px; font-size: clamp(46px, 7vw, 76px); }
.policyTitle > p:not(.eyebrow) { margin: 0 0 24px; color: #4f5f55; font: 23px/1.48 Georgia, "Times New Roman", serif; }
.policyTitle time { color: #718078; font-size: 12px; }
article {
  max-width: 810px;
  padding: 12px 0 88px;
  border-top: 1px solid var(--line);
}
.policySection { padding: 42px 0 8px; }
.policySection + .policySection { border-top: 1px solid rgba(200, 208, 198, .72); }
.policySection h2 {
  margin: 0 0 18px;
  font: 30px/1.15 Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.02em;
}
.policySection p,
.policySection li { color: #435249; font-size: 15.5px; line-height: 1.78; }
.policySection p { margin: 0 0 16px; }
.policySection ul,
.policySection ol { margin: 12px 0 22px; padding-left: 23px; }
.policySection li + li { margin-top: 8px; }
.policySection strong { color: var(--ink); }
.policySection a { color: var(--moss); text-underline-offset: 3px; }

footer {
  display: grid;
  grid-template-columns: 1.1fr 2fr auto;
  gap: 30px;
  align-items: start;
  padding: 36px 0 52px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
}
footer > div { display: flex; flex-direction: column; gap: 5px; }
footer strong { color: var(--ink); font: 18px Georgia, "Times New Roman", serif; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 18px; }
footer nav a, .footerEmail { text-decoration: none; }
footer nav a:hover, .footerEmail:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footerEmail { white-space: nowrap; }

.notFound section { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; max-width: 720px; }
.notFound h1 { font-size: clamp(52px, 9vw, 92px); }
.primaryLink {
  width: fit-content;
  margin-top: 28px;
  padding: 12px 17px;
  border: 1px solid var(--moss);
  border-radius: 999px;
  color: var(--moss);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}
.primaryLink:hover { background: var(--moss); color: var(--white); }

@media (max-width: 820px) {
  .routeGrid { grid-template-columns: 1fr 1fr; }
  .routeGrid a, .routeGrid a:nth-child(4), .routeGrid a:nth-child(5) { grid-column: span 1; }
  .routeGrid a:last-child { grid-column: 1 / -1; }
  footer { grid-template-columns: 1fr 1fr; }
  .footerEmail { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 28px, 1120px); }
  .masthead { height: 70px; }
  .hero { padding: 72px 0 52px; }
  h1 { font-size: clamp(44px, 15vw, 68px); }
  .lede { font-size: 17px; }
  .routeGrid { grid-template-columns: 1fr; }
  .routeGrid a, .routeGrid a:nth-child(4), .routeGrid a:nth-child(5), .routeGrid a:last-child { grid-column: span 1; min-height: 145px; }
  .policyTitle { padding: 52px 0 42px; }
  .policyTitle > p:not(.eyebrow) { font-size: 20px; }
  article { padding-bottom: 62px; }
  .policySection { padding-top: 34px; }
  .policySection h2 { font-size: 27px; }
  footer { grid-template-columns: 1fr; gap: 20px; }
  .footerEmail { grid-column: auto; }
}
