/* ===================================================================
   Homepage — midnight body. Sections from top to bottom:
     [01] · MISSION BRIEF (+ Currently panel)
     [02] · ACTIVE MISSIONS  (project disc grid)
     [03] · RECENT TRANSMISSIONS  (mixed-CPT stream, cream-on-midnight)
     [04] · PREVIOUS MISSIONS · PRESS  (6-cell citation grid)
     SIGNAL · stay-in-touch form

   Global tokens come from worm.css. Page-specific layout only here.
   =================================================================== */

/* ----- Brief block ----- */
.brief {
  padding: var(--s-9) var(--gutter);
  display: grid;
  grid-template-columns: 200px 1fr 280px;
  gap: var(--s-7);
  border-bottom: 1px solid var(--cream);
}
.brief .label {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-dark);
  border-top: 2px solid var(--cream);
  padding-top: 12px;
}
.brief .label .est { display: block; }  /* desktop: drops to a second line */
.brief h1 {
  font-size: var(--t-h1);
  font-weight: 700;
  line-height: 1.02;
  margin: 0 0 var(--s-5);
  letter-spacing: -0.025em;
}
.brief h1 em { color: var(--purple-bright); font-style: normal; }
.brief .sub { font-size: 18px; color: #d6cee8; max-width: 56ch; line-height: 1.55; }

/* ----- Currently panel (right column of brief) ----- */
.currently {
  border-top: 2px solid var(--cream);
  padding-top: 12px;
}
.currently .heading {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-bottom: var(--s-4);
  display: flex; justify-content: space-between; align-items: center;
}
.currently .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--warm-soft);
  box-shadow: 0 0 0 4px rgba(255,122,61,0.18);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255,122,61,0.18); }
  50%      { box-shadow: 0 0 0 8px rgba(255,122,61,0.05); }
}
.currently dl { margin: 0; }
.currently dl > div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--purple-tab);
  align-items: baseline;
}
.currently dl > div:last-child { border-bottom: none; }
.currently dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple-bright);
}
.currently dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--cream);
}
.currently dd small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted-dark);
  text-transform: uppercase;
  margin-top: 2px;
}

/* ----- Active Missions: disc + glyph patches ----- */
.patches { padding: var(--s-9) var(--gutter) var(--s-8); border-bottom: 1px solid var(--cream); }
.patch-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-6);
  margin-top: var(--s-6);
}
.patch {
  text-decoration: none;
  color: var(--cream);
  text-align: center;
  width: 100%;
  display: flex; flex-direction: column; align-items: center;
  gap: 16px;
  transition: transform 0.18s;
}
.patch:hover { transform: translateY(-3px); }
.patch .disc {
  width: 100%;
  max-width: 168px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: box-shadow 0.18s;
}
.patch:hover .disc { box-shadow: 0 6px 0 rgba(0,0,0,0.25); }
.patch .disc .glyph {
  font-family: var(--font-sans);
  font-weight: 900;
  line-height: 1;
  font-size: 84px;
  letter-spacing: -0.04em;
}
.patch .disc--purple   { background: var(--purple); color: var(--cream); }
.patch .disc--orange   { background: var(--warm);   color: var(--cream); }
.patch .disc--gold     { background: var(--gold);   color: var(--paper); }
.patch .disc--midnight { background: var(--purple-deeper); color: var(--gold); border: 2px solid var(--purple-bright); }
.patch .disc--cream    { background: var(--cream);  color: var(--warm); }
.patch h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.005em;
  color: var(--cream);
}
.patch p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-dark);
  line-height: 1.45;
  max-width: 22ch;
}

/* ----- Recent Transmissions: mixed-CPT stream on cream ----- */
.transmissions {
  padding: var(--s-9) var(--gutter);
  background: var(--cream); color: var(--ink);
}
.transmissions .section-head { color: var(--ink); }
.transmissions .section-head .marker { color: var(--muted); }
.transmissions .post .type .label { color: var(--purple); }
.transmissions .post .type .time { color: var(--muted); }
.transmissions .post:hover { background: var(--paper); }
.transmissions .post.is-article  { grid-column: span 6; }
.transmissions .post.is-note     { grid-column: span 3; }
.transmissions .post.is-photo    { grid-column: span 3; }
.transmissions .post.is-link     { grid-column: span 4; }
.transmissions .post.is-note-2   { grid-column: span 4; }
.transmissions .post.is-article-2{ grid-column: span 4; }
/* Uniform tile height. Slot widths are positional (a photo can land in the wide
   span-6 slot), and .photo-slot's base aspect-ratio:1 then forces a ~870px square
   that balloons the whole row — leaving text-only tiles stretched to match with a
   big empty void. Cap to a consistent card height instead; photos cover-crop
   (centered), and the full-res image lives on the photo single. */
.transmissions .post { min-height: 380px; }
.transmissions .photo-slot { aspect-ratio: auto; }
/* Note cards: the content is the whole card — show it big and centre it so a short
   note fills the tile instead of sitting in a one-liner over a void. */
.transmissions .post .note-lead {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  font-size: 20px; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em;
}
/* Link cards: the _pull_quote is the body — bigger, italic, vertically centred
   (curly quotes are added in PHP so they stay inline with the text). */
.transmissions .post .body.is-pull {
  font-style: italic; font-size: 19px; line-height: 1.45;
  display: flex; flex-direction: column; justify-content: center;
}
.more-link {
  margin-top: var(--s-6);
  text-align: right;
}
.more-link a {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--t-meta);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid var(--purple);
  padding-bottom: 4px;
}

/* ----- Previous Missions: press citation grid ----- */
.press { padding: var(--s-9) var(--gutter); border-bottom: 1px solid var(--cream); }
.press-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--cream);
  border-left: 1px solid var(--cream);
}
.press-cell {
  border-right: 1px solid var(--cream);
  border-bottom: 1px solid var(--cream);
  padding: 28px 18px;
  display: flex; flex-direction: column;
  aspect-ratio: 4/3;
  justify-content: space-between;
  color: var(--cream);
  text-decoration: none;
}
.press-cell .num {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.22em;
  color: var(--muted-dark);
}
.press-cell .src {
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
/* Outlet logo (monochrome SVG, inherits the cell's cream / feature-white). */
.press-cell .src--logo { display: flex; align-items: center; }
.press-cell .outlet-logo { color: inherit; }
.press-cell .outlet-logo svg {
  height: 34px; width: auto; max-width: 100%;
  fill: currentColor;
  display: block;
}
.press-cell .year {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.14em;
  color: var(--purple-bright);
  text-transform: uppercase;
}
.press-cell.feature {
  background: var(--purple); color: #fff;
}
.press-cell.feature .num,
.press-cell.feature .year { color: var(--gold); }

/* ----- Signal: stay-in-touch ----- */
.signal-section {
  padding: var(--s-9) var(--gutter);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8);
  align-items: start;
  border-bottom: 1px solid var(--cream);
}
.signal-section h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700; letter-spacing: -0.02em;
  margin: 0 0 var(--s-4);
}
.signal-section h2 em { color: var(--purple-bright); font-style: normal; }
.signal-section .copy { font-size: 17px; line-height: 1.55; color: #d6cee8; max-width: 50ch; }
.form-block {
  border: 2px solid var(--cream);
  padding: var(--s-5);
  background: var(--cream);
  color: var(--purple-deep);
}
.form-block label {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5a4d8a;
  display: block; margin-bottom: 8px;
}
.form-block input {
  width: 100%; padding: 14px 16px;
  border: 2px solid var(--purple-deep);
  background: #fff;
  color: var(--purple-deep);
  font-family: inherit; font-size: 16px;
}
.form-block button {
  margin-top: var(--s-3);
  width: 100%; padding: var(--s-4);
  background: var(--purple); color: #fff;
  border: 2px solid var(--purple-deep);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
}
.form-block button:hover { background: var(--purple-deep); }
.form-block .fine { margin-top: var(--s-3); font-size: var(--t-meta); color: #5a4d8a; line-height: 1.5; }
.form-block .fine a { color: var(--purple); }
.form-block .notice {
  margin-top: var(--s-3); padding: var(--s-3); border: 1px dashed var(--purple);
  font-size: 13px; color: var(--purple-deep);
}
.form-block .notice.error { border-color: var(--warm); color: var(--warm); }

/* Honeypot field — must look invisible to humans but tabbable for bots. */
.form-block .hp {
  position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .brief { grid-template-columns: 1fr; }
  /* Label becomes one line: "MISSION BRIEF" left, "established 2007" right. */
  .brief .label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .brief .label .est { display: inline; }
  .patch-grid { grid-template-columns: repeat(2, 1fr); }
  .press-grid { grid-template-columns: repeat(2, 1fr); }
  .signal-section { grid-template-columns: 1fr; gap: var(--s-6); }
  .transmissions .post.is-article,
  .transmissions .post.is-note,
  .transmissions .post.is-photo,
  .transmissions .post.is-link,
  .transmissions .post.is-note-2,
  .transmissions .post.is-article-2 { grid-column: span 12; }
}
