/* ============================================
   THE CONTEXT WINDOW — components.css
   Cards, badges, terminal bar refinements, dividers
   ============================================ */

/* ============================================
   ISSUE CARD
   Used in the archive's stacked list. Same markup
   pattern will be reused for the home page's
   archive grid and hero block — those layouts will
   wrap this component differently (grid vs hero)
   without changing the card's internal structure.
   ============================================ */

.issue-card {
  display: block;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
  border-left: 2px solid transparent;
  transition: border-color 0.15s ease, padding-left 0.15s ease;
}

.issue-card:hover,
.issue-card:focus-visible {
  border-left-color: var(--color-accent);
  padding-left: var(--space-sm);
}

.issue-card:first-child {
  padding-top: 0;
}

.issue-card:last-child {
  border-bottom: none;
}

.issue-card-title {
  transition: color 0.15s ease;
}

/* Hover: title turns amber, hook stays put — one colour
   change plus the left-border nudge reads as precise. */
.issue-card:hover .issue-card-title,
.issue-card:focus-visible .issue-card-title {
  color: var(--color-accent);
}



.issue-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
  flex-wrap: wrap;
}

.issue-card-meta {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
}

.issue-card-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-muted);
}

.issue-card-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.375rem;
  color: var(--color-text);
  margin: var(--space-xs) 0;
  line-height: 1.3;
}

.issue-card-hook {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1rem;
  color: var(--color-text);
  opacity: 0.85;
  margin-bottom: var(--space-xs);
  max-width: 640px;
  text-wrap: pretty;
}

.issue-card-readtime {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-muted);
}

/* Read time placeholder for unpublished issues —
   visually distinct from a real estimate so it never
   reads as fabricated data. */
.issue-card-readtime.pending,
.issue-card-date.pending {
  color: var(--color-muted);
  opacity: 0.6;
}

/* ============================================
   SITE BRAND
   Home page only. Sits above the hero issue.
   ============================================ */

.site-brand {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.site-brand-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.site-brand-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

.site-brand-title .accent {
  color: var(--color-accent);
}

.site-brand-tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-text);
  opacity: 0.8;
  max-width: 520px;
}

/* ============================================
   HERO ISSUE
   Home page only. Mini-article treatment for the
   current/latest issue. Reuses .issue-badge from
   base.css. Adapts gracefully to an unpublished
   issue — no fabricated date, byline, or pull-quote
   when those don't exist yet.
   ============================================ */

.hero-issue {
  position: relative;
  display: block;
  overflow: hidden;
  margin-bottom: var(--space-2xl);
  padding: var(--space-lg);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: border-color 0.15s ease;
}

.hero-issue:hover,
.hero-issue:focus-visible {
  border-color: var(--color-accent);
}

/* Ghost issue number watermark */
.hero-issue::before {
  content: '001';
  position: absolute;
  top: -0.18em;
  right: -0.05em;
  z-index: 0;
  font-family: var(--font-mono);
  font-size: clamp(8rem, 22vw, 13rem);
  font-weight: 500;
  line-height: 1;
  color: var(--color-text);
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
}

.hero-issue > * {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.hero-eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--color-border);
}

.hero-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-sm);
}

.hero-hook {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--color-text);
  opacity: 0.85;
  max-width: 600px;
  margin-bottom: var(--space-md);
  text-wrap: pretty;
}

.hero-title {
  transition: color 0.15s ease;
}

.hero-issue:hover .hero-title,
.hero-issue:focus-visible .hero-title {
  color: var(--color-accent);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

@media (max-width: 640px) {
  .site-brand {
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
  }

  .hero-issue {
    padding: var(--space-md);
    margin-bottom: var(--space-xl);
  }

  .hero-meta {
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
  }
}

.hero-meta .pending {
  opacity: 0.6;
}

.hero-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background-color: var(--color-muted);
  flex-shrink: 0;
}

.hero-status {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--color-muted);
  margin: var(--space-xs) 0 0;
}

.hero-status.is-live {
  color: var(--color-accent);
}

.hero-cta {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: var(--space-xs) var(--space-md);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  cursor: default;
}

.hero-cta.is-live {
  color: var(--color-accent);
  border-color: var(--color-accent);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.hero-cta.is-live:hover,
.hero-cta.is-live:focus-visible {
  background-color: rgba(232, 131, 42, 0.08);
}

/* ============================================
   HOME PAGE SECTION HEADING
   Used above the "Recent Issues" preview list.
   ============================================ */

.section-heading {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.view-archive-link {
  display: inline-block;
  margin-top: var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-accent);
}

.view-archive-link:hover,
.view-archive-link:focus-visible {
  text-decoration: underline;
}

/* ============================================
   ABOUT PAGE
   Simple bio block + a short list of amber text
   links underneath (spec: "styled as amber text
   links, not buttons" — reuses the same visual
   language as .footer-links rather than inventing
   a new link treatment).
   ============================================ */

.about-content h1 {
  margin-bottom: var(--space-lg);
}

.about-content h2.about-section-heading {
  color: var(--color-accent);
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.about-content hr.divider {
  margin: var(--space-lg) 0;
}

.about-content p {
  margin-bottom: var(--space-md);
  max-width: 640px;
}

.about-links {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.about-links a {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--color-accent);
}

.about-links a:hover,
.about-links a:focus-visible {
  text-decoration: underline;
}

/* Mobile tap highlight removal (minimal) */
a, .issue-card, .hero-cta, button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

