:root {
  --ink: #292722;
  --muted: #6e675c;
  --paper: #f4f0e8;
  --paper-deep: #eae2d6;
  --card: #fbfaf6;
  --line: #d5cbbc;
  --brown: #76523b;
  --brown-dark: #4f392b;
  --bronze: #9a7350;
  --green: #456450;
  --gold: #a36b2c;
  --red: #8c4b42;
  --shadow: 0 18px 50px rgb(62 46 34 / 10%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 90% 0%, rgb(195 166 126 / 13%), transparent 28rem),
    var(--paper);
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}
body.dialog-open { overflow: hidden; }
a { color: var(--brown-dark); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #2f4e3c; }
button { font: inherit; }
img { max-width: 100%; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgb(92 77 58 / 18%);
  background: rgb(244 240 232 / 92%);
  backdrop-filter: blur(14px);
}
.nav-shell {
  width: min(1180px, calc(100% - 40px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: .02em;
}
.brand-mark { width: 24px; display: grid; gap: 3px; }
.brand-mark i { display: block; height: 2px; background: var(--bronze); border-radius: 2px; }
.brand-mark i:nth-child(2) { width: 78%; }
.brand-mark i:nth-child(3) { width: 56%; }
nav { display: flex; align-items: center; gap: 6px; }
nav a {
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
}
nav a:hover, nav a.active { color: var(--ink); background: rgb(118 82 59 / 9%); }
.nav-toggle { display: none; }

main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.masthead {
  min-height: 490px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr);
  align-items: end;
  gap: clamp(40px, 8vw, 110px);
  padding: clamp(72px, 10vw, 140px) 0 64px;
}
.eyebrow {
  margin: 0 0 13px;
  color: var(--brown);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
h1 { max-width: 760px; font-size: clamp(56px, 9vw, 108px); line-height: .88; letter-spacing: -.065em; }
.dek { max-width: 690px; margin: 28px 0 0; color: var(--muted); font-size: clamp(18px, 2vw, 22px); line-height: 1.45; }
.project-facts { margin: 0; border-top: 1px solid var(--line); }
.project-facts div { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.project-facts dt { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.project-facts dd { margin: 0; font-size: 14px; font-weight: 650; }

.section { padding: 86px 0; border-top: 1px solid var(--line); }
.section-heading {
  margin-bottom: 34px;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 460px);
  align-items: end;
  gap: 42px;
}
.section-heading h2 { font-size: clamp(38px, 5vw, 62px); line-height: 1; letter-spacing: -.04em; }
.section-heading > p { margin: 0 0 3px; color: var(--muted); }

.decision-table-wrap, .material-table-wrap { border: 1px solid var(--line); overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 17px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { background: var(--paper-deep); color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
tbody tr:last-child > * { border-bottom: 0; }
.decision-table tbody th { width: 18%; font-size: 15px; }
.decision-table tbody th a { color: var(--ink); text-decoration: none; }
.decision-table td:nth-child(2) { width: 23%; }
.decision-table td:last-child { color: #514c43; font-size: 14px; }
.decision-table tbody tr:hover, .material-table tbody tr:hover { background: #f8f4ed; }

.status, .material-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .055em;
  line-height: 1.15;
  text-transform: uppercase;
  white-space: nowrap;
}
.status::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }
.ready { color: var(--green); }
.waiting { color: var(--gold); }
.undecided { color: var(--red); }

.models-section { position: relative; }
.palette { display: flex; flex-wrap: wrap; gap: 9px 20px; margin: -6px 0 28px; }
.palette span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.palette i { width: 15px; height: 15px; border: 1px solid rgb(40 32 25 / 20%); border-radius: 50%; background: var(--swatch); box-shadow: inset 0 0 0 2px rgb(255 255 255 / 28%); }
.model-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.model-card { margin: 0; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.model-open { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #ded8cc; cursor: zoom-in; overflow: hidden; }
.model-open img { display: block; width: 100%; height: min(69vw, 650px); object-fit: cover; transition: transform .45s ease; }
.model-card--wide .model-open img { height: min(43vw, 480px); }
.model-open span { position: absolute; right: 13px; bottom: 13px; opacity: 0; transform: translateY(5px); border-radius: 999px; padding: 8px 11px; background: rgb(39 37 33 / 82%); color: #fff; font-size: 11px; font-weight: 750; transition: .25s ease; }
.model-open:hover img { transform: scale(1.012); }
.model-open:hover span, .model-open:focus-visible span { opacity: 1; transform: none; }
.model-card figcaption { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px 15px; }
.model-card figcaption b { font-family: Georgia, "Times New Roman", serif; font-size: 17px; font-weight: 500; }
.model-card figcaption small { color: var(--muted); text-align: right; }

.topic-list { border-top: 1px solid var(--line); }
.topic { scroll-margin-top: 90px; padding: 34px 0 38px; border-bottom: 1px solid var(--line); }
.topic header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topic header > div { display: flex; align-items: baseline; gap: 16px; }
.topic-number { margin: 0; color: var(--bronze); font: 14px/1 Georgia, serif; }
.topic h3 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.025em; }
.topic-body { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(270px, .7fr); gap: clamp(34px, 8vw, 100px); margin: 25px 0 0 42px; }
.topic h4 { margin: 0 0 10px; color: var(--brown); font-size: 11px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.topic ul { margin: 0; padding-left: 20px; }
.topic li { margin: 7px 0; }
.layout-figure { margin: 26px 0 0 42px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.layout-figure .model-open img { height: auto; max-height: none; object-fit: contain; }
.layout-figure figcaption { padding: 12px 15px 13px; color: var(--muted); font-size: 13px; }
.materials-mini { align-self: start; padding: 18px 20px 20px; border-left: 4px solid var(--bronze); background: var(--paper-deep); }
.materials-mini p { margin: 0; color: #534d43; font-size: 13px; }

.material-table { font-size: 13px; }
.material-table th, .material-table td { padding: 15px 16px; }
.material-table tbody th { width: 15%; font-size: 12px; }
.material-table td:nth-child(2) { width: 28%; font-weight: 650; }
.material-table td:nth-child(3) { color: #585248; }
.material-table td:last-child { width: 16%; }
.material-state { border: 0; padding: 0; }
.fine-print { max-width: 900px; margin: 20px 0 0; color: var(--muted); font-size: 12px; }

footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 52px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
}
footer div { display: flex; gap: 24px; }
.print-button, .nav-toggle, .dialog-close {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}
.print-button { padding: 9px 13px; }
.print-button:hover { background: var(--paper-deep); }

.lightbox {
  width: min(1180px, calc(100% - 32px));
  max-height: 92vh;
  margin: auto;
  padding: 12px;
  border: 1px solid rgb(255 255 255 / 35%);
  background: #171613;
  color: #fff;
  box-shadow: 0 30px 100px rgb(0 0 0 / 55%);
}
.lightbox::backdrop { background: rgb(28 25 21 / 82%); backdrop-filter: blur(4px); }
.lightbox img { display: block; width: 100%; max-height: calc(92vh - 80px); object-fit: contain; }
.lightbox p { margin: 11px 4px 2px; color: #d6cec1; font-size: 13px; }
.dialog-close { position: absolute; right: 22px; top: 22px; padding: 8px 12px; border-color: rgb(255 255 255 / 24%); background: rgb(25 23 20 / 84%); color: #fff; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; padding: 8px 12px; }
  nav { position: absolute; left: 20px; right: 20px; top: 60px; display: none; flex-direction: column; align-items: stretch; padding: 10px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
  nav.open { display: flex; }
  nav a { padding: 10px 12px; }
  .masthead { min-height: 0; grid-template-columns: 1fr; align-items: start; gap: 48px; padding-top: 82px; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
  .topic-body { grid-template-columns: 1fr; gap: 26px; }
  .decision-table-wrap, .material-table-wrap { overflow-x: auto; }
  .decision-table { min-width: 780px; }
  .material-table { min-width: 980px; }
}

@media (max-width: 620px) {
  main, .nav-shell, footer { width: min(100% - 28px, 1180px); }
  .nav-shell { min-height: 60px; }
  .brand { font-size: 13px; }
  .masthead { padding: 64px 0 46px; }
  h1 { font-size: clamp(51px, 18vw, 74px); }
  .project-facts div { grid-template-columns: 106px minmax(0, 1fr); gap: 10px; }
  .section { padding: 62px 0; }
  .model-grid { grid-template-columns: 1fr; }
  .model-open img, .model-card--wide .model-open img { height: auto; max-height: none; object-fit: contain; }
  .model-card figcaption { flex-direction: column; gap: 3px; }
  .model-card figcaption small { text-align: left; }
  .topic header { align-items: flex-start; flex-direction: column; }
  .topic-body { margin-left: 0; }
  .layout-figure { margin-left: 0; }
  .status { white-space: normal; }
  footer { align-items: flex-start; flex-direction: column; }
  footer div { flex-direction: column; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .model-open img, .model-open span { transition: none; }
}

@media print {
  @page { margin: .55in; }
  body { background: #fff; font-size: 11pt; }
  .site-header, .print-button, .model-open span, .lightbox { display: none !important; }
  main, footer { width: 100%; }
  .masthead { min-height: 0; padding: 0 0 30px; }
  h1 { font-size: 52pt; }
  .section { padding: 34px 0; }
  .decision-table-wrap, .material-table-wrap, .model-card { box-shadow: none; }
  .model-open img, .model-card--wide .model-open img { height: auto; max-height: 4.2in; object-fit: cover; }
  .topic { break-inside: avoid; }
  .topic-body { gap: 28px; }
  a { color: inherit; text-decoration: none; }
}
