:root {
  --ink: #151313;
  --muted: #68615c;
  --paper: #f8f5ef;
  --panel: #ffffff;
  --line: #d9d0c4;
  --green: #1f5f52;
  --red: #d14a2f;
  --gold: #b9852c;
  --shadow: 0 24px 80px rgba(32, 28, 22, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(21, 19, 19, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(21, 19, 19, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 84px 84px;
  font-family: "Newsreader", Georgia, serif;
  font-size: 18px;
  line-height: 1.55;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 82% 8%, rgba(209, 74, 47, 0.18), transparent 28%),
    radial-gradient(circle at 8% 72%, rgba(31, 95, 82, 0.18), transparent 30%);
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--paper);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(21, 19, 19, 0.1);
  background: rgba(248, 245, 239, 0.86);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(248, 245, 239, 0.96);
  box-shadow: 0 10px 30px rgba(21, 19, 19, 0.08);
}

.brand,
.nav,
.button,
.chip,
.kicker,
.section-label,
.essay-meta,
.brand-mark {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0;
}

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

.nav {
  display: flex;
  gap: clamp(0.7rem, 2.4vw, 1.6rem);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
}

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

.section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
  min-height: calc(100svh - 74px);
  padding-top: clamp(2rem, 5vw, 5rem);
}

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

.kicker,
.section-label,
.essay-meta {
  margin: 0 0 1rem;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 1rem;
  font-size: clamp(4rem, 9.4vw, 8.4rem);
  font-weight: 650;
  line-height: 0.88;
}

h2 {
  margin-bottom: 1.2rem;
  font-size: clamp(2.3rem, 5vw, 5rem);
  font-weight: 500;
  line-height: 0.98;
}

h3 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 500;
  line-height: 1.05;
}

.dek {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.hero-actions,
.join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.05rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

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

.button.secondary {
  background: rgba(255, 255, 255, 0.5);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: min(100%, 540px);
  margin-left: auto;
  border: 1px solid var(--ink);
  border-radius: 2px;
  box-shadow: var(--shadow);
  filter: contrast(1.04);
}

.signal-card {
  position: absolute;
  right: min(8vw, 2rem);
  bottom: -1.7rem;
  width: min(290px, 82%);
  padding: 1rem;
  border: 1px solid var(--ink);
  background: var(--green);
  color: #fffaf0;
  box-shadow: 8px 8px 0 var(--ink);
}

.signal-card span {
  display: block;
  margin-bottom: 0.45rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.signal-card strong {
  display: block;
  font-size: 1.2rem;
  line-height: 1.05;
}

.thesis {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.thesis-copy {
  max-width: 920px;
}

.thesis-copy p,
.founder p,
.join p {
  color: var(--muted);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
}

.text-link {
  display: inline-block;
  margin-top: 0.7rem;
  color: var(--green);
  font-weight: 650;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

.section-heading,
.essays-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.section-heading h2,
.essays-top h2 {
  max-width: 760px;
  margin-bottom: 0;
}

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

.principle-grid article {
  min-height: 250px;
  padding: clamp(1.2rem, 3vw, 2rem);
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.principle-grid article:nth-child(3n) {
  border-right: 0;
}

.principle-grid article:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.principle-grid span,
.essay-card span {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
}

.principle-grid p,
.essay-card p,
.essay-feature p {
  color: var(--muted);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.chip {
  min-height: 2.4rem;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.chip.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.essay-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--ink);
  background: var(--green);
  color: #fffaf0;
}

.essay-feature p {
  max-width: 760px;
  color: rgba(255, 250, 240, 0.78);
}

.essay-feature .essay-meta {
  color: #ffd085;
}

.essay-feature .button {
  border-color: #fffaf0;
  color: #fffaf0;
}

.essay-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.essay-card {
  display: flex;
  min-height: 290px;
  flex-direction: column;
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  transition: transform 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.essay-card:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
}

.essay-card.is-hidden,
.essay-feature.is-hidden {
  display: none;
}

.essay-card span,
.essay-card a {
  margin-top: auto;
}

.essay-card a {
  color: var(--green);
  font-weight: 650;
}

.founder {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}

.founder img {
  width: 240px;
  border: 1px solid var(--ink);
  box-shadow: 10px 10px 0 var(--red);
}

.join {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  margin-bottom: 4rem;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--ink);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.join h2 {
  max-width: 760px;
}

.join-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--ink);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 880px) {
  .site-header,
  .section-heading,
  .essays-top,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .hero,
  .thesis,
  .founder,
  .join {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual img {
    margin-left: 0;
  }

  .principle-grid,
  .essay-grid {
    grid-template-columns: 1fr;
  }

  .principle-grid article,
  .principle-grid article:nth-child(3n),
  .principle-grid article:nth-last-child(-n + 3) {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .principle-grid article:last-child {
    border-bottom: 0;
  }

  .essay-feature {
    grid-template-columns: 1fr;
  }

  .join-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .section {
    width: min(100% - 1rem, 1180px);
  }

  h1 {
    font-size: clamp(3.6rem, 18vw, 5.2rem);
  }

  .brand span:last-child {
    display: none;
  }

  .button {
    width: 100%;
  }

  .signal-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: calc(100% - 1rem);
    margin: -1rem 0 0 0.5rem;
  }
}
