/* CyberROI — design 1a "Wire" (design/CyberROI homepage concepts.zip).
   Dense, fast, timestamp-led. Tokens below are taken from the mockup; bump ASSET_VERSION
   (src/site/templates.mjs) after any change to this file. */

@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/libre-franklin-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 Franklin';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/libre-franklin-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;
}

:root {
  --ink: #16191d;
  --body: #3d434b;
  --muted: #5d646d;
  --rule: #e3e5e8;
  --soft: #f4f5f6;
  --placeholder: #d9dcdf;
  --teal: #0b6b6b;
  --teal-dark: #084f4f;
  --red: #c0262d;
  --amber: #a35a00;
  --pad: 40px;
  --font: 'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; text-wrap: pretty; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--pad); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--ink); color: #fff; padding: 8px 12px; font-weight: 700; }
.skip-link:focus { left: 8px; }

/* ---------- utility bar ---------- */
.utility { background: var(--soft); border-bottom: 1px solid var(--rule); font-size: 12px; color: var(--muted); }
.utility-row { display: flex; justify-content: space-between; align-items: center; min-height: 33px; gap: 16px; }
.utility-links { display: flex; align-items: center; gap: 20px; }
.utility-links a:hover { color: var(--ink); }
.langs { display: inline-flex; align-items: center; gap: 6px; }
.langs .sep { color: #b8bdc3; }
.langs a[aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- masthead ---------- */
.masthead { border-bottom: 1px solid var(--rule); background: #fff; }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.brand-nav { display: flex; align-items: center; gap: 36px; min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; background: var(--teal); flex: none; position: relative; }
.brand-mark::after { content: ''; position: absolute; right: 0; bottom: 0; width: 37%; height: 37%; background: var(--red); }
.brand-name { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.sections { display: flex; gap: 22px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.sections a[aria-current] { color: var(--teal); box-shadow: inset 0 -2px 0 var(--teal); }
.sections a:hover { color: var(--teal); text-decoration: none; }
.masthead-tools { display: flex; align-items: center; gap: 14px; flex: none; }
.icon-btn { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; color: var(--ink); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:hover { color: var(--teal); }
.btn { display: inline-block; font-size: 13px; font-weight: 700; padding: 9px 16px; background: var(--teal); color: #fff; }
.btn:hover { background: var(--teal-dark); text-decoration: none; }

/* ---------- live bar ---------- */
.live-bar { border-bottom: 1px solid var(--rule); font-size: 14px; }
.live-row { display: flex; align-items: center; gap: 14px; padding-top: 11px; padding-bottom: 11px; }
.live-label { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); display: inline-flex; align-items: center; gap: 6px; flex: none; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.live-text { font-weight: 600; min-width: 0; }
.live-time { color: var(--muted); flex: none; }

/* ---------- shared bits ---------- */
.kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); }
.byline { font-size: 13px; color: var(--muted); }
.byline a { color: var(--muted); }
.byline a:hover { color: var(--ink); }
.dot { margin: 0 6px; }
.via { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.ext { width: 11px; height: 11px; }
.lead > .via, .text-row > .via, .second > .via { margin-left: 0; }
.media { display: block; position: relative; background: var(--placeholder); overflow: hidden; }
.media.r169 { aspect-ratio: 16 / 9; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.empty { background: linear-gradient(135deg, #e6e9ec, #d3d8dc); }
.media-mark { position: absolute; left: 14px; bottom: 14px; width: 18px; height: 18px; background: var(--teal); opacity: .5; }
.empty-state { color: var(--muted); padding: 24px 0; }
.section-title, .rail-title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; padding-bottom: 10px; border-bottom: 3px solid var(--ink); }

/* ---------- home grid ---------- */
.home-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 290px; gap: 32px; padding-top: 28px; padding-bottom: 32px; }
.lead { display: flex; flex-direction: column; gap: 12px; }
.h-lead { font-size: 36px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.lead .dek { font-size: 16px; line-height: 1.5; color: var(--body); }
.jumps { list-style: none; border-top: 1px solid var(--rule); padding-top: 10px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 600; }
.jumps li::before { content: '• '; color: var(--teal); }
.lead-wire .h-lead a::after { content: ' ↗'; color: var(--muted); font-weight: 600; }
.col-second { display: flex; flex-direction: column; }
.second { display: flex; flex-direction: column; gap: 8px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.h-second { font-size: 20px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.text-row { padding: 16px 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 4px; }
.text-row:last-child { border-bottom: 0; }
.h-row { font-size: 17px; font-weight: 700; line-height: 1.25; }
.rail { border-left: 1px solid var(--rule); padding-left: 24px; display: flex; flex-direction: column; min-width: 0; }
.latest-list { list-style: none; }
.latest-row { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 14px; line-height: 1.35; }
.latest-row:last-child { border-bottom: 0; }
.latest-row time { color: var(--muted); font-variant-numeric: tabular-nums; }
.latest-row.fresh time { color: var(--red); font-weight: 600; }
.latest-row a { font-weight: 600; }
.latest-row .via { display: block; margin: 3px 0 0; }
.rail-note { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* ---------- category columns ---------- */
.cat-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--rule); }
.cat-col { display: flex; flex-direction: column; gap: 10px; }
.cat-col-title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; padding-bottom: 8px; border-bottom: 3px solid var(--teal); }
.cat-col-lead { font-size: 17px; font-weight: 700; line-height: 1.25; }
.cat-col-sub { font-size: 14px; color: var(--body); border-top: 1px solid var(--rule); padding-top: 10px; }

/* ---------- card grid ---------- */
.more { padding-top: 8px; padding-bottom: 48px; }
.more .section-title { margin-bottom: 20px; }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
.card { display: flex; flex-direction: column; gap: 8px; }
.h-card { font-size: 17px; font-weight: 700; line-height: 1.25; }
.more-link { margin-top: 24px; font-size: 14px; font-weight: 700; color: var(--teal); }

/* ---------- article ---------- */
.post-wrap { display: grid; grid-template-columns: minmax(0, 760px) 290px; justify-content: space-between; gap: 56px; padding-top: 32px; padding-bottom: 40px; }
.post-head { display: flex; flex-direction: column; gap: 14px; }
.h-post { font-size: 44px; font-weight: 800; line-height: 1.08; letter-spacing: -0.025em; }
.post-dek { font-size: 20px; line-height: 1.45; color: var(--body); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-top: 6px; font-size: 14px; }
.who { display: inline-flex; align-items: center; gap: 10px; }
.who:hover { text-decoration: none; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--soft); }
.who-name { display: block; font-weight: 700; }
.who-role { display: block; font-size: 12px; color: var(--muted); }
.post-time { color: var(--muted); }
.share { display: flex; gap: 6px; margin-left: auto; }
.share a { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border: 1px solid var(--rule); color: var(--body); }
.share a:hover { border-color: var(--ink); color: var(--ink); }
.share svg { width: 14px; height: 14px; }
.post-hero { margin: 24px 0 0; }
.post-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--placeholder); }
figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.post-body { font-size: 18px; line-height: 1.65; margin-top: 28px; }
.post-body > p, .post-body > ul, .post-body > ol { margin: 0 0 1.1em; }
.post-body > h2 { font-size: 26px; font-weight: 800; line-height: 1.2; letter-spacing: -0.015em; margin: 1.7em 0 .55em; scroll-margin-top: 16px; }
.post-body > h3 { font-size: 20px; font-weight: 700; line-height: 1.3; margin: 1.4em 0 .4em; }
.post-body a, .prose a, .sources a, .return-box a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.post-body a:hover { color: var(--teal-dark); }
.post-body ul, .post-body ol, .prose ul { padding-left: 1.3em; }
.post-body li { margin-bottom: .35em; }
.post-body li::marker { color: var(--teal); }
.post-body code { font-family: var(--mono); font-size: .86em; background: var(--soft); padding: .1em .35em; }
.post-body pre { background: #11161b; color: #e3e8ee; padding: 18px 20px; overflow-x: auto; font-size: 14px; line-height: 1.55; margin: 0 0 1.3em; }
.post-body pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
.post-body blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--teal); font-size: 21px; line-height: 1.45; font-weight: 600; color: var(--ink); }
.post-body figure { margin: 1.8em 0; }
.post-body figure img { width: 100%; background: var(--placeholder); }

/* "The Return" box */
.return-box { background: var(--soft); border-top: 3px solid var(--teal); padding: 20px 24px 22px; margin: 1.8em 0 2em; font-size: 16px; line-height: 1.5; }
.return-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.return-box h2 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--teal); }
.return-box h3 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 14px 0 4px; }
.return-box ul { padding-left: 1.2em; }
.return-box li { margin-bottom: 4px; }
.return-box li::marker { color: var(--teal); }
.verdict { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; padding: 5px 10px; background: var(--ink); color: #fff; }
.verdict-label { font-weight: 600; opacity: .8; }
.verdict[data-verdict="act-now"] { background: var(--red); }
.verdict[data-verdict="patch-this-cycle"] { background: var(--amber); }
.verdict[data-verdict="plan-for-it"] { background: var(--teal); }
.verdict[data-verdict="watch"] { background: var(--muted); }
.verdict[data-verdict="ignore-the-hype"] { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }

.sources { border-top: 1px solid var(--rule); margin-top: 36px; padding-top: 18px; font-size: 15px; }
.sources h2 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.sources p { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.sources ul { list-style: none; }
.sources li { padding: 6px 0; border-bottom: 1px solid var(--rule); }
.source-outlet { font-weight: 700; margin-right: 4px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.post-tags a { font-size: 13px; padding: 4px 10px; border: 1px solid var(--rule); color: var(--body); }
.post-tags a:hover { border-color: var(--ink); text-decoration: none; }
.author-box { display: flex; gap: 20px; margin-top: 32px; padding-top: 20px; border-top: 3px solid var(--ink); }
.author-box img { width: 96px; height: 96px; border-radius: 50%; flex: none; background: var(--soft); }
.author-box .label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.author-box .name { display: inline-block; font-size: 19px; font-weight: 800; margin: 2px 8px 2px 0; }
.nick { color: var(--muted); font-style: italic; font-weight: 500; }
.author-box p:last-child { color: var(--body); font-size: 15px; margin-top: 4px; }
.post-rail .latest { position: sticky; top: 16px; }

/* ---------- list pages ---------- */
.page-head { padding: 36px 0 24px; border-bottom: 3px solid var(--ink); display: flex; flex-direction: column; gap: 10px; }
.page-title { font-size: 40px; font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; }
.page-title .nick { font-size: 24px; letter-spacing: 0; }
.page-dek { font-size: 18px; color: var(--body); max-width: 760px; }
.list-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 48px; padding: 8px 0 48px; }
.list-grid.no-rail { grid-template-columns: minmax(0, 900px); }
.list-grid .rail { margin-top: 20px; }
.row { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.row-body { display: flex; flex-direction: column; gap: 6px; }
.h-row-lg { font-size: 22px; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.excerpt { font-size: 15px; color: var(--body); }
.profile { display: flex; gap: 32px; align-items: flex-start; }
.profile-img { width: 200px; height: 200px; flex: none; background: var(--soft); object-fit: cover; }
.profile-body { display: flex; flex-direction: column; gap: 10px; max-width: 760px; color: var(--body); font-size: 17px; }
.profile-body .page-title { color: var(--ink); }
.profile-role { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); }
.beats { display: flex; gap: 14px; flex-wrap: wrap; }
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 32px 0 56px; }
.person { display: flex; flex-direction: column; gap: 8px; color: var(--body); font-size: 15px; }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--soft); margin-bottom: 6px; }
.person .h-card { font-size: 22px; font-weight: 800; color: var(--ink); }
.count { font-size: 13px; color: var(--muted); }
.prose { max-width: 720px; font-size: 18px; line-height: 1.65; padding: 24px 0 56px; }
.prose h2 { font-size: 22px; font-weight: 800; margin: 1.6em 0 .4em; }
.prose p { margin: 0 0 1em; }
.prose .page-dek { font-size: 20px; }
.feed-url { font-family: var(--mono); font-size: 16px; background: var(--soft); padding: 12px 16px; }
.search-box input { width: 100%; max-width: 760px; font: inherit; font-size: 18px; padding: 12px 14px; border: 1px solid #c5cad0; border-radius: 0; }
.search-box input:focus { outline: 2px solid var(--teal); outline-offset: -1px; border-color: var(--teal); }
.not-found { border-bottom: 0; padding-bottom: 80px; }
.not-found .btn { margin-top: 12px; }

/* ---------- footer ---------- */
.site-footer { background: var(--soft); border-top: 1px solid var(--rule); padding: 32px 0 24px; font-size: 14px; color: var(--body); }
.footer-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
.footer-brand .brand-name { font-size: 22px; color: var(--ink); }
.footer-brand .brand-mark { width: 22px; height: 22px; }
.footer-tagline { margin-top: 8px; color: var(--muted); }
.footer-cats { display: grid; grid-template-columns: repeat(4, auto); gap: 8px 32px; font-weight: 600; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 16px; font-size: 12px; color: var(--muted); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .sections { gap: 16px; }
  .brand-nav { gap: 24px; }
  .home-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .home-grid > .rail { grid-column: 1 / -1; border-left: 0; padding-left: 0; }
  .home-grid .latest-list { columns: 2; column-gap: 32px; }
  .home-grid .latest-row { break-inside: avoid; }
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .post-wrap { grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; }
}
@media (max-width: 1000px) {
  /* Logo + tools on the first row, the section nav scrolling sideways underneath. */
  .masthead-row { flex-wrap: wrap; row-gap: 12px; padding-bottom: 12px; }
  .brand-nav { display: contents; }
  .brand { order: 1; }
  .masthead-tools { order: 2; margin-left: auto; }
  .sections { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .sections::-webkit-scrollbar { display: none; }
  .post-wrap { grid-template-columns: minmax(0, 1fr); }
  .post-rail { border-left: 0; padding-left: 0; }
  .post-rail .latest { position: static; }
  .list-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .list-grid .rail { border-left: 0; padding-left: 0; }
}
@media (max-width: 760px) {
  :root { --pad: 16px; }
  .utility-links > a { display: none; }
  .brand-name { font-size: 23px; }
  .brand-mark { width: 23px; height: 23px; }
  .btn { padding: 8px 12px; }
  .live-row { flex-wrap: wrap; row-gap: 2px; }
  .home-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 20px; }
  .h-lead { font-size: 28px; }
  .home-grid .latest-list { columns: 1; }
  .cat-columns { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .card-grid { grid-template-columns: minmax(0, 1fr); }
  .card { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; align-items: start; }
  .card .media { grid-row: span 3; }
  .h-post { font-size: 31px; }
  .post-dek { font-size: 18px; }
  .post-body { font-size: 17px; }
  .post-body > h2 { font-size: 23px; }
  .share { margin-left: 0; }
  .return-box { padding: 18px 16px; }
  .page-title { font-size: 31px; }
  .row { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 16px 0; }
  .row .excerpt { display: none; }
  .h-row-lg { font-size: 17px; }
  .profile { flex-direction: column; gap: 20px; }
  .profile-img { width: 140px; height: 140px; }
  .people { grid-template-columns: minmax(0, 1fr); }
  .footer-cats { grid-template-columns: repeat(2, auto); }
}
