/* Legally Brief: Michigan — May 31, 2026 — “Straits Pressure” (Sunday Edition) */

:root {
  --bg-primary: #0a1420;
  --bg-secondary: #111f2e;
  --bg-surface: rgba(148, 163, 184, 0.07);
  --bg-elevated: rgba(212, 165, 116, 0.06);
  --text-primary: #eef4f8;
  --text-secondary: #a8bcc9;
  --text-muted: #6b8496;
  --accent-red: #dc2626;
  --accent-red-dim: rgba(220, 38, 38, 0.14);
  --accent-green: #2dd4a8;
  --accent-green-dim: rgba(45, 212, 168, 0.12);
  --accent-gold: #d4a574;
  --accent-gold-dim: rgba(212, 165, 116, 0.16);
  --accent-blue: #60a5fa;
  --glass: rgba(10, 20, 32, 0.94);
  --glass-border: rgba(148, 163, 184, 0.2);
  --glass-highlight: rgba(255, 255, 255, 0.05);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-top: calc(46px + env(safe-area-inset-top));
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.mono-legal {
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 1vw, 0.88rem);
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.ticker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  min-height: 46px;
  background: var(--glass);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  padding-top: env(safe-area-inset-top);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker-drift 52s linear infinite;
}

.ticker__dup {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.65rem 1.5rem;
  white-space: nowrap;
}

.ticker__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--accent-gold);
}

.ticker__sep { color: var(--text-muted); font-size: 0.55rem; }

.ticker__item {
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 1.8vw, 0.78rem);
  color: var(--text-secondary);
}

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

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}

.hero__mist {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(155deg, rgba(10, 20, 32, 0.2) 0%, rgba(10, 20, 32, 0.85) 55%),
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(96, 165, 250, 0.12), transparent),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(220, 38, 38, 0.08), transparent),
    linear-gradient(180deg, #152535 0%, var(--bg-primary) 100%);
  z-index: 0;
}

.hero__lines {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 48px,
    rgba(148, 163, 184, 0.15) 48px,
    rgba(148, 163, 184, 0.15) 49px
  );
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 72rem;
  width: 100%;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(0.65rem, 1.5vw, 0.72rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1.25rem;
  max-width: 38rem;
}

.hero__display {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin-bottom: 1.75rem;
}

.hero__display span {
  display: block;
  font-size: clamp(3.5rem, 12vw, 10rem);
}

.hero__w1 { color: var(--text-primary); }
.hero__w2 { color: var(--accent-red); padding-left: clamp(0.5rem, 8vw, 4rem); }
.hero__w3 { color: var(--accent-blue); font-style: italic; }

.hero__lead {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 42rem;
  font-weight: 400;
}

.hero__lead strong { color: var(--text-primary); font-weight: 600; }

.hero__seal {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  backdrop-filter: blur(12px);
  max-width: 36rem;
}

.hero__seal-ring svg { display: block; }

.hero__seal-copy {
  flex: 1;
  min-width: 12rem;
}

.hero__seal-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-red);
  margin-bottom: 0.35rem;
}

.hero__seal-val {
  font-size: clamp(0.85rem, 1.1vw, 0.95rem);
  color: var(--text-secondary);
  line-height: 1.55;
}

.section {
  position: relative;
  padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 5vw, 4rem);
  max-width: 72rem;
  margin: 0 auto;
}

.section--bleed {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.section--bleed .section__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 4rem);
}

.ed-label {
  font-family: var(--font-mono);
  font-size: clamp(0.65rem, 1.2vw, 0.72rem);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  max-width: 52rem;
}

.section__body {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  max-width: 44rem;
}

.section__body strong { color: var(--text-primary); }

.section__cite,
.section__cite--secondary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 1vw, 0.82rem);
  color: var(--accent-blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease-out-quart), color 0.2s;
  margin-right: 1.5rem;
  margin-top: 0.5rem;
}

.section__cite--secondary { color: var(--text-muted); }

.section__cite:hover,
.section__cite--secondary:hover {
  border-bottom-color: currentColor;
  color: var(--accent-gold);
}

/* Standing split — abortion */
.stand-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 2rem 0;
  border: 1px solid var(--glass-border);
  border-radius: 2px;
  overflow: hidden;
}

.stand-split__col {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--bg-surface);
}

.stand-split__col--dismiss {
  background: var(--accent-green-dim);
  border-left: 3px solid var(--accent-green);
}

.stand-split__tag {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.stand-split__col p {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Selfridge funding */
.fund-ribbon {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 2rem;
  margin: 2rem 0;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: linear-gradient(90deg, var(--accent-gold-dim), transparent);
  border-left: 4px solid var(--accent-gold);
}

.fund-ribbon__num {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
}

.fund-ribbon__sub {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  color: var(--text-secondary);
  max-width: 22rem;
  line-height: 1.6;
}

.fund-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.fund-pair__chip {
  flex: 1 1 200px;
  padding: 1rem 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
}

.fund-pair__chip span:first-child {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

/* PFAS compare */
.pfas-matrix {
  margin: 2rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pfas-matrix table {
  width: 100%;
  min-width: 320px;
  border-collapse: collapse;
  font-size: clamp(0.82rem, 1vw, 0.92rem);
}

.pfas-matrix th,
.pfas-matrix td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

.pfas-matrix th {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-secondary);
}

.pfas-matrix td:first-child {
  font-family: var(--font-mono);
  color: var(--accent-blue);
}

.pfas-matrix .looser { color: var(--accent-red); }
.pfas-matrix .stricter { color: var(--accent-green); }

/* EO council ladder */
.council-ladder {
  list-style: none;
  margin: 2rem 0;
  counter-reset: ladder;
}

.council-ladder li {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 0.35rem 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--glass-border);
  align-items: start;
}

.council-ladder li > span.mono-legal {
  grid-column: 2;
  display: block;
}

.council-ladder li > span:not(.mono-legal) {
  grid-column: 2;
  font-size: clamp(0.9rem, 1.05vw, 1rem);
  color: var(--text-secondary);
  line-height: 1.6;
}

.council-ladder li::before {
  counter-increment: ladder;
  content: counter(ladder, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--accent-gold-dim);
  color: var(--accent-gold);
  opacity: 0.7;
}

/* Skills directive */
.skills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.skills-row__item {
  flex: 1 1 240px;
  padding: 1.35rem;
  border: 1px solid var(--glass-border);
  background: var(--bg-surface);
  backdrop-filter: blur(8px);
}

.skills-row__item .mono-legal {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--accent-blue);
}

/* Emergency timeline */
.emer-track {
  position: relative;
  margin: 2rem 0 2rem 1.5rem;
  padding-left: 2rem;
  border-left: 2px solid var(--accent-red-dim);
}

.emer-track__node {
  position: relative;
  padding-bottom: 1.75rem;
}

.emer-track__node::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--accent-red);
  box-shadow: 0 0 12px var(--accent-red-dim);
}

.emer-track__when {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--accent-red);
  margin-bottom: 0.35rem;
}

/* Data center debate */
.debate-arena {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.debate-arena__side {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: 2px;
}

.debate-arena__side--industry {
  background: var(--accent-gold-dim);
  border-top: 3px solid var(--accent-gold);
}

.debate-arena__side--env {
  background: var(--accent-green-dim);
  border-top: 3px solid var(--accent-green);
}

.debate-arena__who {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: block;
}

.debate-arena__side p {
  font-size: clamp(0.88rem, 1.05vw, 0.98rem);
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Medicaid charges */
.charge-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0;
  align-items: center;
}

.charge-wall__big {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 14vw, 7rem);
  font-weight: 800;
  line-height: 1;
  color: var(--accent-red);
}

.charge-wall__list {
  flex: 1 1 200px;
  list-style: none;
}

.charge-wall__list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--glass-border);
  font-size: clamp(0.88rem, 1vw, 0.95rem);
  color: var(--text-secondary);
}

.charge-wall__list .mono-legal { color: var(--accent-red); }

/* Google settlement strip */
.restit-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 2rem 0;
  border: 1px solid var(--glass-border);
  overflow: hidden;
}

.restit-strip__step {
  flex: 1 1 140px;
  padding: 1.25rem;
  background: var(--bg-secondary);
  border-right: 1px solid var(--glass-border);
  min-height: 44px;
}

.restit-strip__step:last-child { border-right: none; }

.restit-strip__step span:first-child {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 0.4rem;
}

/* Cannabis mono rail */
.mono-rail {
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 1vw, 0.88rem);
  line-height: 1.9;
  color: var(--text-secondary);
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-left: 3px solid var(--accent-gold);
  margin: 2rem 0;
}

.mono-rail strong { color: var(--text-primary); }

/* Clean slate */
.slate-duo {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 2fr;
  gap: 2rem;
  align-items: center;
  margin: 2rem 0;
}

.slate-duo__stat {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 800;
  color: var(--accent-green);
  line-height: 1;
}

.slate-duo__note {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  color: var(--text-secondary);
  line-height: 1.65;
}

.bill-scroll-wrap {
  overflow-x: auto;
  margin: 2rem 0;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
}

.bill-scroll {
  display: flex;
  gap: 0;
  width: max-content;
  min-width: 100%;
}

.bill-scroll__card {
  flex: 0 0 auto;
  width: clamp(200px, 40vw, 280px);
  padding: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-right: none;
}

.bill-scroll__card:last-child { border-right: 1px solid var(--glass-border); }

.bill-scroll__card .mono-legal {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--accent-gold);
}

/* Week ahead — calendar cards */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.cal-card {
  padding: 1.35rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  min-height: 44px;
}

.cal-card time {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--accent-gold);
  margin-bottom: 0.65rem;
}

.cal-card p {
  font-size: clamp(0.88rem, 1.05vw, 0.98rem);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Section variants */
.section--doj { background: linear-gradient(180deg, transparent, rgba(220, 38, 38, 0.04)); }
.section--abort { padding-top: 2rem; }
.section--selfridge {
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}
.section--pfas .section__inner { max-width: 56rem; }
.section--reads { border-left: 4px solid var(--accent-blue); margin-left: clamp(0rem, 3vw, 2rem); }
.section--mackinac {
  background: radial-gradient(ellipse at top right, var(--accent-gold-dim), transparent 60%);
}

.site-footer {
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) clamp(1.25rem, 5vw, 2rem);
  padding-bottom: calc(3rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--glass-border);
  background: var(--bg-secondary);
}

.site-footer__brand {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.site-footer__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #17b26a;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.site-footer__regen {
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.site-footer__session {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.site-footer__timestamp {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.site-footer .source {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-blue);
  text-decoration: none;
  min-height: 44px;
  align-items: center;
}

@media (max-width: 768px) {
  .stand-split,
  .debate-arena { grid-template-columns: 1fr; }
  .stand-split__col--dismiss { border-left: none; border-top: 3px solid var(--accent-green); }
  .slate-duo { grid-template-columns: 1fr; }
  .hero__w2 { padding-left: 0.25rem; }
}

@media (max-width: 480px) {
  .fund-pair__chip { flex: 1 1 100%; }
  .cal-grid { grid-template-columns: 1fr; }
}
