/* Chamberlight: one stylesheet, no framework. Fonts are self-hosted (SIL OFL, see /assets/fonts/). */

@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-v26-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/public-sans-v21-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f6f3ec;
  --paper-2: #eee9dd;
  --card: #fffdf8;
  --ink: #1b1e21;
  --ink-2: #4a5056;
  --rule: #d9d2c3;
  --accent: #1e4a3b;
  --accent-ink: #ffffff;
  --accent-hover: #133427;
  --mark: #f3dd6d;
  --mark-ink: #1b1e21;
  --focus: #b0481a;
  --shadow: 0 1px 0 rgb(27 30 33 / 4%), 0 22px 44px -30px rgb(27 30 33 / 45%);

  --serif: "Newsreader", "Iowan Old Style", "Charter", "Georgia", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;
  --measure: 40rem;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141719;
    --paper-2: #1b1f22;
    --card: #1f2327;
    --ink: #ece7dc;
    --ink-2: #b8b2a6;
    --rule: #353b40;
    --accent: #8fcbb0;
    --accent-ink: #0f1a15;
    --accent-hover: #acdbc5;
    --mark: #6d5b14;
    --mark-ink: #fbf6e8;
    --focus: #f0c35a;
    --shadow: 0 22px 44px -30px rgb(0 0 0 / 70%);
  }
}

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-kerning: normal;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 48rem) {
  body { font-size: 1.1875rem; }
}

h1, h2, h3 { font-weight: 600; margin: 0; text-wrap: balance; }
p, ul, ol, dl { margin: 0 0 1rem; }
p { text-wrap: pretty; }
strong { font-weight: 650; }
/* No italic font is shipped; allow a slanted roman for the odd <i> (e.g. the name of an Act). */
i, em { font-synthesis: style; }

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

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

mark { background: none; color: inherit; }

.wrap {
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 1rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.1rem;
}

.fine {
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: var(--measure);
}

/* Masthead */

.masthead { border-bottom: 1px solid var(--rule); }
.masthead::before {
  content: "";
  display: block;
  height: 4px;
  background: var(--accent);
}

.masthead-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1rem;
}

.wordmark {
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark-light {
  background: linear-gradient(transparent 55%, var(--mark) 55%, var(--mark) 92%, transparent 92%);
}

.masthead nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  font-size: 0.9rem;
}
.masthead nav a {
  color: var(--ink-2);
  text-decoration: none;
  padding-block: 0.4rem;
  display: inline-block;
}
.masthead nav a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 30rem) {
  .masthead nav ul { gap: 0.1rem 1rem; font-size: 0.85rem; }
}

/* Buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.8rem 1.3rem;
  border: 1.5px solid var(--accent);
  border-radius: 3px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.button-quiet {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.button-quiet:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* Hero */

.hero { padding-block: clamp(2.75rem, 7vw, 6rem) clamp(3rem, 7vw, 5.5rem); }

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

.hero h1 {
  font-size: clamp(2.15rem, 4.4vw, 3.55rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 560;
  margin-bottom: 1.6rem;
  max-width: 24ch;
}

.hl {
  background-image: linear-gradient(var(--mark), var(--mark));
  background-repeat: no-repeat;
  background-size: 100% 0.62em;
  background-position: 0 88%;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding-inline: 0.06em;
}

.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.28rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 38rem;
}

.hero-art { display: none; }

@media (min-width: 62rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    align-items: center;
    gap: 4rem;
  }
  .hero-art {
    display: block;
    position: relative;
    width: 100%;
    max-width: 21rem;
    aspect-ratio: 210 / 297;
    justify-self: center;
  }
}

.sheet {
  position: absolute;
  inset: 0;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 2px;
  box-shadow: var(--shadow);
}
.sheet-back { transform: translate(-1.1rem, 0.9rem) rotate(-5deg); }
.sheet-mid { transform: translate(0.8rem, 0.4rem) rotate(3deg); }
.sheet-front {
  transform: rotate(-1deg);
  padding: 12% 11%;
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
}

.ln {
  display: block;
  height: 0.42rem;
  width: 100%;
  border-radius: 1px;
  background: var(--rule);
}
.ln-head { width: 58%; height: 0.7rem; background: var(--ink); opacity: 0.75; margin-bottom: 0.5rem; }
.ln-gap { margin-top: 0.9rem; }
.w45 { width: 45%; } .w61 { width: 61%; } .w72 { width: 72%; } .w84 { width: 84%; } .w88 { width: 88%; }
.w90 { width: 90%; } .w92 { width: 92%; } .w94 { width: 94%; } .w96 { width: 96%; } .w97 { width: 97%; }
.w99 { width: 99%; } .w100 { width: 100%; } .w52 { width: 52%; } .w95 { width: 95%; }

.ln-hl {
  position: relative;
  height: 0.95rem;
  margin-block: -0.12rem;
  background: var(--mark);
  width: 100%;
}
.ln-hl-2 { width: 68%; }

.ln-tag {
  position: absolute;
  right: -1.9rem;
  top: -2.35rem;
  box-shadow: 0 6px 14px -8px rgb(0 0 0 / 45%);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 0.22rem 0.5rem;
  border-radius: 2px;
  white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hl { animation: hl-wipe 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.35s both; }
  .ln-hl { transform-origin: left center; animation: ln-wipe 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.9s both; }
  .ln-hl-2 { animation-delay: 1.25s; }
  .ln-tag { animation: fade-in 0.4s ease-out 1.6s both; }
}

@keyframes hl-wipe { from { background-size: 0% 0.62em; } to { background-size: 100% 0.62em; } }
@keyframes ln-wipe { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Numbered sections, laid out like an agenda */

.item {
  border-top: 1px solid var(--rule);
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

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

.item-label {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin: 0 0 0.75rem;
  font-family: var(--sans);
}

.item-no {
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1;
  font-weight: 500;
  color: var(--accent);
  font-variant-numeric: lining-nums;
}

.item-tag {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-2);
}

@media (min-width: 62rem) {
  .item-grid { grid-template-columns: 11rem minmax(0, 1fr); }
  .item-label {
    flex-direction: column;
    gap: 0.6rem;
    position: sticky;
    top: 2rem;
    align-self: start;
    margin: 0.3rem 0 0;
    padding-top: 0.9rem;
    border-top: 2px solid var(--ink);
  }
  .item-no { font-size: 2.6rem; }
}

.item-body { max-width: 44rem; min-width: 0; }
.item-body-wide { max-width: 60rem; }

.item h2 {
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 560;
  margin-bottom: 1.6rem;
  max-width: 30ch;
}

.item h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

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

/* 1. Who it's for */

.who {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}
.who > div { border-top: 1px solid var(--ink); padding-top: 1rem; }
.who h3 { font-size: 1.15rem; }
.who p { color: var(--ink-2); margin: 0; }

@media (min-width: 48rem) {
  .who { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.25rem; }
  .who p { font-size: 1.05rem; }
}

/* 2. How it works */

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2.25rem;
}
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 2.9rem;
}
@media (min-width: 48rem) {
  .steps > li { padding-left: 3.4rem; }
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.05rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 700;
}
.steps p:last-child { margin-bottom: 0; }

.issues {
  margin: 1.1rem 0 1.25rem;
  border-top: 1px solid var(--rule);
}
.issues > div {
  display: grid;
  gap: 0.2rem 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}
.issues dt { font-weight: 650; }
.issues dd { margin: 0; color: var(--ink-2); font-size: 0.98em; }

@media (min-width: 40rem) {
  .issues > div { grid-template-columns: 12.5rem minmax(0, 1fr); }
}

/* 3. Sample alert */

.alert-figure { margin: 0; }

.alert {
  max-width: 40rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.alert-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1rem;
  padding: 0.8rem 1.35rem;
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink-2);
}
.alert-from { font-weight: 700; color: var(--ink); }

.badge {
  margin-left: auto;
  padding: 0.22rem 0.55rem;
  border: 1.5px dashed var(--ink-2);
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.badge-real { border-style: solid; border-color: var(--accent); color: var(--accent); }

.alert-body { padding: 1.5rem 1.35rem 1.4rem; }
@media (min-width: 40rem) { .alert-body { padding-inline: 1.75rem; } }

.alert-meta {
  font-family: var(--sans);
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0 0 0.2rem;
}
.alert-meta strong { color: var(--ink); font-weight: 700; }

.item .alert-title {
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 0.9rem 0 1rem;
}
.alert-itemno {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  display: block;
  margin-bottom: 0.25rem;
}

.alert-quote {
  margin: 0 0 1.1rem;
  padding: 0.15rem 0 0.15rem 1.1rem;
  border-left: 3px solid var(--ink);
  font-size: 1.1rem;
  line-height: 1.65;
}
.alert-quote p { margin: 0; }
.alert-quote mark {
  background: var(--mark);
  color: var(--mark-ink);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0.08em 0.15em;
}

.alert-note { font-size: 0.98rem; color: var(--ink-2); }

.alert-source {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
}
.placeholder-link {
  color: var(--ink-2);
  text-decoration: underline dashed;
  text-underline-offset: 0.2em;
}

.is-placeholder { color: var(--ink-2); }

.alert-figure figcaption {
  margin-top: 1.1rem;
  max-width: var(--measure);
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.alert-figure figcaption strong { color: var(--ink); }

/* 4. Prices */

.offers {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  margin: 2rem 0 0;
}
@media (min-width: 48rem) {
  .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.offer {
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.6rem 1.8rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--ink);
  box-shadow: var(--shadow);
}
.offer-main { border-top-color: var(--accent); }

.item .offer h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.45rem;
  margin-bottom: 0.3rem;
}

.tag {
  padding: 0.2rem 0.45rem;
  border-radius: 2px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.offer-scope {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink-2);
  margin-bottom: 1.3rem;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin-bottom: 1.3rem;
}
.amount {
  font-size: 3rem;
  line-height: 1;
  font-weight: 560;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums;
}
.per { font-family: var(--sans); font-size: 0.95rem; color: var(--ink-2); }

.offer ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.8rem;
  font-size: 1rem;
  line-height: 1.5;
}
.offer li {
  position: relative;
  padding: 0.6rem 0 0.6rem 1.35rem;
  border-top: 1px solid var(--rule);
}
.offer li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.3em;
  width: 0.65rem;
  height: 2px;
  background: var(--accent);
}
.offer .button { margin-top: auto; align-self: flex-start; }

.offers + .fine { margin-top: 1.4rem; }

/* 5. Free report */

.item-cta { background: var(--paper-2); }
.item-cta .fine { margin-top: 1.25rem; }

/* 6. Questions */

.faq { margin: 0; border-bottom: 1px solid var(--rule); }
.faq > div { padding: 1.2rem 0; border-top: 1px solid var(--rule); }
.faq dt { font-size: 1.15em; font-weight: 650; line-height: 1.35; margin-bottom: 0.35rem; }
.faq dd { margin: 0; color: var(--ink-2); max-width: var(--measure); }

/* Inner pages */

.page { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5.5rem); }

.prose { max-width: var(--measure); }
.prose h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 560;
  margin-bottom: 0.75rem;
}
.prose h2 {
  font-size: 1.4rem;
  line-height: 1.25;
  margin: 2.5rem 0 0.75rem;
}
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.6rem; }
.prose li::marker { color: var(--accent); }
.updated {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--ink-2);
  margin-bottom: 2rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 2.25rem 2.75rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink-2);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}
.footer-inner p { margin: 0; }
.footer-links a { color: var(--ink); }

/* Print */

@media print {
  :root { --paper: #fff; --card: #fff; --shadow: none; }
  .skip, .masthead nav, .hero-art, .actions { display: none; }
  .item { break-inside: avoid; padding-block: 1.5rem; }
  .item-label { position: static; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}
