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

:root {
  color-scheme: light;
  --paper: #f8f6ed;
  --white: #fffdf6;
  --olive: #243626;
  --olive-soft: #dfe4d4;
  --ink: #29332a;
  --muted: #53594e;
  --terracotta: #954831;
  --line: #d3d1c3;
  --display: "Instrument Serif", Georgia, serif;
  --body: "DM Sans", Arial, sans-serif;
  --wrap: 78rem;
  --gutter: clamp(1.25rem, 4.5vw, 5.25rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.6 var(--body); }
body:has(dialog[open]) { overflow: hidden; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button, input, select, textarea { border-radius: 0; }
h1, h2, h3, p, figure, address { margin: 0; }
h1, h2, h3 { color: var(--olive); font-family: var(--display); font-weight: 400; line-height: .98; }
h2 { font-size: clamp(3.4rem, 6.7vw, 6rem); letter-spacing: -.025em; }
h3 { font-size: clamp(1.8rem, 2.7vw, 2.65rem); }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 5px; }
::selection { background: #d7dfc8; color: var(--olive); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 10; left: 1rem; top: 1rem; padding: .6rem 1rem; background: var(--white); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.wrap { width: min(var(--wrap), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.section-pad { padding-block: clamp(3.8rem, 8vw, 7.5rem); }
main > section[id] { scroll-margin-top: 1.5rem; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 5.5rem; display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.6rem; align-items: center; }
.brand { display: inline-flex; width: fit-content; align-items: center; gap: .7rem; text-decoration: none; color: var(--olive); }
.brand-mark { display: grid; place-items: center; width: 2.55rem; height: 2.55rem; border: 1px solid currentColor; border-radius: 50%; font: italic 1.8rem/.8 var(--display); }
.brand-name { display: block; font: 400 2rem/.86 var(--display); }
.brand-name span { display: block; margin-top: .38rem; font: 650 .625rem/1 var(--body); text-transform: uppercase; letter-spacing: .17em; }
.desktop-nav { display: flex; justify-content: center; gap: clamp(1.15rem, 3vw, 2.7rem); white-space: nowrap; }
.desktop-nav a { text-decoration: none; font-weight: 550; font-size: .9375rem; }
.desktop-nav a:hover { color: var(--terracotta); text-decoration: underline; text-underline-offset: .35em; }
.header-contact { justify-self: end; }
.mobile-nav { display: none; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.3rem; padding: .55rem 1.25rem; border: 1px solid var(--olive); border-radius: .18rem; color: var(--olive); background: transparent; text-align: center; text-decoration: none; font-size: .9375rem; font-weight: 650; transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease; }
.button-outline { min-height: 2.8rem; }
.button-primary, .button-outline:hover { color: var(--paper); background: var(--olive); }
.button-primary:hover { background: #3f553b; border-color: #3f553b; }
.text-link { display: inline-block; width: fit-content; padding-block: .35em; font-weight: 650; color: var(--olive); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .35em; }
.text-link:hover { color: var(--terracotta); }

.hero { display: grid; grid-template-columns: 42fr 58fr; gap: clamp(1.3rem, 4vw, 4.2rem); align-items: center; padding-block: clamp(2.4rem, 4.6vw, 4.25rem) clamp(2.25rem, 4.7vw, 4.3rem); }
.hero-copy { padding-bottom: 1.2rem; }
.eyebrow { display: flex; align-items: center; gap: .7rem; color: var(--terracotta); font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; line-height: 1.4; }
.stitch { width: 1.55rem; border-top: 2px dashed currentColor; transform: rotate(-12deg); flex: none; }
.hero h1 { margin-block: 1.3rem 1.5rem; font-size: clamp(4.25rem, 7.65vw, 7.3rem); letter-spacing: -.0375em; line-height: .83; }
.hero h1 em, .about h2 em, .contact h2 em { display: block; font-weight: 400; }
.hero h1 em { font-size: .9em; }
.hero-description { max-width: 25.5rem; color: var(--muted); font-size: clamp(1.02rem, 1.4vw, 1.18rem); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.6rem; margin-top: 1.85rem; }
.hero-actions .text-link { font-size: .9375rem; }
.hero-media picture { display: block; background: var(--olive-soft); }
.hero-media img { width: 100%; height: auto; aspect-ratio: 1.19; object-fit: cover; object-position: 50% 57%; }
.hero-media figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: .25rem .75rem; flex-wrap: wrap; padding: .55rem 0 .15rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .875rem; }

.services { background: #eeefe4; border-block: 1px solid #d9ddce; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(1.6rem, 4vw, 3rem); }
.service-grid, .gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 2.1rem); }
.service { min-width: 0; }
.service-link { display: block; text-decoration: none; }
.service-link h3 { margin-top: 1.16rem; }
.service-link:hover h3, .service-link:focus-visible h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.service-photo, .gallery-photo { position: relative; display: block; overflow: hidden; background: var(--olive-soft); }
.service-photo { aspect-ratio: 1.46; }
.service-photo img, .gallery-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 260ms ease; }
.service-link:hover img, .gallery-photo:hover img { transform: scale(1.035); }
.service-photo-chair img { object-position: 50% 52%; }
.service-photo-creation img { object-position: 50% 42%; }
.service-copy { padding: .65rem 0 1.4rem; border-bottom: 1px solid #c7cdbd; }
.service-copy p { color: var(--muted); max-width: 21rem; }

.gallery-filters { display: flex; flex-wrap: wrap; gap: .4rem .5rem; }
.gallery-filters button { min-height: 2.7rem; padding: .24rem .75rem; border: 1px solid var(--line); border-radius: 2rem; background: transparent; font-size: .875rem; font-weight: 600; }
.gallery-filters button:hover { border-color: var(--olive); }
.gallery-filters button[aria-pressed="true"] { border-color: var(--olive); background: var(--olive); color: var(--paper); }
.gallery-grid { row-gap: 2rem; }
.gallery-photo { display: grid; aspect-ratio: 1.2; }
.gallery-card[data-featured] .gallery-photo img { object-position: 50% 62%; }
.gallery-card[data-category="tapisserie"] .gallery-photo img { object-position: 50% 50%; }
.gallery-zoom { position: absolute; bottom: .7rem; right: .7rem; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--white); color: var(--olive); font-size: 1.35rem; line-height: 1; }
.gallery-caption { padding: .75rem 0 .9rem; border-bottom: 1px solid var(--line); }
.gallery-caption p { color: var(--terracotta); font-size: .875rem; font-weight: 650; }
.gallery-caption h3 { margin-top: .24rem; }
.gallery-quote { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; margin-top: 1.65rem; }
.gallery-quote p { color: var(--muted); }

.about { padding-block: clamp(3.4rem, 7vw, 6.2rem); border-block: 1px solid #cdd5c3; background: var(--olive-soft); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 8vw, 8.3rem); }
.about-visual { position: relative; padding: 0 1.4rem 1.5rem 1.6rem; }
.about-photo { width: 100%; height: auto; aspect-ratio: 1.16; object-fit: cover; object-position: 52% 53%; }
.about-logo { position: absolute; left: 0; bottom: 0; width: min(34%, 10rem); padding: .35rem; background: var(--paper); border: 1px solid var(--line); }
.about-logo img { display: block; height: auto; mix-blend-mode: multiply; }
.about-copy .eyebrow { margin-bottom: 1.1rem; }
.about-copy > p:not(.eyebrow) { max-width: 29rem; margin-top: 1rem; color: #444e40; }
.about-copy .text-link { margin-top: .8rem; }

.contact-inner { display: grid; grid-template-columns: .87fr 1.13fr; gap: clamp(2.3rem, 8.5vw, 9rem); align-items: start; }
.contact-copy h2 { margin-block: 1.2rem; }
.contact-copy > p:not(.eyebrow) { max-width: 24rem; color: var(--muted); }
.contact-copy address { margin-top: 1.45rem; font-style: normal; }
.contact-phone { display: block; width: fit-content; color: var(--olive); font: 400 2.35rem/1.2 var(--display); text-underline-offset: .14em; text-decoration-thickness: 1px; }
.contact-phone:hover { color: var(--terracotta); }
.contact-copy address p { margin-block: .25rem .6rem; color: var(--muted); }
.contact-email { overflow-wrap: anywhere; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: clamp(1rem, 3.5vw, 2.55rem); border: 1px solid var(--line); background: var(--white); }
.contact-form label { display: block; margin-bottom: .35rem; font-size: .9375rem; font-weight: 650; }
.contact-form :is(input:not([type="hidden"]), textarea, select) { display: block; width: 100%; min-height: 2.9rem; border: 1px solid #aaa99b; background: var(--white); color: var(--ink); padding: .55rem .7rem; }
.contact-form select { appearance: none; padding-right: 2.5rem; background-image: linear-gradient(45deg, transparent 50%, var(--olive) 50%), linear-gradient(135deg, var(--olive) 50%, transparent 50%); background-position: right 1.22rem center, right .85rem center; background-size: .39rem .39rem; background-repeat: no-repeat; }
.contact-form textarea { resize: vertical; }
.form-wide { grid-column: 1 / -1; }
.form-note { margin-top: .5rem; color: var(--muted); font-size: .875rem; }

.site-footer { padding-block: 2rem 1.1rem; background: var(--olive); color: var(--paper); }
.site-footer .brand { color: inherit; }
.site-footer :focus-visible { outline-color: var(--paper); }
.footer-main, .footer-bottom, .footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.5rem; }
.footer-main, .footer-bottom { justify-content: space-between; }
.footer-main { padding-bottom: 1.55rem; }
.footer-links a { text-underline-offset: .28em; }
.footer-bottom { padding-top: .85rem; border-top: 1px solid #63725f; color: #e4e8de; font-size: .875rem; }

.lightbox { width: min(51rem, calc(100% - 1.5rem)); max-height: 95dvh; padding: 0; border: 1px solid var(--line); color: var(--ink); background: var(--white); }
.lightbox::backdrop { background: rgb(25 33 24 / .85); }
.lightbox-inner { padding: .65rem clamp(.75rem, 2vw, 1.35rem) 1rem; }
.lightbox-header, .lightbox-controls { display: flex; align-items: center; gap: 1rem; justify-content: space-between; }
.lightbox-header { margin-bottom: .55rem; }
.lightbox h2 { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1; }
.lightbox-image { margin-inline: auto; width: auto; height: auto; max-height: 72dvh; object-fit: contain; }
.lightbox-description { margin-top: .7rem; color: var(--muted); }
.lightbox-close { font-size: 1.75rem; line-height: 1; }
.lightbox button { min-height: 2.75rem; min-width: 2.75rem; border: 1px solid var(--line); background: transparent; }
.lightbox button:hover { border-color: var(--olive); }
.lightbox-controls { margin-top: .65rem; }
.lightbox-controls button { padding-inline: .55rem; font-size: .875rem; }

.document { width: min(45rem, calc(100% - 2 * var(--gutter))); margin-inline: auto; padding-block: clamp(2.5rem, 8vw, 6rem); }
.document h1 { margin-block: 1.5rem; font-size: clamp(3.2rem, 7vw, 5.5rem); }
.document h2 { margin-block: 1.8rem .6rem; font-size: 2.2rem; }
.document p { margin-bottom: 1rem; }
.document .button { margin-top: .8rem; }

@media (max-width: 1040px) {
  .hero h1 { font-size: clamp(4.05rem, 8.2vw, 6.3rem); }
  .hero h1 em { font-size: .85em; }
  .hero { grid-template-columns: 45fr 55fr; }
  .hero-media img { aspect-ratio: 1.05; }
  .section-heading { flex-wrap: wrap; align-items: start; }
}

@media (max-width: 820px) {
  .desktop-nav, .header-contact { display: none; }
  .header-inner { min-height: 4.6rem; display: flex; justify-content: space-between; }
  .mobile-nav { display: block; position: relative; z-index: 2; }
  .mobile-nav summary { display: flex; align-items: center; gap: .55rem; min-height: 2.65rem; padding-inline: .55rem; font-size: .9375rem; font-weight: 650; cursor: pointer; list-style: none; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .menu-icon { display: block; width: 1rem; height: .62rem; border-block: 1px solid currentColor; }
  .mobile-nav nav { position: absolute; top: calc(100% + .42rem); right: 0; display: grid; width: min(17rem, calc(100vw - 2 * var(--gutter))); padding: .5rem 1rem; border: 1px solid var(--line); background: var(--white); box-shadow: 0 .8rem 1.8rem rgb(36 54 38 / .13); }
  .mobile-nav nav a { padding: .57rem .15rem; text-decoration: none; }
  .mobile-nav nav a + a { border-top: 1px solid var(--line); }
  .mobile-nav nav a:hover { color: var(--terracotta); }
  .contact-inner { gap: 2rem; }
}

@media (max-width: 740px) {
  .hero, .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .hero { gap: 1.75rem; padding-top: 2.65rem; padding-bottom: 2.85rem; }
  .hero-copy { padding-bottom: 0; }
  .hero h1 { font-size: clamp(3.4rem, 15.4vw, 7rem); }
  .hero h1 em { font-size: 1em; }
  .hero-actions { gap: .65rem .75rem; }
  .hero-actions .button { padding-inline: .9rem; }
  .hero-media img { aspect-ratio: 1.13; }
  .about-visual { order: 1; }
  .about-inner { gap: 1.75rem; }
  .about-photo { aspect-ratio: 1.5; }
  .about-copy h2 em, .contact h2 em { display: inline; }
}

@media (max-width: 590px) {
  .brand-mark { width: 2.25rem; height: 2.25rem; font-size: 1.6rem; }
  .brand-name { font-size: 1.85rem; }
  .section-heading { margin-bottom: 1.4rem; }
  .service-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .service-photo { aspect-ratio: 1.58; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem .75rem; }
  .gallery-photo { aspect-ratio: 1; }
  .gallery-zoom { width: 2rem; height: 2rem; right: .4rem; bottom: .4rem; }
  .gallery-caption h3 { font-size: 1.75rem; }
  .contact-form { grid-template-columns: 1fr; }
  .footer-main { align-items: start; flex-direction: column; }
}

@media (max-width: 359px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

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