:root {
  color-scheme: light;
  --paper: #f5f3ed;
  --surface: #fcfaf5;
  --ink: #20231e;
  --muted: #51564c;
  --green: #395138;
  --line: #cbcfc0;
  --sans: "Work Sans", "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
a { color: var(--green); text-underline-offset: .24em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.06; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; }
h1 { font-size: clamp(3.6rem, 8vw, 7.35rem); margin: .6rem 0 1.15rem; }
h2 { font-size: clamp(2.35rem, 5vw, 4rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 2rem); letter-spacing: -.045em; font-weight: 650; }
p + p { margin-top: .75rem; }
.shell { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -10rem; background: var(--surface); padding: .65rem 1rem; z-index: 1; }
.skip:focus { top: 1rem; }
.masthead, .foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.masthead { min-height: 74px; border-bottom: 1px solid var(--line); }
.wordmark { color: var(--ink); font-weight: 680; letter-spacing: -.04em; text-decoration: none; font-size: 1.2rem; }
nav { display: flex; flex-wrap: wrap; column-gap: 1.7rem; }
nav a { color: var(--ink); text-decoration: none; font-size: .92rem; padding-block: .65rem; }
nav a:hover { text-decoration: underline; }
.intro { padding: 76px 0 72px; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 36px; align-items: end; }
.label { font: .72rem/1.45 var(--mono); color: var(--green); text-transform: uppercase; letter-spacing: .075em; }
.dot { display: inline-block; width: 7px; height: 7px; margin-right: .28rem; border-radius: 50%; background: var(--green); vertical-align: .08em; }
.lede { max-width: 37rem; color: var(--muted); font-size: clamp(1rem, 1.45vw, 1.16rem); margin-bottom: 1.3rem; }
.button { display: inline-flex; min-height: 44px; align-items: center; gap: 1.4rem; padding: .65rem 1rem; color: #fff; background: var(--green); text-decoration: none; border-radius: 3px; font-weight: 620; }
.button:hover { background: #283b27; }
.index { border-top: 1px solid var(--line); padding-top: .75rem; }
.index a { display: flex; justify-content: space-between; gap: .5rem; text-decoration: none; border-bottom: 1px solid var(--line); padding-block: .65rem; color: var(--ink); }
.index a:hover { color: var(--green); text-decoration: underline; }
.section-head { border-top: 1px solid var(--line); padding-top: 1rem; margin-bottom: 1.35rem; display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: baseline; justify-content: space-between; }
.feature { display: grid; grid-template-columns: .85fr 1.15fr; gap: 1.9rem; background: #e8ecdf; padding: clamp(1.2rem, 3.2vw, 2.4rem); border: 1px solid #d0d7c6; align-items: center; }
.feature h3 { margin: .42rem 0 .85rem; font-size: clamp(2rem, 4.1vw, 3.3rem); }
.feature img { width: 100%; border: 1px solid #202820; border-radius: 3px; }
figcaption { margin-top: .32rem; color: var(--muted); font: .72rem/1.4 var(--mono); }
.release { margin: .85rem 0; font-size: .94rem; }
.release strong { font-size: 1.35rem; color: var(--green); }
.text-link { display: inline-block; padding-block: .28rem; font-weight: 640; }
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-block: 1rem; }
.project { border: 1px solid var(--line); background: var(--surface); }
.shot { display: grid; place-items: center; aspect-ratio: 1.75; overflow: hidden; background: #e1e5dd; border-bottom: 1px solid var(--line); }
.shot:focus-visible { outline-offset: -4px; }
.shot img { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: top center; }
.shot.map img { object-fit: contain; }
.project-copy { padding: 1rem; }
.project h3 { margin: .3rem 0 .55rem; }
.project p:not(.label), .hosting p:not(.label), .skills dd { color: var(--muted); }
.hosting { padding: 1.45rem; border: 1px solid var(--line); display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: 1.25rem; }
.hosting h3 { margin: .3rem 0 .55rem; }
.hosting ol { margin: 0; padding: 0; list-style: none; display: grid; gap: .35rem; }
.hosting li { padding: .46rem .65rem; background: #e8ecdf; font: .82rem/1.4 var(--mono); }
.more, #skills, .contact { margin-top: 3.7rem; }
details { border-bottom: 1px solid var(--line); padding: .2rem 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 650; padding: .6rem 0; min-height: 44px; }
details dl { padding: .25rem 0 1rem 1.1rem; }
dt { font-weight: 650; }
details dd { margin-bottom: .7rem; color: var(--muted); }
.skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 2rem; }
.skills > div { padding-top: .65rem; border-top: 1px solid var(--line); }
.contact { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; background: #e8ecdf; padding: 1.5rem; }
.contact p { margin-top: .35rem; color: var(--muted); }
.foot { padding-block: 1.1rem; color: var(--muted); font-size: .85rem; }
@media (max-width: 850px) {
  .shell { width: calc(100% - 48px); }
  .intro { grid-template-columns: minmax(0, 1fr) 185px; gap: 1.5rem; padding: 56px 0; }
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 630px) {
  .shell { width: calc(100% - 32px); }
  .masthead { min-height: 62px; gap: .55rem; }
  .wordmark { font-size: 1rem; }
  nav { column-gap: .72rem; }
  nav a { font-size: .81rem; }
  .intro { padding: 42px 0 46px; }
  .intro, .feature, .projects, .hosting, .skills { grid-template-columns: minmax(0, 1fr); }
  .index { margin-top: .7rem; }
  .more, #skills, .contact { margin-top: 2.7rem; }
}

@media (max-width: 630px) {
  h1 { font-size: clamp(2.65rem, 11vw, 3.6rem); }
}
