/* Tech News — derekhein.com family style: near-black ground, white Anton
   display type, one signal red. Same tokens as the profile page. */
:root {
  --bg: #0a0a0a;
  --white: #ffffff;
  --red: #ff3b1f;
  --body: #c8c8c5;
  --muted: #8b8b88;
  --line: #262626;
  --card-hover: #131311;
  --display: "Anton", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}
::selection { background: var(--red); color: var(--white); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px clamp(20px, 5vw, 56px) 56px;
}

/* ---------- Masthead ---------- */
.masthead { padding-bottom: 10px; }
.kicker {
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.kicker a { color: var(--muted); text-decoration: none; }
.kicker a:hover { color: var(--red); }
h1 {
  font-family: var(--display);
  font-size: clamp(3rem, 11vw, 6.5rem);
  line-height: 0.95;
  font-weight: 400;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 16px;
}
.news-date {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.standfirst { font-size: 1.12rem; color: #e9e9e6; max-width: 58ch; margin: 0; }

/* ---------- Stories ---------- */
.story {
  padding: 26px 12px 24px;
  margin: 0 -12px;
  border-top: 1px solid var(--line);
}
.story h2 {
  font-size: 1.42rem;
  line-height: 1.28;
  font-weight: 650;
  letter-spacing: 0.005em;
  color: var(--white);
  margin: 0 0 8px;
  max-width: 36ch;
}
.story .byline {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.story p { margin: 0 0 12px; max-width: 65ch; }
.story .lead { color: #e9e9e6; font-size: 1.06em; }

/* ---------- Like / Share ---------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 16px;
}
.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px 6px 11px;
  color: var(--body);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.like-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--red);
  stroke-width: 1.8;
}
.like-btn:hover { border-color: var(--red); }
.like-btn.liked { border-color: var(--red); color: var(--white); }
.like-btn.liked svg { fill: var(--red); }
.share-btn {
  background: none;
  border: none;
  padding: 4px 0;
  color: var(--red);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.share-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.share-x {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}
.share-x:hover { color: var(--white); }

/* ---------- Around the web ---------- */
.web-head {
  font-family: var(--display);
  font-size: clamp(1.9rem, 6vw, 2.8rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--white);
  margin: 40px 0 4px;
}
.weblist { list-style: none; margin: 0; padding: 0; }
.weblist li {
  padding: 18px 12px 16px;
  margin: 0 -12px;
  border-top: 1px solid var(--line);
}
.weblist .web-title {
  color: var(--white);
  font-weight: 600;
  font-size: 1.06rem;
  line-height: 1.35;
  text-decoration: none;
}
.weblist .web-title:hover { color: var(--red); }
.web-src {
  display: inline-block;
  margin-left: 10px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.weblist p { margin: 6px 0 0; max-width: 65ch; }
.weblist .actions { margin-top: 12px; }

/* ---------- Footer ---------- */
.foot {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  justify-content: space-between;
}
.foot p { margin: 0; }
.foot a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 59, 31, 0.45); }
.foot a:hover { text-decoration-color: var(--red); }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .page { padding-top: 40px; }
}
