/* Step Ahead In Ten · shared styles for the landing, price and legal pages.
   Radius rule: buttons and inputs are pills (999px); panels 18px; nothing else is rounded.
   z-index scale: header 20, skip link 30. */

:root {
  --paper: #F6F1E7;
  --ink: #20231F;
  --tomato: #E6573E;
  --moss: #65745A;
  --saffron: #E7B84B;

  --page: var(--paper);
  --surface: #FFFDF7;
  --text: var(--ink);
  --muted: #50584C;
  --line: #B8B4A8;
  --soft-moss: #E1E5DA;
  --soft-saffron: #F3E4B3;
  --accent-text: #B83A24;
  --gutter: 16px;
  --radius: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #171A17;
    --surface: #222720;
    --text: #F6F1E7;
    --muted: #C9C9BC;
    --line: #61685C;
    --soft-moss: #30382D;
    --soft-saffron: #413A24;
    --accent-text: #F08A74;
  }
}

* { box-sizing: border-box; }

html {
  background: var(--page);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Atkinson Hyperlegible", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
}

img, svg { display: block; max-width: 100%; }

a {
  color: var(--text);
  text-decoration-color: var(--tomato);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover { text-decoration-color: var(--text); }

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

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
}

h1 { font-size: clamp(2.25rem, 8vw, 3.6rem); text-wrap: balance; }
h2 { text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 5.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.skip-link {
  position: absolute;
  z-index: 30;
  left: 12px;
  top: -60px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--page);
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

.shell {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.narrow { max-width: 680px; }

/* Header */
.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 68%, transparent);
  background: color-mix(in srgb, var(--page) 94%, transparent);
  backdrop-filter: blur(12px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand svg { width: 30px; height: 30px; flex: none; }

.site-nav { display: flex; align-items: center; gap: 4px; }

.site-nav a {
  display: none;
  min-height: 44px;
  align-items: center;
  padding: 0 10px;
  font-size: 1rem;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--tomato);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.site-nav .nav-cta { display: inline-flex; }

@media (min-width: 768px) {
  .site-nav a { display: inline-flex; }
}

/* Buttons and forms */
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 2px solid var(--text);
  border-radius: 999px;
  background: var(--text);
  color: var(--page);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 0 color-mix(in srgb, var(--text) 30%, transparent);
}

.button:active { transform: translateY(0); box-shadow: none; }

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

.button.compact { min-height: 44px; padding: 8px 16px; font-size: 1rem; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { padding: 40px 0 48px; }

.hero-grid { display: grid; gap: 32px; align-items: center; }

.hero h1 { max-width: 13ch; }

.hero .lede {
  max-width: 34ch;
  margin: 18px 0 26px;
  font-size: 1.2rem;
  color: var(--muted);
}

.hero-art { width: min(100%, 300px); justify-self: center; color: var(--text); }

@media (min-width: 860px) {
  .hero { padding: 72px 0 80px; }
  .hero-grid { grid-template-columns: 1.3fr 1fr; }
  .hero-art { width: 100%; max-width: 380px; }
}

/* Sections */
.section { padding: 56px 0; border-top: 2px solid var(--text); }

.section h2 { max-width: 20ch; margin-bottom: 20px; }

.prose { max-width: 62ch; }

.prose h2 { margin: 40px 0 12px; font-size: 1.5rem; max-width: none; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }

/* Who it is for: two columns from 860px */
.split { display: grid; gap: 28px; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }

.need-list { list-style: none; margin: 0; padding: 0; }
.need-list li {
  padding: 14px 0 14px 34px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.need-list li:last-child { border-bottom: 0; }
.need-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 22px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--tomato);
}

/* A day: three parts on a ruled panel */
.day-panel {
  display: grid;
  gap: 0;
  border: 2px solid var(--text);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.day-part { padding: 22px 20px; border-bottom: 2px solid var(--text); }
.day-part:last-child { border-bottom: 0; }
.day-part h3 { margin-bottom: 6px; }
.day-part p { margin: 0; color: var(--muted); }
.day-part .word { color: var(--accent-text); font-weight: 700; }
@media (min-width: 860px) {
  .day-panel { grid-template-columns: repeat(3, 1fr); }
  .day-part { border-bottom: 0; border-right: 2px solid var(--text); padding: 28px; }
  .day-part:last-child { border-right: 0; }
}

/* The path: rising steps */
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.step {
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--soft-moss);
}
.step:nth-child(1) { margin-right: 32%; }
.step:nth-child(2) { margin-right: 24%; }
.step:nth-child(3) { margin-right: 16%; }
.step:nth-child(4) { margin-right: 8%; }
.step:last-child { background: var(--text); color: var(--page); }
.step .days { display: block; font-size: 0.95rem; font-weight: 700; color: var(--muted); }
.step:last-child .days { color: var(--soft-saffron); }
.step strong { font-family: "Fraunces", Georgia, serif; font-size: 1.15rem; }
@media (max-width: 520px) {
  .step:nth-child(1) { margin-right: 16%; }
  .step:nth-child(2) { margin-right: 12%; }
  .step:nth-child(3) { margin-right: 8%; }
  .step:nth-child(4) { margin-right: 4%; }
}
.example {
  margin-top: 28px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--soft-saffron);
  max-width: 60ch;
}

/* Free lessons: a manual's contents list */
.contents { list-style: none; margin: 0; padding: 0; max-width: 720px; }
.contents li { border-bottom: 1px solid var(--line); }
.contents li:first-child { border-top: 1px solid var(--line); }
.contents a {
  display: grid;
  grid-template-columns: 4.2rem 1fr auto;
  align-items: baseline;
  gap: 12px;
  padding: 18px 0;
  text-decoration: none;
}
.contents .num { font-family: "Fraunces", Georgia, serif; font-weight: 700; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.contents .title { font-size: 1.15rem; font-weight: 700; text-decoration: underline; text-decoration-color: var(--tomato); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.contents .free { font-size: 0.95rem; color: var(--muted); }

/* Price */
.price-card {
  max-width: 520px;
  padding: 28px 24px;
  border: 2px solid var(--text);
  border-radius: var(--radius);
  background: var(--surface);
}
.price { font-family: "Fraunces", Georgia, serif; font-size: 3rem; font-weight: 700; line-height: 1; margin: 0; font-variant-numeric: tabular-nums; }
.price-unit { font-size: 1.1rem; color: var(--muted); margin: 6px 0 18px; }
.price-card ul { margin: 0 0 18px; padding-left: 1.2em; }
.price-card li { margin-bottom: 6px; }
.price-note { font-size: 1rem; color: var(--muted); margin: 0; }

/* Join form */
.join { background: var(--soft-saffron); border-top: 2px solid var(--text); padding: 56px 0; }
.join h2 { margin-bottom: 14px; }
.join form { max-width: 520px; margin-top: 20px; }
.join label { display: block; font-weight: 700; margin-bottom: 8px; }
.field-row { display: flex; flex-wrap: wrap; gap: 10px; }
.field-row input[type="email"] {
  flex: 1 1 240px;
  min-height: 48px;
  padding: 10px 18px;
  border: 2px solid var(--text);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-help { font-size: 1rem; margin: 10px 0 0; }
.form-status { margin: 10px 0 0; font-weight: 700; }
.form-status.error { color: var(--accent-text); }

/* Questions */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 18px 0;
  font-weight: 700;
  font-size: 1.15rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: "Fraunces", Georgia, serif; font-size: 1.5rem; line-height: 1; color: var(--accent-text); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 18px; max-width: 62ch; }

/* Legal and inner pages */
.page-head { padding: 40px 0 8px; }
.page-head p { color: var(--muted); margin-top: 12px; }
.page-body { padding: 24px 0 64px; }

/* Footer */
.site-footer { border-top: 2px solid var(--text); padding: 36px 0 48px; font-size: 1rem; }
.footer-grid { display: grid; gap: 22px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-flex; min-height: 44px; align-items: center; }
.small { font-size: 0.95rem; color: var(--muted); margin: 0; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
