/*
 * askthepreachers.com (SP-0067). The Pilcrow brand (SP-0061): colour tokens from apps/web/src/theme.ts,
 * Old Standard TT for display, the app's sans stack for text. Light and dark follow prefers-color-scheme.
 */

:root {
  color-scheme: light dark;

  --bg: #f6f1e7;
  --surface: #fffdf8;
  --sunken: #efe8da;
  --ink: #1f1a14;
  --muted: #5a5145;
  --border: #ddd2bf;
  --accent: #7a2e1f;
  --accent-ink: #ffffff;
  --link: #7a2e1f;
  --focus: #1b5fa8;
  --reviewed-bg: #e6f2e9;
  --reviewed-ink: #1b5230;
  --reviewed-line: #6ba57e;
  --inferred-bg: #fff1d6;
  --inferred-ink: #6a4200;
  --inferred-line: #d99a1e;
  --queued-bg: #eaeef5;
  --queued-ink: #2c3e5c;
  --mark-bg: #f3dcc9;

  --display: "Old Standard TT", Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: 16px;
  --max: 1160px;
  --radius: 4px;
  --header-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15120e;
    --surface: #1f1b16;
    --sunken: #2a251f;
    --ink: #f1eadf;
    --muted: #b6ac9c;
    --border: #3b342b;
    --accent: #e3967c;
    --accent-ink: #1a0e0a;
    --link: #eba88f;
    --focus: #7db3f0;
    --reviewed-bg: #14301f;
    --reviewed-ink: #9adbb0;
    --reviewed-line: #3f8a5a;
    --inferred-bg: #3a2a0b;
    --inferred-ink: #f6cd74;
    --inferred-line: #c98a12;
    --queued-bg: #1d2636;
    --queued-ink: #b5c8ea;
    --mark-bg: #5a3326;
  }
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
  }
}

/* ---- Base ------------------------------------------------------------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.9rem, 1.35rem + 2.2vw, 2.75rem);
  letter-spacing: -0.005em;
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1em;
}

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

a:hover {
  text-decoration-thickness: 2px;
}

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

cite {
  font-style: italic;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.narrow {
  max-width: calc(760px + 2 * var(--gutter));
}

.center {
  text-align: center;
}

.skip {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--focus);
  border-radius: var(--radius);
}

.skip:focus {
  top: 8px;
}

/* ---- Buttons --------------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--accent) 88%, var(--ink));
}

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

.btn-secondary:hover {
  background: var(--sunken);
}

.btn-sm {
  min-height: 44px;
  padding: 0 14px;
  font-size: 0.9375rem;
}

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

.actions.center {
  justify-content: center;
}

/* ---- The thick-thin rule (the wordmark's rule, used between sections) --------------------------- */

.band {
  padding-block: 56px;
  scroll-margin-top: var(--header-h);
}

.band > .wrap::before {
  content: "";
  display: block;
  height: 6px;
  margin-bottom: 40px;
  background: linear-gradient(var(--ink) 0 3px, transparent 3px 5px, var(--ink) 5px 6px);
}

@media (min-width: 1024px) {
  .band {
    padding-block: 80px;
  }
}

.section-head {
  max-width: 720px;
  margin-bottom: 32px;
}

.section-head h2 {
  margin-bottom: 12px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.125rem;
  margin: 0;
}

/* ---- Header ---------------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 44px;
  margin-right: auto;
}

/* The lockup at the brand's own header sizes (apps/web/src/components/Logo.tsx useLogoHeight): 34 px on
   phones, 44 px from 600 px up, where the thick-thin rule and "ASK THE" stay crisp on a 1x screen. */
.brand img {
  width: auto;
  height: 34px;
}

.head-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 4px;
}

.head-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: underline;
  text-decoration-color: transparent;
}

.head-link:hover {
  text-decoration-color: currentColor;
}

/* The narrowest phones: the lockup, Sign in and Start free still share one row at 360 px. */
@media (max-width: 379px) {
  .bar {
    gap: 4px;
  }

  .head-link {
    padding: 0 6px;
    font-size: 0.875rem;
  }

  .head-actions .btn-sm {
    padding: 0 9px;
    font-size: 0.875rem;
  }
}

@media (min-width: 600px) {
  .brand img {
    height: 44px;
  }

  .bar {
    gap: 16px;
  }

  .head-actions {
    gap: 8px;
  }
}

.nav {
  display: none;
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
    gap: 4px;
  }

  .nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
  }

  .nav a:hover {
    text-decoration: underline;
  }
}

/* ---- Hero ------------------------------------------------------------------------------------ */

.hero {
  padding-block: 40px 24px;
  scroll-margin-top: var(--header-h);
}

.hero-grid {
  display: grid;
  grid-template-areas: "title" "quote" "side";
  gap: 24px;
}

.hero h1 {
  grid-area: title;
}

.quote-hero {
  grid-area: quote;
}

.hero-side {
  grid-area: side;
}

.hero h1 {
  font-size: clamp(2.6rem, 1.5rem + 4.8vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.this {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
  white-space: nowrap;
  background: linear-gradient(currentColor, currentColor) left 100% / 100% 0.08em no-repeat;
  padding-bottom: 0.06em;
}

.lede {
  font-size: 1.1875rem;
  line-height: 1.55;
  max-width: 38em;
}

/* A hyphenated phrase kept on one line ("same-" never ends a line of the lede). */
.nobreak {
  white-space: nowrap;
}

.hero .small {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (min-width: 1024px) {
  .hero {
    padding-block: 64px 16px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    grid-template-areas: "title quote" "side quote";
    grid-template-rows: auto 1fr;
    column-gap: 56px;
    row-gap: 28px;
  }

  .quote-hero {
    align-self: center;
  }

  .lede {
    font-size: 1.125rem;
  }
}

/* ---- Quote strip ----------------------------------------------------------------------------- */

.strip-grid {
  display: grid;
  gap: 28px;
}

/* The rule is the grid's first item: the gap already separates it from the heading. */
.strip-grid::before,
.duo::before {
  margin-bottom: 12px;
}

.strip-head h2 {
  margin-bottom: 12px;
}

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

.strip-head .edition-note {
  margin-top: 12px;
  font-size: 0.9375rem;
}

.quotes {
  list-style: none;
  display: grid;
  gap: 20px;
}

.quote {
  margin: 0;
  padding: 22px 20px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}

.quote-topic {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.08em;
}

.quote blockquote {
  margin: 0;
}

.quote blockquote p {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  line-height: 1.45;
  color: var(--ink);
}

.quote .open {
  color: var(--accent);
  font-weight: 700;
}

.quote figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.quote .who {
  color: var(--ink);
  font-weight: 600;
}

.strip-foot {
  margin: 0;
  color: var(--muted);
  max-width: 38em;
}

@media (min-width: 1024px) {
  .strip {
    padding-top: 40px;
  }

  .strip-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    column-gap: 56px;
    row-gap: 24px;
    align-items: start;
  }

  .strip-grid::before {
    grid-column: 1 / -1;
    margin-bottom: 12px;
  }

  .strip-head {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }

  .quotes,
  .strip-foot {
    grid-column: 2;
  }

  .quote {
    padding: 28px 32px 24px;
  }
}

/* ---- Why ------------------------------------------------------------------------------------- */

.pilcrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-family: var(--display);
  font-size: 3.5rem;
  line-height: 1;
}

.why h2 {
  margin-bottom: 20px;
}

.why p:not(.pilcrow) {
  font-size: 1.1875rem;
  line-height: 1.65;
}

/* ---- Preachers ------------------------------------------------------------------------------- */

.preachers {
  list-style: none;
  display: grid;
  gap: 16px;
}

.preacher {
  padding: 22px 20px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.preacher h3 {
  font-size: 1.45rem;
  margin-bottom: 6px;
}

.preacher .meta {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 12px;
}

.preacher .years {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: lining-nums;
}

.preacher .hold {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9375rem;
}

.preacher .hold span {
  color: var(--ink);
  font-weight: 600;
}

.footnote {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (min-width: 768px) {
  .preachers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .preachers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---- How it works ---------------------------------------------------------------------------- */

.steps {
  list-style: none;
  display: grid;
  gap: 16px;
  align-items: start;
}

.step {
  padding: 22px 20px 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.step-n {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  transform: translateY(-2px);
}

/* Step 1's picture of the ask box: static, decorative (aria-hidden), the app's own chip and field shapes. */
.ask-sketch {
  margin: 4px 0 16px;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.ask-sketch p {
  margin: 0;
}

.ask-to {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px !important;
}

.ask-to-label {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  margin-right: 2px;
}

.chip {
  padding: 3px 10px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
}

.ask-q {
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--display);
  font-size: 1.125rem;
  line-height: 1.35;
}

.ask-send {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px !important;
}

.ask-send span {
  padding: 6px 16px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.875rem;
  font-weight: 600;
}

.library {
  display: grid;
  gap: 24px;
  margin-top: 32px;
  padding: 24px 20px;
  background: var(--sunken);
  border-radius: var(--radius);
}

.library h3 {
  margin-bottom: 8px;
}

.library p {
  margin: 0;
}

.legend-title {
  margin: 0 0 10px !important;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
}

.labels {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.label {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
}

.label-checked {
  background: var(--reviewed-bg);
  color: var(--reviewed-ink);
  border-color: var(--reviewed-line);
}

.label-inferred {
  background: var(--inferred-bg);
  color: var(--inferred-ink);
  border-color: var(--inferred-line);
}

.label-queued {
  background: var(--queued-bg);
  color: var(--queued-ink);
  border-color: color-mix(in srgb, var(--queued-ink) 45%, transparent);
}

.label-neutral {
  background: var(--surface);
  color: var(--muted);
  border-color: var(--border);
}

.legend-note {
  margin-top: 12px !important;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .library {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    padding: 28px 32px;
  }
}

/* ---- Compare and search ---------------------------------------------------------------------- */

.duo {
  display: grid;
  gap: 28px;
}

.duo-copy h2 {
  margin-bottom: 16px;
}

.duo-copy p:last-child {
  margin-bottom: 0;
}

.columns,
.search-sketch {
  margin: 0;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.columns figcaption,
.search-sketch figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.columns-q {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--sunken);
  font-family: var(--display);
  font-size: 1.125rem;
  line-height: 1.35;
}

.columns-q-label,
.search-label {
  display: block;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.cols {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px 12px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
}

.col p,
.col blockquote {
  margin: 0;
}

.col-who {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
}

.col blockquote p {
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.4;
}

.col .open,
.hit .open {
  color: var(--accent);
  font-weight: 700;
}

.col-cite {
  margin-top: auto !important;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.col-note {
  border-top-color: var(--border);
}

.col-text {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.search-box {
  margin: 0 0 14px;
  padding: 10px 14px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--bg);
}

.search-q {
  font-size: 1.125rem;
  font-weight: 600;
}

.hits {
  list-style: none;
  display: grid;
  gap: 10px;
}

.hit {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.hit p,
.hit blockquote {
  margin: 0;
}

.hit-who {
  margin-bottom: 6px !important;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.hit-who .who {
  color: var(--ink);
  font-weight: 600;
}

.hit blockquote p {
  font-family: var(--display);
  font-size: 1.0625rem;
  line-height: 1.45;
}

mark {
  padding: 0 2px;
  border-radius: 2px;
  background: var(--mark-bg);
  color: inherit;
}

@media (min-width: 768px) {
  .columns,
  .search-sketch {
    padding: 20px;
  }

  .cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .duo {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 56px;
    row-gap: 0;
    align-items: start;
  }

  /* The thick-thin rule spans both columns rather than taking the first cell. */
  .duo::before {
    grid-column: 1 / -1;
  }

  .duo-copy {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}

/* ---- Questions ------------------------------------------------------------------------------- */

/* The questions are text, not links: the one call to action follows them. */
.qlist {
  list-style: none;
  display: grid;
  column-gap: 32px;
  border-bottom: 1px solid var(--border);
}

.qlist li {
  position: relative;
  padding: 12px 0 12px 28px;
  border-top: 1px solid var(--border);
  font-family: var(--display);
  font-size: 1.2rem;
  line-height: 1.35;
}

.qlist li::before {
  content: "\00B6";
  position: absolute;
  left: 2px;
  top: 12px;
  color: var(--accent);
  font-weight: 700;
}

/* One line of how the law stood in their day, under the list it closes: history on the page, never in an answer (Decision 21). */
.then {
  margin: 16px 0 0;
  max-width: 48em;
  color: var(--muted);
  font-family: var(--display);
  font-style: italic;
  font-size: 1.0625rem;
  line-height: 1.5;
}

.after {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 28px;
}

.after p {
  margin: 0;
  font-size: 1.125rem;
}

@media (min-width: 768px) {
  .qlist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---- Pricing --------------------------------------------------------------------------------- */

.plans {
  display: grid;
  gap: 16px;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* The name and the total, then the breakdown under it (Decision 57: "$20.02/month" over "$19 + $1.02 card processing"). */
.plan-head {
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.plan h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
}

.plan-breakdown {
  margin: 4px 0 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-variant-numeric: lining-nums tabular-nums;
  text-align: right;
}

.plan-name {
  font-size: 1.6rem;
}

.plan-price {
  font-family: var(--sans);
  font-size: 1.6rem;
  font-weight: 700;
  font-variant-numeric: lining-nums tabular-nums;
}

.plan-price small {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.plan ul {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.plan li {
  position: relative;
  padding-left: 22px;
}

.plan li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 1px;
}

.plan-how {
  margin: auto 0 12px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.plan .btn {
  margin-top: auto;
}

.plan-how + .btn {
  margin-top: 0;
}

.packs {
  margin-top: 24px;
  padding: 24px 20px;
  background: var(--sunken);
  border-radius: var(--radius);
}

.packs h3 {
  margin-bottom: 16px;
}

.pack-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.pack {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.pack-q {
  font-weight: 600;
}

.pack-price {
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: lining-nums tabular-nums;
}

/* The pack's list amount and card processing, under its total. */
.pack-breakdown {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 0.9375rem;
  font-variant-numeric: lining-nums tabular-nums;
  text-align: right;
}

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

.fine {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 48em;
}

@media (min-width: 900px) {
  .plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pack-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .packs {
    padding: 28px 32px;
  }
}

/* ---- FAQ ------------------------------------------------------------------------------------- */

.faq h2 {
  margin-bottom: 20px;
}

.faq details {
  border-top: 1px solid var(--border);
}

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 12px 0;
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  flex: none;
  width: 28px;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 400;
  text-align: center;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  margin: 0 0 20px;
}

/* ---- Closing --------------------------------------------------------------------------------- */

.closing {
  background: var(--sunken);
}

.closing h2 {
  margin-bottom: 12px;
  font-size: clamp(2.2rem, 1.5rem + 3vw, 3.4rem);
}

.closing p {
  font-size: 1.1875rem;
  margin-bottom: 24px;
}

/* ---- Footer ---------------------------------------------------------------------------------- */

.site-footer {
  padding-block: 40px 48px;
  border-top: 1px solid var(--border);
}

.foot {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.foot .brand {
  margin-right: 0;
}

.foot-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}

.foot-links li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.35em;
  min-height: 44px;
}

.foot-links li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.copyright,
.footline {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.footline {
  max-width: 44em;
}

/* ---- Not found ------------------------------------------------------------------------------- */

.notfound {
  padding-block: 64px 96px;
}

.notfound h1 {
  font-size: clamp(2.2rem, 1.5rem + 3vw, 3.4rem);
  margin-bottom: 16px;
}
