/* Edge Signal Weekly — cellular trade-publication redesign 2026-05-06 */
/* Reference: docs/superpowers/specs/2026-05-06-edge-signal-cellular-redesign-design.md */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,wght@0,400;0,700;1,400&family=IBM+Plex+Mono:wght@400;700&display=swap');

:root {
  /* Base palette */
  --bg:           #fbfaf6;
  --surface:      #ffffff;
  --text:         #1a1d24;
  --heading:      #000000;
  --muted:        #6b7380;
  --hairline:     #d8d4cb;

  /* Categorical (topic) colors */
  --cat-cellular: #1e5fb4;
  --cat-ai:       #c4541a;
  --cat-comms:    #1f6f5f;
  --cat-spectrum: #c89211;

  /* Live state */
  --live-green:   #2ea043;

  /* Type stacks */
  --sans:  system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* Base reset */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: "tnum" off; /* default proportional figures */
}

/* Force tabular figures wherever the .tabular class or mono is used */
.mono, .tabular { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

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

img, svg { display: block; max-width: 100%; }

button { font-family: inherit; cursor: pointer; }

/* Container wrap (most sections) */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Typography helpers used across sections */
.tag {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 3px;
  display: inline-block;
}

.tag.cellular { color: var(--cat-cellular); border-bottom-color: var(--cat-cellular); }
.tag.ai       { color: var(--cat-ai);       border-bottom-color: var(--cat-ai); }
.tag.comms    { color: var(--cat-comms);    border-bottom-color: var(--cat-comms); }
.tag.spectrum { color: var(--cat-spectrum); border-bottom-color: var(--cat-spectrum); }

.meta {
  font-family: var(--mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Section spacing baseline */
section { padding: 48px 0; }
section + section { border-top: 1px solid var(--hairline); }

/* ─── 5.0 News ticker strip ─── */
.ticker {
  background: #000000;
  color: #ffffff;
  height: 36px;
  display: flex;
  align-items: center;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ticker-live {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-right: 1px solid #2a2a2a;
  flex-shrink: 0;
  height: 100%;
}

.ticker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%; /* the only round element on the page — intentional, signals "live" */
  background: var(--live-green);
  animation: liveBlink 1.6s ease-in-out infinite;
}

@keyframes liveBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

.ticker-track {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

.ticker-rail {
  display: flex;
  gap: 32px;
  padding: 0 32px;
  white-space: nowrap;
  animation: tickerScroll 120s linear infinite;
}

.ticker:hover .ticker-rail { animation-play-state: paused; }

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item { display: inline-flex; align-items: center; gap: 8px; }
.ticker-cat-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.ticker-cat-dot.cellular { background: var(--cat-cellular); }
.ticker-cat-dot.ai       { background: var(--cat-ai); }
.ticker-cat-dot.comms    { background: var(--cat-comms); }
.ticker-cat-dot.spectrum { background: var(--cat-spectrum); }
.ticker-time { color: #8b949e; }

/* ─── 5.1 Issue identity strip ─── */
.issue-strip {
  border-bottom: 1px solid var(--hairline);
  height: 32px;
  display: flex;
  align-items: center;
}

.issue-strip .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.issue-strip strong { color: var(--heading); font-weight: 700; }
.issue-strip .sep { color: var(--hairline); }

/* ─── 5.2 Header ─── */
.masthead {
  border-bottom: 1px solid var(--heading); /* 1px black rule */
}

.masthead .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 22px;
  gap: 32px;
}

.wordmark {
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--heading);
  text-decoration: none;
}

.wordmark:hover { text-decoration: none; }

.nav {
  display: flex;
  gap: 24px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover { color: var(--heading); text-decoration: none; }

@media (max-width: 720px) {
  .masthead .wrap { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 18px; padding-bottom: 14px; }
  .wordmark { font-size: 24px; }
  .nav { flex-wrap: wrap; gap: 14px; }
}

/* ─── 5.3 Hero ─── */
.hero {
  text-align: center;
  padding: 72px 0 56px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 56px;
  line-height: 1.05;
  color: var(--heading);
  max-width: 760px;
  margin: 0 auto 22px;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 36px;
}

.cta {
  display: inline-block;
  padding: 14px 28px;
  background: var(--heading);
  color: #ffffff;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 0; /* square corners — anti-AI commitment #4 */
  border: none;
  text-decoration: none;
}

.cta:hover { background: #2a2a2a; text-decoration: none; }

@media (max-width: 720px) {
  .hero { padding: 40px 0 32px; }
  .hero h1 { font-size: 36px; }
}

/* ─── 5.4 Pull quote ─── */
.pull-quote {
  padding: 28px 0 48px;
}

.pull-quote .wrap {
  max-width: 760px;
  border-left: 1px solid var(--hairline);
  padding: 4px 0 4px 24px;
}

.pull-quote-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 12px;
}

.pull-quote-attr {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 720px) {
  .pull-quote-text { font-size: 19px; }
}

/* ─── 5.5 Featured grid (60/40 asymmetric) ─── */
.featured-grid {
  padding-top: 16px;
  padding-bottom: 56px;
}

.featured-grid .wrap {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 40px;
}

@media (max-width: 720px) {
  .featured-grid .wrap { grid-template-columns: 1fr; gap: 32px; }
}

.featured-col h2,
.latest-col h2 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--heading);
  margin: 0 0 18px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--heading); /* 1px black under section heading */
}

.featured-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  /* No rounded corners, no shadow — anti-AI commitments #4 + #5 */
  display: block;
  text-decoration: none;
  color: inherit;
}

.featured-card:hover { border-color: var(--heading); text-decoration: none; }

.featured-card-image {
  aspect-ratio: 16 / 9;
  background: #f0eee6;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
}
.featured-card-image img,
.featured-card-image svg { width: 100%; height: 100%; object-fit: cover; }

.featured-card-body { padding: 18px 22px 22px; }

/* Liveness strip on featured card */
.featured-live {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0 12px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 14px;
}
.featured-live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--live-green);
  animation: liveBlink 1.6s ease-in-out infinite;
}
.featured-live-text {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.featured-card h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.25;
  color: var(--heading);
  margin: 12px 0 10px;
}

.featured-dek {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 16px;
}

.featured-meta {
  font-family: var(--mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Latest sidebar */
.latest-list { list-style: none; padding: 0; margin: 0; }
.latest-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}
.latest-list li:last-child { border-bottom: none; }

.latest-item {
  display: block;
  text-decoration: none;
  color: inherit;
}
.latest-item:hover h4 { color: var(--cat-cellular); text-decoration: none; }

.latest-tag { font-size: 10px; margin-bottom: 4px; }

.latest-item h4 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--heading);
  margin: 4px 0 6px;
}

.latest-meta {
  font-family: var(--mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── 5.6 Topics section ─── */
.topics { padding: 56px 0; background: var(--surface); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

.topics .wrap > h2 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 24px;
  color: var(--heading);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 720px) { .topic-grid { grid-template-columns: 1fr 1fr; } }

.topic-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-top-width: 2px;
  padding: 20px 18px 22px;
  display: block;
  text-decoration: none;
  color: inherit;
}
.topic-card:hover { border-color: var(--heading); text-decoration: none; }

.topic-card.cellular { border-top-color: var(--cat-cellular); }
.topic-card.ai       { border-top-color: var(--cat-ai); }
.topic-card.comms    { border-top-color: var(--cat-comms); }
.topic-card.spectrum { border-top-color: var(--cat-spectrum); }

.topic-icon {
  width: 36px; height: 36px;
  margin-bottom: 14px;
}

.topic-card h3 {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 6px;
}

.topic-card p {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

/* ─── 5.7 Subscribe block ─── */
.newsletter { padding: 64px 0; }

.newsletter .wrap { max-width: 760px; }

.newsletter h2 {
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 10px;
}

.newsletter p {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 22px;
}

.newsletter form {
  display: flex;
  gap: 0;
  max-width: 520px;
}

.newsletter input[type="email"] {
  flex: 1;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-right: none;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  border-radius: 0;
  outline: none;
}
.newsletter input[type="email"]:focus { border-color: var(--heading); }

.newsletter button {
  padding: 12px 22px;
  background: var(--heading);
  color: #ffffff;
  border: none;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 0;
}
.newsletter button:hover { background: #2a2a2a; }

.toast {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  min-height: 18px;
}

/* ─── 5.8 Footer ─── */
.footer {
  border-top: 1px solid var(--heading);
  padding: 24px 0;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
}
.footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.footer-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--heading); text-decoration: underline; }

@media (max-width: 720px) {
  .footer .wrap { flex-direction: column; gap: 8px; }
}

/* ─── 5.9 Password modal (kiosk gate) ─── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-backdrop[hidden] { display: none; }

.modal {
  background: var(--surface);
  border: 1px solid var(--heading);
  padding: 28px;
  min-width: 360px;
  max-width: 92vw;
}

.modal-header {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.modal-help {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
  line-height: 1.5;
}

#pw-form { display: flex; gap: 0; }

#pw-form input {
  flex: 1;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-right: none;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  border-radius: 0;
  outline: none;
}
#pw-form input:focus { border-color: var(--heading); }

#pw-form button {
  padding: 10px 20px;
  background: var(--heading);
  color: #ffffff;
  border: none;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 0;
  cursor: pointer;
}
#pw-form button:hover { background: #2a2a2a; }

.modal-err {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: #b3261e;
  min-height: 18px;
  letter-spacing: 0.02em;
}

/* ─── Sub-page typography ─── */
.page-h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.15;
  color: var(--heading);
  margin: 36px 0 18px;
}

.page-h2 {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--heading);
  margin: 28px 0 12px;
}

/* ─── Archive list ─── */
.archive-list { list-style: none; padding: 0; margin: 0; }
.archive-list li {
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
}
.archive-list li:last-child { border-bottom: none; }
.archive-list h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  color: var(--heading);
  margin: 0 0 8px;
}
.archive-list p {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* ─── Article body typography ─── */
.article-body {
  max-width: 720px;
  margin: 32px auto;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  padding: 0 24px;
}

.article-body h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 42px;
  line-height: 1.15;
  color: var(--heading);
  margin: 24px 0 18px;
}

.article-body p { margin: 0 0 16px; }

.article-body .byline {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}

.article-body blockquote {
  border-left: 1px solid var(--hairline);
  padding: 4px 0 4px 20px;
  font-style: italic;
  color: var(--muted);
  margin: 24px 0;
}

.article-body code, .article-body pre {
  font-family: var(--mono);
  font-size: 14px;
}

.article-subscribe {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--muted);
  margin-top: 48px;
  border-top: 1px solid var(--hairline);
  padding-top: 20px;
}

/* ─── Article byline (initials avatar + name + date/read-time) ─── */
.byline-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 0 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}

.byline-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #ffffff;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-right: 12px;
  flex-shrink: 0;
}

.byline-name {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--heading);
}

.byline-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 10px;
}

/* ─── Article inline figure (technical diagrams) ─── */
.article-figure {
  max-width: 720px;
  margin: 28px auto 32px;
  padding: 0 24px;
}
.article-figure img,
.article-figure svg {
  width: 100%;
  height: auto;
  border: 1px solid var(--hairline);
  background: var(--surface);
}
.article-figure figcaption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
  text-align: left;
}
