/* The styles of updates.html, in a file of their own so the page stays small (tools/page-assets.js). */
@font-face {
  font-family: "Hacked";
  src: url("/fonts/HACKED.woff2?v=c2b61b1d67") format("woff2"), url("/fonts/HACKED.ttf?v=db3080d82f") format("truetype");
  font-display: swap;
}

:root {
  --bg: #07000a;
  --void: #0f0014;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.8);
  --line: rgba(255, 36, 146, 0.3);
  --line-strong: rgba(125, 255, 43, 0.4);
  --pink: #ff2492;
  --green: #7dff2b;
  --mint: #caffab;
  --cyan: #00ffd5;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
body {
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at 14% -6%, rgba(255, 36, 146, 0.28), transparent 34%),
    radial-gradient(circle at 82% 10%, rgba(125, 255, 43, 0.14), transparent 24%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }

.wrap {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  padding: clamp(22px, 4vw, 46px) 0 16px;
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  margin: 0;
  font-family: "Hacked", Impact, "Arial Black", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 0.88;
  font-size: clamp(44px, 7vw, 104px);
}

.hero p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.72;
  max-width: 880px;
}

.hero p a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-meta {
  margin-top: 12px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--mint);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 800;
}

.controls {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.controls-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 10px;
  align-items: center;
}

.input,
.select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 10px 12px;
  outline: none;
}

.input:focus,
.select:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(125, 255, 43, 0.09);
}

.stream {
  padding: 18px 0 60px;
}

.error {
  margin: 0 0 12px;
  color: #ffadc7;
  font-size: 14px;
}

/* hidden until the feed has an entry to feature: display: grid would override the attribute */
.featured[hidden] { display: none; }

.featured {
  border: 1px solid var(--line);
  background: rgba(8, 0, 12, 0.84);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  margin-bottom: 12px;
  overflow: hidden;
  position: relative;
}

.featured:hover {
  border-color: var(--line-strong);
  box-shadow: 0 0 18px rgba(125, 255, 43, 0.1);
}

.featured-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: clamp(190px, 32vw, 340px);
  object-fit: cover;
  object-position: center;
  background: rgba(0, 0, 0, 0.6);
  border-right: 1px solid var(--line);
}

.featured-copy {
  padding: clamp(16px, 2.4vw, 26px);
  display: grid;
  gap: 10px;
  align-content: start;
}

.featured-kicker {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.featured-title {
  margin: 0;
  font-family: "Hacked", Impact, "Arial Black", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 0.92;
  font-size: clamp(26px, 3vw, 44px);
}

.featured-date {
  color: var(--mint);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
}

.featured-excerpt {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.featured-link {
  width: fit-content;
  min-height: 38px;
  border: 1px solid var(--line);
  background: rgba(255, 36, 146, 0.12);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
}

/* The button's hit area covers the whole card, so the card opens the article
   while staying a single link. */
.featured-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.featured:hover .featured-link {
  border-color: var(--line-strong);
}

.updates-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.updates-item-link {
  --thumb-w: clamp(168px, 24vw, 248px);
  border: 1px solid var(--line);
  background: rgba(8, 0, 12, 0.84);
  /* Thumbnail on the left, everything else stacked on the right. Sharing grid
     rows between the two tied the title to the thumbnail height and left a
     gap under short titles. */
  display: grid;
  grid-template-columns: var(--thumb-w) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 12px;
  overflow: hidden;
}

.updates-item-copy {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}

.updates-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}

.updates-item-link:hover {
  border-color: var(--line-strong);
  box-shadow: 0 0 18px rgba(125, 255, 43, 0.1);
}

.updates-item-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  background: rgba(0, 0, 0, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.updates-item-preview-empty {
  display: block;
  background:
    linear-gradient(135deg, rgba(255, 36, 146, 0.14), rgba(0, 255, 213, 0.12)),
    rgba(0, 0, 0, 0.5);
}

.updates-item-title {
  margin: 0;
  font-family: "Hacked", Impact, "Arial Black", sans-serif;
  text-transform: uppercase;
  line-height: 0.94;
  letter-spacing: 0.03em;
  font-size: clamp(19px, 2vw, 30px);
}

.updates-item-stamp {
  color: var(--mint);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
  font-weight: 800;
}

.updates-item-age {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.updates-item-excerpt {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.updates-empty {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.44);
  color: var(--muted);
  padding: 16px;
}

@media (max-width: 980px) {
  .featured { grid-template-columns: 1fr; }
  .featured-media { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .controls-grid { grid-template-columns: 1fr; }
  .updates-item-link {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .updates-item-preview {
    width: 100%;
    max-height: 220px;
  }
}
