:root {
  color-scheme: light;
  --paper: #f8f7f2;
  --ink: #14201d;
  --charcoal: #202522;
  --navy: #172a46;
  --muted: #65706a;
  --line: #d9ded4;
  --soft: #eef4ea;
  --green: #b7d8aa;
  --green-deep: #3f6f4f;
  --red: #b65d56;
  --blue: #315f9f;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(20, 32, 29, 0.1);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(183, 216, 170, 0.18), transparent 330px),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(20, 32, 29, 0.035) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(0deg, rgba(20, 32, 29, 0.025) 1px, transparent 1px) 0 0 / 72px 72px;
  mask-image: linear-gradient(180deg, #000 0, transparent 78%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 18px 0;
  background: rgba(248, 247, 242, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(222, 219, 213, 0.8);
}

.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  width: min(260px, 36vw);
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--green), var(--blue));
}

.brand,
.site-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 750;
  letter-spacing: 0;
  color: var(--navy);
}

.brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1.1;
}

.brand-copy span:first-child {
  font-weight: 800;
}

.brand-copy span:last-child {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.site-nav {
  gap: 8px;
  font-size: 0.95rem;
}

.site-nav a {
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--charcoal);
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--soft);
  color: var(--green-deep);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 1.06fr);
  align-items: center;
  gap: 56px;
  width: min(100% - 32px, var(--max));
  min-height: calc(100vh - 80px);
  margin: 0 auto;
  padding: 56px 0 70px;
}

.hero::before {
  content: "CASE FILE / ELLIOT'S BENCH";
  position: absolute;
  top: 34px;
  right: 0;
  color: rgba(23, 42, 70, 0.16);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  writing-mode: vertical-rl;
}

.hero-copy {
  max-width: 610px;
}

.eyebrow,
.post-kicker,
.label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 680px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.6rem, 8vw, 6.9rem);
  font-weight: 500;
}

.hero-subhead,
.page-hero p,
.article-header p {
  color: #3f3f3f;
  font-size: 1.14rem;
}

.hero-subhead {
  max-width: 610px;
  margin: 24px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-brief-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  width: fit-content;
  background: rgba(255, 255, 255, 0.5);
}

.hero-brief-rail span {
  padding: 10px 13px;
  color: var(--charcoal);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-brief-rail span + span {
  border-left: 1px solid var(--line);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 0 18px;
  font-weight: 700;
}

.button.primary {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.button.secondary {
  background: transparent;
}

.latest-story-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(183, 216, 170, 0.78), rgba(255, 255, 255, 0.92) 46%, rgba(49, 95, 159, 0.1)),
    repeating-linear-gradient(0deg, rgba(20, 32, 29, 0.045) 0 1px, transparent 1px 36px),
    var(--white);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.latest-story-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(20, 32, 29, 0.09);
  border-radius: 6px;
  pointer-events: none;
}

.latest-story-card::after {
  content: "OPEN DOCKET";
  position: absolute;
  right: -46px;
  top: 38px;
  width: 190px;
  padding: 7px 0;
  transform: rotate(32deg);
  background: var(--navy);
  color: var(--white);
  text-align: center;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.latest-story-card:hover {
  transform: translateY(-4px);
  border-color: rgba(63, 111, 79, 0.45);
  box-shadow: 0 24px 60px rgba(20, 32, 29, 0.14);
}

.latest-story-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.latest-story-card .eyebrow {
  margin: 0;
  color: var(--green-deep);
}

.story-tag,
.story-link {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
}

.latest-story-card h2 {
  margin-bottom: 16px;
  color: var(--green-deep);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.latest-story-card h3 {
  max-width: 520px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  font-weight: 500;
}

.latest-story-card p {
  max-width: 520px;
  color: #34423b;
  font-size: 1.04rem;
}

.story-link {
  align-self: flex-start;
  border-color: rgba(63, 111, 79, 0.45);
  background: var(--green);
  color: var(--ink);
}

.story-sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 520px;
  margin: 12px 0 22px;
}

.story-sides span {
  border-left: 4px solid var(--red);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--charcoal);
  font-size: 0.82rem;
  font-weight: 850;
}

.story-sides span:nth-child(2) {
  border-left-color: var(--blue);
}

.purpose-strip,
.intro-grid,
.principles {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.purpose-strip {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px;
  max-width: var(--max);
  padding: 54px 0 42px;
  border-top: 1px solid var(--line);
}

.purpose-label {
  position: sticky;
  top: 92px;
  align-self: start;
}

.purpose-label span {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--white);
  color: var(--green-deep);
  font-size: 0.76rem;
  font-weight: 850;
}

.purpose-strip h2 {
  max-width: 880px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4.6vw, 4.5rem);
  font-weight: 500;
  line-height: 1.05;
}

.purpose-strip p:last-child {
  max-width: 650px;
  color: #3f4b45;
  font-size: 1.12rem;
}

.intro-grid,
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 auto 44px;
  border: 1px solid var(--line);
  background: var(--line);
}

.intro-grid article,
.principles article {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: 30px;
  background: var(--white);
}

.intro-grid article::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -38px;
  width: 116px;
  height: 116px;
  border: 1px solid rgba(20, 32, 29, 0.08);
  transform: rotate(18deg);
}

.accent-line {
  display: block;
  width: 44px;
  height: 3px;
  margin-bottom: 34px;
}

.accent-line.red {
  background: var(--red);
}

.accent-line.blue {
  background: var(--blue);
}

.accent-line.black {
  background: var(--green-deep);
}

.card-number {
  margin: 0 0 10px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
  line-height: 1;
}

.intro-grid h2,
.principles h2,
.feature-band h2,
.latest h2,
.post-row h2,
.hub-card h2,
.category-card h2,
.timeline-preview h2,
.analysis-section h2,
.argument-card h2,
.contact-note h2 {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.intro-grid p,
.principles p,
.feature-band p,
.post-preview p,
.post-row p,
.hub-card p,
.category-card p,
.timeline-preview p,
.analysis-section p,
.argument-card p,
.mission-copy p,
.contact-note p {
  color: #454545;
}

.feature-band,
.focus-band,
.latest,
.posts-feature,
.posts-library,
.bench-chat-profiles,
.page-shell,
.article-shell {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.feature-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
  padding: 64px 0;
  border-top: 1px solid var(--navy);
  border-bottom: 1px solid var(--navy);
  background: linear-gradient(90deg, rgba(23, 42, 70, 0.035), rgba(183, 216, 170, 0.13));
}

.focus-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 auto;
  border: 1px solid var(--navy);
  background: var(--navy);
}

.focus-band article {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  padding: 28px;
  background: linear-gradient(145deg, var(--navy), #203d3a);
  color: var(--white);
}

.focus-band article::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: 24px;
  width: 92px;
  height: 3px;
  transform: rotate(-24deg);
  background: rgba(183, 216, 170, 0.55);
}

.focus-band .eyebrow {
  color: var(--green);
}

.focus-band h2 {
  max-width: 260px;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.latest,
.posts-feature,
.posts-library {
  padding: 82px 0;
}

.posts-feature {
  padding-top: 0;
  padding-bottom: 46px;
}

.posts-library {
  padding-top: 0;
}

.bench-chat-profiles {
  padding: 20px 0 70px;
}

.profile-grid,
.docket-roadmap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.profile-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: var(--white);
}

.profile-card::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -36px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(20, 32, 29, 0.08);
  transform: rotate(18deg);
}

.madison-card {
  border-top: 4px solid var(--blue);
  background: linear-gradient(180deg, rgba(49, 95, 159, 0.08), var(--white) 34%);
}

.marshall-card {
  border-top: 4px solid var(--red);
  background: linear-gradient(180deg, rgba(182, 93, 86, 0.08), var(--white) 34%);
}

.profile-card h3 {
  font-size: clamp(1.45rem, 2.3vw, 2.05rem);
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.profile-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.compact-latest {
  padding-top: 0;
}

.section-heading {
  margin-bottom: 22px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.filter-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: var(--white);
  color: var(--charcoal);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
}

.filter-button:hover,
.filter-button.active {
  border-color: rgba(63, 111, 79, 0.5);
  background: var(--green);
  color: var(--ink);
}

.post-preview,
.post-row {
  display: flex;
  justify-content: space-between;
  gap: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  background: var(--white);
}

.post-preview {
  align-items: flex-end;
  border-top: 4px solid var(--green);
  box-shadow: var(--shadow);
}

.post-preview h3 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.post-preview span,
.status-pill {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--charcoal);
  font-size: 0.84rem;
  font-weight: 750;
}

.brief-card {
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.brief-card:hover {
  transform: translateY(-2px);
  border-color: rgba(63, 111, 79, 0.42);
  box-shadow: 0 14px 34px rgba(20, 32, 29, 0.08);
}

.brief-card.is-hidden {
  display: none;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.post-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  background: #f9faf6;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--muted);
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 30px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.93rem;
}

.page-shell {
  padding: 74px 0 92px;
}

.page-hero {
  max-width: 760px;
  margin-bottom: 42px;
}

.page-hero h1,
.mission-layout h1,
.article-header h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6vw, 5.6rem);
  font-weight: 500;
}

.post-list {
  display: grid;
  gap: 14px;
}

.section-hub,
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.section-hub {
  margin: 0 auto 12px;
}

.browse-hub {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 10px;
}

.hub-card,
.category-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  background: var(--white);
}

.hub-card {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hub-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--ink);
}

.hub-card.current::before {
  background: var(--red);
}

.hub-card.archive::before {
  background: var(--blue);
}

.hub-card.timeline::before {
  background: var(--green-deep);
}

.hub-card.campus::before {
  background: var(--navy);
}

.hub-card span {
  margin-top: auto;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.category-card {
  min-height: 245px;
}

.category-card .status-pill {
  align-self: flex-start;
  margin-top: auto;
}

.text-link {
  align-self: flex-start;
  margin-top: auto;
  color: var(--green-deep);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.secondary-link {
  margin-top: 8px;
}

.timeline-preview {
  position: relative;
  display: grid;
  gap: 22px;
  max-width: 820px;
  border-left: 2px solid var(--green-deep);
  padding-left: 28px;
}

.timeline-preview article {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--white);
}

.timeline-preview article::before {
  content: "";
  position: absolute;
  top: 28px;
  left: -36px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--green-deep);
  border-radius: 50%;
  background: var(--paper);
}

.timeline-preview time {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-row {
  align-items: flex-start;
}

.post-row.muted {
  background: transparent;
}

.mission-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 72px;
}

.mission-copy {
  border-left: 3px solid var(--ink);
  padding-left: 28px;
  font-size: 1.1rem;
}

.article-shell {
  padding: 52px 0 86px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--muted);
  font-weight: 700;
}

.analysis-article {
  max-width: 920px;
}

.article-header {
  position: relative;
  border-bottom: 1px solid var(--line);
  padding-bottom: 30px;
  margin-bottom: 46px;
}

.article-header::before {
  content: "BENCH BRIEF";
  display: inline-flex;
  margin-bottom: 18px;
  border: 1px solid rgba(63, 111, 79, 0.35);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(183, 216, 170, 0.3);
  color: var(--green-deep);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.brief-toolbar {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  margin: -18px 0 42px;
}

.brief-meta,
.brief-toc {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.brief-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.brief-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 9px;
  background: var(--white);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.brief-meta span:first-child {
  border-color: rgba(23, 42, 70, 0.35);
  background: var(--navy);
  color: var(--white);
}

.brief-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.brief-toc span {
  width: 100%;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brief-toc a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--white);
  color: var(--charcoal);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.brief-toc a:hover {
  border-color: rgba(63, 111, 79, 0.45);
  background: var(--green);
}

.brief-intro {
  border-top: 4px solid var(--green);
}

.analysis-section {
  border-top: 1px solid var(--line);
  scroll-margin-top: 100px;
  padding: 34px 0;
}

.analysis-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.analysis-section h2::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--green-deep);
}

.analysis-section p,
.argument-card p {
  font-size: 1.05rem;
}

.sources-section {
  scroll-margin-top: 100px;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--white);
}

.sources-section h2 {
  font-size: 1.4rem;
}

.source-note {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.sources-section ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

.sources-section li + li {
  margin-top: 8px;
}

.sources-section a {
  color: var(--green-deep);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.analysis-article a:not(.back-link) {
  color: var(--green-deep);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.side-by-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  scroll-margin-top: 100px;
  margin: 18px 0 34px;
}

.argument-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
  background: var(--white);
}

.argument-card::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -36px;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(20, 32, 29, 0.08);
  transform: rotate(18deg);
}

.side-a {
  border-top: 4px solid var(--red);
  background: linear-gradient(180deg, rgba(182, 93, 86, 0.08), var(--white) 38%);
}

.side-b {
  border-top: 4px solid var(--blue);
  background: linear-gradient(180deg, rgba(49, 95, 159, 0.08), var(--white) 38%);
}

.message-thread {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  margin: 10px 0 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(183, 216, 170, 0.18), rgba(255, 255, 255, 0.72)),
    var(--white);
}

.thread-heading {
  margin-bottom: 4px;
}

.thread-heading h2 {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.thread-deck {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.message {
  display: grid;
  gap: 6px;
  max-width: min(78%, 620px);
}

.message > .chat-name {
  position: relative;
  width: max-content;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: help;
  outline: none;
}

.message > .chat-name::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0.28;
}

.name-popover {
  position: absolute;
  z-index: 20;
  left: 0;
  bottom: calc(100% + 10px);
  width: min(260px, 70vw);
  border: 1px solid var(--navy);
  border-radius: 8px;
  padding: 12px;
  background: var(--white);
  color: var(--charcoal);
  box-shadow: 0 16px 40px rgba(20, 32, 29, 0.16);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  text-align: left;
  text-transform: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.red-ed .name-popover {
  right: 0;
  left: auto;
}

.message > .chat-name:hover .name-popover,
.message > .chat-name:focus .name-popover,
.message > .chat-name:focus-within .name-popover {
  opacity: 1;
  transform: translateY(0);
}

.message p {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 15px;
  color: var(--charcoal);
  font-size: 0.98rem;
  line-height: 1.45;
  box-shadow: 0 8px 22px rgba(20, 32, 29, 0.05);
}

.blue-sue {
  justify-self: start;
}

.blue-sue p {
  border-bottom-left-radius: 4px;
  border-color: rgba(49, 95, 159, 0.2);
  background: rgba(49, 95, 159, 0.09);
}

.red-ed {
  justify-self: end;
  text-align: right;
}

.red-ed p {
  border-bottom-right-radius: 4px;
  border-color: rgba(182, 93, 86, 0.24);
  background: rgba(182, 93, 86, 0.09);
}

.analysis-section:nth-of-type(2n) {
  background: linear-gradient(90deg, rgba(183, 216, 170, 0.11), transparent);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.daily-docket-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: stretch;
  margin-bottom: 42px;
}

.daily-docket-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 7vw, 6.4rem);
  font-weight: 500;
}

.daily-docket-hero p {
  max-width: 720px;
  color: #3f3f3f;
  font-size: 1.14rem;
}

.docket-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(183, 216, 170, 0.35), rgba(255, 255, 255, 0.8)),
    var(--white);
  box-shadow: var(--shadow);
}

.docket-card h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
}

.docket-card ul {
  margin: 22px 0 0;
  padding-left: 20px;
  color: #454545;
}

.docket-roadmap {
  grid-template-columns: repeat(3, 1fr);
}

.docket-roadmap article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--white);
}

.docket-roadmap span {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--green-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
}

.docket-roadmap h2 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.contact-form,
.contact-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: var(--white);
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #303030;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  background: #fdfcf9;
  color: var(--ink);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .hero,
  .purpose-strip,
  .feature-band,
  .focus-band,
  .mission-layout,
  .contact-layout,
  .daily-docket-hero {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 32px;
    min-height: auto;
    padding-top: 44px;
  }

  .hero::before {
    display: none;
  }

  .purpose-label {
    position: static;
  }

  .intro-grid,
  .focus-band,
  .profile-grid,
  .docket-roadmap,
  .principles,
  .side-by-side,
  .section-hub,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .browse-hub {
    grid-template-columns: 1fr;
  }

  .post-preview,
  .post-row,
  .brief-toolbar,
  .site-footer {
    flex-direction: column;
  }

  .brief-toolbar {
    grid-template-columns: 1fr;
  }

  .mission-copy {
    border-left: 0;
    border-top: 3px solid var(--ink);
    padding: 24px 0 0;
  }
}

@media (max-width: 560px) {
  .hero h1,
  .page-hero h1,
  .mission-layout h1,
  .article-header h1 {
    font-size: 3rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .latest-story-card {
    min-height: 360px;
  }

  .latest-story-card::after {
    right: -58px;
    top: 30px;
  }

  .latest-story-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-brief-rail,
  .story-sides {
    width: 100%;
  }

  .hero-brief-rail span {
    flex: 1 1 100%;
  }

  .hero-brief-rail span + span {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .story-sides {
    grid-template-columns: 1fr;
  }

  .intro-grid article,
  .focus-band article,
  .principles article,
  .profile-card,
  .docket-card,
  .docket-roadmap article,
  .post-preview,
  .post-row,
  .latest-story-card,
  .argument-card,
  .message-thread,
  .hub-card,
  .category-card,
  .timeline-preview article,
  .contact-form,
  .contact-note {
    padding: 22px;
  }

  .message {
    max-width: 100%;
  }
}
