@font-face {
  font-family: Roboto;
  src: url("fonts/roboto.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Roboto;
  src: url("fonts/roboto-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Noto Serif Display";
  src: url("fonts/serif.woff") format("woff");
  font-display: swap;
}

@font-face {
  font-family: "Noto Serif Display";
  src: url("fonts/serif-italic.woff") format("woff");
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f5f1e9;
  --ink: #27231d;
  --muted: #64594b;
  --border: #dcd3c4;
  --timber: #29231c;
  --clay: #945535;
  --cream: #fff9ed;
  --serif: "Noto Serif Display", Georgia, serif;
  --sans: Roboto, system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button, select, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 4px; }

.page-width {
  width: min(100% - 104px, 1336px);
  margin-inline: auto;
}

.skip {
  position: fixed;
  z-index: 5;
  top: 10px;
  left: 10px;
  padding: 12px;
  transform: translateY(-200%);
  background: var(--paper);
}

.skip:focus { transform: none; }

.site-header, .site-nav, .brand, .private-label {
  display: flex;
  align-items: center;
}

.site-header {
  height: 91px;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  gap: 13px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1;
  white-space: nowrap;
}

.brand small {
  display: block;
  margin-top: 7px;
  font: 500 10px/1.15 var(--sans);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .16em;
}

.brand-icon {
  position: relative;
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  color: var(--clay);
}

.brand-icon::before, .brand-icon::after, .brand-icon i {
  position: absolute;
  content: "";
  display: block;
  aspect-ratio: 1;
  transform: rotate(45deg);
  border: 1px solid currentColor;
}

.brand-icon::before { width: 24px; }
.brand-icon::after { width: 16px; }
.brand-icon i { width: 8px; background: currentColor; }

.site-nav {
  gap: 26px;
  font-size: .875rem;
}

.site-nav a, .site-footer a {
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: transparent;
}

.site-nav a:hover, .site-footer a:hover { text-decoration-color: currentColor; }

.private-label {
  gap: 9px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 30px;
  color: var(--muted);
  font-size: .75rem;
}

.private-label i {
  position: relative;
  width: 9px;
  height: 7px;
  margin-top: 3px;
  border: 1px solid currentColor;
  border-radius: 1px;
}

.private-label i::before {
  position: absolute;
  bottom: 100%;
  left: 1px;
  width: 5px;
  height: 5px;
  border: 1px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  content: "";
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
  min-height: 449px;
  background: var(--timber);
  color: var(--cream);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 42px clamp(32px, 5.3vw, 84px);
}

.eyebrow {
  margin: 0;
  font: 500 .72rem/1.4 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero-label {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #e3af87;
}

.hero-label span { width: 22px; height: 1px; background: currentColor; }

h1, h2, h3, p { margin-top: 0; }

.hero h1 {
  margin: 22px 0 20px;
  font: 400 clamp(2.85rem, 5.75vw, 5.75rem)/.99 var(--serif);
  letter-spacing: -.055em;
}

.hero h1 em { color: #e8b78e; font-weight: 400; }

.hero-summary {
  max-width: 33ch;
  margin-bottom: 30px;
  color: #ebddce;
  font-size: clamp(.98rem, 1.4vw, 1.125rem);
}

.hero-button {
  display: inline-flex;
  min-height: 44px;
  gap: 21px;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid #fae5cb;
  background: #fae5cb;
  color: #302319;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: background .15s ease;
}

.hero-button:hover { background: #fff7eb; }
.hero a:focus-visible { outline-color: var(--cream); }

.hero-project {
  position: relative;
  display: flex;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  min-height: 100%;
  padding: 24px 29px;
  background: #6c4a2e;
  text-decoration: none;
}

.hero-project img, .hero-project::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.hero-project img {
  object-fit: cover;
  object-position: 50% 47%;
  transition: transform .3s ease;
}

.hero-project::after {
  content: "";
  background: linear-gradient(0deg, #18100be8, #18100b60 21%, transparent 50%);
}

.hero-project:hover img { transform: scale(1.025); }

.hero-caption {
  width: 100%;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}

.hero-caption strong {
  display: block;
  margin-bottom: 1px;
  font: 400 2rem/1 var(--serif);
}

.hero-caption small { color: #f2e4d3; font-size: .88rem; }

.hero-arrow, .card-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: system-ui, sans-serif;
}


.hero-arrow, .card-arrow { position: relative; }
.hero-arrow::before, .card-arrow::before,
.hero-arrow::after, .card-arrow::after {
  position: absolute;
  content: "";
}
.hero-arrow::before, .card-arrow::before {
  width: 12px;
  height: 1px;
  background: currentColor;
  transform: rotate(-45deg);
}
.hero-arrow::after, .card-arrow::after {
  width: 7px;
  height: 7px;
  border-top: 1px solid;
  border-right: 1px solid;
  transform: translate(1px, -1px);
}
.hero-arrow { width: 41px; height: 41px; }


.collection { padding: 55px 0 68px; scroll-margin-top: 24px; }

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: baseline;
  margin-bottom: 17px;
}

.section-heading h2, .contact h2 {
  margin: 0;
  font: 400 clamp(2.15rem, 4vw, 3.45rem)/1.1 var(--serif);
  letter-spacing: -.045em;
}

#result-count {
  margin: 0;
  color: var(--muted);
  white-space: nowrap;
  font-size: .88rem;
}

#filters {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) repeat(3, minmax(0, 1fr)) auto;
  gap: 14px;
  align-items: end;
  padding: 18px 0 20px;
  border-block: 1px solid var(--border);
  margin: 0 0 24px;
}

#filters label {
  display: grid;
  gap: 6px;
  min-width: 0;
  font-size: .8rem;
  font-weight: 500;
}

#filters select, #filters input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #c9bfae;
  border-radius: 0;
  padding: 8px 10px;
  font-size: .92rem;
  color: var(--ink);
  background-color: #fffaf3;
}

#clear-filters, .empty button, #show-more {
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: #77432b;
  font-size: .88rem;
  font-weight: 500;
}

#clear-filters span { margin-left: 4px; font-size: 1.1em; }
#clear-filters:disabled { color: var(--muted); opacity: .83; }
#clear-filters:hover:not(:disabled), .empty button:hover { text-decoration: underline; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 23px;
}

.work-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: #faf7f0;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.work-card:hover {
  border-color: #ac896a;
  box-shadow: 0 5px 19px #37271614;
}

.card-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 1.6;
  background: #e4dacb;
}

.card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .23s ease;
}

.work-card:hover img { transform: scale(1.03); }

.card-body {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 17px 17px 18px;
}

.card-copy { min-width: 0; }

.card-copy .eyebrow {
  display: block;
  color: #79462d;
  font-size: .64rem;
  letter-spacing: .105em;
}

.card-copy h3 {
  margin: 4px 0 4px;
  font: 400 clamp(1.25rem, 2.05vw, 1.76rem)/1.1 var(--serif);
  letter-spacing: -.024em;
  overflow-wrap: anywhere;
}

.card-materials {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
}

.card-arrow {
  width: 31px;
  height: 31px;
  color: #875337;
}

.empty {
  padding: 48px 20px;
  background: #faf7f0;
  border: 1px dashed var(--border);
  text-align: center;
}
.empty p { margin: 0; }

.more-results {
  display: flex;
  justify-content: center;
  margin-top: 25px;
}

#show-more {
  border: 1px solid var(--border);
  background: #fffaf3;
  padding-inline: 20px;
}

#show-more:hover { border-color: var(--clay); }

.contact {
  display: grid;
  grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr);
  gap: 24px 32px;
  margin-bottom: 36px;
  padding: clamp(24px, 4vw, 56px);
  background: #eee5d8;
  scroll-margin-top: 22px;
}

.contact-links {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

.contact-links a {
  display: grid;
  grid-template-columns: minmax(5rem, .5fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 16px;
  min-height: 56px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.contact-links a > span:nth-child(2) {
  color: var(--muted);
  overflow-wrap: anywhere;
  font-size: .9rem;
}

.contact-links a:hover > span:nth-child(2) {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-block: 21px 26px;
  border-top: 1px solid var(--border);
  font-size: .83rem;
  color: var(--muted);
}

#project-view {
  position: fixed;
  width: min(1020px, 100% - 40px);
  max-width: none;
  max-height: calc(100% - 40px);
  padding: 0;
  border: 1px solid #d2c4b2;
  background: #faf7f0;
  color: var(--ink);
  overscroll-behavior: contain;
}

#project-view::backdrop { background: #1c170fd1; }
body:has(dialog[open]) { overflow: hidden; }

.close-detail {
  position: absolute;
  z-index: 1;
  top: 13px;
  right: 13px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #bdad97;
  border-radius: 50%;
  background: #faf7f0;
  color: var(--ink);
  font: 1.7rem/1 var(--sans);
}

.close-detail:hover { background: #eaddcc; }

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
}

.detail-media {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 23px;
  background: #e9e0d3;
}

.detail-figure {
  min-width: 0;
  display: grid;
  place-items: center;
  margin: 0;
}

.detail-figure img {
  display: block;
  width: 100%;
  max-height: 69vh;
  aspect-ratio: 1.05;
  object-fit: contain;
}

.photo-controls {
  display: flex;
  width: fit-content;
  gap: 11px;
  align-items: center;
  justify-content: center;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: .84rem;
}

.photo-controls button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #b7a491;
  border-radius: 50%;
  background: #fff9ed;
  color: var(--ink);
}

.photo-controls button:hover { background: #f5e1c9; }

.detail-info { padding: 42px 34px 32px; }
.detail-info .eyebrow { color: #79462d; padding-right: 31px; }

.detail-info h2 {
  max-width: 18ch;
  margin: 8px 0 23px;
  font: 400 clamp(2rem, 4.5vw, 3.45rem)/1.04 var(--serif);
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}

.detail-info dl { margin: 0; }

.detail-info dl div {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 8px;
  min-height: 44px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.detail-info dl div:last-child { border-bottom: 1px solid var(--border); }

.detail-info dt {
  color: var(--muted);
  font-size: .83rem;
  font-weight: 500;
}

.detail-info dd { margin: 0; font-size: .92rem; }
.project-notes { margin-top: 20px; }
.project-notes h3 { margin: 0 0 4px; font-size: .91rem; font-weight: 500; }
.project-notes p { margin: 0; font-size: .91rem; }
.missing-note { margin: 16px 0 0; color: var(--muted); font-size: .77rem; }

@media (max-width: 1060px) {
  .page-width { width: min(100% - 60px, 1336px); }
  .hero { min-height: 397px; }
  .hero-copy { padding-inline: 34px; }
  .hero h1 { font-size: clamp(2.55rem, 5.75vw, 4.8rem); }
  .work-grid { gap: 16px; }
}

@media (max-width: 760px) {
  .page-width { width: calc(100% - 36px); }
  .site-header { height: 74px; }
  .site-nav { gap: 13px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 30px 27px 32px; }
  .hero h1 { font-size: clamp(2.35rem, 10.4vw, 4.8rem); margin: 16px 0 14px; }
  .hero-summary { margin-bottom: 22px; }
  .hero-project { min-height: 265px; padding: 17px 22px; }
  .collection { padding: 41px 0 50px; }
  #filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .search-field { grid-column: 1 / -1; }
  #clear-filters { justify-self: start; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-body { padding: 13px; }
  .contact { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-media { padding: 15px; }
  .detail-figure img { max-height: 44vh; }
  .detail-info { padding: 25px 23px 28px; }
}

@media (max-width: 450px) {
  .brand { font-size: 22px; gap: 7px; }
  .brand-icon { width: 28px; transform: scale(.83); }
  .site-header, .site-nav { gap: 8px; }
  .site-nav .works-nav-link { display: none; }
  .private-label { gap: 6px; padding-inline: 7px; }
  .work-grid { grid-template-columns: minmax(0, 1fr); }
  .card-copy h3 { font-size: 1.6rem; }
  .contact-links a { grid-template-columns: minmax(0, 1fr) auto; }
  .contact-links a > span:nth-child(2) { grid-area: 2 / 1; }
  .contact-links .card-arrow { grid-area: 1 / 2 / span 2; }
  #project-view { width: calc(100% - 20px); max-height: calc(100% - 20px); }
  .section-heading { gap: 5px; }
}

@media (max-width: 370px) {
  .site-nav { flex-direction: column; align-items: flex-end; gap: 2px; }
  .site-nav > a { padding: 3px 4px; }
  .private-label { padding-block: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
