/* Stillwater Atelier. Plain CSS, no build step. */
:root {
  --bg: #FBFBFA;
  --tint: #EEF0ED;
  --ink: #121212;
  --muted: #565653;
  --line: #CFCFCA;
  --accent: #2F5D57;
  --sans: "Hanken Grotesk", "Helvetica Neue", Helvetica, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 3.4vw, 48px);
  --max: 1440px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; font-weight: 400; overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
svg { display: block; max-width: 100%; }
h1, h2, h3 { font-weight: 300; line-height: 1.04; letter-spacing: -0.025em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.5rem, 7.4vw, 6.6rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3.2rem); }
h3 { font-size: 1.3rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0 0 1em; max-width: 62ch; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.label { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: 10px 16px; z-index: 10; }
.skip:focus { left: 0; }
.rule { border: 0; border-top: 1px solid var(--ink); margin: 0; }

/* header */
.site-head { border-bottom: 1px solid var(--ink); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 500; letter-spacing: -0.01em; font-size: 1.05rem; }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; gap: clamp(14px, 3vw, 36px); list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--ink); }

/* hero */
.hero { padding: clamp(40px, 8vw, 112px) 0 clamp(32px, 5vw, 64px); }
.hero .meta { grid-column: 1 / -1; display: grid; gap: 4px; margin-bottom: 32px; }
.hero h1 { grid-column: 1 / -1; margin-bottom: 0; }
.hero .accent { color: var(--accent); }
.draw-hero { margin-top: clamp(28px, 5vw, 72px); border-top: 1px solid var(--ink); padding-top: 16px; }
.draw-hero .label { margin-top: 10px; }

.section { padding: clamp(48px, 8vw, 120px) 0; border-top: 1px solid var(--ink); }
.section > .wrap > .grid > .side { grid-column: 1 / -1; margin-bottom: 24px; }
.section > .wrap > .grid > .main { grid-column: 1 / -1; }
.lead { font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.35; font-weight: 300; max-width: 34ch; letter-spacing: -0.01em; }

/* project index */
.index { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 2.5rem 1fr; gap: 12px 16px; padding: 22px 0; border-top: 1px solid var(--line); text-decoration: none; align-items: start; }
.row:last-child { border-bottom: 1px solid var(--line); }
.row .num { font-family: var(--mono); font-size: .8rem; color: var(--muted); padding-top: 6px; }
.row .thumb { grid-column: 1 / -1; background: var(--tint); padding: 14px 18px 8px; }
.row .name { font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.1; }
.row .facts { display: flex; flex-wrap: wrap; gap: 4px 20px; font-family: var(--mono); font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.row .sum { color: var(--muted); font-size: .98rem; margin: 8px 0 0; }
.row:hover .name { color: var(--accent); }
.row[hidden] { display: none; }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }
.filters button { font: inherit; font-family: var(--mono); font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; background: transparent; color: var(--ink); border: 1px solid var(--ink); padding: 9px 16px; cursor: pointer; min-height: 44px; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.filters button:hover { border-color: var(--accent); }
.count { font-family: var(--mono); font-size: .8rem; color: var(--muted); margin-bottom: 16px; }

/* drawings */
.dr { width: 100%; height: auto; overflow: visible; }
.dr .w { fill: none; stroke: var(--ink); stroke-width: 2.4; vector-effect: non-scaling-stroke; stroke-linejoin: miter; }
.dr .t { fill: none; stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.dr .h { fill: none; stroke: var(--muted); stroke-width: .6; vector-effect: non-scaling-stroke; }
.dr .d { fill: none; stroke: var(--accent); stroke-width: 1; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.dr .g { stroke: var(--ink); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.dr .glass { fill: var(--bg); stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.dr .acc { fill: var(--accent); }
.dr text { font-family: var(--mono); font-size: 9.5px; fill: var(--muted); letter-spacing: .04em; }
.dr-wrap { border-top: 1px solid var(--ink); padding: 14px 0 0; }
.dr-wrap .label { margin: 0 0 14px; display: flex; justify-content: space-between; gap: 12px; }

/* project detail */
.pd-head { padding: clamp(32px, 6vw, 80px) 0 32px; }
.pd-head .label a { text-decoration: none; }
.facts-dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 var(--gutter); margin: 0; border-top: 1px solid var(--ink); }
.facts-dl div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts-dl dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.facts-dl dd { margin: 2px 0 0; font-size: 1.1rem; }
.mats { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.mats li { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 2.5rem 1fr; }
.mats li span:first-child { font-family: var(--mono); font-size: .75rem; color: var(--muted); padding-top: 4px; }
.pn { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--ink); padding: 20px 0; }
.pn a { font-size: 1.2rem; font-weight: 300; text-decoration: none; }

/* process */
.stages { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.stages li { display: grid; grid-template-columns: 3rem 1fr; gap: 4px 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.stages li:last-child { border-bottom: 1px solid var(--line); }
.stages .n { font-family: var(--mono); color: var(--accent); font-size: .9rem; padding-top: 6px; }
.stages h3 { margin: 0 0 6px; }
.stages p { margin: 0; color: var(--muted); }
.principles { display: grid; gap: 32px; }
.principles h3 { border-top: 1px solid var(--ink); padding-top: 14px; }
.principles p { color: var(--muted); }

/* journal */
.essay { padding: clamp(40px, 6vw, 88px) 0; border-top: 1px solid var(--ink); }
.essay h2 { max-width: 16ch; }
.essay .body p { font-size: 1.15rem; line-height: 1.7; }
.essay .body p:first-child::first-line { font-weight: 500; }

/* form */
.form { display: grid; gap: 22px; max-width: 640px; }
.field label, .field legend { display: block; font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; padding: 0; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; padding: 10px 2px; min-height: 44px; }
.field textarea { min-height: 140px; border: 1px solid var(--ink); padding: 10px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.field .err { color: #9A2B1F; font-size: .88rem; margin: 6px 0 0; min-height: 0; }
.field [aria-invalid="true"] { border-color: #9A2B1F; }
.hint { font-size: .88rem; color: var(--muted); margin: 6px 0 0; }
.btn { font: inherit; font-weight: 500; background: var(--ink); color: var(--bg); border: 1px solid var(--ink); padding: 14px 28px; cursor: pointer; min-height: 48px; justify-self: start; letter-spacing: .01em; }
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn.alt { background: transparent; color: var(--ink); }
.btn.alt:hover { background: var(--ink); color: var(--bg); }
a.btn { display: inline-block; text-decoration: none; }
.success { border: 1px solid var(--accent); padding: 28px; max-width: 640px; background: var(--tint); }
.success h2 { font-size: 1.8rem; }

/* footer */
.foot { border-top: 1px solid var(--ink); margin-top: 0; padding: 40px 0 32px; }
.foot .grid > div { grid-column: 1 / -1; margin-bottom: 24px; }
.foot p { margin: 0 0 4px; color: var(--muted); font-size: .95rem; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 0 0 4px; }
.foot .big { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 300; letter-spacing: -0.02em; color: var(--ink); line-height: 1.15; }
.note { font-size: .82rem; color: var(--muted); }

@media (min-width: 720px) {
  .row { grid-template-columns: 3rem 1.5fr 1fr; align-items: center; }
  .row .thumb { grid-column: auto; grid-row: 1; grid-column: 3; }
  .row .main-col { grid-column: 2; }
  .row .num { grid-column: 1; }
  .facts-dl { grid-template-columns: repeat(4, 1fr); }
  .principles { grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
  .foot .grid > div:nth-child(1) { grid-column: 1 / span 6; }
  .foot .grid > div:nth-child(2) { grid-column: 8 / span 3; }
  .foot .grid > div:nth-child(3) { grid-column: 11 / span 2; }
}
@media (min-width: 960px) {
  .hero .meta { grid-column: 1 / span 3; margin-bottom: 0; align-content: start; padding-top: 14px; }
  .hero h1 { grid-column: 4 / -1; }
  .draw-hero { margin-left: calc((100% - 11 * var(--gutter)) / 12 * 3 + 3 * var(--gutter)); }
  .section > .wrap > .grid > .side { grid-column: 1 / span 3; margin-bottom: 0; }
  .section > .wrap > .grid > .main { grid-column: 4 / -1; }
  .section > .wrap > .grid > .main.wide { grid-column: 1 / -1; }
  .stages li { grid-template-columns: 5rem 14rem 1fr; align-items: baseline; }
  .stages h3 { margin: 0; }
  .essay .grid .side { grid-column: 1 / span 3; }
  .essay .grid .body { grid-column: 5 / span 7; }
  .essay h2 { grid-column: 1 / span 3; }
}
@media (prefers-reduced-motion: no-preference) {
  .row .name, .nav a { transition: color .2s; }
}
.row .thumb .dr { height: 150px; width: 100%; }
