/* =========================================================
   ia-status.und3rgr0und — editorial monitoring console
   light theme · paper grain · Instrument Serif + JetBrains Mono
   ========================================================= */

:root {
  /* ---- palette ---- */
  --paper:        #f3ede0;        /* warm cream — newsprint */
  --paper-2:      #ebe3d2;        /* shadow seam */
  --ink:          #14110d;        /* near-black, slightly warm */
  --ink-2:        #2b2620;
  --dim:          #6a6359;
  --rule:         #14110d;
  --rule-soft:    rgba(20,17,13,0.18);
  --surface:      #ffffff;        /* card cream-white */
  --surface-tint: #faf6ec;

  --op:    #0d6243;               /* operational — deep forest */
  --op-2:  #e2efe5;
  --warn:  #b1520a;               /* degraded — rust */
  --warn-2:#f5e8d6;
  --alert: #a8211d;               /* outage — oxblood */
  --alert-2:#f5dcd8;

  --accent:#024d4d;               /* matches und3rgr0und family */

  /* ---- type ---- */
  --serif:  'Instrument Serif', 'Newsreader', Georgia, serif;
  --read:   'Newsreader', Georgia, serif;
  --mono:   'JetBrains Mono', ui-monospace, monospace;

  /* ---- rhythm ---- */
  --gutter: clamp(20px, 4vw, 56px);
  --maxw:   1320px;
}

/* ─────────────────────── reset ─────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, ul, ol, fieldset, legend, figure, blockquote {
  margin: 0; padding: 0;
}
fieldset { border: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
img, svg { display: block; max-width: 100%; }

/* ─────────────────────── body ─────────────────────── */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  hyphens: auto;
  overflow-x: hidden;
}

/* paper grain — subtle SVG noise, multiply blend */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.45;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0.05  0 0 0 0 0.04  0 0 0 0 0.03  0 0 0 0.22 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
}
.rule-edge {
  position: fixed; inset: 12px;
  pointer-events: none; z-index: 1;
  border: 1px solid var(--rule);
  opacity: 0.0;     /* off by default — too busy for content; flip if you want a frame */
}

/* ─────────────────────── masthead ─────────────────────── */
.masthead {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px var(--gutter) 14px;
  border-bottom: 1.5px solid var(--rule);
  position: relative;
}
.masthead::before, .masthead::after {
  /* double newspaper rule above wordmark */
  content: "";
  position: absolute;
  left: var(--gutter); right: var(--gutter);
  height: 1px; background: var(--rule);
}
.masthead::before { top: 14px; }

.masthead-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-2);
  padding: 14px 0 8px;
}
.masthead-row.top { padding-top: 10px; padding-bottom: 8px; }
.masthead-row.bottom {
  padding-top: 16px; padding-bottom: 4px;
  border-top: 1px solid var(--rule-soft);
}
.masthead-row a { text-decoration: none; }
.masthead-row a:hover { text-decoration: underline; }
.dateline { font-weight: 500; }
.edition  { color: var(--dim); }
.weather  { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 500; }
.motto    { color: var(--dim); font-style: italic; text-transform: none; letter-spacing: 0.02em; font-family: var(--read); }

/* language toggle */
.lang-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--mono);
}
.lang-btn {
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: var(--dim);
  padding: 2px 4px;
  border-radius: 2px;
  transition: color 0.15s ease, background 0.15s ease;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.active {
  color: var(--ink);
  font-weight: 600;
  background: var(--ink);
  color: var(--paper);
}
.lang-sep { color: var(--rule-soft); }

/* live dot — quiet pulse */
.ts-dot {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--op);
  box-shadow: 0 0 0 0 rgba(13,98,67, 0.5);
  animation: pulse-dot 2.6s ease-out infinite;
  flex: none;
}
.ts-dot.warn  { background: var(--warn);  box-shadow: 0 0 0 0 rgba(177,82,10,0.5); }
.ts-dot.alert { background: var(--alert); box-shadow: 0 0 0 0 rgba(168,33,29,0.5); }
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 currentColor; }
  60%  { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* wordmark — newspaper logotype */
.wordmark {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.022em;
  text-align: center;
  line-height: 0.86;
  padding: 18px 0 16px;
  position: relative;
}
.wm-line-1 {
  display: block;
  font-size: clamp(54px, 9.5vw, 132px);
  font-style: italic;
}
.wm-line-1 .wm-hyphen {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.42em;
  font-weight: 500;
  vertical-align: 0.28em;
  padding: 0 0.05em;
  color: var(--accent);
}
.wm-line-2 {
  display: block;
  font-family: var(--mono);
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.42em;
  text-indent: 0.42em;          /* compensate trailing letter-spacing */
  font-size: clamp(12px, 1.4vw, 18px);
  text-transform: lowercase;
  color: var(--ink-2);
  padding-top: 14px;
}

.tagline {
  font-family: var(--read);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.5;
  text-align: center;
  max-width: 760px;
  margin: 4px auto 0;
  color: var(--ink-2);
}
.tagline em {
  font-style: italic;
  color: var(--ink);
}
.tag-sep { color: var(--dim); padding: 0 0.5em; font-style: normal; }

/* ─────────────────────── hero ─────────────────────── */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px var(--gutter) 48px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: end;
  border-bottom: 1px solid var(--rule-soft);
}
.hero-left {}
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 4px 10px;
  border: 1px solid var(--rule-soft);
  border-radius: 2px;
  background: var(--surface);
}
.hero-headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5.4vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.022em;
  margin-top: 14px;
  text-wrap: balance;
}
.hero-headline em {
  font-style: italic;
  color: var(--op);
}
.hero-headline.warn em  { color: var(--warn); }
.hero-headline.alert em { color: var(--alert); }
.hero-deck {
  font-family: var(--read);
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.45;
  margin-top: 22px;
  max-width: 60ch;
  color: var(--ink-2);
}
.hero-deck em { font-style: italic; color: var(--ink); }

.hero-right {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border-left: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
}
.stat {
  padding: 18px 14px 14px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
  display: flex; flex-direction: column; gap: 6px;
  min-width: 0;
}
.stat:last-child { border-right: 1px solid var(--rule); }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
  font-weight: 400;
  font-feature-settings: "lnum";
  letter-spacing: -0.02em;
}
.stat-num .pct {
  font-size: 0.6em;
  color: var(--dim);
  font-style: italic;
}
.stat-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  line-height: 1.4;
}

/* ─────────────────────── section header ─────────────────────── */
.section-head {
  display: flex; align-items: baseline; gap: 18px;
  padding: 38px 0 16px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.section-no {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--dim);
  text-transform: uppercase;
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.section-title .dim {
  font-family: var(--read);
  font-style: italic;
  font-size: 0.55em;
  color: var(--dim);
  margin-left: 6px;
  letter-spacing: 0;
}
.dim { color: var(--dim); }
.dim.push { margin-left: auto; }
.dim.small { font-size: 11px; letter-spacing: 0.04em; }

/* ─────────────────────── pulse (chart) ─────────────────────── */
.pulse {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter) 28px;
}
.pulse-filter {
  margin-left: auto;
  display: flex; gap: 4px; flex-wrap: wrap;
}
.pf {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  padding: 5px 10px;
  border: 1px solid var(--rule-soft);
  background: var(--surface);
  color: var(--ink-2);
  border-radius: 2px;
  transition: all 0.15s ease;
}
.pf:hover { border-color: var(--rule); }
.pf.active {
  background: var(--ink); color: var(--paper);
  border-color: var(--ink);
}
.pulse-chart-wrap {
  position: relative;
  border: 1px solid var(--rule);
  background: var(--surface);
  padding: 18px 18px 6px;
}
.pulse-chart {
  width: 100%;
  height: 240px;
  display: block;
  overflow: visible;
}
#pulse-bars rect {
  transition: opacity 0.15s ease;
}
#pulse-bars rect:hover { opacity: 0.65; }
#pulse-grid line {
  stroke: var(--rule-soft);
  stroke-width: 1;
  stroke-dasharray: 2 3;
}
#pulse-baseline path {
  stroke: var(--rule);
  stroke-width: 1;
  fill: none;
  stroke-dasharray: 4 4;
  opacity: 0.45;
}
.pulse-xaxis {
  display: flex; justify-content: space-between;
  padding: 6px 4px 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--dim);
  text-transform: uppercase;
}
.pulse-foot {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 4px 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  flex-wrap: wrap;
}
.bullet.square {
  display: inline-block;
  width: 10px; height: 10px;
  vertical-align: -1px;
  margin-right: 6px;
  border: 1px solid var(--rule);
}
.bullet.square.op    { background: var(--op-2);  border-color: var(--op);  }
.bullet.square.warn  { background: var(--warn-2);border-color: var(--warn);}
.bullet.square.alert { background: var(--alert-2);border-color: var(--alert);}

/* ─────────────────────── platform grid ─────────────────────── */
.grid-section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter) 40px;
}
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.card {
  background: var(--surface);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 18px 18px 16px;
  display: flex; flex-direction: column;
  gap: 12px;
  position: relative;
  transition: background 0.2s ease;
  cursor: pointer;
}
.card:hover { background: var(--surface-tint); }
.card.is-warn   { background: linear-gradient(180deg, var(--surface) 0%, var(--surface) 60%, var(--warn-2) 100%); }
.card.is-alert  { background: linear-gradient(180deg, var(--surface) 0%, var(--surface) 60%, var(--alert-2) 100%); }

.card-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px;
}
.card-name {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.018em;
  font-weight: 400;
}
.card-vendor {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}

.pill {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 8px 3px;
  border: 1px solid var(--op);
  color: var(--op);
  background: var(--op-2);
  border-radius: 2px;
  flex: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.pill::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  display: inline-block;
}
.pill.warn  { border-color: var(--warn);  color: var(--warn);  background: var(--warn-2); }
.pill.alert { border-color: var(--alert); color: var(--alert); background: var(--alert-2); }

.card-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 14px;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  padding: 8px 0;
  border-top: 1px dashed var(--rule-soft);
  border-bottom: 1px dashed var(--rule-soft);
}
.card-meta .k { color: var(--dim); letter-spacing: 0.04em; }
.card-meta .v { text-align: right; font-weight: 500; hyphens: none; }
.card-meta .v.bad { color: var(--alert); }

/* unknown / loading state — quiet diagonal hatch + shimmery pill */
.card.is-unknown { background: repeating-linear-gradient(45deg, var(--surface) 0 8px, var(--surface-tint) 8px 16px); }
.pill.unknown {
  border-color: var(--rule-soft); color: var(--dim); background: var(--paper);
  animation: pulse-pill 1.8s ease-in-out infinite;
}
@keyframes pulse-pill {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

/* sparkline */
.spark-wrap {
  position: relative;
  padding-top: 4px;
}
.spark {
  width: 100%; height: 48px;
  display: block;
}
.spark-label {
  display: flex; justify-content: space-between;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--dim);
  text-transform: uppercase;
  padding-top: 4px;
}

.card-cta {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-top: 1px solid var(--rule-soft);
  padding-top: 10px;
  display: flex; justify-content: space-between;
  align-items: center;
  gap: 10px;
  hyphens: none;            /* mono text shouldn't hyphenate */
  white-space: nowrap;
}
.card-cta .note {
  flex: 1; min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-cta .arrow { transition: transform 0.2s ease; flex: none; }
.card:hover .card-cta .arrow { transform: translateX(4px); color: var(--accent); }

/* ─────────────────────── report form ─────────────────────── */
.report {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter) 40px;
}
.report-form {
  border: 1px solid var(--rule);
  background: var(--surface);
  padding: 28px clamp(20px, 3vw, 36px);
}
.report-form fieldset {
  padding: 18px 0;
  border-bottom: 1px dashed var(--rule-soft);
}
.report-form fieldset:last-of-type { border-bottom: 0; }
.report-form legend {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  letter-spacing: -0.01em;
  padding-bottom: 14px;
  display: block;
}
.report-form legend .dim {
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 6px;
  vertical-align: 4px;
}

.rf-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.chip {
  display: inline-flex; align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--rule-soft);
  background: var(--paper);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  user-select: none;
}
.chip:hover { border-color: var(--rule); background: var(--surface-tint); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked) {
  background: var(--ink); color: var(--paper);
  border-color: var(--ink);
}
.chip input + span::before {
  content: "○ ";
  color: var(--dim);
  font-weight: 600;
}
.chip:has(input:checked) span::before { content: "● "; color: var(--paper); }

textarea#rf-comment {
  width: 100%;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  padding: 12px 14px;
  resize: vertical;
  min-height: 80px;
  color: var(--ink);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.15s ease;
}
textarea#rf-comment:focus { border-color: var(--rule); background: var(--surface); }
textarea#rf-comment::placeholder { color: var(--dim); font-style: italic; }
.rf-count {
  display: block;
  text-align: right;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
  margin-top: 4px;
  letter-spacing: 0.06em;
}

.rf-actions {
  display: flex; align-items: center; gap: 24px;
  padding-top: 22px;
  flex-wrap: wrap;
}
.rf-submit {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  padding: 10px 22px 9px;
  border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--paper);
  transition: all 0.2s ease;
  letter-spacing: -0.005em;
  border-radius: 2px;
}
.rf-submit:hover {
  background: var(--accent); border-color: var(--accent);
}
.rf-submit-arrow {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.8em;
  font-weight: 600;
}
.rf-disclaimer {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.02em;
  line-height: 1.5;
  max-width: 50ch;
}

/* ─────────────────────── incident log ─────────────────────── */
.log-section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter) 40px;
}
.log {
  border: 1px solid var(--rule);
  background: var(--surface);
  max-height: 420px;
  overflow-y: auto;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
}
.log-row {
  display: grid;
  grid-template-columns: 110px 78px 1fr;
  gap: 14px;
  padding: 9px 18px;
  border-bottom: 1px dashed var(--rule-soft);
  animation: slide-in 0.35s ease-out;
}
@keyframes slide-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.log-row:last-child { border-bottom: 0; }
.log-row.is-new { background: var(--warn-2); }
.log-empty {
  padding: 38px 22px;
  text-align: center;
  font-family: var(--read);
  font-style: italic;
  font-size: 15px;
  color: var(--dim);
  line-height: 1.55;
}
.log-ts {
  color: var(--dim);
  letter-spacing: 0.04em;
}
.log-platform {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}
.log-msg {
  color: var(--ink-2);
}
.log-msg b { font-weight: 600; color: var(--ink); }
.log-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1px 6px;
  border: 1px solid var(--rule-soft);
  margin-right: 6px;
  border-radius: 2px;
}
.log-tag.loops   { color: #6d4807; border-color: #cda36b; background: #f7ecd4; }
.log-tag.slow    { color: #4d4d04; border-color: #b9b15a; background: #f5f0cd; }
.log-tag.down    { color: var(--alert); border-color: var(--alert); background: var(--alert-2); }
.log-tag.errors  { color: #732c2c; border-color: #b35858; background: #f3d8d8; }
.log-tag.quality { color: #5b3a72; border-color: #a586c3; background: #ebdef5; }
.log-tag.logout  { color: #1f4a6e; border-color: #6996bc; background: #d9e6f1; }
.log-tag.image   { color: #335e4b; border-color: #6ea58d; background: #d8ebe1; }
.log-tag.other   { color: var(--dim); }
.log-geo {
  color: var(--dim);
  font-style: italic;
  font-family: var(--mono);
  white-space: nowrap;
}

/* ─────────────────────── about ─────────────────────── */
.about {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter) 56px;
}
.about-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  font-family: var(--read);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  column-rule: 1px solid var(--rule-soft);
}
.about-cols p + p { margin-top: 1em; }
.about-cols em { color: var(--ink); font-style: italic; }
.dropcap .dc {
  float: left;
  font-family: var(--serif);
  font-size: 4.6em;
  line-height: 0.86;
  padding-right: 0.08em;
  padding-top: 0.05em;
  font-style: italic;
  color: var(--accent);
}
.signoff { margin-top: 1.4em !important; }
.signoff em {
  font-family: var(--serif);
  font-size: 1.2em;
}

/* ─────────────────────── footer ─────────────────────── */
.foot {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px var(--gutter) 38px;
  border-top: 1.5px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}
.foot-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  padding: 6px 0;
}
.foot-row.faint { color: var(--dim); border-top: 1px dashed var(--rule-soft); padding-top: 14px; margin-top: 8px; }
.foot-mid { text-align: center; flex: 1; }

/* ─────────────────────── toast ─────────────────────── */
.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translate(-50%, 80px);
  background: var(--ink); color: var(--paper);
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  border-radius: 2px;
  border: 1px solid var(--ink);
  box-shadow: 0 8px 24px rgba(20,17,13,0.18);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1), opacity 0.25s ease;
  z-index: 200;
  max-width: 90vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ─────────────────────── responsive ─────────────────────── */
@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 36px;
    padding-bottom: 32px;
  }
  .hero-right { max-width: 100%; }
  .about-cols { grid-template-columns: 1fr; gap: 28px; }
  .masthead-row { font-size: 10px; gap: 10px; }
  .pulse-chart { height: 200px; }
  .log-row { grid-template-columns: 78px 64px 1fr; gap: 10px; padding: 8px 12px; font-size: 11px; }
  .rf-actions { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 520px) {
  :root { --gutter: 16px; }
  .wm-line-2 { letter-spacing: 0.32em; text-indent: 0.32em; }
  .hero-headline { font-size: 42px; }
  .section-head { gap: 10px; padding-top: 28px; }
  .platform-grid { grid-template-columns: 1fr; }
  .hero-right { grid-template-columns: 1fr 1fr 1fr; }
  .stat { padding: 12px 10px; }
  .report-form { padding: 18px 16px; }
  .rf-submit { font-size: 18px; }
  .foot-mid { text-align: left; }
}

/* ─────────────────────── print ─────────────────────── */
@media print {
  .grain, .rule-edge, .toast, .pulse-filter, .rf-actions, .foot { display: none; }
  body { background: white; }
  .masthead, .hero, .pulse, .grid-section, .about, .log-section, .report { padding-left: 0; padding-right: 0; }
}

/* ─────────────────────── selection ─────────────────────── */
::selection { background: var(--ink); color: var(--paper); }
