/* Layout: a salmon-newsprint page set like a paper. Left-aligned masthead, a lead story
   beside a sample front page, then stories separated by ruled section heads. */
:root {
  --paper: #fbe5d8;
  --sheet: #fff6ef;
  --ink: #1c1a24;
  --ink-soft: #57515f;
  --rule: #dcbfae;
  --spot: #0e5c45;
  --spot-ink: #fff6ef;
  --mark: #ffe27a;
  --mark-ink: #1c1a24;
  /* The sample front page keeps its own newsprint colours in both themes. */
  --newsprint: #f4ecdc;
  --newsink: #1b1a1f;
  --newsrule: #b9ae9a;

  --display: "Bodoni Moda", "Didot", "Bodoni MT", Georgia, serif;
  --body: "Newsreader", Georgia, "Times New Roman", serif;
  --label: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.9rem;
  --step-0: 1.125rem;
  --step-1: 1.35rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  --step-4: clamp(2.5rem, 1.6rem + 4.2vw, 4.5rem);
  --gap: 1.5rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #17161b; --sheet: #211f27; --ink: #f6dfd1; --ink-soft: #bba99e; --rule: #3d3843;
    --spot: #82d3af; --spot-ink: #10231b; --mark: #ffe27a; --mark-ink: #1c1a24;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #17161b; --sheet: #211f27; --ink: #f6dfd1; --ink-soft: #bba99e; --rule: #3d3843;
  --spot: #82d3af; --spot-ink: #10231b; --mark: #ffe27a; --mark-ink: #1c1a24;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { color: var(--spot); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--spot); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.08; text-wrap: balance; margin: 0; font-variation-settings: "opsz" 30; }
h1 { font-size: var(--step-4); letter-spacing: -0.015em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); font-weight: 500; }
p, ul, ol { margin: 0; }
.num { font-variant-numeric: tabular-nums lining-nums; }

.wrap { max-width: 72rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--sheet); padding: 0.5rem 1rem; z-index: 10; }

.kicker, .strip, .mast__nav a, .btn, .mast__toggle, table.prices th, .calc legend, .field label, .byline {
  font-family: var(--label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.kicker { color: var(--spot); font-weight: 700; font-size: var(--step--1); }

/* Masthead */
.strip { border-bottom: 1px solid var(--rule); font-size: 0.8rem; font-weight: 500; color: var(--ink-soft); }
.strip__in { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; padding-block: 0.45rem; }
.mast { border-bottom: 3px double var(--ink); }
.mast__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; padding-block: 1rem; }
.mast__name { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem); line-height: 1; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.mast__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.4rem; }
.mast__nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.mast__nav a:hover, .mast__nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.mast__toggle { display: none; background: none; border: 1.5px solid var(--ink); color: var(--ink); font-weight: 700; font-size: 0.9rem; padding: 0.45rem 0.9rem; cursor: pointer; }
@media (max-width: 46rem) {
  .mast__toggle { display: inline-block; }
  .mast__nav { display: none; flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 0.9rem; padding-bottom: 0.5rem; }
  .mast__nav.is-open { display: flex; }
}

.btn { display: inline-block; background: var(--spot); color: var(--spot-ink); border: 2px solid var(--spot); padding: 0.75rem 1.4rem; font-weight: 700; font-size: 1.05rem; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.mast__nav a.btn--small { padding: 0.45rem 0.9rem; font-size: 0.9rem; color: var(--spot-ink); text-decoration: none; }
.mast__nav a.btn--small:hover { color: var(--paper); }
.btn--ghost { background: none; color: var(--ink); border-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }

/* Lead story */
.lead { padding-block: clamp(2rem, 5vw, 4rem); }
.lead__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.lead__copy { display: flex; flex-direction: column; gap: 1.4rem; min-width: 0; }
.standfirst { font-size: var(--step-1); line-height: 1.45; max-width: 34em; }
.small { font-size: var(--step--1); color: var(--ink-soft); }
@media (max-width: 54rem) { .lead__in { grid-template-columns: minmax(0, 1fr); } }

/* Sample front page */
.sample { min-width: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.news { background: var(--newsprint); color: var(--newsink); padding: clamp(0.9rem, 2.5vw, 1.5rem); transform: rotate(1.2deg); box-shadow: 0 1px 0 var(--newsrule), 0 18px 40px -18px rgba(28, 26, 36, 0.55); display: flex; flex-direction: column; gap: 0.7rem; max-width: 30rem; margin-inline: auto; }
.news__flag { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--label); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.68rem; font-weight: 600; }
.news__title { font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 1.1rem + 3vw, 2.6rem); line-height: 1; text-align: center; padding-block: 0.4rem 0.55rem; border-block: 3px double var(--newsink); }
.news__head { font-family: var(--display); font-weight: 800; font-size: clamp(1.25rem, 0.9rem + 1.7vw, 1.85rem); line-height: 1.08; text-wrap: balance; }
.news__deck { font-style: italic; font-size: 0.95rem; line-height: 1.35; }
.news__cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0.9rem; }
.news__photo { aspect-ratio: 4 / 3; max-width: 100%; background: repeating-linear-gradient(135deg, var(--newsrule) 0 2px, transparent 2px 9px); border: 1px solid var(--newsink); display: grid; place-items: center; font-family: var(--label); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; font-weight: 600; }
.news__photo span { background: var(--newsprint); padding: 0.2rem 0.6rem; }
.news__story { font-size: 0.8rem; line-height: 1.4; display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.news__side { border-left: 1px solid var(--newsink); padding-left: 0.9rem; font-size: 0.78rem; line-height: 1.35; display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.news__side h4 { margin: 0; font-family: var(--label); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; border-bottom: 1px solid var(--newsink); padding-bottom: 0.2rem; }
.news__side ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.news__side b { font-family: var(--label); letter-spacing: 0.04em; margin-right: 0.3rem; }
.sample__note { text-align: center; }
.shot { display: block; max-width: 100%; height: auto; border: 1px solid var(--rule); box-shadow: 0 18px 40px -22px rgba(28, 26, 36, 0.55); }
@media (prefers-reduced-motion: no-preference) { .news { transition: transform 0.3s ease; } .news:hover { transform: rotate(0deg); } }

/* Stories */
.story { padding-block: clamp(2rem, 5vw, 3.5rem); border-top: 1px solid var(--rule); }
.story__in { display: flex; flex-direction: column; gap: var(--gap); }
.story__head { display: flex; flex-direction: column; gap: 0.6rem; max-width: 44rem; }
.prose { display: flex; flex-direction: column; gap: 1.1rem; max-width: 40rem; min-width: 0; }
.prose h2 { margin-top: 1rem; font-size: var(--step-2); }
.prose h3 { font-size: var(--step-1); font-weight: 800; margin-top: 0.4rem; }
.prose ul, .prose ol { padding-left: 1.3rem; display: flex; flex-direction: column; gap: 0.5rem; }
.byline { font-size: var(--step--1); font-weight: 600; color: var(--ink-soft); }
.page-head { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 3vw, 2rem); }
.page-head .wrap { display: flex; flex-direction: column; gap: 1rem; }
.page-head h1 { font-size: var(--step-3); max-width: 18em; }
.page-head .standfirst { max-width: 36em; }

.contents { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0 2.5rem; }
.contents li { padding-block: 1rem; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 0.25rem; }
.contents strong { font-family: var(--display); font-size: var(--step-1); font-weight: 800; }

.steps { list-style: none; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: 1.75rem 2rem; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 0.4rem; border-top: 3px solid var(--ink); padding-top: 0.8rem; }
.steps li::before { content: counter(step); font-family: var(--body); font-weight: 600; font-size: var(--step-3); line-height: 1; color: var(--spot); }
.steps strong { font-family: var(--display); font-size: var(--step-1); font-weight: 800; }
.steps--long { grid-template-columns: minmax(0, 1fr); max-width: 44rem; }

.editions { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0; border: 1.5px solid var(--ink); background: var(--sheet); }
.edition { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; border: 0.75px solid var(--ink); min-width: 0; }
.edition__fee { font-family: var(--label); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.95rem; color: var(--ink-soft); }
.edition__fee .num { font-family: var(--body); font-weight: 600; font-size: var(--step-2); letter-spacing: 0; color: var(--ink); margin-right: 0.3rem; }
.edition ul { padding-left: 1.2rem; font-size: 1rem; display: flex; flex-direction: column; gap: 0.3rem; }

.table-wrap { overflow-x: auto; max-width: 100%; }
table.prices { border-collapse: collapse; width: 100%; min-width: 38rem; font-variant-numeric: tabular-nums lining-nums; background: var(--sheet); }
table.prices th, table.prices td { padding: 0.7rem 0.8rem; text-align: right; border: 1px solid var(--rule); }
table.prices th { font-size: 0.85rem; font-weight: 700; }
table.prices th:first-child { text-align: left; }
table.prices tbody th { font-family: var(--display); text-transform: none; letter-spacing: 0; font-size: 1.1rem; font-weight: 800; }
table.prices tbody th span { display: block; font-family: var(--label); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 500; color: var(--ink-soft); }

/* Price calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; background: var(--sheet); border: 1.5px solid var(--ink); padding: clamp(1.1rem, 3vw, 2rem); }
@media (max-width: 46rem) { .calc { grid-template-columns: minmax(0, 1fr); } }
.calc fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
.calc legend { font-weight: 700; font-size: 0.95rem; padding: 0; margin-bottom: 0.6rem; }
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choices label { position: relative; cursor: pointer; }
.choices input { position: absolute; opacity: 0; inset: 0; }
.choices span { display: block; border: 1.5px solid var(--ink); padding: 0.5rem 0.85rem; font-family: var(--label); font-weight: 600; letter-spacing: 0.04em; font-size: 1.05rem; }
.choices input:checked + span { background: var(--ink); color: var(--paper); }
.choices input:focus-visible + span { outline: 3px solid var(--spot); outline-offset: 2px; }
.calc__out { display: flex; flex-direction: column; gap: 0.9rem; min-width: 0; }
.calc__lines { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem 1rem; margin: 0; }
.calc__lines dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums lining-nums; }
.calc__lines .total { border-top: 3px double var(--ink); padding-top: 0.6rem; font-family: var(--body); font-weight: 600; font-size: var(--step-2); }

/* Forms */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.5rem; max-width: 44rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
@media (max-width: 40rem) { .form { grid-template-columns: minmax(0, 1fr); } }
.field label { font-weight: 700; font-size: 0.9rem; }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 0; padding: 0.6rem 0.7rem; width: 100%; }
.field textarea { min-height: 8rem; resize: vertical; }
.notice { border: 1.5px solid var(--ink); background: var(--sheet); padding: 1.25rem; display: flex; flex-direction: column; gap: 0.9rem; max-width: 44rem; }
.notice textarea { font: inherit; font-size: 1rem; width: 100%; min-height: 12rem; background: var(--paper); color: var(--ink); border: 1px solid var(--rule); padding: 0.7rem; }
.error { color: var(--ink); background: var(--mark); color: var(--mark-ink); padding: 0.5rem 0.75rem; }
mark.todo { background: var(--mark); color: var(--mark-ink); padding: 0.1em 0.35em; font-family: var(--label); font-weight: 600; }

details.faq { border-top: 1px solid var(--rule); padding-block: 1rem; max-width: 44rem; }
details.faq summary { cursor: pointer; font-family: var(--display); font-weight: 800; font-size: var(--step-1); line-height: 1.2; }
details.faq p { margin-top: 0.7rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 0 2.5rem; list-style: none; padding: 0; }
.cards li { border-top: 3px solid var(--ink); padding-block: 1rem 1.75rem; display: flex; flex-direction: column; gap: 0.5rem; }
.cards a { font-family: var(--display); font-weight: 800; font-size: var(--step-2); line-height: 1.1; color: var(--ink); text-decoration: none; }
.cards a:hover { text-decoration: underline; text-decoration-thickness: 2px; }

.closing { background: var(--ink); color: var(--paper); padding-block: clamp(2.5rem, 6vw, 4rem); }
.closing .wrap { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
.closing h2 { max-width: 16em; }
.closing .btn { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.closing .btn:hover { background: var(--spot); border-color: var(--spot); color: var(--spot-ink); }

.foot { border-top: 3px double var(--ink); font-size: 1rem; }
.foot__in { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; padding-block: 2.5rem 1.5rem; }
.foot__in > div { display: flex; flex-direction: column; gap: 0.6rem; max-width: 26rem; }
.foot__name { font-family: var(--display); font-weight: 800; font-size: var(--step-1); }
.foot nav { display: flex; flex-direction: column; gap: 0.45rem; }
.foot__small { padding-block: 1rem 2rem; color: var(--ink-soft); font-size: var(--step--1); }
@media (max-width: 40rem) { .foot__in { grid-template-columns: minmax(0, 1fr); } }

/* Photographs */
.photo { margin: 0; max-width: 44rem; display: flex; flex-direction: column; gap: 0.5rem; }
.photo img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); box-shadow: 0 18px 40px -22px rgba(28, 26, 36, 0.55); }
.photo figcaption { font-size: var(--step--1); color: var(--ink-soft); font-style: italic; }
.photo--tall { max-width: 24rem; }
.prose .photo { margin-block: 0.6rem; }
.story--photo { padding-block: clamp(1.5rem, 4vw, 2.5rem); }
