@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: 500; font-display: swap; src: url("/fonts/schibsted-grotesk-latin-500-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: 700; font-display: swap; src: url("/fonts/schibsted-grotesk-latin-700-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 {
  /* Brand colours from the brand kit: navy #172438, vermilion #e24932, paper #faf8f3 */
  --paper: #faf8f3;
  --surface: #ffffff;
  --ink: #172438;
  --muted: #5b6575;
  --line: #e4ded4;
  --accent: #172438;
  --accent-ink: #ffffff;
  --brand-red: #e24932;
  --inbox: #1d7a4c;
  --promo: #9a6300;
  --spam: #b3261e;
  --pending: #6a7584;
  --radius-s: 4px;
  --radius-m: 10px;
  --font: "Schibsted Grotesk", system-ui, sans-serif;
  --measure: 66ch;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #11161e;
    --surface: #19202b;
    --ink: #eee9e1;
    --muted: #a3abb8;
    --line: #2b3442;
    --accent: #eee9e1;
    --accent-ink: #172438;
    --brand-red: #f06a52;
    --inbox: #5fcf95;
    --promo: #e3ad4a;
    --spam: #ff8a80;
    --pending: #8c97a5;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
}
a { color: var(--accent); text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--brand-red) 70%, transparent); }
a:focus-visible, button:focus-visible, input:focus-visible, label:focus-within {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.wordmark { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.wordmark { display: inline-flex; line-height: 0; }
.wordmark { display: inline-flex; }
.wordmark img { height: 30px; width: auto; display: block; }
@media (max-width: 480px) { .wordmark img { height: 24px; } }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--brand-red); }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding: 48px 0 40px; } }
.hero h1 {
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 24px;
}
.hero p.lede { font-size: 20px; color: var(--muted); max-width: 34ch; margin: 0 0 28px; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: var(--radius-s);
  padding: 13px 20px;
  font: 600 16px/1 var(--font);
  text-decoration: none;
  cursor: pointer;
}
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }

/* Inbox mock: the memorable element */
.inbox {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.inbox-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.inbox-head strong { color: var(--ink); font-size: 15px; }
.inbox-row {
  display: grid; grid-template-columns: 9.5em 1fr; gap: 14px;
  padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 15px;
}
.inbox-row:last-child { border-bottom: 0; }
.inbox-row .from { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-row .subj { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-row .subj span { color: var(--muted); }
.inbox-row.ours { background: color-mix(in srgb, var(--brand-red) 8%, transparent); box-shadow: inset 3px 0 0 var(--brand-red); }
.inbox-row.dim { color: var(--muted); }
@media (max-width: 480px) { .inbox-row { grid-template-columns: 1fr; gap: 2px; } }

/* Sections */
.section { padding: 56px 0; border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 12px; font-weight: 750; }
.section .intro { color: var(--muted); max-width: var(--measure); margin: 0 0 32px; }

/* Steps: a real sequence, so it is numbered */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block; font-size: 44px; font-weight: 800; line-height: 1; color: var(--brand-red); margin-bottom: 12px;
}
.steps h3 { margin: 0 0 6px; font-size: 19px; }
.steps p { margin: 0; color: var(--muted); }

/* Library list */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.filters fieldset { border: 0; padding: 0; margin: 0 16px 8px 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters legend { font-size: 14px; color: var(--muted); margin-right: 6px; float: left; padding-top: 7px; }
.chip {
  font: 500 14px/1 var(--font);
  padding: 8px 12px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.library { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); }
.library li { display: grid; grid-template-columns: 1fr 8em 7em 9em; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); align-items: baseline; }
.library li:last-child { border-bottom: 0; }
.library li[hidden] { display: none; }
.library .name { font-weight: 650; font-size: 17px; }
.library .name a { color: var(--ink); text-decoration: none; }
.library .name a:hover { text-decoration: underline; text-decoration-color: var(--brand-red); }
.library .sum { display: block; color: var(--muted); font-weight: 400; font-size: 15px; margin-top: 2px; }
.library .meta { font-size: 14px; color: var(--muted); }
.tag-premium { color: var(--accent); font-weight: 600; }
.state { font-size: 14px; }
.state.ready { color: var(--inbox); font-weight: 600; }
@media (max-width: 760px) {
  .library li { grid-template-columns: 1fr 1fr; }
  .library .name { grid-column: 1 / -1; }
}

/* Template page */
.tpl { padding: 40px 0 64px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.tpl h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.03em; line-height: 1; margin: 0 0 12px; font-weight: 800; }
.tpl .lede { color: var(--muted); max-width: var(--measure); margin: 0 0 32px; font-size: 18px; }
.tpl-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .tpl-grid { grid-template-columns: 1fr; } }
.preview { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.preview-bar { display: flex; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.preview iframe { display: block; width: 100%; height: 720px; border: 0; background: #fff; }
.preview.mobile iframe { width: 390px; max-width: 100%; margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }

.report { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 24px; }
.report h2 { font-size: 20px; margin: 0 0 4px; }
.report .sub { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.report dl { margin: 0; }
.report .row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.report dt { color: var(--muted); }
.report dd { margin: 0; font-weight: 600; text-align: right; }
.meter { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 4px 0 0; }
.meter i { display: block; height: 100%; background: var(--inbox); }
.result { font-weight: 600; }
.result.inbox { color: var(--inbox); }
.result.promotions { color: var(--promo); }
.result.spam { color: var(--spam); }
.result.pending { color: var(--pending); font-weight: 500; }
.report .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

form.stack { display: grid; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
form.stack h3 { margin: 0; font-size: 17px; }
label.field { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
input[type="email"] {
  font: 400 16px var(--font); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-s);
  background: var(--paper); color: var(--ink); width: 100%;
}
label.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
label.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); }
.fine { font-size: 13px; color: var(--muted); margin: 0; }
.note { font-size: 14px; color: var(--muted); }

/* Waitlist and author */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.author p { max-width: var(--measure); }
.author .by { font-weight: 700; margin: 0 0 6px; }

.site-foot { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 14px; color: var(--muted); }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }

.prose { max-width: var(--measure); }
.prose h2 { margin-top: 40px; }

@media (prefers-reduced-motion: no-preference) {
  .inbox-row.ours { animation: land 700ms 250ms both cubic-bezier(.2,.7,.2,1); }
  @keyframes land { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
}

/* Honeypot field: off screen for people, visible to naive bots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Premium previews are screenshots, not live HTML */
.preview .parts { border-top: 0; }
.preview.shots .part { background: #fff; max-height: 720px; overflow: auto; }
.preview.shots .shot { display: block; width: 100%; height: auto; }
.preview.shots .shot.phone { display: none; width: 390px; max-width: 100%; margin: 0 auto; }
.preview.shots.mobile .shot.desktop { display: none; }
.preview.shots.mobile .shot.phone { display: block; }

/* Blog */
.post { padding: 40px 0 64px; }
.post h1 { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 12px; }
.post .byline { color: var(--muted); font-size: 15px; margin: 0 0 28px; }
.post h2 { font-size: 27px; line-height: 1.2; margin: 44px 0 12px; letter-spacing: -0.015em; }
.post h3 { font-size: 20px; margin: 28px 0 8px; }
.post p, .post li { font-size: 18px; line-height: 1.7; }
.post ul, .post ol { padding-left: 22px; }
.post li { margin-bottom: 6px; }
.post blockquote { margin: 24px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--brand-red); color: var(--ink); }
.post code { font-size: 0.92em; background: var(--surface); border: 1px solid var(--line); padding: 1px 5px; border-radius: 3px; }
.post pre { background: var(--surface); border: 1px solid var(--line); padding: 14px 16px; overflow-x: auto; border-radius: var(--radius-s); }
.post pre code { border: 0; padding: 0; background: none; font-size: 14px; }
.snippet { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand-red); padding: 16px 20px; border-radius: var(--radius-s); }
.table-wrap { overflow-x: auto; margin: 20px 0; }
.post table { border-collapse: collapse; width: 100%; font-size: 16px; }
.post th, .post td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.post th { font-weight: 700; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 18px 22px; margin: 0 0 32px; }
.toc p { margin: 0 0 8px; font-weight: 700; font-size: 15px; }
.toc ol { margin: 0; font-size: 16px; }
.toc li { font-size: 16px; margin-bottom: 4px; }
.series { margin: 48px 0 0; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); }
.series h2 { margin: 0 0 10px; font-size: 20px; }
.series .part { margin: 0 0 8px; font-weight: 600; font-size: 16px; }
.series li { font-size: 16px; }
.author-box { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.author-box .by { font-weight: 700; margin: 0 0 4px; }
.author-box p { font-size: 16px; color: var(--muted); }
.hero-img { width: 100%; height: auto; border-radius: var(--radius-m); margin: 0 0 28px; }
.blog-block { margin: 40px 0 0; }
.blog-block h2 { font-size: 24px; margin: 0 0 12px; }
.post-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.post-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.post-list a { font-weight: 650; color: var(--ink); text-decoration: none; font-size: 18px; }
.post-list a:hover { text-decoration: underline; text-decoration-color: var(--brand-red); }
.post-list .sum { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }
.tag-pillar { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brand-red); margin-right: 4px; }

/* Guides */
.guide-grid { list-style: none; padding: 0; margin: 8px 0 64px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px; }
.guide-grid a { display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none; }
.guide-grid img { width: 100%; height: auto; border: 1px solid var(--line, #e4ded4); border-radius: 6px; background: #fff; }
.guide-grid .g-title { font-weight: 700; font-size: 17px; line-height: 1.25; margin-top: 6px; }
.guide-grid .g-lede { font-size: 14px; color: var(--muted, #5b6575); line-height: 1.45; }
.guide-grid .g-dl { font-size: 14px; font-weight: 600; color: var(--brand-red); }
.guide-grid a:hover .g-title { text-decoration: underline; }
