/* Moving to Switzerland — static, no build step. System fonts for speed. */
:root {
  --bg: #f7f4ef;
  --bg-card: #fffdf8;
  --ink: #1a1a18;
  --ink-soft: #3a3a36;
  --muted: #5c5a54;
  --line: #d8d2c6;
  --accent: #8c1c23;
  --accent-soft: #f3e6e6;
  --ok: #1e4d3a;
  --ok-soft: #e7f0ea;
  --warn: #6b4a12;
  --warn-soft: #f6edd8;
  --max: 72rem;
  --text: 40rem;
  --sans: "Helvetica Neue", Helvetica, Arial, ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --shadow: 0 1px 0 rgba(26, 26, 24, 0.04);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: #6d151b; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--ink);
  color: #fff;
  padding: 0.4rem 0.75rem;
  z-index: 20;
}
.skip:focus { top: 0.75rem; }

.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.prose { width: min(var(--text), 100%); }

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--bg-card);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}
.brand {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1rem;
}
.brand span { color: var(--accent); }
nav.site-nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.1rem; font-size: 0.92rem; }
nav.site-nav a { color: var(--ink-soft); text-decoration: none; }
nav.site-nav a:hover { color: var(--accent); text-decoration: underline; }

.hero {
  padding: 3rem 0 2.25rem;
  border-bottom: 1px solid var(--line);
}
.kicker {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 0.75rem;
}
h1 {
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
  max-width: 18ch;
  font-weight: 720;
}
.lede {
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 46rem;
  margin: 0 0 1.25rem;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.layout {
  display: grid;
  grid-template-columns: 15.5rem minmax(0, 1fr);
  gap: 2.5rem;
  padding: 2.5rem 0 4rem;
  align-items: start;
}
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .toc { position: static !important; }
}

.toc {
  position: sticky;
  top: 1rem;
  font-size: 0.88rem;
  border-left: 2px solid var(--line);
  padding-left: 0.9rem;
}
.toc h2 {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
  color: var(--muted);
}
.toc ol { margin: 0; padding: 0 0 0 1.1rem; color: var(--ink-soft); }
.toc li { margin: 0.28rem 0; }
.toc a { color: inherit; text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }

main h2 {
  font-size: 1.65rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 2.75rem 0 0.85rem;
  padding-top: 0.4rem;
  scroll-margin-top: 1rem;
}
main h3 {
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  margin: 1.7rem 0 0.5rem;
  scroll-margin-top: 1rem;
}
main h4 { font-size: 1.02rem; margin: 1.2rem 0 0.4rem; }
main p, main li { color: var(--ink-soft); }
main ul, main ol { padding-left: 1.2rem; }
main li { margin: 0.32rem 0; }
main p { margin: 0.7rem 0; }

.note, .warn, .ok, .aside {
  border: 1px solid var(--line);
  background: var(--bg-card);
  padding: 0.85rem 1rem;
  margin: 1rem 0 1.2rem;
  border-radius: 2px;
}
.note { border-left: 4px solid var(--accent); background: var(--accent-soft); }
.warn { border-left: 4px solid #b8860b; background: var(--warn-soft); }
.ok { border-left: 4px solid var(--ok); background: var(--ok-soft); }
.aside { border-left: 4px solid #555; }
.note p, .warn p, .ok p, .aside p { margin: 0.35rem 0; }
.note p:first-child, .warn p:first-child, .ok p:first-child, .aside p:first-child { margin-top: 0; }
.note p:last-child, .warn p:last-child, .ok p:last-child, .aside p:last-child { margin-bottom: 0; }
.note strong, .warn strong, .ok strong { color: var(--ink); }

.timeline {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 1.5rem;
  border-left: 2px solid var(--line);
}
.timeline > li {
  position: relative;
  padding: 0 0 1.4rem 1.25rem;
  margin: 0;
}
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before {
  content: "";
  position: absolute;
  left: -0.42rem;
  top: 0.45rem;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--bg);
}
.when {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.15rem;
}
.timeline h3 { margin: 0 0 0.3rem; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--bg-card);
  margin: 1rem 0 1.4rem;
}
th, td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 0.7rem;
}
th {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  background: #efebe3;
}
.table-wrap { overflow-x: auto; margin: 1rem 0 1.4rem; }
.table-wrap table { margin: 0; min-width: 36rem; }

.source {
  font-size: 0.88rem;
  color: var(--muted);
}
.source a { color: inherit; }

#signup.card, .card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 1.25rem 1.3rem 1.4rem;
  margin: 1.2rem 0;
}
form { display: grid; gap: 0.75rem; }
label { font-weight: 650; font-size: 0.95rem; }
input, select {
  width: 100%;
  font: inherit;
  padding: 0.55rem 0.65rem;
  border: 1px solid #b9b3a8;
  background: #fff;
  color: var(--ink);
  border-radius: 2px;
}
.consent { display: flex; gap: 0.55rem; align-items: flex-start; font-weight: 400; color: var(--ink-soft); }
.consent input { width: auto; margin-top: 0.3rem; }
button, .btn {
  display: inline-block;
  border: 0;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 650;
  padding: 0.65rem 1.05rem;
  cursor: pointer;
  text-decoration: none;
  border-radius: 2px;
  width: fit-content;
}
button:hover, .btn:hover { background: #000; color: #fff; }
button[disabled] { opacity: 0.55; cursor: not-allowed; }
.form-status {
  display: none;
  margin: 0.4rem 0 0;
  padding: 0.7rem 0.8rem;
  background: var(--warn-soft);
  border-left: 4px solid #b8860b;
}
.form-status.show { display: block; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--ink);
}
.faq details p { margin: 0.5rem 0 0.3rem; }

.sources-list { font-size: 0.92rem; padding-left: 1.2rem; }
.sources-list li { margin: 0.4rem 0; }

footer.site {
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.9rem;
  background: #efebe3;
}
footer.site .wrap { display: grid; gap: 0.6rem; }
footer.site a { color: var(--ink-soft); }

@media print {
  body { background: #fff; font-size: 11pt; }
  header.site, .toc, #signup, .skip, nav.site-nav { display: none !important; }
  .layout { display: block; padding: 0; }
  a { color: inherit; text-decoration: none; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #444; }
  .hero { border: 0; padding: 0 0 1rem; }
  .note, .warn, .ok, .aside, .card { break-inside: avoid; }
}
