/* qwoowoo: a plain headline board. Light, teal ink from the logo, gold for small details.
   Headlines only, spacing instead of lines, no cards, boxes, shadows or labels. */
:root {
  --bg: #fbfaf6;            /* soft off-white */
  --ink: #0d3b3e;           /* the logo's dark teal */
  --link: #0d3b3e;
  --visited: #6b8587;       /* muted teal-grey */
  --muted: #7a8c8d;
  --gold: #b08f45;          /* the logo's gold rings: hover and small details */
  --accent: #6e1f28;        /* oxblood: ACCENT headlines and the HOT desk */
  --font: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --hl: 1.02rem;            /* column headline size */
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* the hidden attribute always wins */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.3 var(--font); }
a { color: var(--link); text-decoration-color: color-mix(in srgb, var(--ink) 55%, transparent); }
a:visited { color: var(--visited); }
a:hover, a:focus-visible { color: var(--ink); text-decoration-color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.qw-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
img { display: block; max-width: 100%; height: auto; }

/* ---------- the top: TEASER (quiet) → logo (the anchor, moderate) → MAIN (the largest thing) ----------
   Lots of room between them, nothing boxed or ruled off. */
.qw-top { text-align: center; padding: calc(env(safe-area-inset-top) + 28px) 16px 8px; }
/* TEASER: one quiet line in gold under the logo. It never wraps: past the cap it's cut with "…" by qwoowoo.js,
   and on a very narrow screen the browser adds the "…" itself. */
.qw-teaser { margin: 34px auto 0; max-width: min(60ch, 100%); font-size: var(--hl); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qw-teaser .qw-h, .qw-teaser .qw-h:visited { font-weight: 400; color: var(--gold); text-decoration-color: color-mix(in srgb, var(--gold) 60%, transparent); white-space: nowrap; overflow-wrap: normal; }
.qw-teaser .qw-h:hover { color: var(--ink); }
.qw-logo { display: inline-block; text-decoration: none; }
/* The logo leads: on phones it's the most dominant thing at the top (wider and visually heavier than MAIN);
   on desktop it's 460px wide. */
.qw-logo img { width: min(86vw, 380px); height: auto; margin: 0 auto; }
@media (min-width: 760px) { .qw-logo img { width: 460px; } }
.qw-tag { margin: 12px 0 0; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.qw-fresh { margin: 4px 0 0; font-size: .7rem; color: var(--gold); letter-spacing: .04em; }
/* SHARE buttons: the whole site (by the logo) and each MARQUETRY article */
.qw-sharebtn, .qw-siteshare { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--gold); border-radius: 999px; background: none; padding: 4px 12px; color: var(--ink); font: inherit; font-weight: 700; letter-spacing: .04em; cursor: pointer; }
.qw-siteshare { font-size: .72rem; margin-left: 4px; vertical-align: middle; }
.qw-siteshare::before { content: ""; width: 13px; height: 13px; background: currentColor; -webkit-mask: var(--qw-share-icon) center / contain no-repeat; mask: var(--qw-share-icon) center / contain no-repeat; }
:root { --qw-share-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v12M7.5 7.5L12 3l4.5 4.5M5 13v6a2 2 0 002 2h10a2 2 0 002-2v-6' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.qw-sharebtn { font-size: .82rem; }
.qw-sharebtn:hover, .qw-sharebtn:focus-visible, .qw-siteshare:hover, .qw-siteshare:focus-visible { background: var(--gold); color: #fff; outline: none; }
.qw-sharerow { margin: 0 0 22px; text-align: left; }
.qw-sharebottom { margin: 40px 0 0; text-align: center; }
.qw-mainhl { max-width: 980px; margin: 40px auto 0; }
.qw-mainhl .qw-mainimg { margin: 0 auto 18px; }
.qw-mainhl .qw-h { font-weight: 700; font-size: clamp(1.9rem, 5.2vw, 3.1rem); line-height: 1.12; text-decoration-thickness: 2px; text-underline-offset: 5px; }
@media (max-width: 759px) { .qw-mainhl .qw-h { font-size: 1.4rem; line-height: 1.18; text-underline-offset: 4px; } }   /* phones: MAIN steps back so the logo leads */
.qw-mainline { margin: 0; overflow-wrap: break-word; }

.qw-main { max-width: 1100px; margin: 0 auto; padding: 30px 16px 32px; }
.qw-status { font-size: .8rem; color: var(--muted); margin: 0 0 12px; text-align: center; }

/* SECOND: under MAIN, centred */
.qw-second:empty { display: none; }
.qw-second { text-align: center; padding: 0 0 28px; }
.qw-second .qw-item { margin: 0 auto 14px; max-width: 46ch; }
.qw-second .qw-h { font-size: calc(var(--hl) * 1.35); line-height: 1.2; }

/* headlines everywhere: the headline alone (no source names) */
.qw-h { font-weight: 700; font-size: var(--hl); line-height: 1.28; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; overflow-wrap: break-word; }
.qw-h.qw-red, .qw-h.qw-red:visited { color: var(--accent); text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); }

/* ---------- the HOT desk: breaking real news, small, oxblood, tight, never an image ----------
   The very top of the page, above the logo (like Drudge). The logo, tagline, TEASER and MAIN stay centred below it.
   Desktop: a narrow left-aligned column, about one headline column wide, its left edge lined up with the columns
   (the box below has the same 1240px / 28px geometry as .qw-main). Phones: full width and compact.
   No HOT headlines: hidden, and it takes no space at all. */
.qw-hot { max-width: 1208px; margin: 0 auto 22px; padding: 0 12px; text-align: left; }   /* 16px header + 12px = the columns' 28px edge */
/* Each HOT headline is exactly one line at 12px (regular headlines are about 16px): anything too long is cut with
   "…" and the full headline shows on hover. Desktop: 480px wide, enough for about nine headlines in ten.
   (The Hopper warns with ⚠ when a HOT headline won't fit: keep HOT_WIDTH and HOT_FONT in hopper-lib.js in step.) */
.qw-hotlist { list-style: none; margin: 0; padding: 0; }
.qw-hotitem { padding: 0 0 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .75rem; line-height: 1.4; color: var(--accent); }
.qw-hotitem .qw-h, .qw-hotitem .qw-h:visited { font-size: .75rem; line-height: 1.4; white-space: nowrap; overflow-wrap: normal; color: var(--accent); text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.qw-hotitem .qw-h:hover { color: var(--ink); }
@media (max-width: 759px) { .qw-hot { padding: 0; margin-bottom: 18px; } }
@media (min-width: 760px) { .qw-hotlist { max-width: 480px; } }
.qw-h.qw-caps { text-transform: uppercase; letter-spacing: .01em; }
.qw-new { display: inline-block; width: .42em; height: .42em; margin: 0 0 .12em .35em; border-radius: 50%; background: var(--gold); vertical-align: middle; }
/* ---------- images: wide 16:9 banners, at the size picked in the Hopper ----------
   MAIN: Small 360px, Medium 560px (default), Large 760px wide at most, centred.
   Columns: Small 50%, Medium 70% (default), Large 100% of the column. Phones: always the full column width. */
.qw-pic { margin: 0 0 8px; }
.qw-imglink { display: block; }
.qw-pic img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.qw-credit { margin: 3px 0 0; font-size: .62rem; line-height: 1.3; color: var(--muted); letter-spacing: .02em; overflow-wrap: break-word; }
.qw-mainpic { margin: 0 auto; }
.qw-mainpic.qw-size-s { max-width: 360px; }
.qw-mainpic.qw-size-m { max-width: 560px; }
.qw-mainpic.qw-size-l { max-width: 760px; }
.qw-mainpic .qw-credit { text-align: center; }
.qw-colpic { width: 100%; }
@media (min-width: 760px) {
  .qw-colpic.qw-size-s { width: 50%; }
  .qw-colpic.qw-size-m { width: 70%; }
  .qw-colpic.qw-size-l { width: 100%; }
}

/* a shared link (?h=…) scrolls to its headline and lights it up briefly */
.qw-flash { animation: qw-flash 2.6s ease-out 1; border-radius: 3px; }
@keyframes qw-flash { 0%, 35% { background: color-mix(in srgb, var(--gold) 30%, transparent); } 100% { background: transparent; } }

/* the columns: fill column one top to bottom, then two, then three; straight down on phones */
.qw-board { list-style: none; margin: 0; padding: 0; }
.qw-board li { break-inside: avoid; padding: 9px 0; overflow-wrap: break-word; }
@media (min-width: 760px) {
  .qw-top { padding-top: calc(env(safe-area-inset-top) + 44px); }
  .qw-teaser { margin-top: 48px; }
  .qw-mainhl { margin-top: 52px; }
  .qw-main { max-width: 1240px; padding: 44px 28px 40px; }
  .qw-board { columns: 2; column-gap: 64px; }
  .qw-board li { padding: 0 0 22px; }
  .qw-second { padding-bottom: 36px; }
  .qw-second .qw-item { max-width: 64ch; }
}
@media (min-width: 1040px) {
  .qw-board { columns: 3; column-gap: 80px; }
}

.qw-more { display: block; margin: 18px auto 0; padding: 12px 22px; min-height: 44px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 700 .85rem var(--font); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.qw-more:hover { border-color: var(--gold); color: var(--gold); }

.qw-soon { text-align: center; padding: 48px 8px; }
.qw-soon h2 { margin: 0 0 8px; font-size: 1.8rem; text-transform: uppercase; }
.qw-soon p { margin: 0; color: var(--muted); }

.qw-foot { text-align: center; padding: 36px 16px calc(env(safe-area-inset-bottom) + 28px); font-size: .78rem; color: var(--muted); }
.qw-foot p { margin: 0 0 8px; }
.qw-foot nav { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.qw-foot a, .qw-foot a:visited { color: var(--muted); }
.qw-foot a:hover { color: var(--gold); }
.qw-contact a, .qw-contact a:visited { color: var(--ink); }
.qw-suggest a, .qw-suggest a:visited { color: var(--ink); font-weight: 700; }

.qw-toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 20px); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 9px 16px; border-radius: 4px; font-size: .85rem; opacity: 0; transition: opacity .2s; pointer-events: none; }
.qw-toast.show { opacity: 1; }

/* with HOT showing, it starts near the top edge, and its own bottom margin gives the logo its room */
.qw-top:has(> .qw-hot:not([hidden])) { padding-top: calc(env(safe-area-inset-top) + 14px); }
@media (min-width: 760px) { .qw-top:has(> .qw-hot:not([hidden])) { padding-top: calc(env(safe-area-inset-top) + 18px); } .qw-hot { margin-bottom: 30px; } }

/* ---------- portrait images: shown whole (never cropped), left-aligned, height set by the Hopper's S / M / L ----------
   The figure spans its container; the image keeps its own shape, sits on the left, and never grows past --qw-tall. */
.qw-pic.qw-tall { width: 100%; max-width: 100%; margin-left: 0; margin-right: 0; --qw-tall: 380px; }
.qw-pic.qw-tall .qw-imglink { width: fit-content; max-width: 100%; }
.qw-pic.qw-tall img { display: block; width: auto; max-width: 100%; height: auto; max-height: var(--qw-tall); aspect-ratio: auto; object-fit: contain; margin: 0; }
.qw-pic.qw-tall .qw-credit { text-align: left; }
.qw-colpic.qw-tall.qw-size-s { --qw-tall: 200px; }
.qw-colpic.qw-tall.qw-size-m { --qw-tall: 280px; }
.qw-colpic.qw-tall.qw-size-l { --qw-tall: 380px; }
.qw-mainpic.qw-tall.qw-size-s { --qw-tall: 280px; }
.qw-mainpic.qw-tall.qw-size-m { --qw-tall: 380px; }
.qw-mainpic.qw-tall.qw-size-l { --qw-tall: 500px; }
.qw-storypic.qw-tall.qw-size-s, .qw-artpic.qw-tall.qw-size-s { --qw-tall: 300px; }
.qw-storypic.qw-tall.qw-size-m, .qw-artpic.qw-tall.qw-size-m { --qw-tall: 420px; }
.qw-storypic.qw-tall.qw-size-l, .qw-artpic.qw-tall.qw-size-l { --qw-tall: 540px; }
@media (max-width: 759px) {
  .qw-pic.qw-tall.qw-size-s { --qw-tall: 240px; }
  .qw-pic.qw-tall.qw-size-m { --qw-tall: 320px; }
  .qw-pic.qw-tall.qw-size-l { --qw-tall: 420px; }
}

/* ---------- story pages: /story/<slug> ---------- */
.qw-story { max-width: 680px; margin: 0 auto; padding: 18px 16px 36px; }
.qw-storyh { margin: 10px 0 22px; text-align: center; font-size: clamp(1.6rem, 5vw, 2.5rem); line-height: 1.14; color: var(--ink); }
.qw-storypic { margin: 0 auto 22px; max-width: 680px; }
.qw-take { font-size: 1.1rem; line-height: 1.6; }
.qw-take p { margin: 0 0 14px; }
.qw-source { margin: 22px 0 8px; color: var(--muted); font-size: .9rem; }
.qw-source b { color: var(--ink); }
.qw-original { margin: 0; }
.qw-readit, .qw-readit:visited { display: inline-block; padding: 12px 18px; border: 2px solid var(--ink); color: var(--ink); font-weight: 700; text-decoration: none; }
.qw-readit:hover, .qw-readit:focus-visible { border-color: var(--gold); color: var(--ink); }
.qw-storypage .qw-top { padding-bottom: 0; }
@media (min-width: 760px) { .qw-storypage .qw-logo img { width: 300px; } }

/* ---------- Suggest a story ---------- */
.qw-form { max-width: 520px; margin: 18px auto 0; padding: 0 16px 8px; text-align: left; }
.qw-form h1 { font-size: 1.5rem; margin: 0 0 6px; text-align: center; }
.qw-form .qw-lead { margin: 0 0 18px; color: var(--muted); text-align: center; }
.qw-form label { display: block; margin: 16px 0 6px; font-weight: 700; }
.qw-form label small { font-weight: 400; color: var(--muted); }
.qw-form input[type=url], .qw-form textarea { width: 100%; padding: 10px 12px; border: 1px solid #c4cfcd; border-radius: 4px; background: #fff; color: var(--ink); font: inherit; }
.qw-form textarea { min-height: 96px; resize: vertical; }
.qw-form input:focus-visible, .qw-form textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.qw-form button { margin-top: 18px; min-height: 44px; padding: 12px 22px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); font: 700 .85rem var(--font); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.qw-form button:disabled { opacity: .6; cursor: wait; }
.qw-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }   /* the honeypot: people never see it */
.qw-msg { margin: 16px 0 0; padding: 12px 14px; border-left: 3px solid var(--gold); background: color-mix(in srgb, var(--gold) 10%, transparent); font-weight: 700; }
.qw-msg.qw-err { border-left-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); color: var(--accent); }
.qw-fine { margin: 18px 0 0; font-size: .78rem; color: var(--muted); }

/* ---------- MARQUETRY: our own articles ---------- */
/* on the board: a small, restrained label before the headline (an inline-block, so the link's underline skips it) */
.qw-h.qw-isqube::before, .qw-h.qw-ishumor::before { content: "MARQUETRY"; display: inline-block; margin: 0 .55em 0 0; font-size: .62rem; font-weight: 700; letter-spacing: .16em; line-height: 1; vertical-align: .2em; color: var(--gold); text-transform: none; }
.qw-mainhl .qw-h.qw-isqube::before, .qw-mainhl .qw-h.qw-ishumor::before { font-size: .72rem; vertical-align: .55em; }
.qw-h.qw-ishumor::before { content: "HUMOR"; }   /* same label, different word (set per article in the Hopper) */

/* the article page: a comfortable reading column, generous spacing, type that scales with the screen */
.qw-article { max-width: 680px; margin: 0 auto; padding: 22px 18px 40px; }
.qw-kicker { margin: 0 0 12px; text-align: left; font-size: .7rem; font-weight: 700; letter-spacing: .2em; color: var(--gold); }
.qw-arth { margin: 0 0 14px; text-align: left; font-size: clamp(1.225rem, 4.2vw, 2.03rem); line-height: 1.12; color: var(--ink); overflow-wrap: break-word; hyphens: auto; text-wrap: pretty; }
.qw-dek { margin: 0 0 16px; max-width: 34em; text-align: left; font-size: clamp(1.05rem, 2.6vw, 1.25rem); line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.qw-byline .qw-nw { white-space: nowrap; }
.qw-byline { margin: 0 0 30px; text-align: left; font-size: .82rem; letter-spacing: .02em; color: var(--muted); }
/* the optional narration (only when public/audio/<slug>.mp3 exists): a quiet label and the browser's own player,
   left-aligned under the byline. Its height is fixed, so nothing moves when it loads or plays. */
.qw-byline.qw-hasaudio { margin-bottom: 16px; }
.qw-listen { margin: 0 0 30px; text-align: left; }
.qw-listenlabel { margin: 0 0 6px; font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.qw-audio { display: block; width: 100%; max-width: 360px; height: 40px; margin: 0; border-radius: 20px; background: #efece3; color-scheme: light; }
.qw-audio::-webkit-media-controls-panel { background: #efece3; }
.qw-audio::-webkit-media-controls-enclosure { border-radius: 20px; background: #efece3; }
.qw-audio:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.qw-artpic { margin: 0 auto 30px; max-width: 680px; }
.qw-essay { font-family: Georgia, "Iowan Old Style", "Times New Roman", serif; font-size: clamp(1.06rem, 2.4vw, 1.2rem); line-height: 1.72; color: #1d2b2c; }
.qw-essay p { margin: 0 0 1.25em; }
.qw-essay blockquote { margin: 1.6em 0; padding: .1em 0 .1em 1.2em; border-left: 3px solid var(--gold); color: var(--ink); font-style: italic; }
.qw-essay blockquote p:last-child { margin-bottom: 0; }
.qw-essay hr { margin: 2.2em auto; width: 30%; border: 0; border-top: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); }
.qw-essay h2, .qw-essay h3 { margin: 1.8em 0 .6em; font-family: var(--font); line-height: 1.25; color: var(--ink); }
.qw-essay h2 { font-size: 1.3em; } .qw-essay h3 { font-size: 1.1em; }
.qw-essay ul, .qw-essay ol { margin: 0 0 1.25em; padding-left: 1.4em; }
.qw-essay li { margin: 0 0 .4em; }
.qw-essay a, .qw-essay a:visited { color: var(--ink); text-decoration-color: var(--gold); }
.qw-essay code { font-size: .9em; }
.qw-sources { margin: 44px 0 0; padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--ink) 15%, transparent); }
.qw-sources h2 { margin: 0 0 10px; font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.qw-sources ul { margin: 0; padding: 0; list-style: none; }
.qw-sources li { margin: 0 0 8px; font-size: .9rem; line-height: 1.4; overflow-wrap: anywhere; }
.qw-sources a, .qw-sources a:visited { color: var(--muted); }
.qw-sources a:hover { color: var(--ink); }
.qw-back { margin: 36px 0 0; text-align: center; font-size: .9rem; }
.qw-back a, .qw-back a:visited { color: var(--ink); }
.qw-previewnote { margin: 0; padding: 8px 12px; text-align: center; font-size: .8rem; font-weight: 700; background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--ink); }
