:root {
  color-scheme: light;
  --paper: #f3efe4;
  --ink: #11100c;
  --muted: #6f6b61;
  --line: #cfc8b8;
  --blue: #243cff;
  --white: #fffdf7;
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
}

a { color: var(--blue); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }

.shell { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }

header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 72px;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  padding: 0;
}

header > .shell { height: 100%; }
nav { height: 100%; display: flex; align-items: center; gap: 22px; flex-wrap: nowrap; }
.brand { flex: 0 0 auto; margin-right: auto; color: var(--ink); font-size: 24px; font-weight: 900; letter-spacing: -.05em; text-decoration: none; }
.brand::after { content: "."; color: var(--blue); }
nav a:not(.brand) { color: var(--ink); font-size: 12px; letter-spacing: .14em; text-decoration: none; text-transform: uppercase; }
nav > a:not(.brand) { flex: 0 0 auto; white-space: nowrap; }
nav > a.nav-overflowed { display: none; }
.language-switch { flex: 0 0 auto; display: inline-flex; gap: 8px; padding-left: 4px; }
.language-switch a { color: var(--muted); }
.language-switch a[aria-current="page"] { color: var(--blue); font-weight: 800; }
.nav-more { position: relative; flex: 0 0 auto; display: none; }
.nav-more.is-visible { display: block; }
.nav-more summary { position: relative; width: 32px; height: 32px; padding: 0; color: var(--ink); cursor: pointer; font-size: 0; list-style: none; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary::before,
.nav-more summary::after { content: ""; position: absolute; top: 50%; width: 7px; height: 12px; background: currentColor; clip-path: polygon(0 0, 35% 0, 100% 50%, 35% 100%, 0 100%, 65% 50%); transform: translate(-50%, -50%); transform-origin: center; transition: top 180ms ease, left 180ms ease, transform 180ms ease; }
.nav-more summary::before { left: 42%; }
.nav-more summary::after { left: 58%; }
.nav-more[open] > summary::before,
.nav-more[open] > summary::after { left: 50%; transform: translate(-50%, -50%) rotate(90deg); }
.nav-more[open] > summary::before { top: 42%; }
.nav-more[open] > summary::after { top: 58%; }
.nav-more-panel { position: absolute; top: calc(100% + 18px); right: 0; width: max-content; min-width: 220px; display: grid; gap: 2px; padding: 8px; border: 2px solid var(--ink); background: var(--paper); box-shadow: 7px 7px 0 rgba(17, 16, 12, .16); }
.nav-more-panel a { padding: 10px 12px; white-space: nowrap; }
.nav-more-panel a[hidden] { display: none; }
.nav-more-panel a:hover { background: var(--white); }

main { flex: 1 0 auto; padding: 44px 0 34px; }
main.home { padding-top: 0; }
.hero { min-height: 38vh; display: grid; align-content: center; border-bottom: 2px solid var(--ink); padding: 20px 0; }
.eyebrow { color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
h1 { max-width: 760px; margin: 12px 0 20px; font-size: clamp(36px, 4.4vw, 64px); line-height: .96; letter-spacing: -.05em; text-transform: uppercase; }
.lead { max-width: 610px; margin: 0; font-family: Georgia, serif; font-size: clamp(18px, 1.7vw, 22px); font-style: italic; line-height: 1.42; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 2px solid var(--ink); }
.card { min-height: 174px; padding: 26px 24px; border-right: 1px solid var(--line); }
.card:last-child { border-right: 0; }
.card span { display: block; color: var(--blue); font-size: 13px; font-weight: 700; letter-spacing: .18em; }
.card h2 { margin: 32px 0 8px; font-size: 21px; line-height: 1; text-transform: uppercase; }
.card p { margin: 0; color: var(--muted); }

.document { max-width: 780px; }
.document h1 { font-size: clamp(36px, 4vw, 52px); }
.meta { padding: 18px 0; border-block: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.document h2 { margin: 48px 0 12px; font-size: 23px; letter-spacing: -.02em; text-transform: uppercase; }
.document h3 { margin: 34px 0 8px; font-size: 20px; }
.document p, .document li { max-width: 72ch; }
.document li + li { margin-top: 8px; }
.notice { margin: 32px 0; padding: 22px 24px; border-left: 5px solid var(--blue); background: var(--white); }

.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 34px; }
.button { display: inline-block; padding: 12px 18px; background: var(--ink); color: var(--white); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
.button.secondary { background: transparent; color: var(--ink); border: 2px solid var(--ink); padding: 10px 16px; }

footer { margin-top: auto; border-top: 2px solid var(--ink); padding: 18px 0 20px; color: var(--muted); font-size: 13px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 10px 18px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 900px) {
  header { height: 64px; }
  nav { gap: 12px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .shell { width: min(100% - 28px, 1080px); }
  nav a:not(.brand) { font-size: 12px; }
  footer { padding: 14px 0 16px; font-size: 12px; }
  .footer-row { gap: 8px 14px; }
  .footer-links { gap: 12px; }
  main { padding-top: 46px; }
  .hero { min-height: auto; padding-block: 20px; }
  .grid { grid-template-columns: 1fr; }
  .card { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .card:last-child { border-bottom: 0; }
  .card h2 { margin-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-more summary::before,
  .nav-more summary::after { transition: none; }
}
