:root {
  --ink: #102b43;
  --ink-soft: #4f6172;
  --paper: #f1f5f8;
  --paper-2: #ffffff;
  --line: #d3dde6;
  --orange: #287b72;
  --focus: #d3a452;
  --max: 72rem;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
a { color: var(--ink); }
a:hover { color: var(--orange); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 0.9rem;
  z-index: 5;
}
.skip:focus { top: 0.75rem; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 241, 233, 0.98);
  border-bottom: 1px solid var(--line);
  overflow: visible;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  min-height: 4rem;
  min-width: 0;
}
.bar-actions { display: flex; align-items: center; gap: 0.5rem; }
.bar-actions .login { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 0.4rem; }
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  min-height: 44px;
}
.brand img { display: block; width: 26px; height: 26px; border-radius: 6px; }
.story-list { margin: 0 0 1.25rem; padding-left: 1.25rem; }
.story-list li { margin: 0.45rem 0; }
.nav-wide { display: none; align-items: center; flex-wrap: wrap; gap: 0.15rem; min-width: 0; }
.nav-wide a {
  text-decoration: none;
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav-wide a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.nav-wide a.btn { padding: 0.55rem 1rem; }
.menu { position: relative; }
.menu > summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 0.9rem;
  background: var(--paper-2);
  font-weight: 650;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu nav {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.4rem;
  min-width: min(18rem, calc(100vw - 2rem));
  box-shadow: 0 16px 40px rgba(27, 51, 46, 0.12);
}
.menu[open] nav { display: flex; flex-direction: column; z-index: 70; background: #fff; }
.menu nav a {
  text-decoration: none;
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.menu nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.menu nav a:hover { background: #efe7da; }
.menu nav a[aria-current="page"]:hover { color: var(--paper); background: var(--ink); }

@media (max-width: 959px) {
  .bar-actions { display: none; }
}
@media (min-width: 960px) {
  .nav-wide { display: flex; }
  .menu { display: none; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #122420; color: var(--paper); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }

.hero { padding: 2.5rem 0 1.5rem; }
.kicker {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--orange);
  margin: 0 0 0.6rem;
}
h1 {
  font-family: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.12;
  font-weight: 600;
  margin: 0 0 0.8rem;
}
.lead { font-size: 1.15rem; max-width: 40rem; margin: 0; }
.claim {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  background: var(--paper-2);
  border-left: 4px solid var(--orange);
  max-width: 46rem;
}

.path { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.6rem; }
@media (min-width: 800px) {
  .path { grid-template-columns: repeat(4, 1fr); }
}
.path li {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
  min-height: 5.5rem;
}
.path strong { display: block; }
.path span { color: var(--ink-soft); font-size: 0.92rem; }

.section { padding: 1.4rem 0; }
h2 {
  font-family: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 0.6rem;
}
h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.grid { display: grid; gap: 0.8rem; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}
.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.05rem;
}
.card p:last-child { margin-bottom: 0; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }

.note {
  background: #efe7da;
  border-radius: 12px;
  padding: 0.9rem 1rem;
}
table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.table-wrap { overflow-x: auto; max-width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-2); }
th, td { text-align: left; padding: 0.7rem 0.8rem; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: #efe7da; }
tr:last-child td { border-bottom: 0; }

.crumbs { font-size: 0.92rem; color: var(--ink-soft); margin: 1rem 0 0; }
.crumbs a { color: var(--ink-soft); }
.updated { color: var(--ink-soft); font-size: 0.9rem; }

.faq details {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.2rem 0.9rem;
  margin-bottom: 0.5rem;
}
.faq summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; }
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.5rem;
  color: var(--ink-soft);
}
.footer-grid { display: grid; gap: 1rem; }
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.site-footer a { color: var(--ink); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer h2 { font-family: inherit; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }

@media (max-width: 380px) {
  .wrap, .wrap-narrow { width: min(var(--max), calc(100% - 1.25rem)); }
  h1 { font-size: 1.85rem; }
}
