/* Good Columns. One stylesheet for the whole site. Tokens and rules: DESIGN.md */

@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/schibsted-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/schibsted-grotesk-latin-800-normal.woff2") format("woff2"); }

:root {
  --paper: #EEF2EA;
  --sheet: #FBFCF9;
  --rule: #A9C2AE;
  --margin: #3F7A5A;
  --ink: #17212B;
  --pencil: #5B636B;
  --red-ink: #A8322A;
  --input-blue: #1F4FB0;
  --input-fill: #FFF7D6;
  --pad: 16px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 "Schibsted Grotesk", Arial, sans-serif;
  font-kerning: normal;
}
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }

/* ---------- the sheet on the paper ---------- */
.sheet {
  max-width: 1120px;
  margin: 0 auto;
  background: var(--sheet);
  border-left: 3px solid var(--margin);
  box-shadow: 0 1px 0 #A9C2AE;
  min-height: 100vh;
}
.wrap { padding-left: var(--pad); padding-right: var(--pad); }
@media (min-width: 720px) { :root { --pad: 40px; } }
@media (min-width: 1000px) { :root { --pad: 56px; } body { padding: 24px 24px 48px; } .sheet { min-height: 0; } }

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; margin: 0; color: var(--ink); }
h1 { font-size: 33px; }
h2 { font-size: 26px; }
h3 { font-size: 21px; letter-spacing: -0.01em; line-height: 1.25; }
@media (min-width: 720px) { h1 { font-size: 41px; } h2 { font-size: 33px; } }
@media (min-width: 1000px) { .home h1 { font-size: 51px; } }
p { margin: 0 0 1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }
.lede { font-size: 21px; line-height: 1.45; max-width: 34em; }
.note { color: var(--pencil); font-size: 15px; line-height: 1.5; }
.num, .ledger td.amt, .ledger th.amt { font-variant-numeric: tabular-nums; }

a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--margin); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--margin); }
:focus-visible { outline: 3px solid var(--input-blue); outline-offset: 2px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 16px; color: #fff; }

/* ---------- header ---------- */
.site-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--rule); }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -0.02em; color: var(--ink); }
.mark:hover { color: var(--ink); }
.bars { display: inline-flex; gap: 3px; align-items: stretch; height: 20px; }
.bars i { display: block; width: 3px; background: var(--margin); }
.site-nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; font-weight: 600; font-size: 16px; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--margin); color: var(--ink); }

/* ---------- sections, separated by a hairline ---------- */
.section { padding-top: 48px; padding-bottom: 48px; border-top: 1px solid var(--rule); }
.section:first-of-type { border-top: 0; }
@media (min-width: 1000px) { .section { padding-top: 64px; padding-bottom: 64px; } }
.section > h2, .two > div > h2:first-child { margin-bottom: 16px; }
.section-intro { margin-bottom: 28px; }

/* ---------- hero on the column grid ---------- */
.hero { position: relative; padding-top: 40px; padding-bottom: 48px; }
.hero-table { position: relative; }
.hero-grid { position: absolute; top: -24px; bottom: -48px; left: 0; right: 0; display: grid; grid-template-columns: repeat(7, 1fr); pointer-events: none; }
.hero-grid i { border-left: 1px solid var(--rule); }
.hero-grid i:last-child { border-right: 1px solid var(--rule); }
.hero-table > :not(.hero-grid) { position: relative; }
@media (min-width: 1000px) { .hero-grid { top: -72px; bottom: -72px; grid-template-columns: repeat(7, 1fr); } }
.hero-body { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); row-gap: 32px; }
.hero-text { grid-column: 1 / -1; padding: 8px 0; }
.hero-text h1 { margin-bottom: 20px; }
.hero-table { grid-column: 1 / -1; }
@media (min-width: 1000px) {
  .hero { padding-top: 64px; padding-bottom: 72px; }
  .hero-text { grid-column: 1 / 6; padding: 8px 32px 8px 0; align-self: start; }
  .hero-table { grid-column: 6 / 13; align-self: stretch; margin-top: 8px; }
}
.hero-text .points { margin: 24px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); max-width: 30em; }
.hero-text .points li { padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }

/* ---------- ledger tables (product samples) ---------- */
.table-box { background: var(--sheet); }
.table-cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; align-items: baseline; margin-bottom: 8px; }
.hero-table .table-cap { background: var(--sheet); padding: 4px 0 8px; margin-bottom: 0; }
.table-cap .t { font-weight: 600; font-size: 16px; }
.table-cap .s { color: var(--pencil); font-size: 14px; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.scroll:focus-visible { outline-offset: 4px; }
.ledger { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.35; background: var(--sheet); border-left: 2px solid var(--margin); }
.ledger caption { text-align: left; }
.ledger th, .ledger td { padding: 7px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.ledger thead th { background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; border-bottom: 0; white-space: nowrap; vertical-align: bottom; }
.ledger .amt { text-align: right; white-space: nowrap; }
.ledger tbody th { font-weight: 400; }
.ledger tr.band th, .ledger tr.band td { background: var(--paper); font-weight: 600; }
.ledger tr.sub th, .ledger tr.sub td { font-weight: 600; }
.ledger tr.total th, .ledger tr.total td { font-weight: 800; border-bottom: 3px double var(--ink); font-size: 16px; }
.ledger .neg { color: var(--red-ink); }
.ledger .flag { color: var(--red-ink); font-weight: 600; }
.ledger .muted { color: var(--pencil); }
.ledger td.wrap { white-space: normal; min-width: 14em; }
.ledger.compact { font-size: 14px; }
.ledger.compact th, .ledger.compact td { padding: 6px 10px; }
.ledger.wide { min-width: 640px; }
.ledger.mid { min-width: 520px; }

/* tab list ("what's inside") */
.tabs { border-collapse: collapse; width: 100%; border-left: 2px solid var(--margin); }
.tabs th, .tabs td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--rule); }
.tabs tbody th { font-weight: 600; white-space: nowrap; width: 1%; }
.tabs thead th { font-size: 14px; font-weight: 600; color: var(--pencil); border-bottom: 1px solid var(--ink); }
@media (max-width: 560px) {
  .tabs, .tabs tbody, .tabs tr, .tabs th, .tabs td { display: block; width: auto; }
  .tabs thead { position: absolute; left: -9999px; }
  .tabs tbody th { border-bottom: 0; padding-bottom: 0; white-space: normal; width: auto; }
  .tabs td { padding-top: 2px; }
}

/* ---------- home: the price list ---------- */
.price-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.pl-head, .pl-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.pl-head { padding: 8px 0; font-size: 14px; font-weight: 600; color: var(--pencil); border-bottom: 1px solid var(--ink); }
.pl-head .who { display: none; }
.pl-row .name { font-weight: 800; font-size: 21px; letter-spacing: -0.01em; line-height: 1.25; }
.pl-row .name a { text-decoration: none; }
.pl-row .name a:hover { text-decoration: underline; text-decoration-color: var(--margin); }
.pl-row .desc { grid-column: 1 / -1; margin: 0; max-width: 60ch; }
.pl-row .who { grid-column: 1 / -1; color: var(--pencil); font-size: 15px; }
/* prices differ in length and are never added up, so proportional figures: Schibsted's tabular punctuation reads as gaps at this size */
.pl-row .price, .pl-head .price { text-align: right; }
.pl-row .price { font-weight: 800; font-size: 21px; grid-row: 1; grid-column: 2; }
.pl-row.bundle { border-top: 1px solid var(--ink); border-bottom: 3px double var(--ink); margin-top: -1px; }
.pl-row .was { display: block; font-weight: 400; font-size: 14px; color: var(--pencil); }
@media (min-width: 860px) {
  .pl-head, .pl-row { grid-template-columns: minmax(0, 1fr) 15em 9em; column-gap: 0; }
  .pl-head > *, .pl-row > * { padding-left: 16px; padding-right: 16px; }
  .pl-head > :first-child, .pl-row > :first-child { padding-left: 0; }
  .pl-head > :last-child, .pl-row > :last-child { padding-right: 0; }
  .pl-head .who { display: block; }
  .pl-row .main { grid-column: 1; }
  .pl-row .who { grid-column: 2; grid-row: 1; border-left: 1px solid var(--rule); padding-top: 4px; }
  .pl-row .price { grid-column: 3; border-left: 1px solid var(--rule); }
  .pl-head .who, .pl-head .price { border-left: 1px solid var(--rule); }
  .pl-row .desc { margin-top: 4px; }
}

/* ---------- process (a real sequence) ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; border-top: 1px solid var(--rule); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.5em minmax(0, 1fr); gap: 0 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(step); font-weight: 800; font-size: 21px; line-height: 1.3; color: var(--margin); font-variant-numeric: tabular-nums; border-right: 1px solid var(--rule); }
.steps h3 { font-size: 19px; margin-bottom: 4px; }
.steps p { margin: 0; }
@media (max-width: 859px) { .two > div + .join { margin-top: 24px; } }
@media (min-width: 860px) {
  .two { display: grid; grid-template-columns: 5fr 7fr; gap: 0 48px; }
}

/* ---------- forms ---------- */
.join { max-width: 34em; }
.join label { display: block; font-weight: 600; margin-bottom: 6px; }
.join .row { display: flex; flex-wrap: wrap; gap: 8px; }
.join input[type="email"] {
  flex: 1 1 14em; min-width: 0; font: inherit; color: var(--input-blue); background: var(--input-fill);
  border: 1px solid var(--pencil); border-radius: 0; padding: 10px 12px; height: 48px;
}
.join input[type="email"]::placeholder { color: var(--pencil); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; font: 600 17px/1.2 "Schibsted Grotesk", Arial, sans-serif;
  background: var(--margin); color: #fff; border: 0; border-radius: 6px; padding: 0 20px; min-height: 48px; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn[disabled] { background: var(--pencil); cursor: default; }
.join .consent { margin-top: 10px; font-size: 14px; color: var(--pencil); }
.join .status { margin-top: 8px; font-weight: 600; min-height: 1.6em; }
.join .status.ok { color: var(--margin); }
.join .status.err { color: var(--red-ink); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 480px) { .join .btn { width: 100%; } }

/* ---------- product page ---------- */
.crumb { font-size: 15px; color: var(--pencil); margin-bottom: 16px; }
.crumb a { color: var(--pencil); }
.p-top { display: grid; gap: 32px; }
.p-top h1 { margin-bottom: 16px; }
.buybox { border-top: 3px solid var(--ink); padding-top: 16px; }
.buybox .price { font-weight: 800; font-size: 41px; letter-spacing: -0.02em; line-height: 1; margin-bottom: 4px; }
.buybox .price small { font-size: 17px; font-weight: 600; letter-spacing: 0; color: var(--pencil); margin-left: 6px; }
.buybox .state { color: var(--pencil); font-size: 15px; margin-bottom: 20px; }
.buybox .gumroad { margin-bottom: 16px; }
@media (min-width: 900px) {
  .p-top { grid-template-columns: 7fr 4fr; gap: 0 56px; align-items: start; }
}
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); margin: 0; border-top: 1px solid var(--rule); max-width: 46em; }
.facts dt, .facts dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-weight: 600; padding-right: 24px; }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } .facts dt { border-bottom: 0; padding-bottom: 0; } }
.nots { margin: 0; padding-left: 1.2em; max-width: 46em; }
.nots li { margin-bottom: 6px; }
.faq { max-width: 46em; }
.faq h3 { font-size: 19px; margin: 24px 0 6px; }
.faq h3:first-child { margin-top: 0; }
.fine { max-width: 46em; }
.fine .disclaimer { border: 1px solid var(--rule); background: var(--input-fill); padding: 14px 16px; font-weight: 600; margin-bottom: 12px; }
.fine p { font-size: 15px; }
.sample-note { margin-top: 12px; }
.sample + .sample { margin-top: 40px; }
.swipe { display: none; color: var(--pencil); font-size: 14px; margin: 0 0 6px; }
@media (max-width: 719px) { .swipe { display: block; } }
.sample.narrow { max-width: 720px; }

/* ---------- plain text pages ---------- */
.prose { max-width: 46em; }
.prose h2 { font-size: 21px; margin: 32px 0 8px; letter-spacing: -0.01em; }
.prose h1 { margin-bottom: 16px; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--ink); padding-top: 24px; padding-bottom: 32px; font-size: 15px; }
.site-foot .op { margin-bottom: 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-foot .small { margin-top: 16px; color: var(--pencil); font-size: 14px; }

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