/* Edition of One
   Layout: one reading column on a cool paper ground; the hero sets a proof sheet of a real
   issue beside the headline, and each edition is printed in its own ink, like a run in three colours. */
:root {
  --ground: #f2f3f5;
  --sheet: #fcfcfb;
  --ink: #16191e;
  --muted: #565d67;
  --rule: #d3d8de;
  --navy: #1f3a5f;
  --terracotta: #a3462b;
  --green: #1d5a43;
  --accent: var(--ink);
  --on-accent: #fcfcfb;
  --ok: #1d5a43;
  --error: #a3262b;

  --display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;

  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 4vw, 2.5rem);
  --step-4: clamp(2.4rem, 6.4vw, 4.25rem);
  --measure: 38rem;
  --wide: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #111317;
    --sheet: #191c21;
    --ink: #e8eaed;
    --muted: #a3aab4;
    --rule: #2e333a;
    --navy: #93b2dc;
    --terracotta: #e3937a;
    --green: #7cc3a2;
    --on-accent: #111317;
    --ok: #7cc3a2;
    --error: #f08f8f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #111317;
  --sheet: #191c21;
  --ink: #e8eaed;
  --muted: #a3aab4;
  --rule: #2e333a;
  --navy: #93b2dc;
  --terracotta: #e3937a;
  --green: #7cc3a2;
  --on-accent: #111317;
  --ok: #7cc3a2;
  --error: #f08f8f;
  color-scheme: dark;
}

.ed-business { --accent: var(--navy); }
.ed-studio { --accent: var(--terracotta); }
.ed-research { --accent: var(--green); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.55;
  padding-inline: var(--gutter);
}
img { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.12; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-4); letter-spacing: -0.015em; font-variation-settings: "opsz" 72; }
h2 { font-size: var(--step-3); letter-spacing: -0.01em; }
h3 { font-size: var(--step-1); }
p { margin: 0; }
.wrap { max-width: var(--wide); margin-inline: auto; }
.prose { max-width: var(--measure); }

/* The edition mark: a print's "1/1", set like a pencilled number */
.mark { display: inline-flex; align-items: baseline; font-family: var(--display); font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: 0.02em; }
.mark-slash { margin-inline: 0.04em; opacity: 0.7; }

.preview-banner { margin-inline: calc(var(--gutter) * -1); padding: 0.5rem var(--gutter); background: var(--ink); color: var(--ground); font-size: var(--step--1); text-align: center; }

/* Header */
.site-header { max-width: var(--wide); margin-inline: auto; padding-block: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--rule); }
.wordmark { display: inline-flex; gap: 0.6rem; align-items: baseline; color: var(--ink); text-decoration: none; font-family: var(--display); font-size: 1.35rem; font-weight: 500; letter-spacing: -0.005em; }
.wordmark .mark { font-size: 1.05rem; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; font-size: 0.9375rem; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--accent); text-decoration: underline; }
.nav-lang { color: var(--muted) !important; }

/* Labels */
.eyebrow { font-family: var(--sans); font-size: var(--step--1); font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent); }
.lede { font-family: var(--display); font-size: var(--step-1); line-height: 1.45; color: var(--ink); max-width: 34rem; font-variation-settings: "opsz" 18; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }

/* Hero */
.hero { max-width: var(--wide); margin-inline: auto; padding-block: clamp(2.5rem, 7vw, 5rem) clamp(2.5rem, 6vw, 4.5rem); display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 60rem) { .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.hero-text { display: grid; gap: 1.4rem; min-width: 0; }
.hero-text h1 em { font-style: italic; color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; padding-top: 0.4rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.8rem 1.25rem; border-radius: 3px; background: var(--accent); color: var(--on-accent); font: 600 0.9875rem/1.2 var(--sans); text-decoration: none; border: 1px solid var(--accent); cursor: pointer; }
.button:hover { filter: brightness(1.08); text-decoration: none; }
.button[disabled] { opacity: 0.6; cursor: progress; }
.text-link { font-weight: 600; }
.facts { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; font-size: var(--step--1); color: var(--muted); padding: 0; margin: 0; list-style: none; }
.facts li::before { content: "·"; margin-right: 0.5rem; color: var(--accent); }
.facts li:first-child::before { content: none; }

/* The proof sheet: an issue excerpt set like a printed page */
.sheet { background: var(--sheet); border: 1px solid var(--rule); padding: clamp(1.25rem, 3.5vw, 2.25rem); box-shadow: 7px 7px 0 -1px var(--sheet), 7px 7px 0 0 var(--rule), 0 22px 40px -30px rgba(10, 20, 35, 0.4); min-width: 0; margin-right: 7px; }
.sheet-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; align-items: baseline; padding-bottom: 0.75rem; border-bottom: 2px solid var(--accent); }
.sheet-title { font-family: var(--display); font-size: var(--step-2); font-weight: 500; }
.sheet-meta { font-size: var(--step--1); color: var(--muted); }
.sheet-section { margin-top: 1.25rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.sheet-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 1.25rem; padding-top: 0.75rem; border-top: 1px solid var(--rule); font-size: var(--step--1); color: var(--muted); }
.sheet-foot .mark { font-size: 1.15rem; }

.item { display: grid; gap: 0.4rem; padding-block: 0.9rem; border-bottom: 1px solid var(--rule); }
.item:last-child { border-bottom: 0; }
.item h3 { font-size: 1.15rem; line-height: 1.25; font-weight: 600; font-variation-settings: "opsz" 24; }
.item h3 a { color: var(--ink); text-decoration: none; }
.item h3 a:hover { color: var(--accent); text-decoration: underline; }
.item-meta { font-size: var(--step--1); color: var(--muted); font-variant-numeric: tabular-nums; }
.item-body { font-family: var(--display); font-size: 1.02rem; line-height: 1.5; font-variation-settings: "opsz" 14; }
.item-why { font-size: 0.9375rem; line-height: 1.5; padding-left: 0.8rem; border-left: 2px solid var(--accent); }
.item-why strong { color: var(--accent); font-weight: 600; }
.item-source { font-size: 0.75rem; color: var(--muted); overflow-wrap: anywhere; }

/* Page sections */
.band { max-width: var(--wide); margin-inline: auto; padding-block: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--rule); display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 52rem) { .band { grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: 3rem; } }
.band-head { display: grid; gap: 0.75rem; align-content: start; }
.band-body { display: grid; gap: 1.5rem; min-width: 0; }
.band-body > p { max-width: var(--measure); }

.contents { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.contents li { display: grid; gap: 0.25rem 2rem; grid-template-columns: minmax(0, 1fr); padding-block: 1rem; border-bottom: 1px solid var(--rule); }
.contents li:first-child { padding-top: 0; }
@media (min-width: 40rem) { .contents li { grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); } }
.contents b { font-family: var(--display); font-weight: 600; font-size: 1.1rem; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 1.25rem; max-width: var(--measure); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap: 0.75rem; }
.steps li::before { content: counter(step); font-family: var(--display); font-style: italic; font-size: 1.6rem; line-height: 1; color: var(--accent); }

.sources { columns: 2 14rem; column-gap: 2rem; padding-left: 1.1rem; margin: 0; }
.sources li { break-inside: avoid; margin-bottom: 0.35rem; }

/* Prices */
.prices { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14.5rem), 1fr)); }
.price { display: grid; gap: 0.6rem; align-content: start; padding: 1.4rem; border: 1px solid var(--rule); background: var(--sheet); }
.price.featured { border-color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }
.price-name { font-size: var(--step--1); font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.price.featured .price-name { color: var(--accent); }
.price-amount { font-family: var(--display); font-size: 2.1rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.price-amount small { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); }
.price p { font-size: 0.9375rem; }

/* Editions on the umbrella page */
.editions { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14.5rem), 1fr)); }
.edition { display: grid; gap: 0.8rem; align-content: start; padding: 1.5rem; background: var(--sheet); border: 1px solid var(--rule); border-top: 4px solid var(--accent); color: var(--ink); text-decoration: none; }
.edition:hover { border-color: var(--accent); }
.edition h3 { font-size: var(--step-2); }
.edition .status { justify-self: start; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent); padding: 0.15rem 0.5rem; border-radius: 2px; }
.edition .go { font-weight: 600; color: var(--accent); }
.edition dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.25rem 1rem; margin: 0; font-size: 0.9375rem; }
.edition dt { color: var(--muted); }
.edition dd { margin: 0; }

/* FAQ */
.faq { display: grid; gap: 0; max-width: var(--measure); }
.faq details { border-bottom: 1px solid var(--rule); padding-block: 0.9rem; }
.faq summary { cursor: pointer; font-family: var(--display); font-size: 1.15rem; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 0.6rem; color: var(--ink); }

/* Signup form */
.signup { background: var(--sheet); border: 1px solid var(--rule); padding: clamp(1.25rem, 4vw, 2.25rem); display: grid; gap: 1.1rem; max-width: 44rem; }
.row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.field { display: grid; gap: 0.35rem; min-width: 0; }
.field label, .field legend { font-size: 0.875rem; font-weight: 600; }
.field .hint { font-size: 0.8125rem; color: var(--muted); font-weight: 400; }
input[type="text"], input[type="email"], input[type="url"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--ground);
  border: 1px solid var(--rule); border-radius: 3px; padding: 0.65rem 0.75rem;
}
textarea { min-height: 6rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.6rem; align-items: start; font-size: 0.9375rem; }
.consent input { width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; accent-color: var(--accent); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 0.9375rem; min-height: 1.4em; }
.form-status.ok { color: var(--ok); }
.form-status.error { color: var(--error); }
.signup .button { justify-self: start; }

/* Long pages: privacy, sample issue, confirmation */
.page { max-width: var(--measure); margin-inline: auto; padding-block: clamp(2.5rem, 6vw, 4rem); display: grid; gap: 1.25rem; }
.page h1 { font-size: var(--step-3); }
.page h2 { font-size: var(--step-1); font-family: var(--display); font-weight: 600; margin-top: 1.25rem; }
.page ul, .page ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.35rem; }
.draft-note { border: 1px dashed var(--accent); padding: 0.75rem 1rem; font-size: 0.9375rem; color: var(--ink); background: var(--sheet); }
.issue-page { max-width: 44rem; margin-inline: auto; padding-block: clamp(2rem, 5vw, 3.5rem); display: grid; gap: 1.5rem; }
.sample-note { font-size: 0.9375rem; color: var(--muted); border-left: 2px solid var(--accent); padding-left: 0.8rem; }
.basis { font-size: 0.9375rem; display: grid; gap: 0.35rem; padding: 1rem 1.2rem; background: var(--ground); border: 1px solid var(--rule); }
.basis ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.25rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); margin-top: 2rem; }
.footer-inner { max-width: var(--wide); margin-inline: auto; padding-block: 2rem 3rem; display: grid; gap: 0.4rem; font-size: 0.875rem; color: var(--muted); }
.footer-inner a { color: var(--muted); }
.footer-brand { color: var(--ink); }
.footer-note { margin-top: 0.5rem; }

@media (prefers-reduced-motion: no-preference) {
  .sheet { animation: settle 0.6s ease-out both; }
  @keyframes settle { from { transform: translateY(6px); } to { transform: none; } }
}
.issue-intro { margin-top: 1rem; }
