/* ---------------------------------------------------------------
   Endwhile — site styles
   Follows the visitor's system setting. The dark palette is a warm
   charcoal, not near-black: the first version was #13120e and read as a
   black hole rather than a dark theme. Every token is declared in the
   bare :root first, so the un-stamped default state is always complete.
   Paper and ink carried over from the extension popup. One accent:
   #ff0033, lifted straight out of the logo, spent on the mark and on the
   surfaces the extension replaces. Nothing else is allowed to be red.
   --------------------------------------------------------------- */

:root {
  --paper: #faf7f1;
  --paper-sunk: #f1ebdf;
  --ink: #16130d;
  --ink-soft: #453f34;
  --rule: #d8cfbb;
  --signal: #ff0033;
  --kofi: #00b9fe;
  --on-signal: #fffdfa;

  --display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;

  --measure: 34rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);

  color-scheme: light;
}

/* Warm charcoal, not black. Lifted well off #000 so the page still reads as
   paper in low light rather than as a void. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #2a2722;
    --paper-sunk: #343029;
    --ink: #f5f2e9;
    --ink-soft: #e0d9cb;
    --rule: #4f4a3e;
    --signal: #ff4d6a;
    --on-signal: #2a2722;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #2a2722;
  --paper-sunk: #343029;
  --ink: #f5f2e9;
  --ink-soft: #e0d9cb;
  --rule: #4f4a3e;
  --signal: #ff4d6a;
  --on-signal: #2a2722;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

p {
  margin: 0;
}

a {
  color: inherit;
}

/* ---------- shared shell ---------- */

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

.column {
  max-width: var(--measure);
}

/* Supporting copy. Carries its own weight because the colour alone read as
   faint: secondary text should be quieter than the headline, not harder to
   read than it. */
.muted {
  color: var(--ink-soft);
  font-weight: 500;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}

section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
  border-top: 1px solid var(--rule);
}

/* ---------- masthead ---------- */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 0;
  display: block;
}

.masthead nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.masthead nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.masthead nav a:hover {
  color: var(--ink);
}

@media (max-width: 41rem) {
  .masthead nav .hide-small {
    display: none;
  }
}

/* ---------- hero ---------- */

.hero {
  border-top: none;
  padding-top: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

@media (min-width: 60rem) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
  }
}

.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-block: 0.75rem 1.25rem;
}

.hero h1 em {
  font-style: normal;
  display: inline-block;
  border-bottom: 0.11em solid var(--signal);
  padding-bottom: 0.04em;
}

.hero .lede {
  color: var(--ink-soft);
  font-size: 1.1875rem;
  font-weight: 500;
  max-width: 31rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.14s ease, filter 0.14s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

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

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

.btn-kofi {
  background: var(--kofi);
  color: #ffffff;
}

.btn-quiet {
  border-color: var(--rule);
  color: var(--ink);
}

.btn-quiet:hover {
  border-color: var(--ink-soft);
}

.hero .footnote {
  margin-top: 1.1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-soft);
}

/* ---------- hero: one card per site, feed struck out, what replaces it ---------- */

.swap {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 30rem) {
  .swap {
    grid-template-columns: minmax(0, 1fr);
  }
}

.site-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.9rem 0.85rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--paper-sunk);
}

.site-name {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* the feed, with the line through it */
.mini {
  position: relative;
  display: grid;
  gap: 0.28rem;
}

.mini span {
  height: 9px;
  border-radius: 3px;
  background: var(--rule);
}

.mini span:nth-child(2) {
  width: 78%;
}

.mini span:nth-child(3) {
  width: 90%;
}

.mini span:nth-child(4) {
  width: 62%;
}

.mini::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  top: 50%;
  height: 2px;
  background: var(--signal);
  transform: rotate(-4deg);
}

.becomes {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--rule);
  text-wrap: balance;
}

/* ---------- the chain: a real sequence, so it is numbered ---------- */

.chain {
  display: grid;
  gap: 0;
  margin-top: 2.5rem;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 0 1.25rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--rule);
}

.step:first-child {
  border-top: none;
  padding-top: 0;
}

.step-n {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
  padding-top: 0.35rem;
  font-variant-numeric: tabular-nums;
}

.step h3 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.step p {
  color: var(--ink-soft);
  font-weight: 500;
  max-width: var(--measure);
}

.turn {
  margin-top: 2.5rem;
  padding: 1.5rem 1.65rem;
  background: var(--paper-sunk);
  border-radius: 16px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  max-width: 44rem;
}

/* ---------- the classification matrix ---------- */

.matrix {
  margin-top: 2.5rem;
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
}

.mrow {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  gap: 0 0.75rem;
  align-items: baseline;
  padding: 1rem 1.15rem;
  border-top: 1px solid var(--rule);
}

.mrow:first-child {
  border-top: none;
}

.mrow .mark {
  font-family: var(--mono);
  font-size: 0.875rem;
  text-align: center;
  color: var(--ink-soft);
}

.mrow.replaced .mark {
  color: var(--signal);
}

.mrow h3 {
  font-size: 1rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
}

.mrow p {
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

.treat {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  white-space: nowrap;
}

.mrow.replaced .treat {
  color: var(--signal);
  border-color: color-mix(in srgb, var(--signal) 35%, transparent);
}

@media (max-width: 34rem) {
  .mrow {
    grid-template-columns: 1.6rem minmax(0, 1fr);
    row-gap: 0.5rem;
  }

  .treat {
    grid-column: 2;
    justify-self: start;
  }
}

/* ---------- schedule ---------- */

.window-strip {
  margin-top: 2rem;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
  max-width: 34rem;
}

.days {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 0.9rem;
}

.days span {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.6875rem;
  padding: 0.35rem 0;
  border-radius: 999px;
  background: var(--paper-sunk);
  color: var(--ink-soft);
}

.days span.on {
  background: var(--ink);
  color: var(--paper);
}

.bar {
  height: 10px;
  border-radius: 999px;
  background: var(--paper-sunk);
  position: relative;
  overflow: hidden;
}

.bar i {
  position: absolute;
  inset-block: 0;
  left: 37.5%;
  width: 33.3%;
  background: var(--ink);
  border-radius: 999px;
}

.bar-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--ink-soft);
  margin-top: 0.45rem;
  font-variant-numeric: tabular-nums;
}

/* ---------- install ---------- */

.steps {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
  counter-reset: install;
  max-width: 40rem;
}

.steps li {
  counter-increment: install;
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
}

.steps li::before {
  content: counter(install);
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.steps code {
  font-family: var(--mono);
  font-size: 0.875rem;
  background: var(--paper-sunk);
  border-radius: 5px;
  padding: 0.1rem 0.4rem;
}

/* ---------- support ---------- */

.support-card {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: 20px;
  background: var(--paper-sunk);
}

@media (min-width: 46rem) {
  .support-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.support-card h2 {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

.support-card p {
  color: var(--ink-soft);
  font-weight: 500;
  max-width: 32rem;
}

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--rule);
  padding-block: 2.5rem 3.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  justify-content: space-between;
  align-items: baseline;
}

footer code {
  font-family: var(--mono);
  font-size: 0.8125rem;
}

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

/* ---------- cited findings ---------- */

.findings {
  margin-top: 2.5rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
}

/* Four findings, so two columns fill evenly. auto-fit left the fourth
   card alone on a row of its own. */
@media (min-width: 46rem) {
  .findings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.finding {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.35rem 1.4rem 1.2rem;
  border: 1px solid var(--rule);
  border-radius: 16px;
}

.fig {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.fig em {
  font-style: normal;
  color: var(--signal);
}

.finding h3 {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0;
}

.finding > p:not(.fig) {
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
}

.src {
  margin-top: auto;
  padding-top: 0.9rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: none;
}

.src:hover {
  color: var(--signal);
}

.caveat {
  font-weight: 500;
  margin-top: 1.75rem;
  padding-left: 1rem;
  border-left: 2px solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* ---------- section headline ---------- */

.headline {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  letter-spacing: -0.03em;
}

/* ---------- the calculator ---------- */

.calc {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

@media (min-width: 52rem) {
  .calc {
    grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
    gap: 2.5rem;
  }
}

.dials {
  display: grid;
  gap: 1.5rem;
}

.dial {
  display: grid;
  gap: 0.5rem;
}

.dial-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.dial-name {
  font-size: 0.875rem;
  font-weight: 600;
}

.dial output {
  font-family: var(--mono);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--signal);
  font-variant-numeric: tabular-nums;
}

.dial input[type="range"] {
  width: 100%;
  accent-color: var(--signal);
  cursor: pointer;
}

.dial input[type="range"]:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 4px;
}

.assume {
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.tiles-out {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
}

.tile-out {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.2rem 1.1rem;
  border-radius: 16px;
  background: var(--paper-sunk);
}

.tile-n {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--signal);
}

.tile-l {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink-soft);
}

/* ---------- objections ---------- */

.qa {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.75rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.q h3 {
  font-size: 1rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}

.q p {
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
}

/* ---------- theme toggle ---------- */
/* Shows the moon on a light page and the sun on a dark one: the icon is the
   theme you will get, not the one you are in. Mirrors the three theme states
   the palette uses, so it is right before any script runs. */

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--ink);
  background: var(--paper-sunk);
  border: 1px solid var(--rule);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease;
}

.theme-toggle:hover {
  border-color: var(--ink-soft);
  transform: rotate(-12deg);
}

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

.theme-toggle .i-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .i-sun {
  display: block;
}

:root[data-theme="dark"] .theme-toggle .i-moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun {
    display: block;
  }

  :root:not([data-theme="light"]) .theme-toggle .i-moon {
    display: none;
  }
}

/* ---------- help page: message form ---------- */

/* Anything given the hidden attribute stays hidden, even when a class sets
   display (the sign-in row is a flex .cta-row). */
[hidden] {
  display: none !important;
}

.contact {
  margin-top: 2rem;
  display: grid;
  gap: 1.25rem;
  max-width: 40rem;
}

.field-row {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.field {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.field em {
  font-style: normal;
  font-weight: 500;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  font: inherit;
  font-weight: 400;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  width: 100%;
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
  line-height: 1.5;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 1px;
  border-color: transparent;
}

.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.contact button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.form-status {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.form-status.error {
  color: var(--signal);
}

.form-note {
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.sent {
  margin-top: 2rem;
  max-width: 40rem;
  padding: 1.5rem;
  border-radius: 16px;
  background: var(--paper-sunk);
  display: grid;
  gap: 0.5rem;
  justify-items: start;
}

.sent h3 {
  font-size: 1.375rem;
  outline: none;
}

.sent p {
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* ---------- 404 ---------- */
/* The logo, drawn large: the loop traces itself once, stops short, and the
   red dot lands in the gap. */

.lost {
  border-top: none;
  min-height: 70vh;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 0.9rem;
}

.lost-loop {
  width: min(22rem, 80vw);
  height: auto;
  margin-bottom: 1rem;
  overflow: visible;
}

.lost-loop path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 16;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: lost-draw 1.8s cubic-bezier(0.6, 0, 0.3, 1) 0.2s forwards;
}

.lost-loop circle {
  fill: #ff0033;
  transform-origin: 220px 60px;
  transform: scale(0);
  animation: lost-stop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) 2s forwards;
}

@keyframes lost-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes lost-stop {
  to {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lost-loop path,
  .lost-loop circle {
    animation: none;
    stroke-dashoffset: 0;
    transform: none;
  }
}

.lost h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lost .lede {
  color: var(--ink-soft);
  font-size: 1.1875rem;
  font-weight: 500;
  max-width: 32rem;
}

.lost .cta-row {
  margin-top: 0.75rem;
}

.lost .footnote {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-soft);
}

/* ---------- install button in the masthead ---------- */
.masthead nav a.nav-cta {
  color: var(--paper);
  background: var(--ink);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-weight: 600;
}

.masthead nav a.nav-cta:hover {
  color: var(--paper);
  filter: brightness(1.15);
}

/* ---------- screenshots ---------- */
.shots {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
}

.shots figure {
  margin: 0;
}

.shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--rule);
}

.shots figcaption {
  margin-top: 0.6rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-soft);
}

/* ---------- FAQ ---------- */
.faq {
  margin-top: 2rem;
  max-width: 44rem;
  border-top: 1px solid var(--rule);
}

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

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.015em;
}

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

.faq summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--ink-soft);
}

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

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

.faq details p {
  margin: 0 0 1.2rem;
  color: var(--ink-soft);
  font-weight: 500;
}

/* ---------- guide pages ---------- */
.answer {
  margin-top: 1.75rem;
  max-width: 44rem;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--signal);
  background: var(--paper-sunk);
  border-radius: 0 14px 14px 0;
  font-weight: 500;
}

.answer strong {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.prose {
  max-width: 40rem;
}

.prose h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.prose p,
.prose ul {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.prose ul {
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose strong {
  color: var(--ink);
}

.guide-links {
  margin-top: 2rem;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.guide-links a {
  display: block;
  padding: 1rem 1.15rem;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--paper-sunk);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.guide-links a:hover {
  border-color: var(--ink-soft);
}

.guide-links a span {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0;
  color: var(--ink-soft);
}

.prose * + h2 {
  margin-top: 2.25rem;
}
