@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,650;12..96,800&family=IBM+Plex+Mono:wght@400;500;600&family=Newsreader:opsz,wght@6..72,400;6..72,600&display=swap');

:root {
  --paper: #f5f1e8;
  --paper-bright: #fffdf7;
  --ink: #121411;
  --muted: #62665f;
  --line: #c8c9bd;
  --green: #cce614;
  --green-dark: #536000;
  --blue: #2554c7;
  --blue-soft: #dce6ff;
  --coral: #ff654a;
  --coral-soft: #ffe0d9;
  --max: 1180px;
  --reading: 760px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(rgba(18, 20, 17, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 20, 17, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  font-family: "Newsreader", Georgia, serif;
  font-size: 18px;
  line-height: 1.65;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration-color: var(--blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--blue);
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 9px 13px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--paper-bright);
  background: var(--ink);
  border-bottom: 3px solid var(--green);
}

.header-inner {
  width: min(calc(100% - 40px), var(--max));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.05;
  text-decoration: none;
}

.brand:hover {
  color: var(--paper-bright);
}

.brand-mark {
  width: 34px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--ink);
  background: var(--green);
  border: 2px solid var(--paper-bright);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  transform: rotate(-3deg);
}

.brand span:last-child {
  max-width: 180px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
}

.site-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid transparent;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--green);
  border-color: var(--green);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  padding: 0;
  color: var(--paper-bright);
  background: transparent;
  border: 1px solid #555a52;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  width: 19px;
  height: 2px;
  display: block;
  content: "";
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle span {
  margin: 4px 0;
}

.nav-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"]::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
  transform: translateY(-6px) rotate(-45deg);
}

.page-shell {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.eyebrow,
.kicker,
.meta,
.label,
.section-index,
.tag,
.mini-label {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0;
}

.eyebrow,
.kicker,
.mini-label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.eyebrow::before {
  width: 22px;
  height: 8px;
  content: "";
  background: var(--coral);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(48px, 7vw, 102px);
}

h2 {
  font-size: clamp(34px, 4vw, 58px);
}

h3 {
  font-size: 26px;
  line-height: 1.15;
}

h4 {
  font-size: 20px;
  line-height: 1.2;
}

p {
  margin: 0 0 1.2em;
}

.lede {
  max-width: 740px;
  font-size: clamp(21px, 2.2vw, 30px);
  line-height: 1.35;
}

.home-hero {
  min-height: min(780px, calc(100vh - 74px));
  padding: 64px 0 36px;
  display: grid;
  align-content: space-between;
  gap: 42px;
}

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

.hero-copy h1 {
  max-width: 1030px;
  margin: 20px 0 24px;
}

.highlight {
  position: relative;
  z-index: 0;
  white-space: nowrap;
}

.highlight::after {
  position: absolute;
  right: -0.04em;
  bottom: 0.05em;
  left: -0.04em;
  z-index: -1;
  height: 0.28em;
  content: "";
  background: var(--green);
  transform: rotate(-1deg);
}

.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.65fr);
  gap: 26px;
  align-items: end;
}

.hero-visual {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 10px 10px 0 var(--blue);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.hero-visual figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  color: #fff;
  background: rgba(18, 20, 17, 0.9);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}

.field-note {
  padding: 22px;
  background: var(--coral-soft);
  border: 2px solid var(--ink);
  box-shadow: 7px 7px 0 var(--ink);
  transform: rotate(1deg);
}

.field-note p:last-child {
  margin: 0;
}

.field-note .kicker {
  display: block;
  margin-bottom: 12px;
  color: #8b240f;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 17px;
  color: var(--paper-bright);
  background: var(--ink);
  border: 2px solid var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  color: var(--ink);
  background: var(--green);
}

.button.secondary {
  color: var(--ink);
  background: transparent;
}

.button.secondary:hover {
  background: var(--blue-soft);
}

.button::after {
  content: "↗";
  font-size: 16px;
}

.section-band {
  padding: 82px 0;
  border-top: 2px solid var(--ink);
}

.section-band.dark {
  width: 100%;
  color: var(--paper-bright);
  background: var(--ink);
  border-top: 0;
}

.section-band.blue {
  width: 100%;
  background: var(--blue-soft);
}

.section-heading {
  margin-bottom: 38px;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.section-index {
  padding-top: 9px;
  font-size: 13px;
  font-weight: 600;
}

.section-heading p {
  max-width: 660px;
  margin: 14px 0 0;
  font-size: 21px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.guide-card {
  min-width: 0;
  min-height: 330px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 34px;
  color: inherit;
  background: rgba(255, 253, 247, 0.78);
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.guide-card:hover {
  color: var(--ink);
  background: var(--green);
  transform: translateY(-4px);
}

.guide-card h3 {
  max-width: 320px;
}

.guide-card p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.guide-card:hover p {
  color: var(--ink);
}

.guide-card .meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  text-transform: uppercase;
}

.signal-list {
  counter-reset: signal;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #61665f;
}

.signal-item {
  position: relative;
  min-height: 220px;
  padding: 28px 24px 26px 70px;
  border-right: 1px solid #61665f;
  border-bottom: 1px solid #61665f;
  counter-increment: signal;
}

.signal-item:nth-child(2n) {
  border-right: 0;
}

.signal-item::before {
  position: absolute;
  top: 30px;
  left: 24px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  content: counter(signal, decimal-leading-zero);
  color: var(--ink);
  background: var(--green);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}

.signal-item h3 {
  margin-bottom: 12px;
  font-size: 24px;
}

.signal-item p {
  margin: 0;
  color: #c8cdc5;
  font-size: 17px;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--coral);
  border: 2px solid var(--ink);
}

.proof-item {
  min-height: 150px;
  padding: 22px;
  border-right: 2px solid var(--ink);
}

.proof-item:last-child {
  border-right: 0;
}

.proof-item strong {
  display: block;
  margin-bottom: 12px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 42px;
  line-height: 1;
}

.proof-item span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  line-height: 1.5;
}

.page-hero {
  padding: 78px 0 52px;
  border-bottom: 2px solid var(--ink);
}

.page-hero h1 {
  max-width: 980px;
  margin: 18px 0 24px;
}

.page-hero .lede {
  margin-bottom: 0;
}

.page-meta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  color: var(--ink);
  background: var(--green);
  border: 1px solid var(--ink);
  font-size: 11px;
  text-transform: uppercase;
}

.tag.blue {
  background: var(--blue-soft);
}

.tag.coral {
  background: var(--coral-soft);
}

.article-layout {
  padding: 58px 0 90px;
  display: grid;
  grid-template-columns: minmax(0, var(--reading)) minmax(230px, 1fr);
  gap: 72px;
  align-items: start;
}

.article-body {
  min-width: 0;
}

.article-body > p:first-child {
  font-size: 23px;
  line-height: 1.45;
}

.article-body h2 {
  margin: 1.5em 0 0.55em;
  padding-top: 0.55em;
  font-size: clamp(32px, 4vw, 46px);
  border-top: 2px solid var(--ink);
}

.article-body h3 {
  margin: 1.5em 0 0.5em;
}

.article-body ul,
.article-body ol {
  padding-left: 1.2em;
}

.article-body li {
  margin-bottom: 0.7em;
}

.article-body blockquote {
  margin: 34px 0;
  padding: 24px 26px;
  background: var(--blue-soft);
  border-left: 8px solid var(--blue);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
}

.article-body code {
  padding: 2px 5px;
  background: #e3dfd5;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.84em;
}

.article-body table {
  width: 100%;
  margin: 28px 0;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 16px;
}

.article-body th,
.article-body td {
  padding: 12px;
  border: 1px solid var(--ink);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.article-body th {
  background: var(--green);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.article-aside {
  position: sticky;
  top: 98px;
  padding: 22px;
  background: var(--paper-bright);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--coral);
}

.article-aside h3 {
  margin-bottom: 14px;
  font-size: 19px;
}

.article-aside ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-aside li + li {
  border-top: 1px solid var(--line);
}

.article-aside a {
  display: block;
  padding: 11px 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
  text-decoration: none;
}

.checklist {
  margin: 28px 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}

.checklist li {
  position: relative;
  margin: 0;
  padding: 14px 14px 14px 44px;
  background: rgba(255, 253, 247, 0.7);
  border-bottom: 1px solid var(--ink);
}

.checklist li::before {
  position: absolute;
  top: 16px;
  left: 13px;
  width: 17px;
  height: 17px;
  content: "";
  background: var(--green);
  border: 1px solid var(--ink);
}

.callout {
  margin: 32px 0;
  padding: 24px;
  background: var(--coral-soft);
  border: 2px solid var(--ink);
}

.callout .mini-label {
  display: block;
  margin-bottom: 9px;
  color: #8b240f;
}

.callout p:last-child {
  margin-bottom: 0;
}

.split-content {
  padding: 70px 0 90px;
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 70px;
}

.split-content .sticky-title {
  position: sticky;
  top: 112px;
  align-self: start;
}

.content-stack > section {
  padding: 30px 0;
  border-top: 2px solid var(--ink);
}

.content-stack h2 {
  margin-bottom: 18px;
  font-size: 34px;
}

.contact-panel {
  margin: 64px 0 96px;
  padding: 48px;
  color: var(--paper-bright);
  background: var(--blue);
  border: 3px solid var(--ink);
  box-shadow: 12px 12px 0 var(--green);
}

.contact-panel h2 {
  max-width: 760px;
  margin-bottom: 22px;
  overflow-wrap: anywhere;
}

.contact-panel a {
  color: var(--paper-bright);
}

.contact-panel .button {
  color: var(--ink);
  background: var(--green);
}

.contact-panel .button:hover {
  color: var(--paper-bright);
  background: var(--ink);
}

.site-footer {
  color: var(--paper-bright);
  background: var(--ink);
  border-top: 6px solid var(--blue);
}

.footer-inner {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 54px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(160px, 0.5fr));
  gap: 46px;
}

.footer-statement {
  max-width: 560px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 650;
  line-height: 1.03;
}

.footer-nav h2 {
  margin-bottom: 12px;
  color: var(--green);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.footer-nav a {
  display: block;
  padding: 5px 0;
  color: #d8dcd4;
  font-size: 16px;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--green);
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: #9ba097;
  border-top: 1px solid #464a44;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}

.empty-state {
  min-height: 58vh;
  padding: 90px 0;
}

.empty-state h1 {
  margin: 16px 0 22px;
}

@media (max-width: 940px) {
  .hero-foot,
  .article-layout,
  .split-content {
    grid-template-columns: 1fr;
  }

  .hero-foot {
    align-items: start;
  }

  .field-note {
    max-width: 560px;
  }

  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-item:nth-child(2) {
    border-right: 0;
  }

  .proof-item:nth-child(-n + 2) {
    border-bottom: 2px solid var(--ink);
  }

  .article-aside,
  .split-content .sticky-title {
    position: static;
  }

  .article-aside {
    max-width: 560px;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 17px;
  }

  .header-inner,
  .page-shell,
  .footer-inner {
    width: min(calc(100% - 28px), var(--max));
  }

  .header-inner {
    min-height: 66px;
  }

  .brand span:last-child {
    max-width: 150px;
    font-size: 15px;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    top: 66px;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    padding: 24px 14px;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    background: var(--ink);
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .site-nav a {
    min-height: 52px;
    padding: 0 14px;
    border-color: #454a43;
  }

  .home-hero {
    min-height: auto;
    padding: 46px 0 34px;
    gap: 36px;
  }

  .hero-copy h1 {
    margin-top: 16px;
    font-size: clamp(43px, 14vw, 68px);
  }

  .highlight {
    white-space: normal;
  }

  .hero-visual {
    box-shadow: 6px 6px 0 var(--blue);
  }

  .hero-visual img {
    aspect-ratio: 4 / 3;
  }

  .section-band {
    padding: 58px 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .section-heading p {
    font-size: 19px;
  }

  .guide-grid,
  .signal-list,
  .proof-strip {
    grid-template-columns: 1fr;
  }

  .guide-card {
    min-height: 280px;
  }

  .signal-item,
  .signal-item:nth-child(2n) {
    border-right: 0;
  }

  .proof-item,
  .proof-item:nth-child(2),
  .proof-item:nth-child(-n + 2) {
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  .proof-item:last-child {
    border-bottom: 0;
  }

  .page-hero {
    padding: 54px 0 38px;
  }

  .page-hero h1 {
    font-size: clamp(42px, 13vw, 62px);
  }

  .article-layout {
    padding: 38px 0 66px;
    gap: 42px;
  }

  .article-body > p:first-child {
    font-size: 21px;
  }

  .article-body h2 {
    font-size: 34px;
  }

  .article-body table {
    font-size: 13px;
  }

  .article-body th,
  .article-body td {
    padding: 8px 6px;
  }

  .split-content {
    padding: 48px 0 66px;
    gap: 34px;
  }

  .contact-panel {
    margin: 46px 0 74px;
    padding: 28px 22px;
    box-shadow: 7px 7px 0 var(--green);
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
