:root {
  color-scheme: light;
  --bg: #f7f1eb;
  --panel: #f0e7e0;
  --card: #fffdfa;
  --line: #e5d8d0;
  --frame-line: #888184;
  --ink: #30272a;
  --ink-2: #605256;
  --muted: #716368;
  --rose: #874955;
  --rose-soft: #f7e7e9;
  --rose-line: #ead1d5;
  --dark: #44373b;
  --sans: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --max: 1120px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-space: clamp(1.5rem, 3vw, 2.5rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--rose);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 4px;
}

.container {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 5;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-160%);
  padding: 0.55rem 0.8rem;
  border-radius: 4px;
  background: var(--dark);
  color: var(--card);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.header-inner {
  min-height: 72px;
}

.wordmark {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.site-header nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem clamp(0.8rem, 1.8vw, 1.5rem);
}

.site-header nav a,
.site-footer nav a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  color: var(--ink-2);
  font-size: 0.82rem;
  text-decoration: none;
}

.site-header nav a:hover,
.site-footer nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--rose);
}

.site-header nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.page-content {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(15rem, 0.8fr) minmax(0, 1.2fr);
  align-content: start;
  align-items: start;
  column-gap: clamp(3rem, 8vw, 7rem);
  padding-block: clamp(3rem, 7vw, 5.75rem);
}

.page-heading {
  grid-column: 1;
  align-self: start;
}

.page-content-single {
  grid-template-columns: minmax(0, 1fr);
}

.page-sections {
  grid-column: 2;
  min-width: 0;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--sans);
  letter-spacing: -0.045em;
  line-height: 1.16;
  text-wrap: balance;
}

h1 {
  max-width: 18ch;
  margin-bottom: 1rem;
  font-size: clamp(2.25rem, 5vw, 3.6rem);
  font-weight: 650;
}

h2 {
  margin-bottom: 0.65rem;
  font-size: 1.28rem;
  font-weight: 600;
}

.lead {
  max-width: 62ch;
  margin-bottom: 1.3rem;
  color: var(--ink-2);
  font-size: 1.05rem;
}

.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.3rem;
  margin-bottom: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.content-section {
  max-width: 70ch;
  margin-top: 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.content-section + .content-section {
  margin-top: var(--section-space);
}

.content-section p,
.page-intro {
  margin-bottom: 0.75rem;
  color: var(--ink-2);
}

.page-intro {
  max-width: 42ch;
  margin-bottom: 0;
}

.plain-list,
.platform-list {
  max-width: 75ch;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--frame-line);
  list-style: none;
}

.plain-list li,
.platform-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.plain-list strong,
.platform-list strong {
  display: block;
  margin-bottom: 0.2rem;
  font-weight: 600;
}

.plain-list p,
.platform-list small {
  display: block;
  margin: 0;
  color: var(--ink-2);
  font-size: 0.88rem;
}

.platform-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.platform-status {
  flex: 0 0 auto;
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 600;
}

.text-note {
  max-width: 68ch;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.faq-list {
  max-width: 75ch;
  border-top: 1px solid var(--frame-line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  min-height: 48px;
  padding: 0.75rem 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
}

.faq-list details p {
  max-width: 68ch;
  margin: 0 0 1rem;
  color: var(--ink-2);
  font-size: 0.88rem;
}

.site-footer {
  padding-block: 1rem;
  border-top: 1px solid var(--frame-line);
  background: var(--panel);
}

.footer-inner {
  min-height: 32px;
}

.footer-inner > span,
.footer-inner nav a {
  color: var(--muted);
  font-size: 0.76rem;
}

@media (max-width: 700px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.15rem;
    padding-block: 0.65rem;
  }

  .site-header nav {
    gap: 0.1rem 0.75rem;
  }

  .site-header nav a {
    min-height: 36px;
    font-size: 0.77rem;
  }

  .page-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
    padding-block: 3rem;
  }

  .page-heading,
  .page-sections {
    grid-column: 1;
  }

  .content-section + .content-section {
    margin-top: 1.75rem;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.4rem;
  }
}

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