:root {
  --paper:#f5f1e8;
  --bg:#f5f1e8;
  --ink:#252b23;
  --muted:#555b4e;
  --line:#c8c2b3;
  --accent:#914323;
  --gutter:clamp(20px,4vw,64px)
}

body {
  font:16px/1.65 var(--sans);
  background:var(--paper);
  color:var(--ink)
}

.site-header {
  background:var(--paper)
}

.menu-button {
  background:var(--paper)
}

.hero {
  padding:48px var(--gutter) 56px;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);
  align-items:center;
  gap:56px
}

.hero>div {
  min-width:0
}

.hero h1 {
  font:900 clamp(44px,6.8vw,96px)/1 var(--display);
  letter-spacing:-.04em;
  margin:0 0 28px;
  overflow-wrap:anywhere
}

.hero h1 span {
  color:var(--accent)
}

.lede {
  font-size:clamp(20px,2vw,28px);
  line-height:1.45;
  margin:0 0 32px;
  max-width:28ch
}

.button {
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  background:var(--ink);
  color:#fff;
  text-decoration:none;
  padding:14px 22px;
  border:0;
  font-size:14px;
  font-weight:600;
  min-height:52px
}

.button:hover {
  background:var(--accent)
}

.hero-drawing {
  border:1px solid var(--line);
  background:#ede7d9
}

.hero-drawing img {
  display:block;
  width:100%;
  height:auto;
  max-height:490px;
  object-fit:contain
}

.hero-drawing>span {
  display:block;
  font:12px/1.6 var(--mono);
  text-align:center;
  padding:10px 16px 20px
}

.routine {
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding:20px var(--gutter);
  border-block:1px solid var(--ink);
  font-size:13px;
  font-weight:600;
  flex-wrap:wrap
}

.routine span {
  min-width:0
}

main>section {
  padding:64px var(--gutter)
}

.section-heading {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:28px;
  margin-bottom:36px
}

h2 {
  font:900 clamp(28px,3.5vw,46px)/1.08 var(--display);
  letter-spacing:-.04em;
  margin:0
}

.filters {
  display:flex;
  border:1px solid var(--ink);
  flex-shrink:0
}

.filters button {
  min-height:48px;
  padding:12px 16px;
  border:0;
  background:transparent;
  font-size:13px;
  font-weight:600
}

.filters button+button {
  border-left:1px solid var(--ink)
}

.filters button[aria-pressed=true] {
  background:var(--ink);
  color:#fff
}

.filters span {
  font:12px var(--mono);
  margin-left:5px
}

.filters button:hover {
  background:#e4ddcd
}

.filters button[aria-pressed=true]:hover {
  background:var(--accent)
}

.project-grid {
  display:grid;
  gap:40px
}

.project {
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);
  border-top:1px solid var(--ink);
  padding-top:32px;
  gap:48px;
  align-items:center
}

.project-art {
  display:block;
  position:relative;
  background:#ede7d9;
  border:1px solid var(--line);
  text-decoration:none
}

.project-art img {
  display:block;
  width:100%;
  height:auto;
  max-height:460px;
  object-fit:contain;
  transition:transform .3s cubic-bezier(.16,1,.3,1)
}

.project-art:hover img {
  transform:translateY(-4px)
}

.project-number {
  display:block;
  border-top:1px solid var(--line);
  padding:12px 20px;
  font:12px/1.5 var(--mono)
}

.project-copy {
  min-width:0
}

.project-copy .project-material {
  font-size:13px;
  line-height:1.6;
  margin:14px 0 0;
  color:var(--muted);
  letter-spacing:0;
  text-transform:none
}

.project h2 {
  font-size:clamp(30px,3vw,42px)
}

.project h2 a {
  text-decoration:none
}

.project h2 a:hover {
  text-decoration:underline
}

.project h2 span {
  display:none
}

.project-copy>p:not(.project-material) {
  font-size:16px;
  line-height:1.7;
  color:var(--muted);
  max-width:65ch;
  margin:22px 0 28px
}

.project dl {
  margin:0;
  font-size:14px
}

.project dl>div {
  display:flex;
  justify-content:space-between;
  gap:24px;
  padding:14px 0;
  border-top:1px solid var(--line)
}

dt {
  color:var(--muted)
}

dd {
  margin:0;
  text-align:right;
  font:13px/1.7 var(--mono);
  font-variant-numeric:tabular-nums
}

.project-links {
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  margin-top:24px
}

.project-links a {
  min-height:48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 18px;
  font-size:14px;
  font-weight:600;
  text-decoration:none;
  border:1px solid var(--ink)
}

.project-links a:first-child {
  background:var(--ink);
  color:#fff
}

.project-links a:hover {
  background:var(--accent);
  color:#fff
}

.fine {
  font-size:13px;
  line-height:1.75;
  color:var(--muted);
  margin:28px 0 0;
  max-width:70ch
}

.model-section {
  display:grid;
  grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);
  gap:64px;
  border-block:1px solid var(--ink);
  background:#e9e3d5;
  align-items:start
}

.model-section>div>p:not(.kicker) {
  font-size:17px;
  color:var(--muted);
  max-width:40ch;
  margin:24px 0
}

.model-launcher {
  display:grid;
  gap:12px;
  margin:28px 0 18px;
  max-width:340px
}

.model-launcher label {
  font-size:14px;
  font-weight:600
}

select {
  padding:12px;
  border:1px solid var(--ink);
  background:var(--paper);
  color:var(--ink);
  width:100%;
  min-height:48px
}

.model-full {
  font-size:14px;
  min-height:44px;
  display:inline-flex;
  align-items:center
}

.model-stage {
  border:1px solid var(--ink);
  min-height:440px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  background:var(--paper);
  text-align:center;
  padding:24px
}

.model-stage p {
  max-width:32ch
}

.model-stage iframe {
  width:100%;
  height:560px;
  border:0
}

.model-stage:has(iframe) {
  padding:0
}

.workshop-note {
  max-width:1000px
}

.workshop-note h2 {
  font-size:34px
}

.workshop-note p {
  color:var(--muted);
  font-size:17px;
  max-width:65ch;
  margin:20px 0 0
}

.site-footer {
  background:var(--ink)
}

@media(max-width:1000px) {
  .hero {
    gap:32px
  }

  .section-heading {
    align-items:start;
    flex-direction:column
  }

  .project {
    gap:32px
  }

  .model-section {
    gap:32px
  }

}

@media(max-width:700px) {
  .hero {
    grid-template-columns:1fr;
    padding-block:36px;
    gap:32px
  }

  .hero h1 {
    font-size:clamp(42px,11vw,70px);
    overflow-wrap:normal;
    margin-bottom:22px
  }

  .lede {
    font-size:21px
  }

  .hero-drawing img {
    max-height:380px
  }

  .routine {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px 20px;
    font-size:12px
  }

  main>section {
    padding-block:44px
  }

  .section-heading {
    margin-bottom:28px
  }

  h2 {
    font-size:32px
  }

  .filters {
    max-width:100%;
    width:100%
  }

  .filters button {
    flex:1;
    padding:12px 10px
  }

  .project {
    grid-template-columns:1fr;
    gap:24px;
    padding-top:24px
  }

  .project-art img {
    max-height:360px
  }

  .project h2 {
    font-size:32px
  }

  .project-copy>p:not(.project-material) {
    margin:18px 0 22px
  }

  .model-section {
    grid-template-columns:1fr;
    gap:28px
  }

  .model-stage {
    min-height:240px
  }

  .model-stage iframe {
    height:480px
  }

  .workshop-note h2 {
    font-size:30px
  }

}

@media print {
  .site-header,.site-footer,.filters,.model-section,.hero .button {
    display:none!important
  }

  .hero {
    display:block;
    padding:20px
  }

  .hero-drawing {
    display:none
  }

  .project {
    break-inside:avoid;
    display:block;
    margin-bottom:24px
  }

  .project-art img {
    max-height:220px
  }

  .project-copy {
    padding-top:20px
  }

}

.project-copy .project-material { margin: 14px 0 0; }
