/*
 * krant: paddotrip.nl
 * 1. Concept: a Dutch daily newspaper on newsprint. The home page is a voorpagina: masthead with date line and
 *    nameplate, a lead story with a headline over the columns, a "kort nieuws" rail, secondary stories in a ruled
 *    grid. Article pages are set like a newspaper article: kicker, headline, lede, dateline, two text columns.
 * 2. Type: Libre Caslon Text (400, 400 italic, 700; Caslon descends from the Dutch baroque types) for the nameplate,
 *    lede and reading text; Sofia Sans Condensed (500-800) for headlines, kickers, labels and navigation.
 * 3. Palette: newsprint #f1ede3, shaded box #e7e2d4, ink #161514, grey #57534b, soft rule #c9c2b1,
 *    one signal red #c4161c (kickers, the nameplate rule, page numbers; never for long text).
 * 4. Layout signature: black column rules everywhere (thick-thin under the masthead, vertical hairlines between
 *    columns), a 12-column front page, multi-column article body with spanning subheads, a drop cap.
 * 5. Detail: products appear as small boxed advertisements labelled "Advertentie", the B/W pen-and-halftone
 *    illustration is multiplied into the paper, every teaser ends with "Lees verder, pagina N".
 */

@font-face{font-family:'Libre Caslon Text';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/libre-caslon-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Libre Caslon Text';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/libre-caslon-400-latin.woff2) format('woff2');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:'Libre Caslon Text';font-style:italic;font-weight:400;font-display:swap;src:url(fonts/libre-caslon-italic-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Libre Caslon Text';font-style:italic;font-weight:400;font-display:swap;src:url(fonts/libre-caslon-italic-400-latin.woff2) format('woff2');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:'Libre Caslon Text';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/libre-caslon-700-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Libre Caslon Text';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/libre-caslon-700-latin.woff2) format('woff2');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:'Sofia Sans Condensed';font-style:normal;font-weight:500 800;font-display:swap;src:url(fonts/sofia-sans-condensed-500-800-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Sofia Sans Condensed';font-style:normal;font-weight:500 800;font-display:swap;src:url(fonts/sofia-sans-condensed-500-800-latin.woff2) format('woff2');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: #f1ede3;
  --shade: #e7e2d4;
  --ink: #161514;
  --grey: #57534b;
  --soft: #c9c2b1;
  --red: #c4161c;
  --serif: 'Libre Caslon Text', 'Iowan Old Style', Georgia, serif;
  --cond: 'Sofia Sans Condensed', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --max: 78rem;
  --side: 16px;
  --gap: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.62 var(--serif);
  font-kerning: normal;
  font-variant-numeric: oldstyle-nums;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--side); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 9; }
.skip:focus { left: 0; }

/* ---------- shared labels ---------- */
.kicker, .box-title, .band, .story-more, .dateline, .mast-line, .sections, .menu summary, .ad-label, figcaption {
  font-family: var(--cond);
  font-variant-numeric: lining-nums;
}
.kicker {
  margin: 0 0 .4rem;
  color: var(--red);
  font-weight: 800;
  font-size: .8125rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.box-title {
  margin: 0 0 .6rem;
  font-weight: 800;
  font-size: .8125rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ---------- masthead ---------- */
.mast { padding-top: .75rem; }
.mast-line {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem;
  border-bottom: 1px solid var(--ink);
  padding-bottom: .4rem;
  font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.mast-date { color: var(--ink); }
.mast-free { display: none; }
.nameplate {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .9rem 0 .35rem;
  text-decoration: none; color: var(--ink);
}
.nameplate:hover { color: var(--ink); }
.nameplate-mark { width: 2.4rem; height: 2.4rem; object-fit: contain; }
.nameplate-name {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.6rem, 11vw, 6.25rem);
  line-height: .95; letter-spacing: -.02em;
}
.motto {
  margin: 0; padding: .35rem 0 .55rem;
  text-align: center; font-style: italic; color: var(--grey); font-size: .9375rem;
  border-bottom: 4px solid var(--ink);
  box-shadow: 0 3px 0 var(--paper), 0 4px 0 var(--ink);
}
.is-page .nameplate { padding: .6rem 0 .2rem; }
.is-page .nameplate-name { font-size: clamp(2.2rem, 7vw, 3.6rem); }
.is-page .nameplate-mark { width: 1.9rem; height: 1.9rem; }

.sections { display: none; }
.menu { margin: .5rem 0 0; border-bottom: 1px solid var(--ink); }
.menu summary {
  cursor: pointer; list-style: none; padding: .55rem 0;
  font-weight: 800; font-size: .875rem; letter-spacing: .1em; text-transform: uppercase;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ' +'; color: var(--red); }
.menu[open] summary::after { content: ' \2212'; }
.menu ol { list-style: none; margin: 0; padding: 0 0 .6rem; }
.menu li { border-top: 1px solid var(--soft); }
.menu a { display: flex; gap: .75rem; padding: .55rem 0; text-decoration: none; font-family: var(--cond); font-weight: 600; font-size: 1.0625rem; }
.menu .pg { color: var(--red); font-weight: 800; min-width: 1.5rem; }
.menu a[aria-current] { color: var(--red); }

/* ---------- headline type ---------- */
h1, .story-title, .prose h2, .prose h3 {
  font-family: var(--cond);
  font-variant-numeric: lining-nums;
  color: var(--ink);
}
h1 {
  margin: 0 0 .9rem;
  font-weight: 800;
  font-size: clamp(2.25rem, 8.5vw, 4.75rem);
  line-height: .98;
  letter-spacing: -.012em;
  text-wrap: balance;
}
.lede {
  margin: 0 0 1rem;
  font-size: 1.1875rem; line-height: 1.5;
  font-weight: 700;
  text-wrap: pretty;
}

/* ---------- prose ---------- */
.prose p { margin: 0 0 .9rem; hyphens: auto; -webkit-hyphens: auto; text-wrap: pretty; }
.prose h2 {
  margin: 1.6rem 0 .6rem;
  padding-top: .45rem;
  border-top: 2px solid var(--ink);
  font-weight: 800; font-size: 1.5rem; line-height: 1.1;
  text-wrap: balance;
}
.prose h3 { margin: 1.2rem 0 .4rem; font-weight: 700; font-size: 1.1875rem; line-height: 1.2; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.2rem; }
.prose li { margin: 0 0 .4rem; hyphens: auto; -webkit-hyphens: auto; }
.prose ul li::marker { color: var(--red); }
.prose ol li::marker { font-family: var(--cond); font-weight: 800; color: var(--red); }
.prose strong { font-weight: 700; }
.prose em { font-style: italic; }
.prose a { text-decoration-color: var(--red); }
.prose blockquote {
  margin: 1.2rem 0; padding: .7rem 0;
  border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink);
  font-size: 1.1875rem; font-style: italic;
}
.prose blockquote p:last-child { margin: 0; }
.prose hr { border: 0; border-top: 1px solid var(--ink); margin: 1.5rem 0; }
.prose figure { margin: 1.2rem 0; }
.prose code { font-family: var(--cond); font-size: .95em; }

.table { overflow-x: auto; margin: 1.2rem 0 1.4rem; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
table { width: 100%; border-collapse: collapse; font-family: var(--cond); font-size: 1rem; line-height: 1.35; font-variant-numeric: lining-nums tabular-nums; }
th { text-align: left; font-weight: 800; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; padding: .5rem .75rem .45rem 0; border-bottom: 1px solid var(--ink); }
td { padding: .5rem .75rem .5rem 0; border-bottom: 1px solid var(--soft); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 700; white-space: nowrap; }

/* ---------- front page ---------- */
.front { display: grid; gap: 0 var(--gap); padding-top: 1.25rem; padding-bottom: 2rem; }
.lead h1 { font-size: clamp(2.4rem, 9vw, 5.25rem); }
.lead-fig { margin: 0 0 1rem; }
.lead-fig img { width: 100%; mix-blend-mode: multiply; filter: contrast(1.08); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
figcaption { margin-top: .4rem; font-size: .875rem; line-height: 1.35; color: var(--grey); font-weight: 500; }
.lead-body > p:first-child::first-letter {
  float: left;
  font-family: var(--serif); font-weight: 700;
  font-size: 4.1em; line-height: .82;
  padding: .06em .1em 0 0;
  color: var(--red);
}

.rail { margin-top: 1rem; }
.box { border-top: 4px solid var(--ink); padding: .7rem 0 1rem; margin-bottom: 1.25rem; }
.brief ul { list-style: none; margin: 0; padding: 0; }
.brief li { padding: .7rem 0; border-top: 1px solid var(--soft); font-size: .96875rem; line-height: 1.5; }
.brief li:first-child { border-top: 0; padding-top: .2rem; }
.brief li strong { display: block; font-family: var(--cond); font-weight: 800; font-size: 1.125rem; line-height: 1.15; margin-bottom: .2rem; }
.brief a { text-decoration-color: var(--red); }
.help { background: var(--shade); padding: .8rem 1rem 1rem; }
.help p { margin: 0 0 .6rem; font-size: .96875rem; line-height: 1.45; }
.help p:last-child { margin: 0; }
.help .num { display: block; font-family: var(--cond); font-weight: 800; font-size: 1.75rem; line-height: 1.05; color: var(--red); font-variant-numeric: lining-nums; }

.band {
  margin: 0 0 1rem;
  padding: .45rem 0 .4rem;
  border-top: 4px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-weight: 800; font-size: .875rem; letter-spacing: .12em; text-transform: uppercase;
}
.stories { margin-top: 1rem; }
.story-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 var(--gap); }
.story { border-bottom: 1px solid var(--soft); }
.story-link { display: block; padding: .9rem 0 1.1rem; text-decoration: none; color: var(--ink); }
.story-link:hover .story-title { color: var(--red); }
.story-title { display: block; margin: 0 0 .45rem; font-weight: 800; font-size: 1.625rem; line-height: 1.04; text-wrap: balance; }
.story-text { display: block; font-size: .96875rem; line-height: 1.5; color: var(--ink); }
.story-more { display: inline-block; margin-top: .55rem; font-weight: 800; font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--red); }

/* ---------- article ---------- */
.article { padding-top: 1.4rem; padding-bottom: 2.5rem; }
.art-head { border-bottom: 1px solid var(--ink); padding-bottom: .9rem; margin-bottom: 1.25rem; max-width: 60rem; }
.art-head .lede { font-weight: 400; font-style: italic; font-size: 1.25rem; color: var(--ink); max-width: 46rem; }
.dateline { display: flex; flex-wrap: wrap; gap: .2rem 1rem; margin: 0; font-size: .875rem; font-weight: 600; color: var(--grey); letter-spacing: .02em; }
.dateline .place { color: var(--ink); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.art-side { border-top: 4px solid var(--ink); padding-top: .6rem; margin-bottom: 1.25rem; }
.toc { list-style: none; counter-reset: t; margin: 0; padding: 0; font-family: var(--cond); font-size: 1rem; line-height: 1.25; }
.toc li { counter-increment: t; border-top: 1px solid var(--soft); }
.toc li:first-child { border-top: 0; }
.toc a { display: flex; gap: .55rem; padding: .45rem 0; text-decoration: none; font-weight: 600; }
.toc a::before { content: counter(t); color: var(--red); font-weight: 800; min-width: 1rem; }
.art-body { max-width: 42rem; }
.art-body > p:first-child::first-letter {
  float: left;
  font-family: var(--serif); font-weight: 700;
  font-size: 3.9em; line-height: .82;
  padding: .06em .1em 0 0;
  color: var(--red);
}
.art-body > h2:first-child { margin-top: 0; }
.more { margin-top: 2.5rem; }

.is-error .art-body > p:first-child::first-letter { float: none; font: inherit; color: inherit; padding: 0; }

/* ---------- advertisements (products) ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 1rem; margin: 1.4rem 0; }
.product-feature { margin: 1.4rem 0; max-width: 22rem; }
.ad {
  display: flex; flex-direction: column;
  border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 3px;
  margin: 4px; padding: .6rem .7rem .75rem;
  background: #fbf9f4; text-decoration: none; color: var(--ink);
}
.ad:hover { color: var(--ink); }
.ad:hover .ad-name { text-decoration: underline; text-decoration-color: var(--red); }
.ad-label { font-weight: 700; font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); border-bottom: 1px solid var(--soft); padding-bottom: .35rem; margin-bottom: .55rem; }
.ad-img { display: block; aspect-ratio: 1; background: #fff; }
.ad-img img { width: 100%; height: 100%; object-fit: contain; }
.ad-name { display: block; margin-top: .55rem; font-family: var(--cond); font-weight: 800; font-size: 1.125rem; line-height: 1.1; }
.ad-row { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-top: auto; padding-top: .35rem; }
.ad-price { font-weight: 700; font-variant-numeric: lining-nums; }
.ad-shop { font-family: var(--cond); font-weight: 700; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--grey); }

/* ---------- about page mascot ---------- */
.prose figure img[src*="mascot"] { width: 9rem; }

/* ---------- footer ---------- */
.foot { border-top: 4px solid var(--ink); margin-top: 1rem; padding: 1.25rem 0 2rem; font-size: .9375rem; line-height: 1.5; }
.foot-grid { display: grid; gap: 1.25rem; }
.foot-col p { margin: 0; }
.foot-col .box-title { margin-bottom: .35rem; }
.foot-publisher { display: flex; gap: .9rem; align-items: flex-start; }
.mascot { width: 4.5rem; height: 4.5rem; flex: none; }
.foot a { text-decoration-color: var(--red); }

/* ---------- wider screens ---------- */
@media (min-width: 40rem) {
  :root { --side: 24px; }
  .mast-free { display: inline; }
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story:nth-child(odd) { border-right: 1px solid var(--soft); padding-right: var(--gap); }
  .story:nth-child(even) { margin-left: calc(var(--gap) * -1); padding-left: var(--gap); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-publisher { grid-column: 1 / -1; grid-row: 1; }
}

@media (min-width: 62rem) {
  body { font-size: 1.0625rem; }
  .menu { display: none; }
  .sections { display: block; border-bottom: 1px solid var(--ink); }
  .sections ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; }
  .sections li + li { border-left: 1px solid var(--soft); }
  .sections a {
    display: block; padding: .5rem 1.05rem;
    text-decoration: none; font-weight: 700; font-size: .9375rem; letter-spacing: .08em; text-transform: uppercase;
  }
  .sections a[aria-current] { color: var(--red); box-shadow: inset 0 -3px 0 var(--red); }
  .nameplate-mark { width: 4rem; height: 4rem; }
  .is-page .nameplate-mark { width: 2.6rem; height: 2.6rem; }

  /* front page: lead over 8 columns, rail over 4, stories below in 3 ruled columns */
  .front { grid-template-columns: repeat(12, minmax(0, 1fr)); padding-top: 1.75rem; }
  .lead { grid-column: 1 / 9; padding-right: var(--gap); border-right: 1px solid var(--ink); }
  .rail { grid-column: 9 / 13; margin-top: 0; }
  .stories { grid-column: 1 / -1; margin-top: 2rem; }
  .lead-body { columns: 2; column-gap: 2rem; column-rule: 1px solid var(--soft); }
  .story-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .story, .story:nth-child(odd), .story:nth-child(even) { margin: 0; padding: 0 var(--gap) 0 0; border-right: 1px solid var(--soft); }
  .story:nth-child(3n + 2), .story:nth-child(3n) { margin-left: calc(var(--gap) * -1); padding-left: var(--gap); }
  .story:nth-child(3n) { border-right: 0; padding-right: 0; }
  .story.is-first .story-title { font-size: 2rem; }

  /* article: toc rail + two text columns with spanning subheads */
  .art-grid { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 0 2rem; }
  .art-side { grid-column: 1; align-self: start; position: sticky; top: 1rem; }
  .art-body { grid-column: 2; max-width: none; columns: 2; column-gap: 2.25rem; column-rule: 1px solid var(--soft); }
  .art-grid > .art-body:only-child { grid-column: 1 / -1; max-width: 56rem; }
  .art-body > h2, .art-body > .table, .art-body > .products, .art-body > .product-feature, .art-body > figure, .art-body > blockquote { column-span: all; }
  .art-body > h2 { margin-top: 1.4rem; }
  .art-body > p:first-child { column-span: all; max-width: 44rem; font-size: 1.125rem; }
  .art-body p, .lead-body p { orphans: 3; widows: 3; }
  .art-body li { break-inside: avoid-column; }
  .is-about .art-body, .is-error .art-body { columns: auto; max-width: 44rem; }
  .foot-grid { grid-template-columns: 1fr 1.4fr 1fr; gap: 2rem; }
  .foot-publisher { grid-column: auto; grid-row: auto; border-left: 1px solid var(--soft); border-right: 1px solid var(--soft); padding: 0 2rem; }
}

@media (min-width: 80rem) {
  .lead-body { column-gap: 2.5rem; }
}

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

@media print {
  .menu, .sections, .skip, .more { display: none; }
  body { background: #fff; }
}
