:root {
  color-scheme: light;
  --paper: #f6f2e9;
  --paper-dark: #eae4d7;
  --ink: #252820;
  --muted: #5d5d50;
  --olive: #23281f;
  --olive-dark: #1b2018;
  --cream: #f8f2e7;
  --light-muted: #d1cbbd;
  --clay: #e5ab7a;
  --clay-hover: #f2bc8e;
  --line: #d6cec0;
  --dark-line: #4a5144;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
img { display: block; width: 100%; height: auto; }
figure, p, h1, h2, h3, ol, dl, dd { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid #a75225; outline-offset: 5px; }
.hero :focus-visible, .site-header :focus-visible, .contact :focus-visible, .site-footer :focus-visible {
  outline-color: var(--clay-hover);
}

.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  top: .7rem;
  left: .7rem;
  z-index: 10;
  padding: .75rem 1rem;
  background: var(--paper);
  color: var(--ink);
}
.shell { width: min(100% - 8rem, 82rem); margin-inline: auto; }
.section-pad { padding-block: clamp(4.5rem, 8vw, 7.75rem); }
.eyebrow { font-size: .875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, .project-title { font-family: var(--serif); font-weight: 400; }
h2 { font-size: clamp(3.35rem, 6vw, 5.4rem); line-height: .96; letter-spacing: -.025em; }

.site-header {
  position: relative;
  z-index: 2;
  background: var(--olive);
  color: var(--cream);
  border-bottom: 1px solid #ffffff19;
}
.header-inner { min-height: 5.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; font: 400 2rem/1 var(--serif); white-space: nowrap; }
.brand-mark { width: 2.9rem; height: 2.9rem; border-radius: 50%; }
.brand small { display: block; margin-top: .18rem; color: var(--clay); font: 600 .875rem/1.15 var(--sans); }
.site-nav { display: flex; align-items: center; gap: clamp(1.5rem, 3.8vw, 3.4rem); font-size: .9375rem; font-weight: 600; }
.site-nav > a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.site-nav > a:hover, .footer-top:hover { color: var(--clay-hover); }
.site-nav .nav-cta { border: 1px solid #c98e64; padding: .55rem 1.1rem; border-radius: 2px; color: var(--clay-hover); }
.site-nav .nav-cta:hover { background: #ffffff0a; }
.menu-toggle { display: none; }

.hero { position: relative; isolation: isolate; background: var(--olive); color: var(--cream); overflow: hidden; }
.hero-inner { display: grid; align-items: center; min-height: clamp(34rem, 46vw, 45rem); }
.hero-content { position: relative; z-index: 1; width: fit-content; max-width: 55%; padding-block: 4rem 4.4rem; }
.hero .eyebrow { color: var(--clay); margin-bottom: 1.45rem; }
.hero h1 { font-size: clamp(4.3rem, 8.35vw, 8.3rem); line-height: .89; letter-spacing: -.036em; }
.hero h1 em { color: var(--clay); white-space: nowrap; }
.hero-description { max-width: 25rem; margin-top: 1.75rem; color: var(--light-muted); font-size: clamp(1rem, 1.35vw, 1.16rem); }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3.25rem;
  padding: .7rem 1.3rem;
  font-size: .9375rem;
  line-height: 1.35;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: 2px;
  text-align: center;
  transition: background-color .18s, color .18s, border-color .18s;
}
.button-primary { background: var(--clay); color: #231e17; }
.button-primary:hover { background: var(--clay-hover); }
.button:disabled { opacity: .65; cursor: default; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.95rem; }
.hero-image { position: absolute; inset: 0 0 0 45%; background: #543823; }
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, var(--olive), #23281f52 10%, transparent 26%),
              linear-gradient(0deg, #1a170e9c, transparent 24%);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 57%; }
.hero-image figcaption { position: absolute; z-index: 1; right: 2rem; bottom: 1.3rem; padding: .35rem .55rem; background: #211b15c9; color: #fbf4ea; font-size: .8125rem; }
.hero-image figcaption a:hover { text-decoration: underline; text-underline-offset: .2em; }

.gallery-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(1.5rem, 3vw, 2.75rem); }
.gallery-heading p { margin-top: .85rem; color: var(--muted); }
.button-outline { flex-shrink: 0; background: transparent; border-color: #928674; color: var(--ink); }
.button-outline:hover { background: var(--olive); border-color: var(--olive); color: var(--cream); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.2vw, 2rem); }
.project-link { display: flex; height: 100%; flex-direction: column; }
.project-link[aria-haspopup="dialog"] .project-image { cursor: zoom-in; }
.project-image { display: block; aspect-ratio: .96; background: var(--paper-dark); overflow: hidden; }
.project-image img { height: 100%; object-fit: cover; transition: transform .35s ease; }
.project-image .couple-image { object-position: center 93%; }
.project-image [data-crop="letterbox"] { scale: 1.58; }
.project-link:hover img { transform: scale(1.035); }
.project-link:hover .project-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em; }
.project-caption { display: block; flex: 1; border-bottom: 1px solid var(--line); padding: 1rem 0 1.15rem; }
.project-title { display: block; font-size: clamp(1.75rem, 2.8vw, 2.5rem); line-height: 1; }
.photo-dialog { width: min(100% - 1.5rem, 49rem); max-height: calc(100dvh - 1.5rem); padding: clamp(.75rem, 3vw, 1.5rem); border: 1px solid var(--line); border-radius: 2px; background: var(--paper); color: var(--ink); }
.photo-dialog::backdrop { background: rgb(17 20 16 / .78); }
body:has(.photo-dialog[open]) { overflow: hidden; }
.photo-dialog-heading, .photo-dialog-controls { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.photo-dialog-heading h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.photo-dialog .button { min-height: 2.75rem; padding: .5rem .9rem; }
.photo-dialog-image { display: grid; place-items: center; margin-top: .8rem; background: var(--olive-dark); }
.photo-dialog-image img { width: auto; max-width: 100%; max-height: min(63dvh, 115vw, 42rem); object-fit: contain; }
.photo-dialog-image img[data-crop="letterbox"] { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.photo-dialog-controls { margin-top: .8rem; }

.process { padding-block: clamp(4.25rem, 7vw, 6.5rem); background: var(--paper-dark); }
.process-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(2.5rem, 7vw, 7rem); }
.process-copy .eyebrow { color: #765033; margin-bottom: .85rem; }
.process-copy h2 em { color: #835d3a; }
.capacity { margin-top: 1.35rem; color: #5a4938; font-weight: 600; }
.capacity span { margin-inline: .2rem; }
.process-steps { list-style: none; padding: 0; }
.process-steps li { border-top: 1px solid #cfc4b3; padding-block: .85rem; }
.process-steps li:last-child { border-bottom: 1px solid #cfc4b3; }
.process-steps h3 { font-size: 1rem; }
.process-steps p { color: #535346; margin-top: .2rem; }

.contact { background: var(--olive); color: var(--cream); }
.contact-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 10vw, 10rem); }
.contact-copy h2 { font-size: clamp(4rem, 7.5vw, 7.3rem); }
.contact-copy h2 em { color: var(--clay); }
.contact-copy p { max-width: 27rem; color: var(--light-muted); margin-top: 1.35rem; font-size: 1.08rem; }
.contact-copy .contact-note { font-size: .9375rem; border-top: 1px solid var(--dark-line); padding-top: 1rem; margin-top: 1.65rem; }
.instagram-contact { display: inline-block; margin-top: .7rem; color: var(--clay); font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.instagram-contact:hover { color: var(--clay-hover); }
.brief-form { display: grid; gap: 1.2rem; }
.form-field { display: grid; gap: .43rem; }
.form-field label, .form-field legend { font-weight: 700; }
.form-field label span, .form-field legend span { font-size: .875rem; color: var(--light-muted); font-weight: 400; }
.dimension-fields { border: 0; padding: 0; min-width: 0; margin: 0; }
.dimension-fields legend { padding: 0; }
.dimension-fields p { color: var(--light-muted); font-size: .875rem; }
.dimension-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.dimension-inputs > div { display: grid; gap: .3rem; }
.dimension-inputs label { font-size: .875rem; font-weight: 500; }
.form-field select, .form-field textarea, .form-field input, .brief-result textarea {
  width: 100%;
  margin: 0;
  background: var(--olive-dark);
  border: 1px solid #656d5d;
  border-radius: 2px;
  color: var(--cream);
  padding: .75rem .9rem;
}
.form-field select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--cream) 50%), linear-gradient(135deg, var(--cream) 50%, transparent 50%);
  background-position: right 1.2rem top 54%, right .9rem top 54%;
  background-size: .3rem .3rem;
  background-repeat: no-repeat;
}
.form-field textarea, .brief-result textarea { resize: vertical; }
.form-field textarea::placeholder { color: #bbb9aa; }
.form-field input[type="file"] { padding: .55rem .65rem; color: var(--light-muted); }
.form-field input::file-selector-button { cursor: pointer; margin-right: .6rem; padding: .4rem .65rem; border: 1px solid #656d5d; border-radius: 2px; color: var(--cream); background: var(--olive); }
.reference-status, .brief-status { font-size: .875rem; color: var(--light-muted); }
.reference-preview { width: auto; max-width: 100%; max-height: 12rem; object-fit: contain; }
.brief-form > .button { justify-self: start; }
.brief-result { margin-top: 1.5rem; padding-top: 1.4rem; border-top: 1px solid var(--dark-line); }
.brief-result h3 { margin-bottom: .55rem; }
.result-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .6rem; }
.brief-status { margin-top: .5rem; }
.button-secondary { border-color: #b5987a; background: transparent; color: var(--cream); }
.button-secondary:hover { background: #ffffff0a; border-color: var(--clay); }

.site-footer { background: var(--olive-dark); color: var(--cream); border-top: 1px solid var(--dark-line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 6.6rem; padding-block: 1.3rem; }
.footer-top { padding-block: .5rem; font-size: .9375rem; text-decoration: underline; text-underline-offset: .25em; }

@media (max-width: 1020px) {
  .shell { width: min(100% - 4rem, 82rem); }
}
@media (max-width: 820px) {
  .shell { width: calc(100% - 2.5rem); }
  .header-inner { min-height: 4.35rem; flex-wrap: wrap; gap: 0 .85rem; }
  .brand { font-size: 1.8rem; gap: .55rem; }
  .brand-mark { width: 2.45rem; height: 2.45rem; }
  .menu-toggle { display: block; padding: .6rem .75rem; border: 1px solid #c98e64; border-radius: 2px; color: var(--clay-hover); background: none; }
  .site-nav { width: 100%; flex-wrap: wrap; gap: .55rem 1.15rem; padding-bottom: .8rem; }
  .menu-toggle[aria-expanded="false"]:not([hidden]) + .site-nav { display: none; }
  .site-nav .nav-cta { padding-inline: .7rem; }
  .hero-inner { min-height: 0; }
  .hero-content { max-width: 100%; padding-block: 3.6rem 2.75rem; }
  .hero h1 { font-size: clamp(3.75rem, 13vw, 6.25rem); }
  .hero h1 em { white-space: normal; }
  .hero .eyebrow { margin-bottom: 1.1rem; }
  .hero-description { margin-top: 1.25rem; }
  .hero-actions { margin-top: 1.35rem; }
  .hero-image { position: relative; inset: auto; aspect-ratio: 1.15; }
  .hero-image::after { background: linear-gradient(0deg, #1a170e9c, transparent 27%); }
  .hero-image figcaption { right: .75rem; bottom: .7rem; }
  .gallery-heading { align-items: flex-start; flex-direction: column; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-inner, .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { flex-wrap: wrap; gap: .6rem 1.25rem; }
}
@media (max-width: 470px) {
  .project-grid { gap: 1.25rem .75rem; }
  .project-caption { padding-block: .7rem .9rem; }
  .project-title { font-size: 1.55rem; }
}
@media (max-width: 360px) {
  .hero h1 { font-size: 3.45rem; }
  .project-grid { grid-template-columns: 1fr; }
  .project-title { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
