/* The Tech News Journal — Newsroom Wire visual.
   Black/white wire desk, dateline bars, ruled "wire lines", serif news type.
   No rounded corners anywhere. No emoji. */

:root {
  --bg: #f7f7f7;
  --paper: #ffffff;
  --ink: #1f2937;
  --accent: #111827;
  --muted: #6b7280;
  --rule: #111827;
  --hair: #d5d8dd;
  --beat-ai: #1d4ed8;
  --beat-cyber: #7c2d12;
  --beat-gadget: #166534;
  --beat-soft: #6d28d9;
  --serif: Georgia, "Times New Roman", "Songti SC", serif;
  --mono: "SFMono-Regular", "Consolas", "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--serif);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #000; text-decoration: underline; }

/* dateline tape bar (wire ticker) */
.dateline-bar {
  background: var(--accent);
  color: #f7f7f7;
  border-bottom: 4px double #f7f7f7;
}
.dateline-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 7px 22px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase;
}
.dateline-city { font-weight: 700; }
.dateline-wire { color: #c9cdd4; }

/* masthead */
.masthead { background: var(--paper); border-bottom: 3px double var(--rule); }
.masthead-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; gap: 20px;
}
.masthead-brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.masthead-mark {
  font-family: var(--serif); font-weight: 700; font-size: 30px; line-height: 1;
  color: var(--paper); background: var(--accent);
  width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
}
.masthead-text { display: flex; flex-direction: column; line-height: 1.25; }
.masthead-title { font-size: 24px; font-weight: 700; letter-spacing: .2px; }
.masthead-tagline {
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--muted);
}
.wire-nav { display: flex; gap: 20px; }
.wire-nav a {
  font-family: var(--mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--ink); padding-bottom: 3px; border-bottom: 2px solid transparent;
}
.wire-nav a:hover { border-bottom-color: var(--accent); text-decoration: none; }

/* wire desk hero */
.desk { background: var(--paper); border-bottom: 1px solid var(--hair); padding: 46px 0 40px; }
.desk-kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.desk h1 { font-size: 40px; line-height: 1.12; font-weight: 700; margin-bottom: 16px; max-width: 780px; }
.desk-lede { max-width: 700px; color: var(--ink); font-size: 18px; margin-bottom: 12px; }
.desk-note { max-width: 700px; color: var(--muted); font-size: 15px; font-style: italic; }

/* sections */
section { padding: 30px 0; }
.desk-label {
  font-family: var(--mono); font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin-bottom: 16px;
  padding-bottom: 8px; border-bottom: 1px solid var(--hair);
}
.legend-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 24px; }
.legend-list li { font-size: 14px; color: var(--ink); }
.legend-list b {
  font-family: var(--mono); font-size: 11px; letter-spacing: .8px; text-transform: uppercase;
  color: var(--accent); display: block; margin-bottom: 2px;
}

/* beat (category) color tags */
.brief-beat, .beat-tag {
  display: inline-block; font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: .8px; text-transform: uppercase; padding: 3px 7px;
  border: 1px solid currentColor;
}
.beat-ai { color: var(--beat-ai); }
.beat-cyber { color: var(--beat-cyber); }
.beat-gadget { color: var(--beat-gadget); }
.beat-soft { color: var(--beat-soft); }

/* beat nav cards */
.beat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--rule); }
.beat-card {
  display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 18px;
  color: var(--ink); border-right: 1px solid var(--rule); background: var(--paper);
}
.beat-card:last-child { border-right: 0; }
.beat-card:hover { background: #f0f1f3; text-decoration: none; }
.beat-name { font-size: 17px; font-weight: 700; }
.beat-rule { height: 2px; background: var(--accent); width: 40px; }
.beat-count { font-family: var(--mono); font-size: 11px; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }

/* group head */
.group-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 8px; border-bottom: 3px double var(--rule);
}
.group-head h2 { font-size: 24px; font-weight: 700; }
.group-more { font-family: var(--mono); font-size: 12px; letter-spacing: .6px; text-transform: uppercase; }

/* brief cards */
.brief-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.brief-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 18px 18px 20px; background: var(--paper); color: var(--ink);
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.brief-card:hover { background: #f0f1f3; text-decoration: none; }
.brief-topline { height: 3px; background: var(--accent); width: 34px; }
.brief-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brief-date { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .4px; }
.brief-title { font-size: 18px; line-height: 1.32; font-weight: 700; }
.brief-glance {
  display: flex; flex-direction: column; gap: 5px;
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: 9px 0;
}
.glance-item { font-size: 13px; color: var(--ink); }
.glance-item b {
  font-family: var(--mono); font-size: 10px; letter-spacing: .8px; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin-right: 8px;
}
.brief-lede { font-size: 13px; color: var(--muted); }

/* page head */
.page-head { padding: 36px 0 16px; border-bottom: 1px solid var(--hair); }
.crumb {
  font-family: var(--mono); font-size: 12px; letter-spacing: .6px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.crumb a { color: var(--muted); }
.page-head h1 { font-size: 34px; line-height: 1.18; font-weight: 700; max-width: 820px; }
.page-head .lede { color: var(--muted); margin-top: 10px; }
.page-head .dateline {
  font-family: var(--mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--accent); margin-top: 12px;
}

/* entry layout */
.layout { display: grid; grid-template-columns: 320px 1fr; gap: 30px; padding-top: 28px; padding-bottom: 44px; }
.brief-slip { align-self: start; background: var(--paper); border: 1px solid var(--rule); border-top: 4px solid var(--accent); }
.slip-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 3px double var(--rule);
}
.slip-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase;
  font-weight: 700; color: var(--accent);
}
.slip-rows { font-size: 14px; }
.slip-row { display: flex; border-bottom: 1px solid var(--hair); }
.slip-row:last-child { border-bottom: 0; }
.slip-row dt {
  flex: 0 0 40%; padding: 10px 14px; color: var(--muted);
  font-family: var(--mono); font-size: 11px; letter-spacing: .6px; text-transform: uppercase;
  border-right: 1px solid var(--hair);
}
.slip-row dd { flex: 1; padding: 10px 14px; }

/* dispatch article */
.dispatch { background: var(--paper); border: 1px solid var(--hair); padding: 30px 34px; }
.dispatch .sec { margin-bottom: 28px; }
.dispatch .sec:last-child { margin-bottom: 0; }
.dispatch h2 {
  font-size: 21px; font-weight: 700; margin-bottom: 12px;
  display: flex; align-items: baseline; gap: 12px;
  padding-bottom: 7px; border-bottom: 1px solid var(--rule);
}
.sec-num {
  font-family: var(--mono); font-size: 13px; color: var(--muted); font-weight: 700;
  border: 1px solid var(--rule); padding: 1px 6px; line-height: 1.3;
}
.dispatch p { margin-bottom: 14px; color: #2b3138; }
.dispatch p:last-child { margin-bottom: 0; }
.dispatch .sec.related h2 { border-bottom: 3px double var(--rule); }
.followup-list { list-style: none; }
.followup-list li { padding: 8px 0; border-bottom: 1px solid var(--hair); font-size: 16px; }
.followup-list li:last-child { border-bottom: 0; }

/* legal prose reuses dispatch */
.dispatch h2.legal { font-size: 19px; }

/* footer */
.wire-footer { background: var(--accent); color: #e5e7eb; margin-top: 24px; padding: 34px 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.footer-brand { flex: 1 1 340px; }
.footer-name { font-size: 19px; font-weight: 700; color: #fff; }
.footer-brand p { color: #c2c7ce; font-size: 14px; margin-top: 8px; }
.footer-nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-nav a {
  color: #e5e7eb; font-family: var(--mono); font-size: 12px; letter-spacing: .8px; text-transform: uppercase;
}
.footer-nav a:hover { color: #fff; }
.copyright {
  flex: 1 1 100%; font-family: var(--mono); font-size: 11px; color: #a9afb8;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid #374151; letter-spacing: .3px;
}

@media (max-width: 900px) {
  .legend-list { grid-template-columns: repeat(2, 1fr); }
  .beat-grid { grid-template-columns: repeat(2, 1fr); }
  .beat-card:nth-child(2) { border-right: 0; }
  .beat-card:nth-child(1), .beat-card:nth-child(2) { border-bottom: 1px solid var(--rule); }
  .brief-grid { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: 1fr; }
  .desk h1 { font-size: 32px; }
}
@media (max-width: 560px) {
  .legend-list, .beat-grid, .brief-grid { grid-template-columns: 1fr; }
  .beat-card { border-right: 0; border-bottom: 1px solid var(--rule); }
  .masthead-inner, .dateline-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .wire-nav { gap: 14px; }
  .desk h1 { font-size: 27px; }
  .page-head h1 { font-size: 26px; }
  .dispatch { padding: 22px 18px; }
  .brief-grid { border-left: 1px solid var(--rule); }
}
