/* The Glass Gnu — site styles. Values follow design/handoff/README.md. */
:root {
  --paper: #FBF7F0;
  --paper-2: #EFE3D1;
  --card: #FFFDF8;
  --hairline: #E2D2BA;
  --tan: #C8B295;
  --muted: #8A6F55;
  --ink: #2A211A;
  --body: #5C4632;
  --on-dark: #F6EEE1;
  --on-dark-accent: #F7D9A6;
  --brand: #C25A24;
  --brand-hover: #B45120;
  --link-hover: #A6481A;
  --glow: #E8A23D;
  --on-brand: #1B0E05;
  --sapphire: #234B6E;
  --ruby: #7E2530;
  --ochre: #B0842B;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-ui: 'Jost', 'Futura', 'Century Gothic', system-ui, sans-serif;
  --font-mono: ui-monospace, Menlo, monospace;

  --ease-glass: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 140ms;
  --dur-med: 260ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.55;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
a:hover { color: var(--link-hover); }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 6px;
  font-family: var(--font-ui); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--paper); }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 32px; }
@media (max-width: 480px) { .wrap { padding-inline: 20px; } }

.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 240px)), 1fr)); }

/* ── Header ───────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 240, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap {
  padding-block: 14px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px 32px;
}
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo img { width: 42px; height: 42px; border-radius: 9px; }
.wordmark {
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
  letter-spacing: 0.34em; color: var(--ink); white-space: nowrap;
}
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 28px; }
.site-nav a {
  font-family: var(--font-ui); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; color: var(--body);
  padding: 6px 0; border-bottom: 2px solid transparent;
  transition: color var(--dur-fast) var(--ease-glass);
}
.site-nav a:hover { color: var(--brand); }
.site-nav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }

/* ── Footer ───────────────────────────────────────────── */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--hairline); }
.site-footer .wrap {
  padding-block: 36px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.footer-mark { display: flex; align-items: center; gap: 12px; }
.footer-mark img { width: 36px; height: 36px; border-radius: 50%; }
.footer-mark span { font-family: var(--font-ui); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; }
.footer-tag { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; }

/* ── Shared text ──────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-ui); font-size: 0.76rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brand); margin: 0;
}
.on-dark .eyebrow { color: var(--on-dark-accent); }
.h1 {
  font-family: var(--font-display); font-weight: 600; line-height: 1.02; color: var(--ink);
  font-size: clamp(2.6rem, 5vw, 4rem); margin: 12px 0 0;
}
.h1--home { font-size: clamp(2.8rem, 6vw, 4.8rem); margin-top: 18px; }
.h2 {
  font-family: var(--font-display); font-weight: 600; line-height: 1.05;
  font-size: clamp(2.2rem, 4vw, 3.2rem); margin: 12px 0 0;
}
.lead { font-size: 1.25rem; line-height: 1.6; }
.text-link {
  font-family: var(--font-ui); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1px solid var(--brand); padding-bottom: 4px;
}
.on-dark { color: var(--on-dark); }
.on-dark .text-link { color: var(--on-dark-accent); border-bottom-color: var(--on-dark-accent); }
.on-dark .text-link:hover { color: #fff; border-bottom-color: #fff; }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 34px; font-family: var(--font-ui); font-weight: 500; font-size: 1rem;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  border-radius: 6px; border: 1px solid transparent; cursor: pointer;
  background: var(--brand); color: var(--on-brand);
  box-shadow: 0 0 12px rgba(226, 142, 50, 0.35);
  transition: background var(--dur-fast) var(--ease-glass), box-shadow var(--dur-med) var(--ease-glass),
    transform var(--dur-fast) var(--ease-glass), border-color var(--dur-fast) var(--ease-glass);
}
.btn:hover { background: var(--brand-hover); color: var(--on-brand); box-shadow: 0 0 28px rgba(226, 142, 50, 0.45), 0 0 8px rgba(194, 90, 36, 0.5); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-outline {
  font-family: var(--font-ui); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; color: var(--body); padding: 14px 22px;
  border: 1px solid var(--tan); border-radius: 6px;
  transition: color var(--dur-fast) var(--ease-glass), border-color var(--dur-fast) var(--ease-glass);
}
.btn-outline:hover { color: var(--brand); border-color: var(--brand); }

/* ── Placeholder stripes (until real photos exist) ────── */
.ph-label { font-family: var(--font-mono); font-size: 11px; color: rgba(255, 250, 240, 0.8); }

/* ── Home ─────────────────────────────────────────────── */
.hero { padding-block: 72px 88px; --min: 420px; gap: 56px; align-items: center; }
.hero .lead { font-size: 1.3rem; line-height: 1.55; max-width: 42ch; margin: 22px 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 18px 44px rgba(92, 70, 50, 0.20); }

.band { background: var(--sapphire); }
.band--ruby { background: var(--ruby); }
.band .wrap { padding-block: 80px; }
.band-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 36px; }

.recent { --min: 240px; gap: 22px; }
.recent-card { display: block; text-decoration: none; color: var(--on-dark); }
.recent-card:hover { color: var(--on-dark); }
.recent-img {
  aspect-ratio: 4 / 5; border-radius: 10px; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  display: flex; align-items: flex-end; padding: 14px; background-size: cover; background-position: center;
  transition: filter var(--dur-med) ease;
}
.recent-card:hover .recent-img { filter: brightness(1.08); }
.recent-title { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; margin-top: 14px; }
.recent-meta { font-family: var(--font-ui); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tan); margin-top: 4px; }

.quote { padding-block: 88px; --min: 380px; gap: 48px; align-items: center; }
.quote blockquote {
  margin: 0; font-family: var(--font-display); font-weight: 500; font-style: italic;
  font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.15; color: var(--ink); text-wrap: balance;
}
.quote p { margin: 0 0 26px; }

/* ── Gallery ──────────────────────────────────────────── */
.gallery-page { padding-block: 56px 96px; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; margin-bottom: 32px; }
.page-head p { font-size: 1.2rem; line-height: 1.55; max-width: 44ch; margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--hairline); background: transparent; color: var(--body); cursor: pointer;
  font-family: var(--font-ui); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px;
  transition: border-color var(--dur-fast) var(--ease-glass);
}
.chip--color { padding-left: 8px; }
.chip:hover { border-color: var(--brand); }
.chip[aria-pressed="true"] { background: var(--body); border-color: var(--body); color: var(--paper); }
.chip-swatch { width: 16px; height: 16px; border-radius: 50%; flex: none; }

.facets {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  grid-auto-rows: 110px; grid-auto-flow: dense; gap: 8px;
}
.tile {
  position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; margin: 0;
  cursor: pointer; overflow: hidden; background-size: cover; background-position: center;
  transition: filter var(--dur-med) ease, transform var(--dur-med) ease;
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-sheen { position: absolute; inset: 0; opacity: 0.35; transition: opacity var(--dur-med) ease; pointer-events: none; }
.tile-label {
  position: absolute; left: 14px; right: 14px; bottom: 12px; text-align: left;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em; color: rgba(255, 250, 240, 0.85);
}
.tile.is-hot { filter: brightness(1.14) saturate(1.1); }
.tile.is-hot .tile-sheen { opacity: 1; }
.tile:hover, .tile:focus-visible { transform: scale(1.015); }
.tile:focus-visible { outline: 3px solid var(--glow); outline-offset: 2px; }
.facets-empty { font-style: italic; color: var(--muted); }

/* ── Piece popup ──────────────────────────────────────── */
.lb-backdrop {
  position: fixed; inset: 0; z-index: 1000; background: rgba(42, 33, 26, 0.55);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.lb-backdrop[hidden] { display: none; }
.lb {
  position: relative; background: var(--paper); border-radius: 16px;
  box-shadow: 0 30px 80px rgba(22, 17, 13, 0.35);
  width: min(880px, 100%); max-height: calc(100vh - 48px); overflow: auto;
  display: flex; flex-wrap: wrap;
}
.lb-photo {
  flex: 1 1 360px; min-height: 360px; aspect-ratio: 4 / 5; max-height: 70vh;
  background: var(--tan) center / cover no-repeat; touch-action: pan-y;
}
.lb-body { flex: 1 1 280px; padding: 56px 32px 28px; display: flex; flex-direction: column; }
.lb-color { display: flex; align-items: center; gap: 10px; font-family: var(--font-ui); font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brand); }
.lb-swatch { width: 12px; height: 12px; border-radius: 50%; }
.lb-title { font-family: var(--font-display); font-weight: 600; font-size: 2.4rem; line-height: 1.05; color: var(--ink); margin: 12px 0 16px; }
.lb-meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); line-height: 1.9; }
.lb-buy { margin-top: 20px; align-self: flex-start; }
.lb-buy[hidden] { display: none; }
.lb-nav { display: flex; gap: 10px; align-items: center; margin-top: auto; padding-top: 32px; }
.lb-arrow {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--tan); background: transparent;
  cursor: pointer; font-size: 18px; color: var(--body);
  transition: color var(--dur-fast) var(--ease-glass), border-color var(--dur-fast) var(--ease-glass);
}
.lb-arrow:hover { border-color: var(--brand); color: var(--brand); }
.lb-count { margin-left: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.lb-close {
  position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--ink); color: var(--paper); cursor: pointer; font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(22, 17, 13, 0.25);
  transition: background var(--dur-fast) var(--ease-glass);
}
.lb-close:hover { background: var(--brand); }
body.lb-open { overflow: hidden; }

/* ── About ────────────────────────────────────────────── */
.about-intro { padding-block: 72px 88px; --min: 380px; gap: 56px; align-items: center; }
.about-intro .h1 { margin: 14px 0 22px; }
.about-intro p { font-size: 1.25rem; line-height: 1.6; margin: 0 0 18px; }
.about-photo {
  aspect-ratio: 4 / 5; border-radius: 16px; box-shadow: 0 18px 44px rgba(92, 70, 50, 0.16);
  background: repeating-linear-gradient(135deg, var(--paper-2) 0 12px, var(--hairline) 12px 24px);
  display: flex; align-items: flex-end; padding: 18px; object-fit: cover; width: 100%;
}
.about-photo .ph-label { font-size: 12px; color: var(--muted); }
.steps { --min: 240px; gap: 36px; margin-top: 44px; }
.step { border-top: 1px solid rgba(247, 217, 166, 0.45); padding-top: 20px; }
.step-n { font-family: var(--font-display); font-size: 1.1rem; color: var(--on-dark-accent); }
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 2rem; margin: 6px 0 10px; }
.step p { font-size: 1.15rem; line-height: 1.55; margin: 0; color: var(--paper-2); }

/* ── Contact ──────────────────────────────────────────── */
.contact { max-width: 1100px; padding-block: 72px 96px; --min: 380px; gap: 48px; align-items: start; }
.contact .h1 { margin: 14px 0 20px; }
.contact .lead { margin: 0 0 36px; max-width: 40ch; }
.shop-card { background: var(--ochre); color: #1F1813; border-radius: 16px; padding: 28px; }
.shop-card .label { font-family: var(--font-ui); font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; }
.shop-card .name { font-family: var(--font-display); font-weight: 600; font-size: 1.8rem; margin: 8px 0 14px; overflow-wrap: anywhere; }
.shop-card a {
  font-family: var(--font-ui); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: #1F1813; text-decoration: none; border-bottom: 1px solid #1F1813; padding-bottom: 3px;
}
.form-card {
  display: flex; flex-direction: column; gap: 20px;
  background: var(--card); border: 1px solid var(--hairline); border-radius: 16px; padding: 32px;
}
.form-card label {
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--font-ui); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.form-card input, .form-card textarea {
  font-family: var(--font-body); font-size: 1.15rem; padding: 12px 14px;
  border: 1px solid var(--hairline); border-radius: 6px; background: var(--paper); color: var(--ink);
  letter-spacing: 0; text-transform: none; width: 100%;
}
.form-card textarea { resize: vertical; }
.form-card input:focus, .form-card textarea:focus {
  outline: none; border-color: var(--glow); box-shadow: 0 0 0 3px rgba(232, 162, 61, 0.28);
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0; color: var(--ruby); font-size: 1.05rem; }
.form-error[hidden] { display: none; }
.form-done { background: var(--card); border: 1px solid var(--hairline); border-radius: 16px; padding: 40px; }
.form-done h2 { font-family: var(--font-display); font-weight: 600; font-size: 2.2rem; color: var(--ink); margin: 0; }
.form-done p { font-size: 1.2rem; line-height: 1.6; margin: 12px 0 0; }

/* ── 404 ──────────────────────────────────────────────── */
.notfound { padding-block: 96px 120px; text-align: center; }
.notfound .lead { margin: 20px auto 34px; max-width: 40ch; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .tile:hover, .tile:focus-visible { transform: none; }
}
