@font-face {
  font-family: "DM Serif Text";
  src: url("assets/dm-serif-text.woff2") format("woff2");
  font-display: swap;
}
:root {
  --paper: #f7f4ed;
  --cream: #eee7d7;
  --charcoal: #26241d;
  --muted: #625b4e;
  --gold: #7b5819;
  --line: #d7cebb;
  --serif: "DM Serif Text", Georgia, serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--charcoal); font: 1rem/1.6 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: .23em; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #9f6d24; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; line-height: 1; }
h2 { font-size: clamp(2.55rem, 5.1vw, 4.8rem); }
h3 { font-size: clamp(1.42rem, 2.55vw, 2.2rem); line-height: 1.13; }
.wrap { width: min(1270px, calc(100% - 112px)); margin-inline: auto; }
.label { color: var(--gold); font-size: .76rem; line-height: 1.4; font-weight: 750; text-transform: uppercase; letter-spacing: .105em; }
.skip:not(:focus) { position: absolute; clip-path: inset(50%); }
.skip:focus { position: absolute; top: 5px; left: 5px; z-index: 10; background: white; padding: 10px; }

.header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 20px; position: relative; }
.brand img { width: clamp(170px, 21vw, 238px); }
.header nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 48px); }
.header nav a { text-decoration: none; font-size: .92rem; font-weight: 690; }
.header nav a:hover { text-decoration: underline; }
.nav-quote { border: 1px solid #967637; padding: 9px 14px; }
.menu { display: none; }

.hero { background: var(--cream); border-top: 1px solid var(--line); }
.hero-layout { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 98px); align-items: center; padding-block: clamp(28px, 3.7vw, 56px); }
.hero-copy { padding: 18px 0 29px; }
.hero-copy h1 { font-size: clamp(3.25rem, 7vw, 7.5rem); line-height: .9; margin: 19px 0 26px; }
.hero-copy h1 em { font-style: normal; color: var(--gold); }
.hero-intro { max-width: 34ch; color: var(--muted); }
.hero-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 19px; min-height: 44px; font-weight: 700; }
.hero-photo img { width: 100%; }
.hero-photo figcaption { display: flex; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; font-size: .79rem; color: var(--muted); padding-top: 8px; }
.hero-photo figcaption span:first-child { color: var(--charcoal); font-weight: 700; }

.work, .quote { padding-block: clamp(48px, 7.2vw, 103px); }
.work-top { display: flex; align-items: end; justify-content: space-between; gap: 17px 40px; }
.work-top p:not(.label), .quote-copy > p:not(.label) { max-width: 38ch; color: var(--muted); }
.work-top h2, .materials h2, .quote h2 { margin-top: 10px; }
.filter-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 26px 0 22px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button {
  background: transparent; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); font-size: .88rem; font-weight: 650;
}
.filters button[aria-pressed=true] { background: var(--charcoal); border-color: var(--charcoal); color: white; }
#results { font-size: .82rem; color: var(--muted); white-space: nowrap; }
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 28px 22px; }
.project { background: #fffcf6; border-bottom: 1px solid var(--line); }
.project-photo { width: 100%; border: 0; background: #eee7d7; padding: 0; position: relative; display: grid; place-items: center; }
.project-photo img { width: 100%; height: auto; }
.project-photo span { position: absolute; display: grid; place-items: center; right: 8px; bottom: 8px; background: #fffaf0; width: 37px; height: 37px; font-size: 1.3rem; line-height: 1; }
.project-photo:hover span { background: var(--charcoal); color: white; }
.project-info { padding: 14px 14px 8px; }
.project-info h3 { margin: 5px 0 3px; }
.project-info > p:not(.label) { font-size: .88rem; color: var(--muted); }
.reference-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 5px; font-size: .88rem; font-weight: 720; color: var(--gold); }

.materials { background: var(--charcoal); color: #fff8e8; }
.materials .label { color: #eccb8f; }
.materials-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 70px; padding-block: clamp(39px, 6vw, 79px); }
.materials dl div { border-bottom: 1px solid #ffffff36; padding: 0 0 13px; margin-bottom: 13px; }
.materials dt { font-weight: 720; margin-bottom: 4px; }
.materials dd { color: #eee2ce; }
.quote { display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1fr); gap: 22px clamp(28px,6vw,88px); align-items: start; }
.quote-copy > p:not(.label) { margin-top: 14px; }
.quote address { margin-top: 18px; font-style: normal; font-size: .9rem; }
#quote-form { background: #fffaf2; border-top: 3px solid #a8803c; padding: clamp(15px, 2.4vw, 31px); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
#quote-form label { display: block; font-weight: 680; font-size: .9rem; margin-bottom: 12px; }
#quote-form small { color: var(--muted); font-weight: 500; }
#quote-form input, #quote-form select, #quote-form textarea {
  display: block; width: 100%; min-height: 45px; border: 1px solid #9d9080; border-radius: 0;
  background: white; padding: 8px; margin-top: 4px; font-size: 1rem; font-weight: 400;
}
#quote-form textarea { resize: vertical; }
.selected { display: grid; grid-template-columns: 58px minmax(0,1fr) auto; align-items: center; gap: 9px; background: var(--cream); padding: 8px; margin-bottom: 13px; }
.selected img { width: 58px; height: 53px; object-fit: cover; }
.selected small, .selected strong { display: block; }
.selected button { background: none; border: 0; min-height: 44px; text-decoration: underline; font-size: .82rem; }
.submit { border: 0; min-height: 48px; background: var(--charcoal); color: white; padding: 9px 15px; font-size: .92rem; font-weight: 700; }
.submit:hover { background: #564529; }
.footer { border-top: 1px solid var(--line); display: flex; align-items: center; flex-wrap: wrap; gap: 8px 23px; font-size: .83rem; padding-block: 17px; }
.footer img { width: 119px; }

dialog { border: 0; background: var(--paper); color: var(--charcoal); width: min(96vw, 900px); max-height: 95dvh; padding: 10px; }
dialog::backdrop { background: #17150fed; }
dialog img { width: 100%; height: auto; max-height: 73dvh; object-fit: contain; }
dialog form { text-align: right; }
.close { background: none; border: 0; font-size: 1.55rem; width: 44px; height: 44px; }
.dialog-caption { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 13px; padding: 7px 6px; }
.dialog-caption a { font-size: .86rem; font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 900px) {
  .wrap { width: calc(100% - 52px); }
  .projects { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 34px); }
  .header { min-height: 68px; }
  .brand img { width: 176px; }
  .menu { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; min-height: 44px; padding: 0 5px; font-weight: 700; font-size: .9rem; }
  .menu span { width: 15px; height: 9px; border-block: 1px solid; }
  .header nav { display: none; position: absolute; background: var(--paper); z-index: 2; inset: 100% -17px auto; border-block: 1px solid var(--line); padding: 9px 17px 14px; }
  .header nav.open { display: grid; gap: 4px; }
  .header nav a { padding: 8px; min-height: 44px; display: flex; align-items: center; }
  .hero-layout { width: 100%; grid-template-columns: 1fr; gap: 0; padding-block: 0 10px; }
  .hero-copy { padding: 19px 17px 13px; }
  .hero-copy h1 { font-size: clamp(2.9rem, 12.2vw, 4.25rem); line-height: .91; margin: 8px 0 10px; }
  .hero-copy h1 br { display: none; }
  .hero-intro { font-size: .92rem; line-height: 1.47; }
  .hero-link { margin-top: 4px; font-size: .91rem; }
  .hero-photo figcaption { padding-inline: 17px; }
  .work-top { align-items: start; flex-direction: column; }
  .filter-row { align-items: start; flex-direction: column; gap: 7px; margin-block: 16px 10px; }
  .filters button { padding-inline: 8px; font-size: .82rem; }
  .projects { gap: 12px 8px; }
  .project-info { padding: 8px 7px 5px; }
  .project-info .label { font-size: .63rem; letter-spacing: .05em; }
  .project-info h3 { font-size: clamp(1.19rem, 4.7vw, 1.54rem); }
  .project-info > p:not(.label), .reference-link { font-size: .78rem; }
  .project-photo span { width: 30px; height: 30px; right: 5px; bottom: 5px; }
  .materials-inner, .quote { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .fields { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
