/* SiteGleam shared reset — small, modern, opinionated only where it prevents bugs */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { min-height: 100dvh; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
h1, h2, h3, h4 { line-height: 1.1; font-weight: inherit; }
a { color: inherit; text-decoration-thickness: from-font; text-underline-offset: 0.12em; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* SiteGleam shared UI primitives. Templates set the variables; these rules stay generic. */
:root {
  --c-primary: #a8735b;
  --c-primary-dark: #7f5341;
  --c-primary-light: #f1e6df;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* templates override these neutrals */
  --c-ink: #1c1b19;
  --c-paper: #fbfaf7;
  --c-muted: #6b6a66;
  --c-line: #e3e0d9;
  --c-surface: #ffffff;
  --radius: 6px;
  --measure: 66ch;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --space-1: 0.5rem; --space-2: 1rem; --space-3: 1.5rem; --space-4: 2.5rem; --space-5: 4rem; --space-6: 6.5rem;
  --fs-0: 0.875rem; --fs-1: 1rem; --fs-2: 1.125rem; --fs-3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-4: clamp(1.6rem, 1.3rem + 1.4vw, 2.25rem); --fs-5: clamp(2.2rem, 1.6rem + 2.6vw, 3.5rem);
  --fs-6: clamp(2.8rem, 1.8rem + 4.5vw, 5.25rem);
}
body { font-family: var(--font-body); color: var(--c-ink); background: var(--c-paper); font-size: var(--fs-1); }
h1, h2, h3 { font-family: var(--font-display); color: var(--c-ink); }
h1 { font-size: var(--fs-6); letter-spacing: -0.015em; }
h2 { font-size: var(--fs-5); letter-spacing: -0.01em; }
h3 { font-size: var(--fs-3); line-height: 1.25; }
p { max-width: var(--measure); }
.lead { font-size: var(--fs-2); color: var(--c-muted); }
.muted { color: var(--c-muted); }
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--space-6); }
.section-tight { padding-block: var(--space-5); }
.stack > * + * { margin-top: var(--space-3); }
.grid-2 { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--c-ink); color: var(--c-paper); padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.5em; padding: 0.85em 1.4em; border-radius: var(--radius); font-weight: 600; text-decoration: none; line-height: 1; border: 1.5px solid transparent; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.btn-primary { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.btn-primary:hover { background: var(--c-primary-dark); border-color: var(--c-primary-dark); }
.btn-ghost { background: transparent; color: var(--c-ink); border-color: currentColor; }
.btn-ghost:hover { background: var(--c-ink); color: var(--c-paper); }
.btn-lg { font-size: var(--fs-2); padding: 1em 1.6em; }
.btn-sm { font-size: var(--fs-0); padding: 0.65em 1.1em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--c-paper) 92%, transparent); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--c-line); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 72px; }
.brand { font-family: var(--font-display); font-size: 1.35rem; text-decoration: none; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: clamp(16px, 2.5vw, 32px); align-items: center; }
.nav-links a { text-decoration: none; font-weight: 500; color: var(--c-ink); font-size: var(--fs-0); }
.nav-links a.active { color: var(--c-primary-dark); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; text-decoration: none; }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 22px; height: 2px; background: currentColor; position: relative; content: ''; transition: transform .2s ease; }
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { position: absolute; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--c-paper); border-bottom: 1px solid var(--c-line); padding: var(--space-2) var(--gutter) var(--space-3); display: none; }
  .nav-links a { padding: 12px 0; font-size: var(--fs-2); border-bottom: 1px solid var(--c-line); }
  .nav-links .btn { margin-top: var(--space-2); justify-content: center; }
  .site-header.nav-open .nav-links { display: flex; }
  .site-header.nav-open .nav-toggle span { background: transparent; }
  .site-header.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }
}

/* Media with graceful no-photo state */
.media { position: relative; overflow: hidden; background-color: var(--c-primary-light); background-size: cover; background-position: center; }
.media.no-img { background-image: linear-gradient(135deg, var(--c-primary-light) 0%, color-mix(in srgb, var(--c-primary) 22%, var(--c-paper)) 100%); }
.media.no-img::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 30% 30%, rgba(255,255,255,.55), transparent 55%); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-3-4 { aspect-ratio: 3 / 4; }
.ratio-1-1 { aspect-ratio: 1 / 1; }

/* Cards & lists */
.card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: var(--space-3); }
.card h3 { margin-bottom: var(--space-1); }
.card p { color: var(--c-muted); font-size: var(--fs-1); }
.service-row { display: grid; grid-template-columns: 1fr auto; gap: var(--space-2); padding: var(--space-2) 0; border-bottom: 1px solid var(--c-line); align-items: baseline; }
.service-row:last-child { border-bottom: 0; }
.service-row .price { font-weight: 600; white-space: nowrap; }
.service-row p { color: var(--c-muted); margin-top: 0.25rem; }
.service-detail.no-media { grid-template-columns: 1fr !important; }
.testimonial { border-left: 3px solid var(--c-primary); padding-left: var(--space-3); }
.testimonial blockquote { font-family: var(--font-display); font-size: var(--fs-3); line-height: 1.35; }
.testimonial cite { display: block; margin-top: var(--space-2); font-style: normal; color: var(--c-muted); font-size: var(--fs-0); }
.rating { display: inline-flex; gap: 0.6em; align-items: baseline; color: var(--c-muted); font-size: var(--fs-0); }
.rating .stars { color: var(--c-primary); letter-spacing: 0.08em; font-size: 1.1rem; }
.faq details { border-bottom: 1px solid var(--c-line); padding: var(--space-2) 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: var(--fs-2); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--c-primary); font-weight: 400; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin-top: var(--space-1); color: var(--c-muted); }
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: var(--fs-0); color: var(--c-muted); margin-top: 6px; }
.hours dl { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1.25rem; }
.hours dt { font-weight: 600; }
.facts { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); color: var(--c-muted); font-size: var(--fs-0); }
.facts strong { color: var(--c-ink); }

/* Forms */
.form { display: grid; gap: var(--space-2); }
.form label { display: grid; gap: 6px; font-size: var(--fs-0); font-weight: 600; }
.form input, .form select, .form textarea { width: 100%; padding: 0.8em 0.9em; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface); font-weight: 400; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--c-primary); outline-offset: 1px; border-color: var(--c-primary); }
.form textarea { min-height: 140px; resize: vertical; }
.form .row { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.form .hp { position: absolute; left: -9999px; }
.form-sent { display: none; padding: var(--space-3); border: 1px solid var(--c-primary); border-radius: var(--radius); background: var(--c-primary-light); }
.form-wrap.is-sent .form { display: none; }
.form-wrap.is-sent .form-sent { display: block; }

/* Footer */
.site-footer { border-top: 1px solid var(--c-line); padding-block: var(--space-5) var(--space-3); color: var(--c-muted); font-size: var(--fs-0); }
.site-footer .cols { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.site-footer h3 { font-family: var(--font-body); font-size: var(--fs-0); font-weight: 600; color: var(--c-ink); margin-bottom: var(--space-1); }
.site-footer a { color: inherit; }
.site-footer .legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-4); padding-top: var(--space-2); border-top: 1px solid var(--c-line); }

/* Motion: one page-load moment, everything else responds to the visitor */
@media (prefers-reduced-motion: no-preference) {
  .hero-enter { animation: heroEnter .9s cubic-bezier(.2,.7,.2,1) both; }
  .hero-enter-media { animation: heroMedia 1.2s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes heroEnter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes heroMedia { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
}

/* Retail — bone & charcoal, airy lookbook, photos lead */
:root {
  --c-ink: #2a2a2a;
  --c-paper: #f4f1ec;
  --c-muted: #6e6a63;
  --c-line: #e2ddd5;
  --c-surface: #faf8f4;
  --radius: 0px;
  --space-6: 7rem;
}
h1, h2 { font-weight: 500; letter-spacing: 0.005em; }
.brand { font-weight: 600; font-size: 1.5rem; letter-spacing: 0.02em; }
.site-header { border-bottom-color: transparent; }

/* Collage hero: one tall portrait, two landscapes; headline small and centered beneath */
.collage { display: grid; gap: 14px; grid-template-columns: 1.1fr 0.9fr; grid-template-rows: 1fr 1fr; height: clamp(420px, 72vh, 760px); padding-top: var(--space-3); }
.collage .a { grid-row: 1 / 3; }
.collage .media { height: 100%; }
@media (max-width: 720px) { .collage { grid-template-columns: 1fr 1fr; height: 62vh; } .collage .a { grid-column: 1 / 3; grid-row: 1; } .collage .b, .collage .c { grid-row: 2; } }
.hero-caption { text-align: center; padding: var(--space-4) 0 var(--space-2); }
.hero-caption .eyebrow { color: var(--c-muted); font-size: var(--fs-0); margin-bottom: var(--space-1); }
.hero-caption h1 { font-size: var(--fs-5); font-style: italic; max-width: 22ch; margin-inline: auto; }
.hero-caption p { margin: var(--space-2) auto 0; max-width: 52ch; color: var(--c-muted); }
.hero-caption .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.btn { border-radius: 999px; }

/* Collections grid (home + collections page) */
.collections { display: grid; gap: var(--space-4) var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.collections figure { margin: 0; }
.collections .media { aspect-ratio: 4 / 5; margin-bottom: var(--space-2); }
.collections figcaption h3 { font-size: var(--fs-3); font-style: italic; }
.collections figcaption p { color: var(--c-muted); font-size: var(--fs-1); margin-top: 0.3rem; }
.collections .price { display: block; margin-top: 0.4rem; font-weight: 600; font-size: var(--fs-0); }

/* Visit strip */
.visit { text-align: center; border-block: 1px solid var(--c-line); }
.visit h2 { font-style: italic; }
.visit .lead { margin-inline: auto; }
.visit .hours dl { justify-content: center; display: inline-grid; text-align: left; margin-top: var(--space-2); }

/* About */
.about-split { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); align-items: center; }
.about-split .media { aspect-ratio: 3 / 4; }
.about-split h2 { font-style: italic; }

/* Reviews */
.reviews .testimonial { border-left: 0; padding-left: 0; text-align: center; }
.reviews .testimonial blockquote { font-style: italic; }
.reviews .testimonial cite { color: var(--c-muted); }
.reviews .rating { justify-content: center; display: flex; }

/* Contact */
.contact-grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
.map iframe { width: 100%; aspect-ratio: 4 / 3; border: 0; display: block; }
.gallery figcaption { font-family: var(--font-display); font-style: italic; font-size: var(--fs-1); }
