:root {
  color-scheme: light;
  --ink: #11120f;
  --muted: #62675d;
  --paper: #f7f4ec;
  --paper-deep: #e9e0d0;
  --line: rgba(17, 18, 15, 0.14);
  --green: #23634c;
  --blue: #234e70;
  --red: #b64631;
  --gold: #c7962d;
  --white: #fffdf8;
  --shadow: 0 24px 70px rgba(42, 34, 21, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(17, 18, 15, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(17, 18, 15, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 244, 236, 0.88);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.hero-actions,
.mode-strip,
.command-head {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.site-nav {
  justify-content: center;
  gap: clamp(12px, 3vw, 30px);
  color: var(--muted);
  font-size: 0.94rem;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--ink);
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.icon-button:hover,
.mode-button:hover,
.protocol-step:hover {
  border-color: rgba(17, 18, 15, 0.42);
}

.hero {
  min-height: calc(100vh - 73px);
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1fr) minmax(220px, 0.45fr);
  align-items: center;
  gap: clamp(22px, 4vw, 58px);
  padding: clamp(36px, 7vw, 96px) clamp(18px, 4vw, 54px) 42px;
  border-bottom: 1px solid var(--line);
}

.hero-art {
  position: relative;
  min-height: 540px;
  border: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 24%, rgba(199, 150, 45, 0.28), transparent 24%),
    radial-gradient(circle at 75% 70%, rgba(35, 99, 76, 0.25), transparent 28%),
    #eee7da;
}

.orbit {
  position: absolute;
  inset: 50%;
  border: 1px solid rgba(17, 18, 15, 0.24);
  transform: translate(-50%, -50%) rotate(-18deg);
}

.orbit-one {
  width: 74%;
  aspect-ratio: 1;
}

.orbit-two {
  width: 110%;
  aspect-ratio: 1 / 0.64;
  transform: translate(-50%, -50%) rotate(25deg);
}

.orbit-three {
  width: 48%;
  aspect-ratio: 1;
  background: rgba(255, 253, 248, 0.45);
}

.axis-line {
  position: absolute;
  left: 50%;
  top: 8%;
  bottom: 8%;
  width: 1px;
  background: rgba(17, 18, 15, 0.22);
  transform: rotate(34deg);
}

.artifact-card {
  position: absolute;
  width: min(74%, 260px);
  padding: 16px;
  border: 1px solid rgba(17, 18, 15, 0.18);
  background: rgba(255, 253, 248, 0.84);
  box-shadow: var(--shadow);
}

.artifact-card span,
.label,
.tag,
.eyebrow,
.status {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.artifact-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.1rem;
}

.artifact-one {
  left: 9%;
  top: 16%;
  border-left: 5px solid var(--blue);
}

.artifact-two {
  right: 8%;
  top: 46%;
  border-left: 5px solid var(--green);
}

.artifact-three {
  left: 14%;
  bottom: 12%;
  border-left: 5px solid var(--red);
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.3rem, 13vw, 11rem);
  font-weight: 700;
  line-height: 0.82;
}

h2 {
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 0.98;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  line-height: 1.18;
}

.hero-lede,
.section-heading p,
.dispatches p {
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.28rem);
  max-width: 68ch;
}

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

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

.button.primary {
  background: var(--ink);
  color: var(--paper);
}

.button.secondary {
  background: var(--white);
}

.signal-panel {
  display: grid;
  gap: 12px;
}

.signal-panel div,
.note-card,
.protocol-detail,
.resource-stack article,
.project-item,
.subscribe-form {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.78);
  box-shadow: 0 12px 40px rgba(42, 34, 21, 0.08);
}

.signal-panel div {
  padding: 16px;
}

.signal-panel p,
.note-card p,
.protocol-detail p,
.resource-stack p,
.project-item p,
.form-note {
  margin-bottom: 0;
  color: var(--muted);
}

.mode-strip {
  position: sticky;
  top: 73px;
  z-index: 10;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 244, 236, 0.86);
  backdrop-filter: blur(16px);
}

.mode-button,
.protocol-step {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.mode-button {
  min-height: 38px;
  padding: 0 14px;
}

.mode-button.active,
.protocol-step.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.section-grid,
.academic-band,
.dispatches {
  padding: clamp(54px, 8vw, 104px) clamp(18px, 4vw, 54px);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 70px);
}

.section-heading {
  max-width: 520px;
}

.section-heading.wide {
  max-width: 920px;
}

.notes-grid,
.project-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.note-card,
.project-item {
  min-height: 240px;
  padding: 22px;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.note-card.is-hidden,
.project-item.is-hidden {
  opacity: 0.16;
  transform: scale(0.98);
}

.tag {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--green);
}

.academic-band {
  border-block: 1px solid var(--line);
  background: #ece7dc;
}

.weapon-layout {
  display: grid;
  grid-template-columns: 240px minmax(280px, 0.9fr) minmax(260px, 0.7fr);
  gap: 16px;
  margin-top: 38px;
}

.protocol-list,
.resource-stack {
  display: grid;
  gap: 10px;
}

.protocol-step {
  min-height: 62px;
  padding: 0 16px;
  text-align: left;
}

.protocol-step span {
  display: inline-block;
  width: 42px;
  color: currentColor;
}

.protocol-detail {
  min-height: 334px;
  padding: clamp(24px, 4vw, 42px);
  background:
    linear-gradient(135deg, rgba(35, 78, 112, 0.12), transparent 42%),
    var(--white);
}

.protocol-detail .tag {
  margin-bottom: 84px;
}

.protocol-detail h3 {
  font-size: clamp(1.7rem, 3vw, 3.1rem);
}

.resource-stack article {
  padding: 18px;
}

.status {
  display: inline-flex;
  margin-bottom: 64px;
  color: var(--red);
}

.dispatches {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.5fr);
  align-items: start;
  gap: clamp(24px, 5vw, 70px);
}

.subscribe-form {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.subscribe-form label {
  font-weight: 900;
}

.subscribe-form div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.subscribe-form input {
  min-width: 0;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--white);
  color: var(--ink);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 54px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.command-menu {
  width: min(460px, calc(100vw - 36px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.command-menu::backdrop {
  background: rgba(17, 18, 15, 0.28);
  backdrop-filter: blur(4px);
}

.command-head {
  justify-content: space-between;
  margin-bottom: 12px;
}

.command-head h2 {
  margin: 0;
  font-size: 1.4rem;
}

.command-menu a {
  display: block;
  border-top: 1px solid var(--line);
  padding: 14px 4px;
  font-weight: 800;
}

@media (max-width: 1060px) {
  .hero,
  .weapon-layout {
    grid-template-columns: 1fr 1fr;
  }

  .hero-art {
    min-height: 420px;
  }

  .signal-panel,
  .resource-stack {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .section-grid,
  .dispatches,
  .weapon-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-art {
    order: 2;
    min-height: 360px;
  }

  .signal-panel,
  .resource-stack,
  .notes-grid,
  .project-board {
    grid-template-columns: 1fr;
  }

  .mode-strip {
    top: 126px;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .mode-button {
    flex: 0 0 auto;
  }

  .note-card,
  .project-item {
    min-height: 190px;
  }

  .subscribe-form div {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
