:root {
  color-scheme: light;
  --bg: #f3f5f0;
  --paper: #fbfcf9;
  --ink: #18251f;
  --muted: #4b5d53;
  --border: #cad3c9;
  --green: #23523a;
  --soft: #e5eee5;
  --body: "Segoe UI", system-ui, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.65 var(--body); }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.08; }
img { display: block; width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
[id] { scroll-margin-top: 1.5rem; }
.wrap { width: min(100% - 3rem, 71rem); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: 1rem; z-index: 2; padding: .6rem .9rem; background: var(--paper); transform: translateY(-200%); }
.skip:focus { transform: translateY(0); }
.top { min-height: 4.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--border); }
.brand, .top a { text-decoration: none; }
.brand { font-weight: 760; color: var(--ink); }
.top nav { display: flex; flex-wrap: wrap; gap: .4rem clamp(.8rem, 3vw, 2rem); }
.top a:hover { text-decoration: underline; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, .49fr); gap: 2.5rem; align-items: end; padding-block: clamp(3rem, 7vw, 6.25rem) clamp(3rem, 6vw, 5rem); }
.eyebrow, .meta { color: var(--muted); font-size: .91rem; font-weight: 650; }
.eyebrow { color: var(--green); }
h1 { margin-block: .4rem .85rem; font: 400 clamp(3.4rem, 8vw, 7rem)/.98 var(--serif); letter-spacing: -.075em; }
.intro { max-width: 51ch; color: var(--muted); font-size: clamp(1.08rem, 2.25vw, 1.3rem); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .85rem 1.2rem; margin-top: 1.5rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 2.85rem; padding: .55rem 1.1rem; border-radius: .45rem; background: var(--green); color: #fff; font-weight: 650; text-decoration: none; }
.button:hover { background: #163e2a; text-decoration: underline; }
.text-link { font-weight: 650; }
.index { border-top: 2px solid var(--green); padding-top: .85rem; }
.index h2 { font: 700 1rem/1.4 var(--body); }
.index ul { list-style: none; padding: 0; margin: .5rem 0 0; }
.index li { display: flex; justify-content: space-between; gap: .55rem; border-bottom: 1px solid var(--border); padding-block: .48rem; }
.index span { text-align: right; color: var(--muted); font-size: .88rem; }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, .49fr); gap: 1.5rem 2.5rem; padding-block: 1.55rem clamp(2.7rem, 6vw, 4rem); border-top: 1px solid var(--border); }
.about p { max-width: 65ch; color: var(--muted); margin-top: .75rem; }
.about-links { align-self: center; border-left: 2px solid var(--border); padding-left: 1.15rem; }
.about-links h3 { margin-bottom: .55rem; font-size: 1rem; }
.about-links a { display: block; width: fit-content; margin-block: .3rem; }
.about h2, .work > h2, .other > h2, .contact h2 { font: 400 clamp(2.25rem, 4.7vw, 3.65rem)/1.08 var(--serif); letter-spacing: -.055em; }
.work > h2, .other > h2 { margin-bottom: 1.1rem; }
.project { display: grid; gap: 1.5rem 2.25rem; padding: clamp(1.25rem, 3.1vw, 2.25rem); }
.project h3, .other h3 { margin-block: .22rem .55rem; font-weight: 730; letter-spacing: -.045em; }
.project h3 { font-size: clamp(1.85rem, 3.9vw, 3.15rem); }
.project p:not(.meta), .other p:not(.meta) { color: var(--muted); }
.featured { background: var(--paper); border: 1px solid var(--border); border-radius: .85rem; grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); align-items: start; }
.capture img { border-radius: .5rem; border: 1px solid #303634; }
.capture figcaption { margin-top: .5rem; font-size: .88rem; color: var(--muted); }
.project-links { display: flex; gap: .36rem 1.1rem; flex-wrap: wrap; list-style: none; margin: 1rem 0 0; padding: 0; font-weight: 650; }
.featured .changes { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 1.15rem; }
.changes h4 { font-size: 1.04rem; }
.changes ul { margin: .55rem 0 0; padding-left: 1.17rem; }
.changes li + li { margin-top: .58rem; }
.featured .changes ul { list-style: none; padding-left: 0; }
.featured .changes li { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: .15rem .6rem; }
time { font-variant-numeric: tabular-nums; }
.changes time, .update { color: var(--muted); }
.split { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); border-bottom: 1px solid var(--border); }
.split .changes { align-self: center; }
.other { padding-block: clamp(2.6rem, 6vw, 4.5rem); }
.other-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.other-grid article { background: var(--paper); padding: 1.25rem; border: 1px solid var(--border); border-radius: .7rem; }
.other h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.update { padding-top: .75rem; margin-top: .75rem; border-top: 1px solid var(--border); font-size: .94rem; }
.contact { background: var(--soft); border: 1px solid var(--border); border-radius: .85rem; padding: clamp(1.25rem, 3.8vw, 2.75rem); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem 2rem; }
.contact p { color: var(--muted); margin-top: .45rem; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; padding-block: 1.55rem; }

@media (max-width: 56rem) {
  .hero { gap: 1.5rem; }
  .project { gap: 1.25rem 1.5rem; }
  .other-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 43rem) {
  .wrap { width: calc(100% - 2rem); }
  .hero, .about, .featured, .split, .other-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 2rem; }
  .split { padding-inline: .25rem; }
}

@media (max-width: 30rem) {
  .featured .changes li { grid-template-columns: minmax(0, 1fr); }
  .featured .changes li + li { margin-top: .9rem; }
}

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