/* The Meridian Herald: fictional demo publisher site (synthetic).
 * Look: docs/design/boards/article-page.html. Newsreader for the wordmark, headlines and body,
 * Inter for nav, labels, byline and buttons. Fonts are served from assets/fonts (no third-party CSS). */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/newsreader-latin-var.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/newsreader-latin-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/inter-latin-700-normal.woff2") format("woff2"); }

:root {
  --paper: #FCFBF8;
  --ink: #141414;
  --ink-2: #3A3833;
  --muted: #5C574F;
  --soft: #7A756C;
  --faint: #A49E93;
  --rule: #E1DBD0;
  --red: #A8322D;
  --well: #F1EEE8;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; }

/* ---------------------------------------------------------------- ads */
.ad-well { background: var(--well); border-bottom: 1px solid var(--rule); }
.top-well { position: relative; padding: 9px 0 13px; }
.ad-wrap { text-align: center; }
.ad-label { font: 500 9px/11px var(--sans); color: #8E897F; letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 5px; }
.ad-slot { margin: 0 auto; background: var(--well); overflow: hidden; }
.ad-slot img { display: block; max-width: none; }
.slot-728x90 { width: 728px; height: 90px; }
.slot-320x50 { width: 320px; height: 50px; }
.slot-300x250 { width: 300px; height: 250px; }
.slot-300x600 { width: 300px; height: 600px; }

/* The page's own demo label (ads.js rewrites the text to say how the ads got there). */
.demo-strip {
  position: absolute; left: 24px; top: 50%; transform: translateY(-50%); z-index: 40;
  font: 400 10.5px/1.3 var(--sans); color: #77726A; background: #FBFAF6;
  border: 1px solid #D8D2C6; border-radius: 10px; padding: 4px 10px; white-space: nowrap;
}
.demo-strip .more-note { display: block; color: #8E897F; }

/* ---------------------------------------------------------------- masthead */
.masthead { border-bottom: 1px solid var(--rule); background: var(--paper); }
.mast-row { max-width: 1312px; margin: 0 auto; height: 53px; display: flex; align-items: center; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.menu { margin-right: 14px; }
.wordmark { font: 600 29px/1 var(--serif); letter-spacing: -0.015em; color: var(--ink); white-space: nowrap; }
.sections { display: flex; gap: 27px; margin-left: 94px; height: 100%; }
.sections a { position: relative; display: flex; align-items: center; height: 100%;
  font: 500 14px/1 var(--sans); color: var(--ink-2); white-space: nowrap; }
.sections a:hover { color: var(--ink); }
.sections a.on { color: var(--ink); font-weight: 600; }
.sections a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--red); }
.mast-actions { margin-left: auto; display: flex; align-items: center; }
.signin { font: 500 14px/1 var(--sans); color: var(--ink); margin: 0 27px 0 21px; white-space: nowrap; }
.subscribe { display: inline-flex; align-items: center; justify-content: center; width: 138px; height: 36px;
  background: var(--ink); color: #fff; border-radius: 4px; font: 600 13.5px/1 var(--sans); }
.subscribe:hover { background: #2a2a2a; }

/* ---------------------------------------------------------------- page grid */
.page { max-width: 1144px; margin: 0 auto; padding: 25px 0 72px; display: grid;
  grid-template-columns: minmax(0, 784px) 300px; column-gap: 60px; justify-content: space-between; }

/* ---------------------------------------------------------------- article */
.crumb { font: 500 11.5px/1.5 var(--sans); color: var(--ink); margin-bottom: 7px; }
.crumb .sec { color: var(--red); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.crumb .sep { color: var(--faint); margin: 0 8px; }
.crumb span:last-child { color: var(--muted); }
.story h1 { font: 600 47px/1.04 var(--serif); letter-spacing: -0.02em; margin: 0 0 14px; max-width: 760px;
  font-variation-settings: "opsz" 60; text-wrap: balance; }
.standfirst { font: 400 20px/1.42 var(--serif); color: var(--muted); margin: 0 0 22px; max-width: 720px;
  font-variation-settings: "opsz" 20; }
.byline-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #E6DACA; color: #5A4A36;
  display: flex; align-items: center; justify-content: center; font: 600 14px/1 var(--serif); }
.who .name { font: 600 13.5px/1.4 var(--sans); color: var(--ink); }
.who .meta, .lead .meta { font: 400 12.5px/1.4 var(--sans); color: var(--soft); white-space: nowrap; }
.dot { margin: 0 7px; }
.share { margin-left: auto; display: flex; gap: 8px; }
.share-btn { width: 36px; height: 36px; border: 1px solid var(--rule); border-radius: 50%; color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center; }
.share-btn:hover { border-color: #CFC7B8; background: #F6F3EE; }
.hero { margin: 0 0 18px; }
.hero img { width: 100%; height: auto; aspect-ratio: 784 / 268; object-fit: cover; border-radius: 2px;
  background: #DCD8D0; }
.hero figcaption { font: 400 12.5px/1.45 var(--sans); color: #6E695F; margin-top: 8px; }
.hero figcaption span { color: var(--faint); }
.story .body p { margin: 0 0 1.05em; }
.story .body h2 { font: 600 25px/1.2 var(--serif); letter-spacing: -0.01em; margin: 34px 0 10px; }
.inline-ad { display: none; }

/* ---------------------------------------------------------------- rail */
.rail { padding-top: 0; }
.rail > .ad-wrap { margin-bottom: 30px; }
.rail .ad-label { margin-bottom: 7px; }
.most-read h4 { font: 700 13px/1.3 var(--sans); letter-spacing: 0.01em; color: var(--ink); margin: 0;
  padding-bottom: 9px; border-bottom: 2px solid var(--ink); }
.most-read ol { list-style: none; margin: 0 0 36px; padding: 0; }
.most-read li { display: flex; gap: 0; padding: 10px 0 13px; border-bottom: 1px solid var(--rule); }
.most-read li:last-child { border-bottom: 0; }
.most-read .n { flex: none; width: 32px; font: 500 26px/1 var(--serif); color: var(--red); }
.most-read a { font: 500 16.5px/1.3 var(--serif); color: var(--ink); padding-top: 4px; }
.most-read a:hover, .lead h2 a:hover, .card h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 3px; }
.rail .sticky { position: sticky; top: 24px; }

/* ---------------------------------------------------------------- home */
.dateline { display: flex; justify-content: space-between; font: 500 11.5px/1.5 var(--sans); color: var(--soft);
  padding-bottom: 10px; border-bottom: 1px solid var(--rule); margin-bottom: 20px; }
.kicker { font: 700 11.5px/1.5 var(--sans); color: var(--red); letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 6px; }
.lead-img img { width: 100%; aspect-ratio: 784 / 330; object-fit: cover; border-radius: 2px; }
.lead-text { padding-top: 16px; }
.lead h2 { font: 600 40px/1.06 var(--serif); letter-spacing: -0.02em; margin: 0 0 12px; max-width: 740px;
  font-variation-settings: "opsz" 56; text-wrap: balance; }
.lead .standfirst { font-size: 19px; margin-bottom: 10px; }
.top-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 28px; padding-top: 24px;
  border-top: 1px solid var(--rule); }
.card h3 { font: 600 22px/1.18 var(--serif); letter-spacing: -0.01em; margin: 0 0 8px; text-wrap: balance; }
.card p { margin: 0; font-size: 16px; line-height: 1.45; color: var(--muted); }
.thumb { display: block; margin-bottom: 12px; }
.thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; background: #DCD8D0; }
.section-head { font: 700 13px/1.3 var(--sans); color: var(--ink); margin: 40px 0 18px; padding-bottom: 9px;
  border-bottom: 2px solid var(--ink); }
.more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.more .card h3 { font-size: 19px; }
.more .card p { font-size: 15px; }

/* ---------------------------------------------------------------- footer */
.site-foot { border-top: 1px solid var(--rule); background: var(--well); }
.foot-inner { max-width: 1144px; margin: 0 auto; padding: 28px 0 36px; }
.site-foot .wordmark { font-size: 24px; }
.site-foot nav { display: flex; gap: 22px; margin: 14px 0 12px; font: 500 13px/1 var(--sans); color: var(--ink-2); }
.site-foot p { font: 400 12.5px/1.6 var(--sans); color: var(--soft); margin: 0; max-width: 720px; }

/* Planted problem for the vision check test: a consent banner over the page bottom. */
.consent { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 3px solid var(--red);
  box-shadow: 0 -6px 18px rgba(0,0,0,0.18); padding: 18px 24px; font: 15px var(--sans);
  z-index: 50; display: flex; gap: 16px; align-items: center; justify-content: center; min-height: 45vh; }
.consent button { background: var(--ink); color: #fff; border: 0; padding: 10px 18px; font-weight: 600;
  border-radius: 4px; }

/* ---------------------------------------------------------------- wide desktop: the demo label follows the reader
   in the empty left margin (nothing else lives there at this width). */
@media (min-width: 1880px) {
  .demo-strip { position: fixed; top: 52px; transform: none; }
}

/* ---------------------------------------------------------------- narrower desktop */
@media (max-width: 1239px) {
  .page, .foot-inner { padding-left: 32px; padding-right: 32px; }
  .mast-row { padding: 0 32px; }
  .sections { margin-left: 40px; gap: 20px; }
  .page { column-gap: 40px; }
}
@media (max-width: 1100px) {
  .sections a:nth-child(n+6) { display: none; }
  .signin { display: none; }
  .search { margin-right: 18px; }
}

/* ---------------------------------------------------------------- tablet (iPad gen 7 is 810 wide) */
@media (min-width: 760px) and (max-width: 1023px) {
  .top-well { padding-top: 0; }
  .demo-strip { position: static; transform: none; display: inline-block; margin: 8px 0 8px 24px; }
  .mast-row { flex-wrap: wrap; height: auto; padding: 0 24px; }
  .mast-row > .menu, .mast-row > .wordmark, .mast-row > .mast-actions { height: 56px; }
  .wordmark { font-size: 27px; display: flex; align-items: center; }
  .sections { order: 3; flex-basis: calc(100% + 48px); margin: 0 -24px; padding: 0 24px; height: 42px; gap: 24px;
    justify-content: center; border-top: 1px solid var(--rule); }
  .sections a:nth-child(n+6) { display: flex; }
  .subscribe { width: 112px; height: 34px; font-size: 13px; }
  .page { padding: 22px 24px 56px; grid-template-columns: minmax(0, 1fr) 300px; column-gap: 32px; }
  .story h1 { font-size: 34px; line-height: 1.08; }
  .standfirst { font-size: 18px; }
  .hero img { aspect-ratio: 16 / 10; }
  .lead h2 { font-size: 32px; }
  .top-row { grid-template-columns: 1fr; gap: 24px; }
  .more { grid-template-columns: 1fr 1fr; gap: 24px; }
  .who .meta .role, .who .meta .role + .dot { display: none; }
  .foot-inner { padding: 24px; }
}

/* ---------------------------------------------------------------- phone */
@media (max-width: 759px) {
  body { font-size: 17px; }
  .top-well { padding: 0 0 10px; }
  .demo-strip { position: static; transform: none; display: inline-block; margin: 8px 0 8px 16px;
    font-size: 10px; padding: 3px 9px; }
  .top-well .ad-wrap { margin-top: 0; }
  .mast-row { flex-wrap: wrap; height: auto; padding: 0 16px; }
  .mast-row > .menu, .mast-row > .wordmark, .mast-row > .mast-actions { height: 52px; }
  .menu { margin-right: 10px; }
  .wordmark { font-size: 22px; display: flex; align-items: center; }
  .search { display: none; }
  .subscribe { width: auto; height: 32px; padding: 0 12px; font-size: 12.5px; }
  .sections { order: 3; flex-basis: calc(100% + 32px); margin: 0 -16px; padding: 0 16px; height: 40px; gap: 20px;
    overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--rule); }
  .sections::-webkit-scrollbar { display: none; }
  .sections a { font-size: 13.5px; }
  .sections a:nth-child(n+6) { display: flex; }
  .page { grid-template-columns: minmax(0, 1fr); padding: 18px 20px 44px; column-gap: 0; }
  .rail { display: none; }
  .crumb { font-size: 11px; }
  .story h1 { font-size: 31px; line-height: 1.08; margin-bottom: 12px; }
  .standfirst { font-size: 18px; line-height: 1.4; margin-bottom: 18px; }
  .who { flex: 1; min-width: 0; }
  .share { gap: 6px; }
  .share-btn:first-child { display: none; }
  .share-btn { width: 32px; height: 32px; }
  .who .meta { white-space: normal; }
  .hero { margin-left: -20px; margin-right: -20px; }
  .hero img { aspect-ratio: 3 / 2; border-radius: 0; }
  .hero figcaption { padding: 0 20px; font-size: 12px; }
  .inline-ad { display: block; background: var(--well); margin: 26px -20px 28px; padding: 10px 0 16px;
    border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
  .inline-ad .ad-label { margin-bottom: 7px; }
  .story .body h2 { font-size: 23px; margin-top: 30px; }
  .dateline span:last-child { display: none; }
  .lead-img { display: block; margin: 0 -20px; }
  .lead-img img { aspect-ratio: 3 / 2; border-radius: 0; }
  .lead h2 { font-size: 29px; }
  .lead .standfirst { font-size: 17px; }
  .top-row, .more { grid-template-columns: 1fr; gap: 24px; }
  .more .card h3, .card h3 { font-size: 21px; }
  .foot-inner { padding: 24px 20px 32px; }
  .site-foot nav { flex-wrap: wrap; }
}
@media (min-width: 760px) { .only-phone { display: none !important; } }
@media (max-width: 759px) { .only-wide { display: none !important; } }
