/* newsroom.crowon.app (server/newsroom.mjs serves it as /newsroom/static/site.css). Laid out on the measured map of one
   real page, Apple Newsroom (docs/newsroom-study.md has the table; numbers below are its numbers at 1440px / 375px):
   - local nav 52px; 980px column; feed sections on light grey; section titles 32px / 700 (24px on phones)
   - tiles in three sizes, white, r32 (r24 on phones): hero 980×362 with the picture 643px wide on the left; 2-up 470px with
     a 264px picture; 3-up 303px with a 170px picture; 36px between tiles
   - "More from": two columns of rows, 132px square thumbnail, 21px / 700 headline, hairlines between rows
   - article: 653px column centred in 980px; eyebrow 12px / 700, date 14px / 600, headline 48px / 700, subhead 24px / 500,
     picture across 980px with a 12px caption and a download arrow, body 19px / 27px, headings 24px / 700
   Colours are CrowOn's own: near-black ink, a warm light grey page, white tiles; dark mode turns the page black and the
   tiles charcoal. No accent colour. Pictures are captures of CrowOn's own sites or CC0 photos. */
.nw {
  --page: #fff; --tile: #f5f5f7; --ink: #141518; --ink-2: #6b6c70; --line: #dcdcd8; --well: #ebebe7;
  --col: 980px; --narrow: 653px; --gut: 23px;
  color-scheme: light dark;
  background: #fff; color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, system-ui, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  font-size: 17px; line-height: 1.47; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
}
@media (prefers-color-scheme: dark) {
  .nw { --page: #000; --tile: #1c1c1e; --ink: #f2f2f0; --ink-2: #9a9a9f; --line: #333336; --well: #2a2a2d; background: #000; }
  .nw-name img { filter: invert(1); }
}
.nw.grey { background: var(--page); }
.nw:lang(ja) { line-height: 1.7; letter-spacing: 0; }
.nw *, .nw *::before, .nw *::after { box-sizing: border-box; }
html:has(> body.nw) { scrollbar-width: none; }
html:has(> body.nw)::-webkit-scrollbar, .nw ::-webkit-scrollbar { display: none; }
.nw * { scrollbar-width: none; }
.nw :where(h1, h2, h3, p, figure) { margin: 0; }
.nw :where(ul, ol) { margin: 0; padding: 0; list-style: none; }
.nw :where(a) { color: inherit; text-decoration: none; }
.nw img { display: block; max-width: 100%; }
.nw:lang(ja) :where(h1, h2, h3, p) { word-break: auto-phrase; line-break: strict; }
.nw :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.nw svg.g { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nw-col { max-width: calc(var(--col) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.nw-col.narrow, .nw-narrow { max-width: var(--narrow); margin-left: auto; margin-right: auto; }
.nw-col.narrow { max-width: calc(var(--narrow) + var(--gut) * 2); }
.nw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nw-skip { position: absolute; left: -999px; top: 8px; z-index: 50; padding: 8px 14px; background: var(--ink); color: var(--tile); }
.nw-skip:focus { left: 12px; }
@media (prefers-reduced-motion: reduce) { .nw *, .nw *::before, .nw *::after { transition: none !important; } }

/* ---------- local nav (52px): the Newsroom name left; topics, press and search right ---------- */
.nw-local { position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px); background: color-mix(in srgb, var(--tile) 82%, transparent); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.nw-local .nw-col { display: flex; align-items: center; gap: 24px; height: 52px; }
.nw-name { display: inline-flex; align-items: center; gap: 9px; margin-right: auto; font-size: 21px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
.nw-name img { width: 30px; height: auto; }
.nw-links { display: flex; gap: 20px; }
.nw-links a { font-size: 12px; color: var(--ink); opacity: .8; white-space: nowrap; }
.nw-links a:hover { opacity: 1; text-decoration: underline; }
.nw-links a[aria-current] { opacity: .5; }
.nw-find label { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 14px; background: var(--well); color: var(--ink-2); }
.nw-find svg.g { width: 14px; height: 14px; }
.nw-find input { width: 120px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 12px; outline: none; }
.nw-find input::-webkit-search-cancel-button { display: none; }
.nw-menu { display: none; }
.nw-menu > summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; margin-right: -12px; cursor: pointer; }
.nw-menu > summary::-webkit-details-marker { display: none; }
.nw-menu-panel { position: fixed; left: 0; right: 0; top: calc(52px + env(safe-area-inset-top, 0px)); padding: 16px var(--gut) 24px; background: var(--tile); border-bottom: 1px solid var(--line); }
.nw-menu-panel input { width: 100%; height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--well); color: var(--ink); font: inherit; font-size: 16px; }
.nw-menu-panel ul { margin-top: 8px; }
.nw-menu-panel a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 600; }
.nw-menu-panel a[aria-current] { color: var(--ink-2); }
@media (max-width: 833px) {
  .nw-links, .nw-find { display: none; }
  .nw-local .nw-col { height: 48px; }
  .nw-menu-panel { top: calc(48px + env(safe-area-inset-top, 0px)); }
  .nw-menu { display: block; }
  .nw-name { font-size: 19px; }
}

/* ---------- feed: section title, tiles in three sizes ---------- */
.nw-feed { padding: 40px 0 0; }
.nw-sechead { margin-bottom: 24px; font-size: 32px; font-weight: 700; line-height: 1.125; letter-spacing: .004em; }
.nw-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 36px; }
.nw-tile { grid-column: span 2; min-width: 0; }
.nw-tile.half { grid-column: span 3; }
.nw-tile.hero { grid-column: 1 / -1; }
.nw-tile a { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 32px; background: var(--tile); }
.nw-media { position: relative; overflow: hidden; background: var(--well); }
.nw-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.nw-media.none { display: grid; place-items: center; }
.nw-media.shot { padding: 7% 7% 0; }
.nw-media.shot img { border-radius: 8px 8px 0 0; box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(0, 0, 0, .08); background: #fff; }
.nw-row .nw-media.shot { padding: 14% 0 0 14%; }
.nw-row .nw-media.shot img { border-radius: 6px 0 0 0; object-position: left top; }
.nw-media.none span { font-size: 28px; font-weight: 700; color: var(--ink-2); }
.nw-tile.third .nw-media { height: 170px; }
.nw-tile.half .nw-media { height: 264px; }
.nw-desc { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.nw-tile.half .nw-desc, .nw-tile.hero .nw-desc { padding: 32px; }
.nw-eyebrow { font-size: 12px; font-weight: 700; line-height: 1.33; letter-spacing: .02em; text-transform: uppercase; color: var(--ink); }
.nw-eyebrow a:hover { text-decoration: underline; }
.nw-desc h3 { margin: 8px 0 20px; font-size: 21px; font-weight: 700; line-height: 1.19; letter-spacing: .01em; }
.nw:lang(ja) .nw-desc h3 { line-height: 1.42; letter-spacing: 0; }
.nw-tile.half .nw-desc h3 { font-size: 24px; line-height: 1.17; }
.nw:lang(ja) .nw-tile.half .nw-desc h3 { line-height: 1.42; }
.nw time { display: block; margin-top: auto; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.nw-tile.half time, .nw-tile.hero time { font-size: 17px; }
/* the hero: picture 643px of 980 on the left, words on the right, 362px tall */
@media (min-width: 834px) {
  .nw-tile.hero a { flex-direction: row; height: 362px; }
  .nw-tile.hero .nw-media { flex: 0 0 65.6%; }
  .nw-tile.hero .nw-eyebrow { font-size: 14px; }
  .nw-tile.hero .nw-desc h3 { margin-top: 10px; font-size: 32px; line-height: 1.125; }
  .nw:lang(ja) .nw-tile.hero .nw-desc h3 { font-size: 30px; line-height: 1.33; }
}
@media (max-width: 833px) {
  .nw-feed { padding-top: 32px; }
  .nw-sechead { font-size: 24px; line-height: 1.17; }
  .nw-tiles { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .nw-tile, .nw-tile.half { grid-column: 1 / -1; }
  .nw-tile a { border-radius: 24px; }
  .nw-tile .nw-media, .nw-tile.third .nw-media, .nw-tile.half .nw-media { height: auto; aspect-ratio: 328 / 185; }
  .nw-desc, .nw-tile.half .nw-desc, .nw-tile.hero .nw-desc { padding: 24px; }
  .nw-desc h3, .nw-tile.half .nw-desc h3 { font-size: 21px; line-height: 1.19; }
  .nw:lang(ja) .nw-desc h3, .nw:lang(ja) .nw-tile.half .nw-desc h3 { line-height: 1.42; }
  .nw-tile.half time, .nw-tile.hero time { font-size: 14px; }
}

/* ---------- "@crowon から" (Apple's In the Loop): tall cards in a sideways row that runs past the column ---------- */
.nw-loop { padding: 80px 0 0; }
.nw-loop-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.nw-loop-track { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: max(var(--gut), calc((100vw - var(--col)) / 2)); }
.nw-loop-track ul { display: flex; gap: 20px; width: max-content; padding: 0 max(var(--gut), calc((100vw - var(--col)) / 2)); }
.nw-loop-track li { scroll-snap-align: start; }
.nw-card { display: flex; flex-direction: column; width: 264px; height: 100%; overflow: hidden; border-radius: 24px; background: var(--tile); }
.nw-card > img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: #000; }
.nw-card > div { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.nw-by { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.nw-by img { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); }
.nw-by small { margin-left: 6px; font-weight: 400; color: var(--ink-2); }
.nw-card-t { margin: 10px 0 14px; font-size: 15px; line-height: 1.4; }
.nw-card time { font-size: 13px; }
.nw-loop-nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.nw-loop-nav button { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--well); color: var(--ink); cursor: pointer; }
.nw-loop-nav button:hover { background: var(--line); }
.nw-loop-nav button:disabled { opacity: .35; cursor: default; }
@media (max-width: 833px) { .nw-loop { padding-top: 56px; } .nw-card { width: 240px; } .nw-loop-nav { display: none; } }

/* ---------- "More from": two columns of rows with square thumbnails ---------- */
.nw-more { padding: 80px 0 0; }
.nw-rows { display: grid; column-gap: 66px; }
@media (min-width: 834px) { .nw-more .nw-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nw-rows li { border-top: 1px solid var(--line); }
.nw-row { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 28px; padding: 32px 0; }
.nw-row .nw-media { aspect-ratio: 1; border-radius: 16px; }
.nw-row .nw-media.none span { font-size: 15px; }
.nw-row .nw-eyebrow { color: var(--ink-2); font-weight: 600; }
.nw-row h3 { margin: 6px 0 8px; font-size: 21px; font-weight: 700; line-height: 1.19; }
.nw:lang(ja) .nw-row h3 { font-size: 19px; line-height: 1.45; }
.nw-row time { margin-top: 0; }
.nw-row:hover h3 { text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }
.nw-rows.plain .nw-row { grid-template-columns: 163px minmax(0, 1fr); }
.nw-rows.plain .nw-row h3 { font-size: 19px; line-height: 1.21; }
.nw:lang(ja) .nw-rows.plain .nw-row h3 { line-height: 1.45; }
@media (max-width: 833px) {
  .nw-more { padding-top: 56px; }
  .nw-row, .nw-rows.plain .nw-row { grid-template-columns: 105px minmax(0, 1fr); gap: 16px; padding: 20px 0; }
  .nw-row .nw-media { border-radius: 12px; }
  .nw-row h3, .nw-rows.plain .nw-row h3 { font-size: 19px; line-height: 1.21; }
}
.nw-archive { padding: 48px 0 88px; text-align: center; }
.nw-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 18px; border: 0; border-radius: 18px; background: var(--well); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .2s; }
.nw-pill:hover { background: var(--line); }
.nw-pill.dark { min-height: 44px; padding: 0 24px; border-radius: 22px; background: var(--ink); color: var(--tile); font-size: 17px; }
.nw-pill.dark:hover { opacity: .85; }
.nw-empty { padding: 48px 32px; border-radius: 32px; background: var(--tile); text-align: center; }
.nw-empty h3 { font-size: 24px; font-weight: 700; }
.nw-empty p { margin: 8px auto 20px; max-width: 32em; color: var(--ink-2); }

/* ---------- article: 653px column in 980px ---------- */
.nw-preview { padding: 10px var(--gut); background: var(--ink); color: var(--tile); font-size: 14px; font-weight: 600; text-align: center; }
.nw-article { padding: 56px 0 96px; }
.nw-date { margin-top: 4px; }
.nw-date time { margin: 0; }
.nw-headline { margin-top: 20px; font-size: 48px; font-weight: 700; line-height: 1.083; letter-spacing: -0.003em; }
.nw:lang(ja) .nw-headline { font-size: 44px; line-height: 1.32; letter-spacing: 0; }
.nw-subhead { margin-top: 24px; font-size: 24px; font-weight: 500; line-height: 1.17; }
.nw:lang(ja) .nw-subhead { font-size: 22px; line-height: 1.55; }
.nw-share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.nw-share a, .nw-share button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 0; border-radius: 17px; background: var(--well); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.nw-share a:hover, .nw-share button:hover { background: var(--line); }
.nw-share svg.g { width: 15px; height: 15px; }
.nw-figure { margin: 40px 0 0; }
.nw-figure img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--well); }
.nw-figure.shot { padding: 48px 48px 0; background: var(--page); border-radius: 0; }
.nw-figure.shot img { border-radius: 10px 10px 0 0; box-shadow: 0 0 0 1px var(--line), 0 20px 48px rgba(0, 0, 0, .1); }
.nw-figure.shot figcaption { margin-top: 0; padding: 14px 0 18px; }
.nw-figure figcaption { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; max-width: var(--narrow); margin: 12px auto 0; font-size: 12px; font-weight: 600; line-height: 1.33; color: var(--ink-2); }
.nw-figure figcaption a { display: grid; place-items: center; width: 32px; height: 32px; margin-top: -6px; border-radius: 50%; color: var(--ink); }
.nw-figure figcaption a:hover { background: var(--well); }
.nw-body { margin-top: 48px; font-size: 19px; line-height: 1.42; }
.nw:lang(ja) .nw-body { font-size: 18px; line-height: 1.85; }
.nw-body > * + * { margin-top: 1em; }
.nw-body h2 { margin-top: 1.6em; font-size: 24px; font-weight: 700; line-height: 1.17; scroll-margin-top: 80px; }
.nw:lang(ja) .nw-body h2 { line-height: 1.5; }
.nw-body ul { padding-left: 1.2em; list-style: disc; }
.nw-body ol { padding-left: 1.3em; list-style: decimal; }
.nw-body li + li { margin-top: .4em; }
.nw-body b { font-weight: 700; }
.nw-body a { text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.nw-note { font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.nw-contacts { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.nw-contacts h2, .nw-related h2 { font-size: 24px; font-weight: 700; line-height: 1.17; }
.nw-contacts p { margin-top: 10px; color: var(--ink-2); }
.nw-contacts a { color: var(--ink); text-decoration: underline; text-underline-offset: .18em; }
.nw-related { margin-top: 56px; }
.nw-related h2 { margin-bottom: 16px; }
@media (max-width: 833px) {
  .nw-article { padding: 32px 0 64px; }
  .nw-headline, .nw:lang(ja) .nw-headline { font-size: 32px; line-height: 1.16; }
  .nw:lang(ja) .nw-headline { line-height: 1.4; }
  .nw-subhead, .nw:lang(ja) .nw-subhead { font-size: 19px; line-height: 1.42; }
  .nw-figure { margin: 32px calc(var(--gut) * -1) 0; }
  .nw-figure figcaption { padding: 0 var(--gut); }
  .nw-body { margin-top: 32px; font-size: 17px; }
  .nw:lang(ja) .nw-body { font-size: 17px; }
  .nw-body h2 { font-size: 21px; }
}

/* ---------- pages without tiles (archive, search, 404) ---------- */
.nw-page { padding: 56px 0 96px; }
.nw-h1 { margin-top: 12px; font-size: 48px; font-weight: 700; line-height: 1.083; }
.nw:lang(ja) .nw-h1 { font-size: 40px; line-height: 1.35; }
.nw-sub { margin: 16px 0 24px; font-size: 19px; color: var(--ink-2); }
.nw-month { margin: 48px 0 8px; font-size: 24px; font-weight: 700; }
@media (max-width: 833px) { .nw-h1, .nw:lang(ja) .nw-h1 { font-size: 32px; } .nw-page { padding: 32px 0 64px; } }

/* ---------- press resources: files as figures with a download arrow ---------- */
.nw-assets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.nw-asset > div { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 24px; }
.nw-asset.light > div { background: #f4f4f2; }
.nw-asset.dark > div { background: #141518; }
.nw-asset img { width: 34%; max-height: 50%; object-fit: contain; }
.nw-asset figcaption { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.nw-asset figcaption b { display: block; font-size: 15px; color: var(--ink); }
.nw-asset figcaption a { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; color: var(--ink); }
.nw-asset figcaption a:hover { background: var(--well); }
@media (prefers-color-scheme: dark) { .nw-asset.light > div { background: #f4f4f2; } .nw-asset.dark > div { box-shadow: inset 0 0 0 1px var(--line); } }
@media (max-width: 600px) { .nw-assets { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.nw-form { display: grid; gap: 16px; margin-top: 24px; }
.nw-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.nw-form :where(input, textarea) { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--tile); color: var(--ink); font: inherit; font-size: 17px; font-weight: 400; }
.nw-form :where(input, textarea):focus { outline: none; border-color: var(--ink); }
.nw-form textarea { resize: vertical; min-height: 160px; }
.nw-form .nw-pill { justify-self: start; margin-top: 8px; }
.nw-trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.nw-flash { padding: 12px 16px; border-radius: 12px; background: var(--well); font-size: 15px; }
.nw-flash.bad { box-shadow: inset 3px 0 0 var(--ink); }

/* ---------- footer: breadcrumb, three columns, legal line (12px, Apple's footer scale) ---------- */
.nw-foot { padding: 20px 0 calc(24px + env(safe-area-inset-bottom)); background: var(--page); border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.nw.grey .nw-foot { border-top-color: var(--line); }
.nw-crumb { display: flex; align-items: center; gap: 6px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.nw-crumb svg.g { width: 12px; height: 12px; }
.nw-crumb a:hover { color: var(--ink); text-decoration: underline; }
.nw-foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 20px 0; }
@media (max-width: 600px) { .nw-foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nw-foot h2 { margin-bottom: 8px; font-size: 12px; font-weight: 600; color: var(--ink); }
.nw-foot li a { display: block; padding: 3px 0; }
.nw-foot li a:hover { color: var(--ink); text-decoration: underline; }
.nw-legal { display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
@media (max-width: 833px) { .nw-figure.shot { padding: 24px 24px 0; } .nw-figure.shot figcaption { padding: 12px 0 14px; } }
/* a picture inside the article text: out of the 653px column to the full 980px (Apple's in-article images) */
.nw-body .nw-inline { width: min(var(--col), 100vw - var(--gut) * 2); margin: 40px 0 8px; margin-left: 50%; transform: translateX(-50%); font-size: 12px; line-height: 1.33; }
@media (max-width: 833px) { .nw-body .nw-inline { width: 100vw; } }
