:root {
  color-scheme: light;
  --ink: #15191f;
  --muted: #5d6470;
  --paper: #f6f7f3;
  --panel: #ffffff;
  --panel-tint: #eef3ef;
  --line: #d7ddd6;
  --green: #176757;
  --green-dark: #0f443b;
  --rust: #9a4638;
  --blue: #284c7e;
  --gold: #b58124;
  --shadow: 0 16px 40px rgba(21, 25, 31, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.58;
}

img {
  max-width: 100%;
}

a {
  color: var(--green-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 100;
  transform: translateY(-150%);
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}

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

.shell {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(246, 247, 243, 0.94);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 0.86rem;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  font-size: 0.95rem;
  font-weight: 750;
}

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

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 36px;
  padding: 64px 0 52px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--rust);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3rem, 6.5vw, 5.7rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 12px 0 8px;
  font-size: 1.35rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.18rem;
}

.hero-actions,
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--green-dark);
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.button.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.button.full {
  width: 100%;
}

.repo-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.repo-wall img {
  display: block;
  width: 100%;
  aspect-ratio: 1.92 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e7ece7;
  box-shadow: var(--shadow);
}

.repo-wall img:nth-child(2),
.repo-wall img:nth-child(3) {
  transform: translateY(18px);
}

.signal-band {
  background: var(--ink);
  color: #fff;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 1px 0;
}

.signal-grid div {
  min-height: 138px;
  padding: 22px;
  background: #20262e;
}

.signal-grid strong {
  display: block;
  color: #fff;
  font-size: 1.1rem;
}

.signal-grid span {
  display: block;
  margin-top: 8px;
  color: #cfd7d1;
  font-size: 0.95rem;
}

.section {
  padding: 78px 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.section-heading p:last-child {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.project-card,
.podcast-card,
.book-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 26px rgba(21, 25, 31, 0.05);
}

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 22px;
}

.feature-card {
  grid-column: span 2;
  background: var(--panel-tint);
}

.project-card p,
.podcast-card p,
.book-card p {
  color: var(--muted);
}

.project-card .link-row,
.podcast-card .link-row {
  margin-top: auto;
  padding-top: 14px;
}

.link-row a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.card-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #e4efe9;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 850;
}

.tag.quiet {
  background: #edf0f3;
  color: #4d5865;
}

.field-section {
  background: #e9eef1;
}

.field-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 28px;
  align-items: start;
}

.field-layout p {
  max-width: 790px;
  color: #47505b;
  font-size: 1.04rem;
}

.book-card {
  padding: 24px;
}

.book-card h3 {
  font-size: 1.9rem;
}

.subtle-link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 800;
}

.podcast-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.podcast-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  min-height: 220px;
  padding: 18px;
}

.podcast-card img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e7ece7;
}

.latest {
  margin-top: 10px;
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 96px;
}

.footer-grid p {
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  font-weight: 800;
}

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

  .repo-wall {
    max-width: 720px;
  }

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

  .feature-card {
    grid-column: span 1;
  }
}

@media (max-width: 760px) {
  .nav,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
    padding: 16px 0;
  }

  .nav-links,
  .footer-links {
    justify-content: flex-start;
  }

  .hero {
    padding: 46px 0 36px;
  }

  .repo-wall {
    grid-template-columns: 1fr;
  }

  .repo-wall img:nth-child(2),
  .repo-wall img:nth-child(3) {
    transform: none;
  }

  .signal-grid,
  .project-grid,
  .podcast-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 54px 0;
  }

  .podcast-card {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .podcast-card img {
    width: 88px;
    height: 88px;
  }
}

@media (max-width: 460px) {
  .shell {
    width: min(100% - 22px, 1160px);
  }

  .hero-actions .button,
  .book-card .button,
  .link-row a {
    width: 100%;
  }

  .podcast-card {
    grid-template-columns: 1fr;
  }
}
