:root {
  color-scheme: light;
  --ink: #121612;
  --muted: #56605a;
  --quiet: #778178;
  --paper: #f8f7f0;
  --paper-2: #efeee5;
  --line: #d8d5c6;
  --line-strong: #aaa48e;
  --panel: rgba(255, 255, 250, 0.72);
  --green: #245b45;
  --green-2: #0f6b54;
  --blue: #315f88;
  --rust: #985d3d;
  --gold: #9a741f;
  --shadow: 0 24px 70px rgba(35, 44, 36, 0.12);
  --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background:
    linear-gradient(rgba(18, 22, 18, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 22, 18, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 78% 14%, rgba(49, 95, 136, 0.16), transparent 28rem),
    radial-gradient(circle at 20% 80%, rgba(36, 91, 69, 0.14), transparent 26rem),
    var(--paper);
  background-size: 32px 32px, 32px 32px, auto, auto, auto;
  line-height: 1.6;
}

a {
  color: var(--green-2);
  text-decoration-color: rgba(15, 107, 84, 0.35);
  text-underline-offset: 0.18em;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(170, 164, 142, 0.45);
  background: rgba(248, 247, 240, 0.88);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  position: relative;
  width: 26px;
  height: 26px;
  border: 1px solid var(--green);
  border-radius: 50%;
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(36, 91, 69, 0.7);
  border-radius: 50%;
  inset: 5px;
}

.brand-mark::after {
  inset: 10px;
  background: var(--green);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--mono);
  font-size: 0.82rem;
}

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

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100svh - 72px);
  padding: 72px 0 56px;
}

.hero-simple {
  display: block;
  min-height: auto;
  padding: 104px 0 92px;
}

.hero-simple .hero-lede {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 1px;
  background: var(--green);
  content: "";
}

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

h1 {
  max-width: 760px;
  font-family: var(--serif);
  font-size: clamp(3.1rem, 8vw, 7.4rem);
  font-weight: 500;
}

.hero-lede {
  max-width: 670px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.62;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  background: rgba(255, 255, 250, 0.58);
}

.button.primary {
  border-color: var(--green);
  color: #fffdf5;
  background: var(--green);
}

.button:hover {
  color: #fffdf5;
  border-color: var(--blue);
  background: var(--blue);
}

main {
  padding-bottom: 70px;
}

.section {
  padding: 70px 0;
  border-top: 1px solid rgba(170, 164, 142, 0.55);
}

.section-header {
  display: grid;
  grid-template-columns: minmax(190px, 0.3fr) minmax(0, 0.7fr);
  gap: 36px;
  margin-bottom: 34px;
}

.section-kicker {
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.5vw, 4rem);
  font-weight: 500;
}

.section-copy {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.proof {
  min-height: 132px;
  padding: 22px;
  background: rgba(255, 255, 250, 0.65);
}

.proof strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 500;
  line-height: 1;
}

.proof span {
  display: block;
  margin-top: 13px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.work-grid,
.path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.work-card,
.path-card,
.archive-item {
  border: 1px solid var(--line);
  background: var(--panel);
}

.work-card {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  padding: 24px;
}

.card-meta {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

h3 {
  margin-top: 18px;
  font-size: 1.45rem;
  line-height: 1.16;
}

.work-card p,
.path-card p,
.archive-item p {
  color: var(--muted);
}

.work-card a {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.path-grid {
  grid-template-columns: repeat(4, 1fr);
}

.path-card {
  min-height: 210px;
  padding: 22px;
  color: var(--ink);
  text-decoration: none;
}

.path-card:hover {
  border-color: var(--green);
  background: rgba(255, 255, 250, 0.94);
}

.path-card strong {
  display: block;
  margin-bottom: 14px;
  font-size: 1.18rem;
}

.path-card span {
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 8px 0 78px;
}

.project-card {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 250, 0.62);
}

.project-card h2 {
  margin-top: 18px;
  font-size: clamp(1.85rem, 4vw, 3.1rem);
}

.project-card h2 a {
  color: var(--ink);
  text-decoration-color: rgba(18, 22, 18, 0.22);
}

.project-card h2 a:hover {
  color: var(--green-2);
  text-decoration-color: currentColor;
}

.project-card p {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--muted);
}

.note-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(280px, 0.22fr);
  gap: 24px;
  align-items: start;
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 250, 0.62);
}

.note-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list a {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.page-hero {
  padding: 86px 0 48px;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(3rem, 7vw, 6rem);
}

.page-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.18rem;
}

.archive {
  display: grid;
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.archive-group {
  padding: 50px 0;
  border-top: 1px solid var(--line);
}

.archive-group h2 {
  margin-bottom: 22px;
  font-size: clamp(1.7rem, 3vw, 2.55rem);
}

.archive-item {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 0;
  align-items: start;
  padding: 18px 0;
  border: 0;
  border-top: 1px solid rgba(170, 164, 142, 0.5);
  background: transparent;
}

.archive-item + .archive-item {
  margin-top: 0;
}

.archive-item .tag {
  padding-top: 0.2rem;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
}

.archive-item > div:last-child {
  min-width: 0;
  padding-left: 24px;
  border-left: 1px solid rgba(170, 164, 142, 0.7);
}

.archive-item h3 {
  margin: 0;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.25;
}

.archive-item p {
  margin-bottom: 0;
}

.archive-item a {
  color: var(--ink);
  text-decoration-color: rgba(18, 22, 18, 0.22);
}

.archive-item a:hover {
  color: var(--green-2);
  text-decoration-color: currentColor;
}

.site-footer {
  padding: 32px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 0.76rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

@media (max-width: 940px) {
  .hero,
  .section-header,
  .note-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 52px;
  }

  .proof-grid,
  .work-grid,
  .path-grid,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-list {
    justify-content: flex-start;
  }
}

@media (max-width: 660px) {
  .site-shell {
    width: min(100% - 28px, 1160px);
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.75rem;
  }

  h1 {
    font-size: clamp(2.75rem, 15vw, 4.6rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .proof-grid,
  .work-grid,
  .path-grid,
  .projects-grid,
  .archive-item {
    grid-template-columns: 1fr;
  }

  .archive-item {
    padding: 16px 0 18px;
  }

  .archive-item > div:last-child {
    padding-left: 0;
    border-left: 0;
  }

  .archive-item .tag {
    margin-bottom: 8px;
  }

  .proof {
    min-height: 112px;
  }

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