@font-face {
  font-family: "Instrument Serif";
  src: url("assets/instrument-serif.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("assets/inter.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f5f1e9;
  --ink: #282924;
  --quiet: #54554b;
  --accent: #8d3e30;
  --line: #d3cec3;
  --dark: #282c24;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: Inter, system-ui, sans-serif;
  --gutter: clamp(1.25rem, 4.4vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); }
a { color: inherit; text-underline-offset: .25em; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: .97; }
h1 { font-size: clamp(4.8rem, 8.5vw, 8.25rem); letter-spacing: -.038em; }
h2 { font-size: clamp(3.2rem, 6.3vw, 6rem); letter-spacing: -.03em; }
h3 { font-size: clamp(2.35rem, 4vw, 4rem); letter-spacing: -.025em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
section[id] { scroll-margin-top: 1rem; }
::selection { background: #e6c6af; color: var(--ink); }

.wrap { width: calc(100% - 2 * var(--gutter)); max-width: 88rem; margin-inline: auto; }
.skip-link { position: absolute; top: .7rem; left: .7rem; z-index: 2; padding: .6rem 1rem; background: var(--paper); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 5.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { display: inline-flex; align-items: center; gap: .7rem; font: 400 2rem/1 var(--serif); text-decoration: none; white-space: nowrap; }
.wordmark-mark { width: 1.3rem; aspect-ratio: 1; background: linear-gradient(90deg, var(--accent) 42%, transparent 42%), linear-gradient(0deg, var(--accent) 42%, transparent 42%); }
nav { display: flex; align-items: center; gap: clamp(.9rem, 2.7vw, 3rem); }
nav a { display: flex; align-items: center; min-height: 2.75rem; gap: .55rem; font-size: .86rem; font-weight: 600; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.nav-contact span { color: var(--accent); }

.hero { display: grid; grid-template-columns: .86fr 1fr; gap: clamp(1.5rem, 4.9vw, 5.75rem); align-items: center; padding-block: clamp(2.8rem, 7vw, 7rem) clamp(4rem, 8vw, 8.6rem); }
.eyebrow { display: flex; align-items: center; gap: .62rem; color: var(--accent); font-size: .75rem; font-weight: 700; line-height: 1.45; text-transform: uppercase; letter-spacing: .145em; }
.eyebrow span { display: inline-block; width: .75rem; height: 1px; background: currentColor; }
.hero h1 { margin-block: 1.2rem 1.45rem; }
.hero-intro { max-width: 29rem; color: var(--quiet); font-size: clamp(1rem, 1.5vw, 1.2rem); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem; padding: .8rem 1.1rem; min-height: 3rem; background: var(--accent); color: #fffaf3; font-size: .87rem; font-weight: 650; text-decoration: none; transition: background-color 160ms ease; }
.button:hover { background: #713025; }
.button span { font-size: 1.05rem; }
.hero .button { margin-top: 1.9rem; }
.hero-figure img { width: 100%; height: auto; aspect-ratio: 1.15; object-fit: cover; background: #d0b7a1; }
.hero-figure figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .1rem 1rem; padding-top: .6rem; color: var(--quiet); font-size: .72rem; }
.hero-figure figcaption span:first-child { font-weight: 600; color: var(--ink); }

.projects { padding-block: clamp(2.2rem, 5.6vw, 5.8rem) clamp(4rem, 9vw, 9rem); border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: .75rem 2rem; margin-bottom: clamp(1.6rem, 4.2vw, 3.8rem); }
.section-heading p { color: var(--quiet); max-width: 19rem; padding-bottom: .16rem; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(1.5rem, 4vw, 4.5rem); }
.project-image { overflow: hidden; background: #d0b7a1; }
.project-image img { width: 100%; height: auto; aspect-ratio: 1.51; object-fit: cover; }
.project-detail img { transform: scale(1.95); transform-origin: 65% 65%; }
.project-copy { padding-block: 1.25rem 0; }
.project-type { font-size: .77rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.project h3 { margin-block: .52rem .75rem; }
.project-copy > p:not(.project-type), details p { color: var(--quiet); max-width: 36rem; }
details { margin-top: 1.15rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; align-items: center; gap: .8rem; min-height: 2.9rem; padding: .6rem 0; font-weight: 650; font-size: .85rem; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary span { display: grid; place-items: center; width: 1.65rem; height: 1.65rem; border: 1px solid var(--line); color: var(--accent); }
summary span::before { content: "+"; }
details[open] summary span::before { content: "−"; }
summary:hover span { color: #fffaf3; background: var(--accent); border-color: var(--accent); }
details p { padding: .1rem .8rem .9rem 0; }

.studio { background: var(--dark); color: var(--paper); }
.studio-inner { display: grid; grid-template-columns: 1fr .83fr; align-items: center; gap: clamp(2.5rem, 10vw, 11rem); padding-block: clamp(3.25rem, 8vw, 8rem); }
.studio .eyebrow { color: #f1b49a; }
.studio h2 { margin-block: 1rem 1.35rem; }
.studio p:not(.eyebrow) { max-width: 35rem; color: #e2dccf; }
.services { border-top: 1px solid #64665a; }
.services > div { padding: 1rem 0 1.15rem; border-bottom: 1px solid #64665a; }
.services dt { margin-bottom: .13rem; font: 400 2rem/1.14 var(--serif); }
.services dd { color: #e2dccf; font-size: .91rem; }

.contact { padding-block: clamp(4rem, 10vw, 9rem); }
.contact h2 { margin-block: .95rem 1rem; }
.contact > p:not(.eyebrow) { color: var(--quiet); }
.contact .button { margin-top: 1.65rem; }
.example-address { margin-top: .75rem; font-size: .75rem; overflow-wrap: anywhere; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 5rem; padding-block: 1rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .35rem 1.2rem; color: var(--quiet); font-size: .78rem; }
.footer-inner strong { color: var(--ink); }
.footer-inner a { font-weight: 600; }
.footer-inner a:hover { color: var(--accent); }

@media (max-width: 58rem) {
  h1 { font-size: clamp(3.5rem, 8.7vw, 6.1rem); }
  .hero { grid-template-columns: .92fr 1fr; gap: 1.6rem; }
  .hero-figure img { aspect-ratio: .93; }
}

@media (max-width: 42rem) {
  h1 { font-size: clamp(3.8rem, 11.5vw, 5.2rem); }
  .header-inner { min-height: 4.55rem; }
  .wordmark { font-size: 1.72rem; gap: .48rem; }
  .wordmark-mark { width: 1rem; }
  nav { gap: .9rem; }
  nav a { font-size: .77rem; }
  .nav-contact span { display: none; }
  .hero, .studio-inner, .project-grid { grid-template-columns: 1fr; }
  .hero { gap: 1.85rem; }
  .hero-figure img { aspect-ratio: 1.3; }
  .project-grid { gap: 2.2rem; }
}

@media (max-width: 23rem) {
  h1 { font-size: 3.8rem; }
  .header-inner { flex-wrap: wrap; gap: 0 .75rem; padding-top: .8rem; }
  nav { column-gap: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
