:root {
  color-scheme: light;
  --dark: #17201d;
  --green: #2f4a40;
  --paper: #f7f6f1;
  --ink: #202923;
  --secondary: #546059;
  --rule: #cecfc5;
  --serif: Georgia, "Times New Roman", serif;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  scroll-padding-top: 1.3rem;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #d88b47; outline-offset: 4px; }
.skip { position:absolute; z-index:5; left:1rem; top:-8rem; background:var(--paper); padding:.8rem 1rem; }
.skip:focus { top:1rem; }
.wrap { width: min(90%, 80rem); margin-inline:auto; }
.masthead { color:#f8f7ed; background:var(--dark); border-bottom:1px solid #3a433b; }
.mastbar, .ident, .mastbar nav, .footbar { display:flex; align-items:center; }
.mastbar { min-height:4.7rem; gap:1rem; justify-content:space-between; }
.ident { gap:.8rem; text-decoration:none; white-space:nowrap; }
.ident b { font-size:1.55rem; line-height:1; font-weight:550; letter-spacing:-.08em; }
.ident span { border-left:1px solid #88928a; padding-left:.8rem; font-size:.94rem; font-weight:520; }
.mastbar nav { gap:2.1rem; }
.mastbar nav a, .footbar a { text-decoration:none; font-size:.96rem; }
.mastbar nav a:hover, .footbar a:hover, .credit a:hover, .text-link:hover { text-decoration:underline; text-underline-offset:.25em; }
.hero { color:#f9f8ef; position:relative; isolation:isolate; overflow:hidden; background:var(--dark); }
.hero-photo { position:absolute; z-index:-2; inset:0 0 0 28%; margin:0; }
.hero-photo img { width:100%; height:100%; object-fit:cover; object-position:50% 56%; display:block; }
.hero::before { content:""; position:absolute; z-index:-1; inset:0; background:linear-gradient(90deg, #17201d 7%, #17201dfa 25%, #17201dd9 39%, #17201d66 56%, #17201d09 80%); }
.hero-copy { display:flex; flex-direction:column; justify-content:center; align-items:flex-start; min-height:clamp(29rem,43vw,44rem); padding-block:4.3rem 5.2rem; }
.eyebrow { font-size:.89rem; font-weight:600; letter-spacing:.075em; margin:0 0 1.1rem; }
.hero .eyebrow { color:#dacda9; }
.hero h1, .intro h2, .project-lead h1, .project-card h3, .step-code { font-family:var(--serif); font-weight:400; margin:0; }
.hero h1 { font-size:clamp(3.2rem,6.7vw,7.2rem); line-height:.97; letter-spacing:-.06em; }
.hero h1 i { font-weight:400; }
.hero-copy > p:not(.eyebrow) { margin:1.5rem 0 1.7rem; line-height:1.55; font-size:clamp(1rem,1.3vw,1.2rem); max-width:32ch; color:#f0f1e9; }
.hero-button { display:inline-block; text-decoration:none; border:1px solid #d0cfc0; padding:.78rem 1.2rem; font-weight:600; min-height:2.75rem; background:#1b2620b0; }
.hero-button:hover { background:#344239; }
.credit { position:absolute; bottom:.95rem; right:5%; margin:0; max-width:80%; padding:.38rem .72rem; color:white; background:#18201dd9; font-size:.88rem; }
.credit a { text-decoration:none; }
.intro { padding-top:clamp(3.5rem,6.5vw,6.3rem); display:flex; align-items:end; justify-content:space-between; gap:1.2rem; flex-wrap:wrap; }
.intro h2 { font-size:clamp(2.6rem,4.7vw,4.8rem); line-height:1.03; letter-spacing:-.052em; }
.project-grid {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(1.3rem,2.6vw,2.7rem);
  margin-top:1.75rem; padding-top:1.5rem; border-top:1px solid var(--rule);
}
@media(min-width:64rem) { .project-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
.project-card { min-width:0; }
.project-card a { display:block; text-decoration:none; }
.cover { display:block; aspect-ratio:4/3; overflow:hidden; background:#e4e3d9; }
.cover img { display:block; width:100%; height:100%; object-fit:cover; object-position:center 55%; transition:transform .28s ease; }
.project-card a:hover img { transform:scale(1.025); }
.card-caption { display:flex; align-items:baseline; gap:.3rem .8rem; margin-top:.7rem; }
.project-card h3 { font-size:clamp(1.6rem,2.4vw,2.3rem); line-height:1.1; letter-spacing:-.04em; }
.card-caption p { margin:0; color:var(--secondary); font-size:.96rem; line-height:1.4; }
.project-card a:hover h3 { text-decoration:underline; text-underline-offset:.16em; text-decoration-thickness:1px; }
.index-main { padding-bottom:clamp(3.5rem,6.7vw,6.4rem); }
footer { border-top:1px solid var(--rule); }
.footbar { min-height:5rem; gap:.75rem 1.5rem; flex-wrap:wrap; justify-content:space-between; color:var(--secondary); font-size:.94rem; }
.project-lead { display:grid; grid-template-columns:1fr minmax(16rem,.52fr); align-items:end; gap:2.2rem; padding:clamp(2.5rem,5vw,5.3rem) 0 2.1rem; }
.project-lead .eyebrow { color:var(--green); margin:0 0 .85rem; display:inline-block; text-decoration:underline; text-decoration-color:var(--rule); text-underline-offset:.3rem; }
.project-lead h1 { font-size:clamp(2.9rem,5.3vw,5.3rem); letter-spacing:-.055em; line-height:1.03; max-width:18ch; }
.project-lead .summary { line-height:1.6; margin:0; color:var(--secondary); font-size:1.06rem; max-width:44ch; }
.views { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(1.5rem,3vw,3.2rem); align-items:start; }
.views figure { margin:0; }
.views figure:only-child { grid-column:1/-1; }
.views figure a { display:block; background:#e9e9df; cursor:zoom-in; text-decoration:none; }
.views img { width:100%; height:auto; max-height:44rem; display:block; object-fit:contain; }
.views figcaption { color:var(--secondary); font-size:.96rem; line-height:1.5; padding-top:.7rem; }
.project-nav {
  display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:1rem;
  border-top:1px solid var(--rule); margin-top:clamp(3rem,6vw,6rem); padding:1.5rem 0 2.6rem;
}
.project-nav a { grid-row:1; text-decoration:none; }
.project-nav a:hover { text-decoration:underline; text-underline-offset:.2em; }
.previous-project { grid-column:1; justify-self:start; }
.gallery-link { grid-column:2; text-align:center; }
.next-project { grid-column:3; justify-self:end; text-align:right; }
.step-label { display:block; font-size:.87rem; color:var(--secondary); margin-bottom:.3rem; }
.step-code { font-size:clamp(1.3rem,2.4vw,2.2rem); letter-spacing:-.03em; }
@media(max-width:48rem) {
  .mastbar { min-height:4.1rem; }
  .mastbar nav { gap:1rem; }
  .project-lead { grid-template-columns:1fr; gap:1rem; }
  .project-lead .summary { max-width:58ch; }
  .hero-photo { left:17%; }
}
@media(max-width:40rem) {
  .wrap { width:calc(100% - 2rem); }
  .mastbar nav { gap:.8rem; }
  .mastbar nav a, .ident span { font-size:.9rem; }
  .hero { display:flex; flex-direction:column; }
  .hero::before { display:none; }
  .hero-copy { order:1; min-height:0; padding:2.2rem 0 1.9rem; }
  .hero-copy > p:not(.eyebrow) { margin:.85rem 0 1.1rem; }
  .hero-photo { order:2; position:static; z-index:auto; width:100%; height:clamp(14.5rem,61vw,23rem); }
  .hero-photo img { object-position:center 57%; }
  .credit { right:1rem; bottom:.65rem; }
  .intro { flex-direction:column; align-items:start; gap:.7rem; }
  .project-grid, .views { grid-template-columns:1fr; gap:1.65rem; }
  .cover { aspect-ratio:4/3; }
  .project-nav { align-items:start; }
}
@media(max-width:23rem) { .ident span { display:none; } .footbar{padding-block:.8rem;} }
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { transition:none !important; scroll-behavior:auto !important; } }
