:root {
  --cream: #f3eee4;
  --paper: #fbf7f0;
  --ink: #14110e;
  --muted: #5a534b;
  --rule: #c9b89a;
  --gold: #9a7b3e;
  --wash: #e9e1d2;
  --focus: #14110e;
  --danger: #6b2a1f;
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --body: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --ui: "Source Sans 3", "Avenir Next", "Segoe UI", sans-serif;
  --measure: 38rem;
  --page: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.62;
  font-optical-sizing: auto;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ink);
  text-underline-offset: 0.18em;
}

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

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 20;
  background: var(--ink);
  color: var(--cream);
  padding: 0.55rem 0.9rem;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

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

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

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  padding-block: 0.65rem;
}

.wordmark {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  line-height: 1;
}

.wordmark:hover {
  color: var(--ink);
}

.wordmark em {
  font-style: italic;
  font-weight: 480;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1rem;
  font-family: var(--ui);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav a {
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav a[aria-current="page"] {
  box-shadow: inset 0 -1px 0 var(--ink);
}

.nav-more {
  position: relative;
}

.nav-more summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-more summary::-webkit-details-marker {
  display: none;
}

.nav-more[open] summary {
  box-shadow: inset 0 -1px 0 var(--ink);
}

.nav-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  min-width: 15.5rem;
  max-height: min(70vh, 32rem);
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 0.55rem 0.2rem;
  z-index: 8;
  box-shadow: 6px 8px 0 rgba(20, 17, 14, 0.06);
}

.nav-panel a {
  display: flex;
  padding: 0.55rem 0.85rem;
  text-decoration: none;
}

.nav-panel a:hover {
  background: var(--wash);
  color: var(--ink);
}

.hero {
  padding: 2.4rem 0 1.4rem;
}

.kicker {
  font-family: var(--ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.85rem;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 0.7rem;
}

h1 {
  font-size: clamp(2.15rem, 7.4vw, 4.35rem);
  max-width: 16ch;
}

h2 {
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
}

h3 {
  font-size: 1.25rem;
}

.subline {
  font-size: clamp(1.12rem, 2.4vw, 1.38rem);
  max-width: 28rem;
  margin: 0 0 1.6rem;
  color: var(--ink);
}

.lede {
  font-size: 1.15rem;
  max-width: var(--measure);
}

.rule {
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 0;
}

.rule-double {
  height: 5px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: transparent;
  margin: 0 0 1.6rem;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 1.15rem 1.1rem 1.25rem;
}

@media (min-width: 720px) {
  .panel {
    padding: 1.5rem 1.55rem 1.6rem;
  }
}

.score-panel {
  scroll-margin-top: 1rem;
}

label,
.field-label {
  display: block;
  font-family: var(--ui);
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.hint {
  font-family: var(--ui);
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 400;
  margin: -0.15rem 0 0.55rem;
}

textarea,
select,
input[type="text"] {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 0.75rem 0.8rem;
}

textarea {
  min-height: 10.5rem;
  resize: vertical;
  line-height: 1.5;
}

select {
  min-height: 48px;
  font-family: var(--ui);
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 18px) 22px, calc(100% - 12px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}

.fields {
  display: grid;
  gap: 1rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.05rem;
  align-items: center;
}

.btn {
  font-family: var(--ui);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn:hover {
  background: #000;
  color: var(--cream);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--wash);
  color: var(--ink);
}

.btn[disabled],
.btn[aria-disabled="true"] {
  background: var(--wash);
  color: var(--muted);
  border-color: var(--rule);
  cursor: not-allowed;
}

.fine {
  font-family: var(--ui);
  font-size: 0.84rem;
  color: var(--muted);
  margin: 0.55rem 0 0;
}

.form-error {
  font-family: var(--ui);
  color: var(--danger);
  margin: 0.7rem 0 0;
}

.results {
  margin-top: 1.2rem;
}

.results[hidden] {
  display: none;
}

.scoreboard {
  display: grid;
  gap: 1rem;
  align-items: end;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.15rem;
}

@media (min-width: 640px) {
  .scoreboard {
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
  }
}

.score-figure {
  margin: 0;
}

.score-figure .num {
  font-family: var(--display);
  font-size: clamp(4.2rem, 12vw, 6.4rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  display: block;
}

.score-figure .den {
  font-family: var(--ui);
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.score-read {
  margin: 0;
  max-width: 28rem;
}

.problems {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
  display: grid;
  gap: 0.75rem;
}

.problems li {
  border-left: 2px solid var(--ink);
  padding: 0.15rem 0 0.15rem 0.85rem;
}

.problems strong {
  display: block;
  font-family: var(--display);
  font-weight: 560;
  font-size: 1.12rem;
  margin-bottom: 0.15rem;
}

.problems p {
  margin: 0;
  color: var(--muted);
}

.pack h3 {
  margin-top: 1.35rem;
}

.pack-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.copy-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}

.meta-count {
  font-family: var(--ui);
  font-size: 0.8rem;
  color: var(--muted);
}

.output {
  white-space: pre-wrap;
  font-family: var(--ui);
  font-size: 0.95rem;
  line-height: 1.5;
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: 0.85rem 0.9rem;
  margin: 0.4rem 0 0;
  overflow-wrap: anywhere;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  font-family: var(--ui);
  font-size: 0.84rem;
  border: 1px solid var(--ink);
  padding: 0.28rem 0.55rem;
}

.checklist {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
}

.checklist li {
  margin: 0.35rem 0;
}

.coming-box,
.paywall {
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
}

.paywall h3 {
  margin-top: 0;
}

.paywall[hidden],
.pack[hidden] {
  display: none;
}

.unlock-form {
  margin-top: 1.15rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
}

.unlock-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: stretch;
}

.unlock-row input[type="text"] {
  flex: 1 1 12rem;
  min-height: 48px;
}

.section {
  padding: 2.4rem 0;
}

.steps {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  padding: 1.15rem 1.05rem 1.25rem;
  border-top: 1px solid var(--ink);
}

.step .n {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.35rem;
  display: block;
  margin-bottom: 0.45rem;
}

.price-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .price-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.price-card h2 {
  margin-bottom: 0.35rem;
}

.price-card .amount {
  font-family: var(--display);
  font-size: 2.4rem;
  letter-spacing: -0.04em;
  display: block;
  margin-bottom: 0.5rem;
}

.faq details {
  border-top: 1px solid var(--rule);
  padding: 0.85rem 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  font-family: var(--display);
  font-size: 1.15rem;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.faq details p {
  margin: 0.4rem 0 0.2rem;
  max-width: var(--measure);
  color: var(--muted);
}

.guide {
  padding: 2rem 0 3rem;
}

.guide-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 880px) {
  .guide-grid {
    grid-template-columns: 1.4fr 0.8fr;
    align-items: start;
  }
}

.verdict {
  border-left: 2px solid var(--gold);
  padding: 0.2rem 0 0.2rem 0.95rem;
  margin: 1rem 0 1.3rem;
}

.sample-box h3 {
  margin-top: 0;
}

.aside-cta {
  position: sticky;
  top: 0.8rem;
}

.guide-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  font-family: var(--ui);
  font-size: 0.9rem;
  margin: 1.4rem 0 0;
}

.legal {
  max-width: 40rem;
  padding: 2rem 0 3.2rem;
}

.site-footer {
  border-top: 1px solid var(--ink);
  padding: 1.4rem 0 2rem;
  font-family: var(--ui);
  font-size: 0.86rem;
  color: var(--muted);
}

.site-footer .wrap {
  display: grid;
  gap: 0.55rem;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}

.foot-links a {
  color: var(--muted);
}

.guides-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  font-family: var(--ui);
  font-size: 0.92rem;
  padding-top: 0.2rem;
}

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

.copy-toast[hidden] {
  display: none;
}

.copy-toast {
  font-family: var(--ui);
  font-size: 0.82rem;
  color: var(--gold);
}
