/* ============================================================
   The Artful Endeavour — public catalogue
   Palette drawn from the client's own mark: chocolate, brass, ivory.
   The recurring shape is the arch — the silhouette of a mandap and
   of the temple pieces this workshop actually makes.
   ============================================================ */

:root {
  --brand:      #3E2417;
  --brand-deep: #2A180F;
  --gold:       #A9834E;
  --gold-soft:  #D3B486;
  --ivory:      #F8F2E9;
  --sand:       #EFE3D2;
  --line:       #E3D5C2;
  --line-dark:  #5B3E2B;
  --ink:        #251610;
  --muted:      #7A6555;
  --muted-dark: #C4AA92;

  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --text:    "Jost", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --arch: 50% 50% 3px 3px / 30% 30% 3px 3px;
  --wrap: 1240px;
  --gut: clamp(20px, 5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 300 16px/1.66 var(--text);
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: -0.012em;
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--gold);
  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;
}

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--brand); color: var(--ivory); padding: 10px 16px;
}
.skip:focus { left: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap.narrow { max-width: 720px; }

/* ---------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--text); font-size: 14px; font-weight: 400;
  letter-spacing: 0.04em;
  padding: 13px 26px; border: 1px solid transparent; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-solid { background: var(--brand); color: var(--ivory); }
.btn-solid:hover { background: var(--brand-deep); }
.btn-line { background: transparent; color: var(--brand); border-color: var(--line); }
.btn-line:hover { border-color: var(--brand); }
.btn-gold { background: var(--gold); color: #241407; }
.btn-gold:hover { background: var(--gold-soft); }
.btn-wide { width: 100%; }

.band-dark .btn-line { color: var(--ivory); border-color: var(--line-dark); }
.band-dark .btn-line:hover { border-color: var(--gold-soft); }

/* ---------------------------------------------------------- masthead */

.masthead {
  position: sticky; top: 0; z-index: 60;
  background: rgba(248, 242, 233, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.masthead-in {
  display: flex; align-items: center; gap: 28px;
  min-height: 72px;
}

.brandmark { flex: none; display: flex; align-items: center; }
.brandmark img { height: 42px; width: auto; border-radius: 50%; }
.brandmark-type {
  font-family: var(--display); font-size: 22px; line-height: 1;
  color: var(--brand); letter-spacing: 0.01em;
}

.nav { display: flex; gap: 22px; flex: 1; overflow: hidden; }
.nav a {
  font-size: 14px; color: var(--muted); white-space: nowrap;
  padding-block: 6px; border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--brand); }
.nav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--gold); }

.masthead-tools { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.find { display: flex; align-items: center; border: 1px solid var(--line); background: #fff; }
.find input {
  border: 0; background: transparent; font: 300 14px var(--text);
  padding: 9px 12px; width: 130px; color: var(--ink);
}
.find input:focus { outline: none; }
.find:focus-within { border-color: var(--gold); }
.find button {
  border: 0; background: transparent; color: var(--muted);
  padding: 8px 11px 6px; cursor: pointer;
}

.menu-toggle {
  display: none; flex-direction: column; gap: 4px; justify-content: center;
  width: 40px; height: 38px; background: transparent; border: 1px solid var(--line);
  cursor: pointer; padding: 0 10px;
}
.menu-toggle span:not(.sr-only) { display: block; height: 1px; background: var(--brand); }

.drawer { border-bottom: 1px solid var(--line); background: var(--sand); }
.drawer nav { display: flex; flex-direction: column; padding: 8px var(--gut) 20px; }
.drawer a {
  padding: 13px 0; border-bottom: 1px solid var(--line);
  font-size: 16px; display: flex; justify-content: space-between; align-items: baseline;
}
.drawer a em { font-style: normal; font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------- flash */

.flash { padding: 13px var(--gut); font-size: 14px; text-align: center; }
.flash-ok { background: var(--brand); color: var(--ivory); }
.flash-error { background: #F3E2DC; color: #7A2F19; }

/* ---------------------------------------------------------- hero */

.hero { background: var(--ivory); padding-block: clamp(36px, 6vw, 76px) clamp(28px, 5vw, 60px); }

.hero-in {
  display: grid; grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(28px, 5vw, 72px); align-items: center;
}

.hero-place {
  font-family: var(--display); font-style: italic; font-size: 18px;
  color: var(--gold); margin: 0 0 18px;
}

.hero-words h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  line-height: 1.03;
  max-width: 13ch;
  margin: 0 0 22px;
  color: var(--brand-deep);
}

.hero-note {
  font-size: 17px; color: var(--muted); max-width: 46ch;
  margin: 0 0 30px; line-height: 1.72;
}

.hero-acts { display: flex; gap: 12px; flex-wrap: wrap; }

/* The arch: the single bold shape this site is built around. */
.hero-arch {
  margin: 0; position: relative;
  border-radius: var(--arch);
  overflow: hidden;
  background: var(--sand);
  aspect-ratio: 4 / 5;
}
.hero-arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-arch::after {
  content: ""; position: absolute; inset: 10px;
  border: 1px solid rgba(248, 242, 233, 0.45);
  border-radius: var(--arch);
  pointer-events: none;
}
.hero-empty {
  display: grid; place-items: center; height: 100%;
  color: var(--muted); font-size: 14px; padding: 24px; text-align: center;
}

/* ---------------------------------------------------------- bands */

.band { padding-block: clamp(48px, 7vw, 96px); }
.band-light { background: var(--ivory); border-top: 1px solid var(--line); }
.band-dark { background: var(--brand); color: var(--ivory); }
.band-dark h1, .band-dark h2, .band-dark h3 { color: var(--ivory); }
.band.slim { padding-block: clamp(32px, 4.5vw, 56px); }

.band-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: clamp(26px, 3.5vw, 44px);
  border-bottom: 1px solid var(--line); padding-bottom: 16px;
}
.band-dark .band-head { border-bottom-color: var(--line-dark); }
.band-head h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.band-link { font-size: 14px; color: var(--gold); border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------------------------------------------------------- page tops */

.page-top { padding-block: clamp(32px, 4.5vw, 60px) clamp(20px, 3vw, 34px); }
.page-top.slim { padding-block: 22px 0; }

.crumbs { display: flex; gap: 9px; font-size: 13px; color: var(--muted); margin-bottom: 22px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--brand); }
.crumbs span[aria-current] { color: var(--brand); }

.page-title { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.06; color: var(--brand-deep); max-width: 18ch; }
.lede { font-size: 17px; color: var(--muted); max-width: 58ch; margin: 16px 0 0; line-height: 1.7; }
.count { font-size: 13px; color: var(--gold); margin: 18px 0 0; }

/* ---------------------------------------------------------- filters */

.filters {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
  padding-bottom: 22px; margin-bottom: clamp(26px, 3.5vw, 40px);
  border-bottom: 1px solid var(--line);
}
.filter-set { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-size: 13px; padding: 7px 15px; border: 1px solid var(--line);
  color: var(--muted); border-radius: 999px; transition: all .16s ease;
}
.chip:hover { border-color: var(--gold); color: var(--brand); }
.chip.on { background: var(--brand); border-color: var(--brand); color: var(--ivory); }

.sorter select {
  font: 300 14px var(--text); color: var(--brand); background: transparent;
  border: 1px solid var(--line); padding: 8px 12px; cursor: pointer;
}

/* ---------------------------------------------------------- product grid */

.piece-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: clamp(20px, 2.6vw, 38px) clamp(16px, 2vw, 28px);
}

.piece-img {
  margin: 0 0 16px; position: relative; overflow: hidden;
  aspect-ratio: 4 / 5; background: var(--sand);
  display: grid; place-items: center;
}
.band-dark .piece-img { background: #4B2E1E; }

.piece-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.piece-link:hover .piece-img img { transform: scale(1.035); }

.piece-img::after {
  content: ""; position: absolute; inset: 8px;
  border: 1px solid rgba(248, 242, 233, 0.32);
  pointer-events: none;
}

.piece-noimg { font-size: 13px; color: var(--muted); }
.piece-badge {
  position: absolute; top: 0; left: 0; z-index: 2;
  background: var(--gold); color: #241407;
  font-size: 11px; letter-spacing: 0.06em; padding: 5px 11px;
}

.piece-name { font-size: 19px; line-height: 1.28; margin: 0 0 4px; }
.piece-meta { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.band-dark .piece-meta { color: var(--muted-dark); }

.piece-price { font-size: 15px; margin: 0; display: flex; gap: 10px; align-items: baseline; }
.piece-price .now, .detail-price .now { color: var(--brand); }
.band-dark .piece-price .now { color: var(--gold-soft); }
.piece-price .was, .detail-price .was { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.piece-price .ask, .detail-price .ask { color: var(--gold); font-style: italic; font-family: var(--display); font-size: 17px; }

/* ---------------------------------------------------------- arch grid */

.arch-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.arch { display: block; text-align: center; }
.arch-img {
  margin: 0 0 18px; aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: var(--arch); background: var(--sand); position: relative;
}
.arch-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.3,1); }
.arch:hover .arch-img img { transform: scale(1.04); }
.arch-img::after {
  content: ""; position: absolute; inset: 8px;
  border: 1px solid rgba(248, 242, 233, 0.4); border-radius: var(--arch);
}
.arch h3 { font-size: 20px; margin: 0 0 5px; color: var(--brand-deep); }
.arch p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.55; }

/* ---------------------------------------------------------- strip banner */

.strip { background: var(--sand); }
.strip-in {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: clamp(24px, 4vw, 60px); padding-block: clamp(36px, 5vw, 68px);
}
.strip-in img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.strip-words h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 12px; color: var(--brand-deep); }
.strip-words p { color: var(--muted); margin: 0 0 24px; max-width: 42ch; }

/* ---------------------------------------------------------- ways */

.ways { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 72px); }
.ways-lede h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 14px; color: var(--brand-deep); }
.ways-lede p { color: var(--muted); margin: 0 0 26px; max-width: 34ch; }
.ways-list { margin: 0; display: grid; gap: 0; }
.ways-list > div { padding: 22px 0; border-top: 1px solid var(--line); }
.ways-list > div:last-child { border-bottom: 1px solid var(--line); }
.ways-list dt { font-family: var(--display); font-size: 21px; color: var(--brand-deep); margin-bottom: 6px; }
.ways-list dd { margin: 0; color: var(--muted); font-size: 15px; max-width: 52ch; }

/* ---------------------------------------------------------- cta row */

.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-row h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 8px; }
.cta-row p { color: var(--muted-dark); margin: 0; max-width: 50ch; font-size: 15px; }

/* ---------------------------------------------------------- product detail */

.detail { padding-block: clamp(26px, 4vw, 52px) clamp(40px, 6vw, 80px); }
.detail-in { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 76px); align-items: start; }

.gallery-main {
  margin: 0; aspect-ratio: 4 / 5; background: var(--sand); overflow: hidden;
  display: grid; place-items: center; position: relative;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main::after {
  content: ""; position: absolute; inset: 12px;
  border: 1px solid rgba(248, 242, 233, 0.35); pointer-events: none;
}

.gallery-strip { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.thumb {
  flex: none; width: 74px; aspect-ratio: 4/5; padding: 0; cursor: pointer;
  border: 1px solid var(--line); background: var(--sand); overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.on { border-color: var(--gold); }

.detail-cat { font-size: 13px; color: var(--gold); margin: 0 0 10px; }
.detail-name { font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1.07; color: var(--brand-deep); margin-bottom: 14px; }
.detail-price { font-size: 22px; margin: 0 0 20px; display: flex; gap: 12px; align-items: baseline; }
.detail-price .now { font-family: var(--display); font-size: 30px; }
.detail-lede { color: var(--muted); font-size: 16px; margin: 0 0 26px; max-width: 50ch; line-height: 1.72; }

.variants { margin-bottom: 26px; }
.variants-head { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.variant-list { display: flex; gap: 9px; flex-wrap: wrap; }
.variant {
  text-align: left; background: transparent; border: 1px solid var(--line);
  padding: 11px 16px; cursor: pointer; font: 300 14px var(--text); color: var(--ink);
  display: grid; gap: 2px; transition: border-color .16s ease, background-color .16s ease;
}
.variant:hover { border-color: var(--gold); }
.variant.on { border-color: var(--brand); background: var(--sand); }
.variant-label { font-size: 14px; }
.variant-price { font-size: 13px; color: var(--gold); }
.variant-note { font-size: 11px; color: var(--muted); }

.detail-acts { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-bottom: 14px; }
.detail-assure { font-size: 13px; color: var(--muted); margin: 0 0 30px; line-height: 1.6; }

.specs { margin: 0 0 26px; border-top: 1px solid var(--line); }
.specs > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-size: 13px; color: var(--muted); }
.specs dd { margin: 0; font-size: 15px; }

.detail-copy { font-size: 16px; color: #462F22; line-height: 1.78; max-width: 58ch; }

/* ---------------------------------------------------------- forms */

.form-head { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 24px; color: var(--brand-deep); }
.enquiry { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin: 0; display: grid; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); }
.field input, .field textarea {
  font: 300 15px var(--text); padding: 12px 14px; color: var(--ink);
  border: 1px solid var(--line); background: #FDFAF5; width: 100%;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.hp { position: absolute; left: -9999px; }

/* ---------------------------------------------------------- pager, empty */

.pager { display: flex; gap: 22px; align-items: center; justify-content: center; margin-top: 52px; font-size: 14px; }
.pager a { color: var(--brand); border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.pager span { color: var(--muted); }

.empty { text-align: center; padding: 60px 0; color: var(--muted); }
.empty p { margin: 0 0 18px; }
.empty .btn { margin: 0 5px; }

/* ---------------------------------------------------------- link page */

.linkpage { min-height: 100vh; background: var(--brand); color: var(--ivory); padding: 56px 20px 120px; }
.linkpage-in { max-width: 440px; margin-inline: auto; text-align: center; }
.linkpage-logo {
  width: 92px; height: 92px; margin: 0 auto 22px; border-radius: 50%;
  overflow: hidden; background: var(--brand-deep); display: grid; place-items: center;
  border: 1px solid var(--line-dark);
}
.linkpage-logo img { width: 100%; height: 100%; object-fit: cover; }
.linkpage-logo span { font-family: var(--display); font-size: 40px; color: var(--gold-soft); }
.linkpage h1 { font-size: 32px; color: var(--ivory); margin-bottom: 6px; }
.linkpage-sub { color: var(--gold-soft); font-size: 14px; margin: 0 0 4px; }
.linkpage-place { color: var(--muted-dark); font-size: 13px; margin: 0 0 34px; }

.linkstack { display: grid; gap: 11px; text-align: left; }
.linkstack a {
  border: 1px solid var(--line-dark); padding: 16px 20px;
  display: grid; gap: 3px; transition: background-color .18s ease, border-color .18s ease;
}
.linkstack a:hover { background: var(--brand-deep); border-color: var(--gold); }
.linkstack-label { font-size: 16px; }
.linkstack-sub { font-size: 12px; color: var(--muted-dark); }

.linkpage-foot { display: flex; gap: 20px; justify-content: center; margin-top: 34px; font-size: 13px; }
.linkpage-foot a { color: var(--gold-soft); border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------------------------------------------------------- footer */

.foot { background: var(--brand-deep); color: var(--ivory); padding-top: clamp(44px, 6vw, 76px); }
.foot-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 70px); padding-bottom: 44px; }
.foot-name { font-family: var(--display); font-size: 26px; margin: 0 0 12px; }
.foot-line { color: var(--muted-dark); font-size: 15px; max-width: 44ch; margin: 0 0 18px; line-height: 1.7; }
.foot-meta { color: var(--muted-dark); font-size: 13px; margin: 0; line-height: 1.8; }

.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.foot-cols > div { display: flex; flex-direction: column; gap: 9px; }
.foot-head { font-family: var(--display); font-size: 17px; margin: 0 0 6px; color: var(--gold-soft); }
.foot-cols a { font-size: 14px; color: var(--muted-dark); }
.foot-cols a:hover { color: var(--ivory); }

.foot-base {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line-dark); padding-block: 20px 22px;
  font-size: 12px; color: var(--muted-dark);
}
.foot-base p { margin: 0; }
.foot-base a { border-bottom: 1px solid currentColor; padding-bottom: 1px; }

/* ---------------------------------------------------------- mobile dock */

.dock { display: none; }

/* ---------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .nav { gap: 16px; }
  .find input { width: 100px; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .hide-sm { display: none; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-arch { max-width: 420px; margin-inline: auto; order: -1; }
  .hero-words h1 { max-width: 100%; }
  .detail-in { grid-template-columns: 1fr; }
  .strip-in { grid-template-columns: 1fr; }
  .ways { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .masthead-in { min-height: 62px; gap: 12px; }
  .find { flex: 1; }
  .find input { width: 100%; }
  .piece-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
  .piece-name { font-size: 16px; }
  .arch-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .arch h3 { font-size: 17px; }
  .field-row { grid-template-columns: 1fr; }
  .specs > div { grid-template-columns: 118px 1fr; gap: 12px; }
  .detail-acts { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr; }

  /* Sticky action bar — the main conversion path on a phone. */
  .dock {
    display: flex; gap: 8px; position: fixed; z-index: 80;
    left: 0; right: 0; bottom: 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(42, 24, 15, 0.97);
    border-top: 1px solid var(--line-dark);
  }
  .dock-main {
    flex: 1; display: grid; place-items: center;
    background: var(--gold); color: #241407;
    font-size: 15px; letter-spacing: 0.03em; padding: 13px;
  }
  .dock-alt {
    display: grid; place-items: center; width: 52px;
    border: 1px solid var(--line-dark); color: var(--gold-soft);
  }
  .foot { padding-bottom: 76px; }
  .linkpage { padding-bottom: 56px; }
  .is-links .dock { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .masthead, .dock, .foot, .drawer, .filters { display: none; }
  body { background: #fff; }
}
