/* Wind Down public pages. Paper + amber from src/theme/palette.ts. */
:root {
  color-scheme: light;
  --paper: #f7f2ea;
  --paper-deep: #efe8dd;
  --ink: #1a1512;
  --ink-deep: #1a1512;
  --muted: #6b615a;
  --line: rgba(26, 21, 18, 0.12);
  --sky: #efe8dd;
  --coral: #a76a22;
  --white: #fcf8f2;
  --shadow: 0 18px 45px rgba(26, 21, 18, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-deep);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a { color: var(--ink); }

a:hover { color: var(--coral); }

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 2;
  padding: 0.65rem 0.9rem;
  border-radius: 0.5rem;
  background: var(--ink-deep);
  color: var(--paper);
  font-weight: 700;
}

.skip-link:focus { top: 1rem; }

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header { border-bottom: 1px solid var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink-deep);
  font-size: 0.98rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 999px;
  background: #0d0b09;
}

.brand-mark svg { width: 1.15rem; height: 1.15rem; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9rem;
  font-weight: 650;
}

.site-nav a {
  padding-block: 0.45rem;
  color: var(--muted);
  text-decoration: none;
}

.site-nav a[aria-current="page"] { color: var(--ink-deep); }

.site-nav a[aria-current="page"]::after {
  display: block;
  height: 2px;
  margin-top: 0.15rem;
  border-radius: 2px;
  background: var(--coral);
  content: "";
}

main { padding-bottom: 5rem; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(270px, 0.75fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 6.5rem);
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3rem, 6vw, 5.25rem);
}

.hero-copy { max-width: 710px; }

.eyebrow,
.contents-label {
  margin: 0 0 0.9rem;
  color: var(--coral);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0;
  color: var(--ink-deep);
  letter-spacing: -0.04em;
  text-wrap: balance;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 0.98;
}

.hero-lede {
  max-width: 61ch;
  margin: 1.45rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.25rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.hero-note {
  padding: 1.7rem;
  border-radius: 1.35rem;
  background: #0d0b09;
  color: #efe4d8;
  box-shadow: var(--shadow);
}

.hero-note h2 {
  color: #efe4d8;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.hero-note p { margin: 0.65rem 0 0; color: #c6b8aa; }

.hero-note ul {
  display: grid;
  gap: 0.7rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-note li {
  display: flex;
  gap: 0.65rem;
  align-items: start;
}

.hero-note li::before {
  flex: 0 0 auto;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: #e3a055;
  content: "";
}

.content-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 720px);
  justify-content: space-between;
  gap: 3rem;
}

.contents {
  align-self: start;
  position: sticky;
  top: 1.5rem;
}

.contents a {
  display: block;
  padding: 0.45rem 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
  text-decoration: none;
}

.contents a:hover { color: var(--coral); }

.prose { min-width: 0; }

.policy-section {
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 1.5rem;
}

.policy-section:first-child { padding-top: 0; border-top: 0; }

h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1.1; }

h3 {
  margin-top: 1.8rem;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.prose p,
.prose ul,
.prose dl { max-width: 72ch; margin: 1rem 0 0; }

.prose p:first-of-type { margin-top: 1.15rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-top: 0.55rem; padding-left: 0.2rem; }
.prose strong { color: var(--ink-deep); }

.note {
  margin-top: 1.5rem;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(252, 248, 242, 0.7);
}

.note p { margin-top: 0; }

.data-list {
  display: grid;
  grid-template-columns: minmax(120px, 0.4fr) minmax(0, 1fr);
  gap: 0;
  margin-top: 1.5rem !important;
  border-top: 1px solid var(--line);
}

.data-list dt,
.data-list dd {
  margin: 0;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.data-list dt { color: var(--ink-deep); font-weight: 750; }
.data-list dd { color: var(--muted); }

.callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: 1rem;
  background: var(--sky);
}

.callout-mark {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 800;
}

.callout p { margin: 0; color: var(--ink-deep); }

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 0.7rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 750;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.support-intro { max-width: 620px; }
.support-intro h1 { max-width: 12ch; }

.support-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}

.contact-panel {
  padding: 1.65rem;
  border-radius: 1.25rem;
  background: #0d0b09;
  color: #efe4d8;
  box-shadow: var(--shadow);
}

.contact-panel h2 { color: #efe4d8; font-size: 1.45rem; }
.contact-panel p { color: #c6b8aa; }
.contact-panel a:not(.button) { color: #efe4d8; }
.contact-panel .button {
  margin-top: 0.75rem;
  background: #e3a055;
  border-color: #e3a055;
  color: #150f09;
}

.issue-note {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(239, 228, 216, 0.2);
  color: #c6b8aa;
  font-size: 0.86rem;
}

.faq h2 { font-size: 2rem; }

.faq details {
  padding-block: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.faq details:first-of-type { margin-top: 1.1rem; border-top: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  color: var(--ink-deep);
  font-size: 1.02rem;
  font-weight: 750;
}

.faq details p { max-width: 65ch; margin: 0.75rem 1.25rem 0 0; color: var(--muted); }

.support-footnote {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.4rem 2rem;
}

.footer-inner p { margin: 0; }
.footer-links { display: flex; gap: 1.2rem; }
.footer-links a { color: var(--muted); }

@media (max-width: 760px) {
  .wrap { width: min(100% - 2rem, 620px); }
  .hero,
  .content-layout,
  .support-grid { grid-template-columns: 1fr; }
  .contents { position: static; order: -1; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
  .contents a { display: inline-block; margin-right: 1rem; }
}

@media (max-width: 430px) {
  .data-list { grid-template-columns: 1fr; }
  .data-list dt { padding-bottom: 0.2rem; border-bottom: 0; }
  .data-list dd { padding-top: 0.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
