:root {
  color-scheme: light;
  --paper: #f7f0e4;
  --paper-bright: #fffaf1;
  --paper-deep: #e8dcc9;
  --ink: #26231f;
  --ink-soft: #625d55;
  --line: #d7c9b4;
  --line-strong: #9f907c;
  --clay: #c75f45;
  --clay-deep: #8d3f2e;
  --sage: #a9c5a3;
  --ochre: #e1b963;
  --focus: #1f65a6;
  --shadow: 0 7px 0 rgba(38, 35, 31, 0.12);
  font-family: Atkinson Hyperlegible, ui-rounded, "SF Pro Rounded", -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--paper); scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10px 10px, rgba(38, 35, 31, 0.035) 1px, transparent 1.2px) 0 0 / 18px 18px,
    var(--paper);
  font-size: 17px;
  line-height: 1.65;
}

a { color: var(--clay-deep); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

a:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: white;
  background: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  border-bottom: 1px solid rgba(159, 144, 124, 0.55);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(14px);
}

.header-inner,
.page-shell,
.footer-inner {
  width: min(100% - 36px, 860px);
  margin-inline: auto;
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  border-radius: 9px;
  background: conic-gradient(from 90deg, var(--clay) 0 25%, var(--ochre) 0 50%, var(--sage) 0 75%, var(--paper-bright) 0);
  box-shadow: 0 3px 0 var(--ink);
}

.site-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.site-nav a { color: var(--ink); font-weight: 700; text-decoration: none; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; }

.language-field { display: flex; align-items: center; gap: 8px; }
.language-field label { font-size: 0.82rem; font-weight: 800; color: var(--ink-soft); }
.language-field select {
  min-height: 44px;
  max-width: 155px;
  border: 2px solid var(--line-strong);
  border-radius: 12px;
  padding: 7px 34px 7px 11px;
  color: var(--ink);
  background: var(--paper-bright);
  font: inherit;
  font-size: 0.94rem;
  cursor: pointer;
}

.page-shell { padding-block: clamp(44px, 8vw, 86px); }

.legal-card,
.home-card {
  border: 2px solid var(--line-strong);
  border-radius: 26px;
  padding: clamp(24px, 6vw, 58px);
  background: var(--paper-bright);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--clay-deep);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2 { line-height: 1.12; text-wrap: balance; overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(2.3rem, 8vw, 4.8rem); letter-spacing: -0.045em; }
h2 { margin: 2.4em 0 0.55em; font-size: clamp(1.35rem, 3vw, 1.7rem); letter-spacing: -0.02em; }
p, li { max-width: 70ch; }
.lead { margin: 22px 0 0; color: var(--ink-soft); font-size: clamp(1.08rem, 2.5vw, 1.28rem); }
.effective { display: inline-block; margin-top: 22px; padding: 7px 11px; border-radius: 9px; background: var(--paper-deep); font-size: 0.9rem; font-weight: 700; }
.notice { margin: 28px 0; padding: 16px 18px; border-left: 5px solid var(--sage); border-radius: 0 12px 12px 0; background: color-mix(in srgb, var(--sage) 22%, white); }
.legal-card ul { padding-left: 1.3em; }
.legal-card li + li { margin-top: 0.45em; }
.legal-card a { overflow-wrap: anywhere; }

[data-lang] { display: none; }
[data-lang].is-active { display: block; }

.home-card h1 { max-width: 10ch; }
.link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 38px; }
.link-tile {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 2px solid var(--line-strong);
  border-radius: 18px;
  padding: 22px;
  color: var(--ink);
  background: var(--paper);
  text-decoration: none;
  box-shadow: 0 5px 0 var(--paper-deep);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.link-tile:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--paper-deep); }
.link-tile strong { font-size: 1.3rem; }
.link-tile span { color: var(--ink-soft); }

.site-footer { padding: 28px 0 42px; color: var(--ink-soft); font-size: 0.9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 24px; }

@media (max-width: 720px) {
  .header-inner { min-height: 70px; flex-wrap: wrap; gap: 10px 14px; padding-block: 10px; }
  .site-nav { order: 3; width: 100%; justify-content: center; border-top: 1px solid var(--line); padding-top: 8px; }
  .language-field { margin-left: auto; }
  .language-field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .link-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media print {
  .site-header, .site-footer, .skip-link { display: none; }
  body { background: white; font-size: 11pt; }
  .page-shell { width: 100%; padding: 0; }
  .legal-card { border: 0; box-shadow: none; padding: 0; }
}
