@font-face {
  font-family: Archivo;
  src: url("archivo-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f7f2ea;
  --wash: #eee4d7;
  --ink: #211c17;
  --muted: #5e5248;
  --wood: #5b3a29;
  --line: #d8cabd;
  --serif: Baskerville, "Baskervville", Georgia, serif;
  --body: Archivo, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body { margin: 0; font: 400 1rem/1.58 var(--body); background: var(--paper); color: var(--ink); }
a { color: inherit; text-underline-offset: .2em; }
img { display: block; width: 100%; height: auto; }
p, h1, h2, h3, figure, dl, dd { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #9b4d23; outline-offset: 4px; }
.skip { position: absolute; left: 1rem; top: .75rem; transform: translateY(-160%); background: #fff; padding: .6rem; z-index: 5; }
.skip:focus { transform: none; }
.wrap { width: min(100% - 4rem, 1240px); margin-inline: auto; }
.demo-banner { background: #33261e; color: #fff8ef; font-size: .82rem; }
.demo-banner .wrap { min-height: 38px; display: flex; flex-wrap: wrap; gap: .15rem .85rem; align-items: center; justify-content: space-between; padding-block: .35rem; }
.demo-banner a { text-decoration-color: #c5ad96; }
.site-header .wrap { min-height: 78px; display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font: 600 clamp(1.25rem, 2vw, 1.72rem)/1 var(--serif); text-decoration: none; }
.brand img { width: 38px; height: 38px; }
nav { display: flex; gap: clamp(1rem, 2.7vw, 2rem); align-items: center; font-size: .92rem; font-weight: 600; }
nav a { text-decoration: none; }
nav a:is(:hover, [aria-current="page"]) { text-decoration: underline; }
.hero { display: grid; grid-template-columns: minmax(0, 1.46fr) minmax(0, 1fr); background: var(--wash); }
.hero-image { position: relative; min-height: 530px; }
.hero-image img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: center; }
.hero-copy { align-self: center; padding: clamp(2rem, 4.8vw, 4.8rem); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
h1 { font-size: clamp(3rem, 4.5vw, 4.65rem); line-height: .98; letter-spacing: -.035em; text-wrap: balance; }
h2 { font-size: clamp(2.45rem, 4vw, 3.65rem); line-height: 1.06; letter-spacing: -.025em; text-wrap: balance; }
h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.1; }
.hero-copy > p { max-width: 30ch; margin-top: 1.35rem; color: var(--muted); }
.actions { display: flex; gap: .85rem 1.25rem; align-items: center; flex-wrap: wrap; margin-top: 1.55rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: .63rem 1rem; border: 1px solid var(--wood); background: var(--wood); color: #fff9f2; font: 650 .91rem/1.3 var(--body); text-decoration: none; cursor: pointer; }
.button:hover { background: #43291c; }
.button.secondary { background: transparent; color: var(--wood); }
.button.secondary:hover { background: var(--wash); }
.text-link { color: var(--wood); font-weight: 650; }
.section { padding-block: clamp(3.2rem, 7vw, 6.4rem); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.9rem; }
.section-head p { color: var(--muted); max-width: 37ch; }
.works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.8vw, 2.1rem); }
.work-card img { aspect-ratio: 1.64; object-fit: cover; }
.work-card > div { padding: 1.12rem 0 0; }
.work-card a { text-decoration: none; }
.work-card a:hover h3 { text-decoration: underline; }
.work-card p { margin-top: .4rem; color: var(--muted); font-size: .92rem; }
.materials { background: var(--wash); }
.materials .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(1.2rem, 5vw, 5rem); }
.materials p { margin-top: .8rem; max-width: 45ch; color: var(--muted); }
.swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; }
.swatch { font-size: .88rem; font-weight: 650; }
.sample { display: block; aspect-ratio: 1; border: 1px solid rgb(49 31 21 / 23%); margin-bottom: .5rem; }
.sample.oak { background: #c69b6f; }
.sample.walnut { background: #6b4636; }
.sample.ash { background: #e1c8a2; }
.sample.lacquer { background: #faf7f0; }
.project-wrap { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.project-copy > p { margin-top: .85rem; color: var(--muted); max-width: 35ch; }
.quiz, .contact-form { border: 1px solid var(--line); background: #fffaf3; padding: clamp(1.15rem, 4vw, 2.1rem); min-width: 0; }
.step-count { font-size: .82rem; color: var(--muted); margin-bottom: .75rem; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; margin: 0 0 1.05rem; font: 500 clamp(1.65rem, 3vw, 2.2rem)/1.1 var(--serif); }
.options { display: grid; gap: .55rem; }
.choice { display: flex; align-items: center; gap: .65rem; min-height: 45px; padding: .45rem .65rem; border: 1px solid var(--line); cursor: pointer; }
.choice:has(:checked) { background: var(--wash); border-color: var(--wood); }
.choice input { accent-color: var(--wood); width: 17px; height: 17px; margin: 0; flex: 0 0 auto; }
.choice .sample { width: 22px; height: 22px; margin: 0; flex: 0 0 auto; }
.text-input { display: grid; gap: .35rem; margin-bottom: .9rem; font-weight: 650; }
.text-input input, .text-input textarea { width: 100%; border: 1px solid #a18c79; background: var(--paper); color: var(--ink); font: 400 1rem/1.4 var(--body); padding: .7rem .75rem; border-radius: 0; }
.text-input textarea { min-height: 116px; resize: vertical; }
.quiz-actions { display: flex; justify-content: space-between; gap: .6rem; margin-top: 1rem; }
.quiz-actions [data-next] { margin-left: auto; }
.recap { margin-top: .85rem; }
.recap > div { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); border-bottom: 1px solid var(--line); gap: .5rem; padding-block: .45rem; }
.recap dt { font-weight: 650; }
.recap dd { overflow-wrap: anywhere; }
.help { margin-top: .85rem; color: var(--muted); font-size: .88rem; }
.result .actions { margin-top: 1rem; }
.intro { padding-block: clamp(2.8rem, 6vw, 5.5rem) clamp(2rem, 4vw, 3.2rem); }
.intro > p { max-width: 53ch; margin-top: 1rem; color: var(--muted); }
.portfolio { padding-bottom: clamp(3.2rem, 7vw, 6.4rem); }
.portfolio article { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(1rem, 6vw, 5rem); align-items: center; padding-block: 1.5rem; border-top: 1px solid var(--line); }
.portfolio article img { aspect-ratio: 1.5; object-fit: cover; }
.portfolio article p { color: var(--muted); margin-top: .5rem; }
.portfolio article dl { margin-top: 1rem; font-size: .92rem; }
.portfolio article dt { font-weight: 650; }
.portfolio article dd { margin-bottom: .45rem; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 6vw, 5rem); padding-bottom: 4rem; }
.contact-grid aside { border-top: 1px solid var(--line); padding-top: 1rem; }
.contact-grid aside p { color: var(--muted); margin-top: .5rem; max-width: 38ch; }
.contact-grid aside a { display: inline-block; margin-top: .65rem; }
.contact-form .help { margin: 0 0 1rem; }
.contact-form .simulation-feedback { margin-top: 1rem; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .55rem 1rem; min-height: 72px; padding-block: 1rem; font-size: .85rem; }
.site-footer strong { color: var(--ink); }
@media (max-width: 960px) {
  .hero-image { min-height: 455px; }
  .hero-copy { padding: 1.65rem; }
}
@media (max-width: 720px) {
  .wrap { width: min(100% - 2rem, 1240px); }
  .site-header .wrap { min-height: auto; padding-block: .7rem; flex-wrap: wrap; gap: .65rem 1rem; }
  .brand img { width: 32px; height: 32px; }
  nav { gap: 1rem; font-size: .84rem; }
  .hero { grid-template-columns: 1fr; width: 100%; }
  .hero-image { min-height: 0; height: clamp(245px, 76vw, 445px); }
  .hero-copy { padding: 1.55rem 1rem 1.75rem; }
  .hero-copy h1 { font-size: clamp(2.55rem, 8.7vw, 3.75rem); max-width: 14ch; text-wrap: initial; }
  .hero-copy > p { margin-top: .85rem; }
  .hero-copy .actions { margin-top: .95rem; }
  .works { grid-template-columns: 1fr; gap: 1.65rem; }
  .work-card img { aspect-ratio: 1.5; }
  .materials .wrap, .project-wrap, .portfolio article, .contact-grid { grid-template-columns: 1fr; }
  .project-wrap { gap: 1.25rem; }
  .portfolio article { gap: 1rem; }
  .section-head { gap: .65rem; }
}
@media (max-width: 380px) {
  .site-header nav { width: 100%; }
}
