:root {
  --paper: #faf7f0;
  --surface: #fffdfa;
  --ink: #30332d;
  --muted: #6d7066;
  --line: #e4ded2;
  --gold: #c5934f;
  --soft-gold: #f5e8cb;
  --green: #60735f;
  --shadow: 0 18px 50px rgba(48, 51, 45, 0.08);
  font-family: ui-rounded, "SF Pro Rounded", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--paper); }

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 13% 3%, rgba(245, 232, 203, 0.7), transparent 30rem),
    linear-gradient(180deg, #fffdf8 0, var(--paper) 28rem);
  color: var(--ink);
}

a { color: inherit; }

.site-header,
.site-footer,
.page-shell {
  width: min(100% - 40px, 920px);
  margin-inline: auto;
}

.site-header {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid rgba(228, 222, 210, 0.75);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-size: 19px;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.brand-icon {
  display: block;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 11px;
}

.site-nav { display: flex; gap: 22px; }

.site-nav a,
.language-switch {
  position: relative;
  padding-block: 7px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 610;
}

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

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
}

.language-switch { justify-self: end; }
.language-switch:hover, .site-nav a:hover { color: var(--green); }

.page-shell { padding-block: 72px 84px; }

.hero { margin-bottom: 34px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid rgba(197, 147, 79, 0.3);
  border-radius: 999px;
  color: #8a6231;
  background: rgba(245, 232, 203, 0.55);
  font-size: 13px;
  font-weight: 650;
}

h1 {
  max-width: 720px;
  margin: 18px 0 14px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.lede {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 2.4vw, 20px);
  line-height: 1.65;
}

.paper-card {
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 253, 250, 0.92);
  box-shadow: var(--shadow);
}

.paper-card + .paper-card { margin-top: 20px; }

.paper-card h2 {
  margin: 0 0 18px;
  font-size: 23px;
  letter-spacing: -0.025em;
}

.paper-card h3 {
  margin: 28px 0 8px;
  font-size: 17px;
}

.paper-card h3:first-child { margin-top: 0; }

.paper-card p,
.paper-card li {
  color: #55594f;
  font-size: 16px;
  line-height: 1.75;
}

.paper-card p { margin: 8px 0 16px; }
.paper-card p:last-child { margin-bottom: 0; }
.paper-card ul { margin: 10px 0 20px; padding-left: 1.25em; }
.paper-card li + li { margin-top: 7px; }
.paper-card a { color: var(--green); text-underline-offset: 3px; }

.notice {
  margin: 24px 0;
  padding: 16px 18px;
  border-left: 3px solid var(--gold);
  border-radius: 4px 14px 14px 4px;
  background: rgba(245, 232, 203, 0.42);
  color: #5f513e;
  line-height: 1.7;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.contact-card p { margin-bottom: 0; }

.contact-link {
  flex: 0 0 auto;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 14px;
  color: #fff !important;
  background: var(--green);
  text-decoration: none;
  font-weight: 680;
}

.document-meta {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 26px 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 700px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 10px 18px;
    padding-block: 16px 12px;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    gap: 12px;
  }

  .language-switch { grid-column: 2; grid-row: 1; }
  .page-shell { padding-block: 48px 64px; }
  .contact-card { align-items: flex-start; flex-direction: column; }
  .contact-link { width: 100%; }
  .site-footer { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: no-preference) {
  .page-shell { animation: settle 320ms ease-out both; }
  @keyframes settle {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
