/* THE BRIEF (working title) — crypto/AI news desk
   Genre: newsroom. NOT the luxe family. Light-first, dense, fast.
   Palette: paper #FCFCFA · ink #101214 · rule #E4E4DF · signal blue #2B7FDE · gold #B7791F
   (accents matched to the chrome-plus cover art: steel/glass, one gold glow, one blue glow) */
* { box-sizing: border-box; }
:root {
  --paper: #F3F3EE;
  --card: #FFFFFF;
  --ink: #101214;
  --ink-2: #4A4F55;
  --ink-3: #8A9097;
  --rule: #E4E4DF;
  --rule-dark: #101214;
  --signal: #2B7FDE;
  --signal-dark: #1C5FAE;
  --amber: #B7791F;
  --masthead: #0C0E10;
  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Serif 4", Georgia, serif;
  --mono: "Spline Sans Mono", ui-monospace, monospace;
}
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 1.02rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---- header ---- */
.hdr {
  background: var(--masthead); color: #fff;
  position: sticky; top: 0; z-index: 60;
  border-bottom: 1px solid #23262A;
}
.hdr .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 18px;
}
.wordmark {
  font-family: var(--display); font-weight: 800; font-size: clamp(1.02rem, 4.4vw, 1.45rem);
  letter-spacing: -0.02em; margin: 0; line-height: 1; color: #fff; text-decoration: none;
  white-space: nowrap;
}
.wordmark .tick { color: var(--signal); font-weight: 700; }
.icon-btn {
  background: none; border: none; cursor: pointer; color: #C9CDD2;
  width: 40px; height: 40px; border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:hover, .icon-btn.on { color: #fff; background: #1C2024; }
.icon-btn svg { width: 21px; height: 21px; }
.panel {
  display: none; position: fixed; z-index: 55; left: 0; right: 0; top: 65px;
  background: var(--masthead); color: #E7EAED;
  border-bottom: 1px solid #23262A;
  box-shadow: 0 24px 40px rgba(0,0,0,0.35);
  max-height: calc(100vh - 65px); overflow-y: auto;
}
.panel.open { display: block; }
.panel .wrap { padding: 20px 24px 26px; }
.panel-label {
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3); margin: 18px 0 8px;
}
.panel-label:first-child { margin-top: 4px; }
.menu-links { display: flex; flex-direction: column; }
.menu-links a {
  font-family: var(--display); font-weight: 700; font-size: 1.3rem;
  color: #fff; text-decoration: none; padding: 8px 0;
  border-bottom: 1px solid #1C2024;
}
.menu-links.small a { font-size: 0.95rem; font-weight: 600; color: #C9CDD2; }
.menu-links a:hover { color: var(--signal); }
.menu-foot { font-family: var(--display); color: var(--ink-3); font-size: 0.85rem; margin: 22px 0 0; line-height: 1.5; }
.search-panel input {
  width: 100%; box-sizing: border-box;
  font-family: var(--display); font-size: 1.15rem; font-weight: 600;
  background: #1C2024; color: #fff; border: 1px solid #2A2E33; border-radius: 4px;
  padding: 13px 16px; outline: none;
}
.search-panel input:focus { border-color: var(--signal); }
.search-panel input::placeholder { color: var(--ink-3); }
#searchResults { margin-top: 10px; display: flex; flex-direction: column; }
#searchResults .hit {
  display: flex; flex-direction: column; gap: 2px; text-decoration: none;
  padding: 11px 4px; border-bottom: 1px solid #1C2024;
}
#searchResults .hit:hover .hit-title { color: var(--signal); }
.hit-sec { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.hit-title { font-family: var(--display); font-weight: 600; font-size: 0.98rem; color: #fff; line-height: 1.35; }
.no-hits { font-family: var(--display); color: var(--ink-3); font-size: 0.9rem; padding: 12px 4px; }
nav.sections { background: var(--masthead); border-top: 1px solid #23262A; }
nav.sections .wrap { display: flex; gap: 26px; overflow-x: auto; }
nav.sections a {
  font-family: var(--display); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.02em; text-transform: uppercase; color: #C9CDD2;
  text-decoration: none; padding: 12px 0; border-bottom: 3px solid transparent;
  white-space: nowrap;
}
nav.sections a:hover { color: #fff; }
nav.sections a.on { color: #fff; border-bottom-color: var(--signal); }

/* ---- wire strip ---- */
.wire { border-bottom: 2px solid var(--rule-dark); background: #F5F5F1; }
.wire .wrap { display: flex; gap: 22px; align-items: center; padding: 9px 24px; overflow-x: auto; }
.wire .lbl {
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em;
  color: var(--signal-dark); text-transform: uppercase; flex: none;
}
.wire a {
  font-family: var(--display); font-size: 0.8rem; font-weight: 500;
  color: var(--ink-2); text-decoration: none; white-space: nowrap;
}
.wire a:hover { color: var(--ink); text-decoration: underline; }
.wire .dot { color: var(--rule); flex: none; }

/* ---- front page grid ---- */
.front { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; padding: 28px 0 8px; }
.lead {
  background: var(--card); border: 1px solid var(--rule); border-top: 4px solid var(--rule-dark);
  padding: 30px 32px 26px;
}
.rail { display: flex; flex-direction: column; gap: 14px; }
.kicker {
  font-family: var(--display); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--signal-dark);
  margin: 0 0 10px;
}
.lead h1 {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.025em;
  font-size: clamp(1.9rem, 4.4vw, 3.1rem); line-height: 1.06; margin: 0 0 16px;
}
.lead h1 a { text-decoration: none; }
.lead h1 a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--signal); }
.dek { font-size: 1.12rem; line-height: 1.55; color: var(--ink-2); margin: 0 0 18px; max-width: 58ch; }
.meta-line {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.04em;
  color: var(--ink-3); text-transform: uppercase; margin: 0 0 14px;
}
.receipt {
  border: 1px solid var(--rule); border-left: 3px solid var(--signal);
  background: #F4F8FC; padding: 10px 14px; margin: 0 0 8px;
  font-family: var(--display); font-size: 0.8rem; color: var(--ink-2);
}
.receipt b { color: var(--ink); font-weight: 700; }
.receipt a { color: var(--signal-dark); }

/* rail items */
.rail h2.railhead, .grid-section h2.railhead {
  font-family: var(--display); font-weight: 800; font-size: 0.78rem;
  letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 14px;
  display: inline-block; background: var(--rule-dark); color: #fff;
  padding: 6px 12px 5px;
}
.rail-item {
  background: var(--card); border: 1px solid var(--rule); border-top: 3px solid var(--rule-dark);
  padding: 16px 18px 14px;
}
.rail-item .kicker { margin-bottom: 6px; }
.rail-item h3 {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.01em;
  font-size: 1.02rem; line-height: 1.3; margin: 0 0 6px;
}
.rail-item h3 a { text-decoration: none; }
.rail-item h3 a:hover { text-decoration: underline; text-decoration-color: var(--signal); }
.rail-item p { margin: 0; font-size: 0.88rem; color: var(--ink-2); line-height: 1.5; }
.rail-item .meta-line { margin: 6px 0 0; }

/* briefs grid */
.grid-section { padding: 26px 0 14px; }
.briefs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0 0 34px; }
.brief-card h3 {
  font-family: var(--display); font-weight: 700; font-size: 1.06rem;
  letter-spacing: -0.01em; line-height: 1.3; margin: 6px 0 8px;
}
.brief-card h3 a { text-decoration: none; }
.brief-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--signal); }
.brief-card p { margin: 0 0 8px; font-size: 0.9rem; color: var(--ink-2); line-height: 1.5; }
.brief-card {
  background: var(--card); border: 1px solid var(--rule); border-top: 3px solid var(--rule-dark);
  padding: 18px 20px 16px;
}

/* ---- cover art (house-style editorial illustrations) ---- */
img.cover { display: block; height: auto; border-bottom: 1px solid var(--rule); background: var(--masthead); }
.lead img.cover { margin: -30px -32px 22px; width: calc(100% + 64px); }
.rail-item img.cover { margin: -16px -18px 12px; width: calc(100% + 36px); }
.brief-card img.cover { margin: -18px -20px 12px; width: calc(100% + 40px); }
.article img.hero {
  display: block; width: 100%; height: auto;
  margin: 4px 0 24px; border: 1px solid var(--rule);
}

/* contributor byline + author box */
.byline-author { display: flex; flex-direction: column; gap: 2px; }
.byline-author .who { font-family: var(--display); font-weight: 700; font-size: 0.95rem; color: var(--ink); letter-spacing: 0; text-transform: none; }
.byline-author .when { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.author-box {
  border: 1px solid var(--rule); border-top: 3px solid var(--rule-dark);
  background: var(--card); padding: 18px 22px; margin: 30px 0 0;
}
.author-box .lbl {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px;
}
.author-box h3 { font-family: var(--display); font-weight: 700; font-size: 1.05rem; margin: 0 0 6px; }
.author-box p { margin: 0; font-size: 0.95rem; color: var(--ink-2); }
.author-box a { color: var(--signal-dark); }
.kicker.contrib { color: var(--amber); }

/* the take */
.take {
  border: 1px solid var(--rule); background: #FBF8F2;
  border-left: 3px solid var(--amber);
  padding: 14px 16px; margin: 14px 0;
}
.take .lbl {
  font-family: var(--display); font-weight: 800; font-size: 0.68rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); margin: 0 0 6px;
}
.take p { margin: 0; font-size: 0.95rem; }

/* article page */
.article { max-width: 720px; margin: 0 auto; padding: 44px 24px 70px; }
.share-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 10px 0; margin: 0 0 18px;
}
.share-row .byline { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.share-btns { display: flex; gap: 8px; }
.share-btn {
  font-family: var(--display); font-weight: 600; font-size: 0.76rem;
  letter-spacing: 0.02em; cursor: pointer; border: 1px solid var(--rule);
  background: var(--card); color: var(--ink-2); padding: 7px 14px; border-radius: 3px;
}
.share-btn:hover { border-color: var(--signal); color: var(--signal-dark); }
.share-btn.ok { border-color: var(--signal); color: var(--signal-dark); }
figure.fig {
  border: 1px solid var(--rule); background: var(--card);
  padding: 18px 20px 14px; margin: 22px 0;
}
figure.fig figcaption {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-3); margin-top: 12px;
}
.fig .fig-title { font-family: var(--display); font-weight: 700; font-size: 0.92rem; margin: 0 0 12px; }
.bars { display: flex; flex-direction: column; gap: 8px; }
.bar { display: grid; grid-template-columns: 120px 1fr 74px; gap: 10px; align-items: center; }
.bar .lb { font-family: var(--display); font-size: 0.78rem; font-weight: 600; color: var(--ink-2); }
.bar .tr { height: 14px; background: var(--rule); position: relative; }
.bar .tr i { display: block; height: 100%; background: var(--signal); }
.bar.hot .tr i { background: var(--amber); }
.bar .vl { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }
.related-line { font-size: 0.95rem; margin: 0 0 18px; }
.related-line b { font-family: var(--display); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--signal-dark); margin-right: 6px; }
.more-box { border-top: 2px solid var(--rule-dark); margin-top: 34px; padding-top: 18px; }
.more-box h2 { margin: 0 0 12px; font-family: var(--display); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.more-box ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.more-box a { font-family: var(--display); font-weight: 600; font-size: 0.98rem; text-decoration: none; color: var(--ink); }
.more-box a:hover { text-decoration: underline; text-decoration-color: var(--signal); }
.more-box .meta-line { margin: 2px 0 0; }
.article h1 {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.025em;
  font-size: clamp(1.8rem, 4.5vw, 2.7rem); line-height: 1.1; margin: 0 0 14px;
}
.article .dek { margin-bottom: 16px; }
.article .body p { margin: 0 0 18px; font-size: 1.05rem; line-height: 1.68; }
.article .body a { color: var(--signal-dark); }
.article h2 { font-family: var(--display); font-weight: 700; font-size: 1.2rem; margin: 28px 0 10px; }

/* latest feed (compact rows, thumb right) */
.latest { padding: 4px 0 30px; }
.lat-row {
  display: grid; grid-template-columns: 1fr 104px; gap: 16px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--rule); text-decoration: none;
}
.lat-row .kicker { margin: 0 0 4px; }
.lat-row h3 {
  font-family: var(--body); font-weight: 600; font-size: 1.08rem;
  line-height: 1.35; margin: 0 0 4px; color: var(--ink); letter-spacing: 0;
}
.lat-row:hover h3 { text-decoration: underline; text-decoration-color: var(--signal); }
.lat-row .meta-line { margin: 0; }
.lat-row img {
  width: 104px; aspect-ratio: 16/10; object-fit: cover; display: block;
  border: 1px solid var(--rule);
}

/* newsletter + footer */
.subscribe { background: var(--masthead); color: #fff; padding: 40px 0; }
.subscribe .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.subscribe h2 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; font-size: 1.5rem; margin: 0; }
.subscribe p { color: #B9BEC4; margin: 6px 0 0; font-size: 0.92rem; font-family: var(--display); }
.sub-btn {
  font-family: var(--display); font-weight: 700; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none;
  background: var(--signal); color: #F4F8FC; padding: 13px 26px; border-radius: 3px;
}
.sub-btn:hover { background: #4795EA; }
footer.site { border-top: 2px solid var(--rule-dark); padding: 30px 0 44px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer.site p, footer.site a { font-family: var(--display); font-size: 0.82rem; color: var(--ink-2); }
footer.site .disclose { max-width: 60ch; }
footer.site .disclose b { color: var(--ink); }
footer.site ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }
footer.site ul a { text-decoration: none; }
footer.site ul a:hover { text-decoration: underline; text-decoration-color: var(--signal); }

@media (max-width: 900px) {
  .front { grid-template-columns: 1fr; gap: 16px; }
  .lead { padding: 24px 20px 20px; }
  .lead img.cover { margin: -24px -20px 18px; width: calc(100% + 40px); }
  .briefs { grid-template-columns: 1fr; gap: 14px; }
}
