@font-face {
  font-family: "Hanken Grotesk";
  src: url("../assets/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../assets/fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fbf4f8;
  --ink: #3e3346;
  --ink-muted: #6b5d74;
  --line: #e3d3de;
  --surface: #ffffff;
  --accent: #7a4a8c;
  --accent-soft: #f0e2ee;
  --note-bg: #fbf1de;
  --note-ink: #6b4d06;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0 auto;
  max-width: 70ch;
  padding: 24px 16px 64px;
  font-family: "Hanken Grotesk", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

/* Hidden until a keyboard user tabs to it, then shown at the top left. */
.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.site-bar { margin: 0 0 28px; }
.site-bar a {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.site-bar a:hover { text-decoration: underline; }

h1, h2, .brand { font-family: "Newsreader", Georgia, serif; color: var(--ink); }
h1 { font-size: 2.2rem; line-height: 1.2; margin: 0 0 8px; font-weight: 600; }
h2 {
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 36px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 8px; }
a { color: var(--accent); overflow-wrap: anywhere; }
a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
code { font-size: 0.92em; background: var(--accent-soft); padding: 1px 5px; border-radius: 4px; }

.last-updated { color: var(--ink-muted); font-size: 0.875rem; margin-bottom: 24px; }
header { margin-bottom: 28px; }
.brand { font-size: 1rem; letter-spacing: 0.04em; color: var(--accent); margin: 0 0 8px; }
.lede { color: var(--ink-muted); margin: 0; font-size: 1.05rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  color: var(--ink);
  text-decoration: none;
}
.card strong { display: block; margin-bottom: 4px; }
.card span { color: var(--ink-muted); font-size: 0.9rem; }
a.card:hover { border-color: var(--accent); }

details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 10px;
}
summary { cursor: pointer; font-weight: 600; padding: 14px 18px; list-style-position: inside; }
details[open] summary { border-bottom: 1px solid var(--line); }
.answer { padding: 14px 18px 4px; }
.answer ul, .answer ol { padding-left: 22px; }
.answer li { margin-bottom: 6px; }

.note {
  background: var(--note-bg);
  color: var(--note-ink);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 0.95rem;
}
.contact {
  margin-top: 40px;
  padding: 22px;
  background: var(--accent-soft);
  border-radius: 16px;
}
.contact h2 { margin-top: 0; border-bottom: 0; padding-bottom: 0; }
.contact a { font-weight: 700; }
.contact ul { margin: 0 0 8px; }
footer { margin-top: 32px; color: var(--ink-muted); font-size: 0.85rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media print {
  body { background: #fff; color: #000; max-width: none; padding: 0; }
  .site-bar, .skip-link { display: none; }
  a { color: inherit; }
  details { border-color: #999; }
  details > .answer { display: block; }
  .contact, .note, .card { background: #fff; border: 1px solid #999; }
}

table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 0.95rem; }
th, td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
th { background: var(--accent-soft); }
