:root {
  --ivory: #FAF7F1;        /* page base — warm gallery white */
  --ivory-deep: #F1EADC;
  --alabaster: #F6F1E7;    /* first tint — barely there */
  --parchment: #EDE4D3;    /* warm tan section */
  --ink: #2A231C;          /* text */
  --ink-soft: #6E6153;
  --gold: #D0A058;         /* the dove's gold */
  --gold-deep: #A5873C;
  --gold-pale: #E3C88E;
  --hairline: #E5DCCB;
  --terracotta: #C4795A;
  --blue: #9FC6D6;
  --deep: #3B3128;         /* espresso — feature bands & footer */
  --nav: #3B3128;          /* nav bar matches the bands */
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.85;
  font-size: 1.13rem;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--ink); }

/* ---------- Header ---------- */
header {
  position: relative; overflow: hidden; text-align: center;
  padding: 3.2rem 1.5rem 1.6rem;
  /* header keeps one fixed shape, so the photo shows the SAME crop at every
     window width — it just gets bigger, and the tab bar rides along its edge */
  /* height scales with window width (no aspect-ratio, which was shrinking
     the header's width and leaving blank space beside the photo) */
  height: clamp(340px, 52vw, 720px);
  width: 100%;
  display: flex; flex-direction: column; justify-content: flex-start; align-items: center;
}
header img.logo {
  /* grows and shrinks with the window */
  width: clamp(280px, 34vw, 700px);
  height: auto; position: relative; z-index: 2;
}
header.compact { padding: 1.6rem 1.5rem 1.2rem; height: auto; min-height: 0; }
header.compact img.logo { max-width: 240px; }
header > div { position: relative; z-index: 2; }
.workshop { font-style: italic; color: var(--ink-soft); margin-top: 0.7rem; font-size: 1rem; }

.header-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: right center;  /* anchored to the right */
  filter: grayscale(1); z-index: 0;
}
.header-veil { position: absolute; inset: 0; background: rgba(250, 246, 238, 0.62); z-index: 1; }
.brushline { display: block; width: 160px; height: auto; margin: 0.6rem auto 2.4rem; }
.brushline.small { width: 100px; margin: 0.8rem auto 0; }
.brushline.spread { margin: 3rem auto; }

/* ---------- Cart ---------- */
/* Cart button lives inside the tab bar (docked there by cart.js) */
#cart-btn {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%); z-index: 30;
  font-family: inherit; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  background: transparent; color: var(--gold-pale);
  border: 1px solid rgba(227,200,142,0.4); cursor: pointer;
}
#cart-btn:hover { background: var(--gold); color: var(--deep); border-color: var(--gold); }
#cart-drawer {
  position: fixed; top: 0; right: -380px; width: min(360px, 92vw); height: 100vh; z-index: 70;
  background: var(--ivory); border-left: 1px solid var(--hairline);
  box-shadow: -6px 0 30px rgba(42,33,26,0.12);
  padding: 2rem 1.6rem; overflow-y: auto;
  transition: right .3s ease;
}
#cart-drawer.open { right: 0; }
#cart-drawer h3 { font-weight: 500; font-size: 1.4rem; letter-spacing: 0.08em; margin-bottom: 1.4rem; }
.cart-item { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; border-bottom: 1px solid var(--hairline); padding: 0.7rem 0; font-size: 1rem; }
.cart-thumb {
  width: 52px; height: 62px; flex: 0 0 52px;
  object-fit: cover; background: var(--ivory-deep);
  border: 1px solid var(--hairline);
}
.cart-item .info { flex: 1; line-height: 1.45; }
.cart-item .info .nm { display: block; }
.cart-item .info .sz { font-size: 0.88rem; color: var(--ink-soft); font-style: italic; }
.cart-item .rm { color: var(--terracotta); cursor: pointer; font-size: 0.85rem; }
#cart-total { margin-top: 1.2rem; font-size: 1.15rem; text-align: right; }
.cart-actions { margin-top: 1.6rem; text-align: center; }
#cart-note { font-size: 0.85rem; color: var(--ink-soft); font-style: italic; margin-top: 1.2rem; }
.cart-x { cursor: pointer; font-size: 1.25rem; color: var(--ink-soft); line-height: 1; padding: 0.2rem 0.4rem; }

/* ---------- Nav + dropdown ---------- */
nav {
  /* sits in place under the header on desktop — never covers the photo */
  position: relative; z-index: 20;
  background: rgba(59, 49, 40, 0.97);      /* espresso */
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(208,160,88,0.35);
  border-bottom: 1px solid rgba(208,160,88,0.35);
  text-align: center;
  padding: 0.5rem 0;
  /* keeps the centred links clear of the floating cart button and search */
  padding-right: 150px;
  padding-left: 190px;
}

/* ---------- Nav search ---------- */
.nav-search {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 0.35rem;
}
.nav-search input {
  font-family: inherit; font-size: 0.8rem;
  width: 120px; padding: 0.25rem 0.5rem;
  border: 1px solid rgba(227,200,142,0.4); background: rgba(250,247,241,0.10); color: var(--gold-pale);
}
.nav-search input::placeholder { color: rgba(227,200,142,0.6); font-style: italic; }
.nav-search button {
  font-family: inherit; font-size: 0.85rem; cursor: pointer;
  padding: 0.26rem 0.45rem; line-height: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(227,200,142,0.4); background: transparent; color: var(--gold-pale);
}
.nav-search button:hover { background: var(--gold); color: var(--deep); border-color: var(--gold); }
#search-note { text-align: center; font-style: italic; color: var(--ink-soft); margin: 1rem 0 2rem; }
#search-note .btn { margin-top: 1.2rem; }
@media (max-width: 780px) {
  /* phones: a shorter, well-proportioned banner (the 2:1 shape is for desktop) */
  header {
    height: auto;
    min-height: 240px;
    max-height: 300px;
    padding: 2rem 1.2rem 1.4rem;
  }
  header img.logo { width: min(280px, 78vw); }

  /* two tidy rows: search + cart on top, tabs beneath — nothing overlaps */
  nav {
    position: sticky; top: 0;   /* on phones the bar follows you */
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 0.5rem 0.4rem;
    padding: 0.55rem 12px;
  }
  /* search takes the whole top row so all three tabs share the row below */
  .nav-search { position: static; transform: none; order: 1; flex: 1 1 100%; justify-content: center; }
  .nav-search input { width: 100%; max-width: 220px; }
  #cart-btn { position: static; transform: none; order: 2; flex: 0 0 auto; }
  nav a, nav .dropdown { order: 3; display: inline-flex; align-items: center; }
  nav a { margin: 0 0.55rem; }
  .dropdown-menu { min-width: 200px; }
}
@media (max-width: 780px) {
  nav { padding-right: 16px; }
  /* on small screens the cart moves out of the tab bar entirely */
  #cart-btn {
    top: auto; bottom: 16px; right: 16px;
    box-shadow: 0 4px 16px rgba(42,33,26,0.18);
  }
}

/* Edit-text tool hidden — to bring it back, change 'none' to 'block' */
#edit-bar { display: none; }
nav a {
  margin: 0 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-pale);
}
nav a:hover { color: #FFFFFF; }
.dropdown { display: inline-block; position: relative; }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: #453A2F; border: 1px solid rgba(208,160,88,0.35);
  box-shadow: 0 12px 30px rgba(42,33,26,0.28);
  min-width: 230px; padding: 0.5rem 0; z-index: 30; text-align: left;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; margin: 0; padding: 0.45rem 1.2rem; }
.dropdown-menu a:hover { background: var(--gold); color: var(--deep); }

/* ---------- Sections ---------- */
section { max-width: 1020px; margin: 0 auto; padding: 5rem 1.5rem; }
.tint { background: var(--alabaster); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

.tan { background: var(--parchment); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

/* A full section on the soft brown, for rhythm down the page */
.dark { background: var(--deep); color: var(--ivory); }
.dark h2, .dark p, .dark em, .dark strong { color: var(--ivory); }
.dark .eyebrow { color: #EBD4A8; }
.dark .sub { color: #D8CCBC; }
.dark .pull { color: #EBD4A8; }
.dark .portrait > div { border-color: rgba(250,246,238,0.35); outline-color: rgba(250,246,238,0.25); background: rgba(250,246,238,0.08); }
.eyebrow {
  text-align: center; letter-spacing: 0.42em; text-indent: 0.42em; text-transform: uppercase;
  font-size: 0.75rem; color: var(--gold-deep); margin-bottom: 0.7rem;
}
h2 { font-weight: 500; font-size: 2.15rem; text-align: center; letter-spacing: 0.02em; }
.sub { text-align: center; color: var(--ink-soft); font-style: italic; margin: 0.5rem 0 3rem; font-size: 1.05rem; }

/* ---------- Products ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 2.4rem; }
.piece { text-align: center; }
.piece .frame {
  aspect-ratio: 4 / 5;
  background: transparent;
  border: none;
  outline: none;
  display: flex; align-items: center; justify-content: center;
  color: #A79781; font-style: italic; font-size: 0.98rem;
  overflow: hidden;
}
.piece .frame.tall { aspect-ratio: 3 / 4; }
.piece h3 { font-weight: 500; margin-top: 1.4rem; font-size: 1.05rem; letter-spacing: 0.14em; text-transform: uppercase; }
.piece p.medium { color: var(--ink-soft); font-style: italic; font-size: 0.98rem; }
.buy { margin-top: 0.9rem; border: 1px solid var(--hairline); background: #FFFDF8; padding: 0.9rem; }
.buy select {
  font-family: inherit; font-size: 0.95rem; width: 100%; padding: 0.45rem 0.5rem;
  border: 1px solid var(--hairline); background: var(--ivory); color: var(--ink);
}
.buy .add {
  margin-top: 0.7rem; width: 100%;
  font-family: inherit; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.65rem 0; background: transparent; border: 1px solid var(--gold); color: var(--ink); cursor: pointer;
  transition: all .25s ease;
}
.buy .add:hover { background: var(--deep); border-color: var(--deep); color: var(--gold-pale); }

/* ---------- About ---------- */
#about { max-width: 800px; }
#about p { margin-bottom: 1.4rem; }
.artist-row { display: flex; gap: 2.6rem; align-items: flex-start; margin-top: 0.5rem; }
.artist-row .portrait { flex: 0 0 220px; }
.artist-row .bio { flex: 1; }
@media (max-width: 700px) {
  .artist-row { flex-direction: column; align-items: center; text-align: center; }
}
.pull { font-style: italic; font-size: 1.3rem; text-align: center; padding: 0 2rem; margin: 2rem 0; color: var(--terracotta); }

/* ---------- Mission band ---------- */
.band { background: var(--deep); color: var(--ivory); text-align: center; padding: 5rem 1.5rem; }
.band .mark { color: var(--gold); font-size: 1.6rem; letter-spacing: 0.3em; margin-bottom: 1.6rem; }
.band blockquote { max-width: 720px; margin: 0 auto; font-size: 1.5rem; font-style: italic; line-height: 1.85; }
.band .who { margin-top: 1.8rem; color: var(--gold-pale); letter-spacing: 0.3em; text-indent: 0.3em; text-transform: uppercase; font-size: 0.75rem; }

/* ---------- Offerings ---------- */
.offerings { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); text-align: center; }
.offer { padding: 1.2rem 1.8rem; }
.offer + .offer { border-left: 1px solid var(--hairline); }
.offer .numeral { font-size: 0.8rem; letter-spacing: 0.3em; color: var(--gold-deep); margin-bottom: 0.9rem; }
.offer h3 { font-weight: 500; font-size: 1.25rem; margin-bottom: 0.6rem; }
.offer p { color: var(--ink-soft); font-size: 1rem; }
.offer .browse { display: inline-block; margin-top: 0.7rem; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; }
@media (max-width: 900px) {
  .offer + .offer { border-left: none; border-top: 1px solid var(--hairline); margin-top: 1rem; padding-top: 2.2rem; }
}

/* ---------- Featured carousel ---------- */
.carousel { position: relative; max-width: 420px; margin: 0 auto 3.5rem; }
.car-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
}
.car-track::-webkit-scrollbar { display: none; }
.car-slide { flex: 0 0 100%; scroll-snap-align: center; text-align: center; padding: 8px; }
.car-slide .frame {
  aspect-ratio: 4 / 5;
  background: transparent;
  border: none;
  outline: none;
  display: flex; align-items: center; justify-content: center;
  color: #A79781; font-style: italic; font-size: 0.98rem;
  overflow: hidden;
}
.car-slide .title { font-weight: 500; margin-top: 1rem; font-size: 1rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.car-arrow {
  position: absolute; top: 42%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--ivory); border: 1px solid var(--gold); color: var(--ink);
  font-size: 1.2rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; z-index: 5; font-family: inherit;
}
.car-arrow:hover { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.car-arrow.prev { left: -56px; }
.car-arrow.next { right: -56px; }
.carousel.compact { max-width: 250px; margin: 1.2rem auto; }
.carousel.compact .car-arrow { width: 32px; height: 32px; font-size: 1rem; }
.carousel.compact .car-arrow.prev { left: -16px; }
.carousel.compact .car-arrow.next { right: -16px; }
.carousel.compact .title { font-size: 0.85rem; }
@media (max-width: 560px) {
  .car-arrow.prev { left: 4px; }
  .car-arrow.next { right: 4px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; margin-top: 2.4rem; padding: 0.9rem 2.8rem;
  background: transparent; border: 1px solid var(--gold-deep); color: var(--ink);
  letter-spacing: 0.26em; text-indent: 0.26em; text-transform: uppercase; font-size: 0.76rem;
  transition: all .25s ease; cursor: pointer; font-family: inherit;
}
.btn:hover { background: var(--deep); border-color: var(--deep); color: var(--gold-pale); }
.band .btn, #search-note .btn { border-color: var(--gold); color: var(--gold-pale); }
.band .btn:hover, #search-note .btn:hover { background: var(--gold); color: var(--deep); }
.center { text-align: center; }

/* ---------- Coming soon (shop opening) ---------- */
#cart-btn { display: none !important; }   /* shop not selling yet */
.coming-soon {
  max-width: 640px; margin: 1.4rem auto 0; text-align: center;
  border: 1px solid var(--hairline); background: var(--alabaster);
  padding: 3.6rem 2.4rem;
}
.coming-soon .cs-mark { color: var(--gold); margin-bottom: 1.1rem; }
.mark .cross, .cs-mark .cross { display: block; margin: 0 auto; }
.coming-soon h3 { font-size: 1.75rem; font-weight: 500; letter-spacing: 0.02em; margin: 0; }
.coming-soon .cs-line { width: 58px; height: 0; border: 0; border-top: 1px solid var(--gold-deep); opacity: .55; margin: 1.05rem auto 1.35rem; }
.coming-soon p { color: var(--ink-soft); font-size: 1.12rem; max-width: 470px; margin: 0 auto; }
.coming-soon .btn { margin-top: 2rem; }

/* ---------- Contact / footer ---------- */
#contact .contact-lines { text-align: center; font-size: 1.12rem; line-height: 2.3; }
#contact .contact-lines .label {
  letter-spacing: 0.24em; text-transform: uppercase; font-size: 0.78rem; color: var(--ink-soft); margin-right: 0.6rem;
}
footer { background: var(--deep); color: var(--ivory-deep); text-align: center; padding: 3.5rem 1.5rem 3rem; }
footer img.logo-footer { width: 230px; height: auto; filter: brightness(0) invert(0.94); opacity: 0.95; }
footer .tag {
  letter-spacing: 0.3em; text-indent: 0.3em; text-transform: uppercase;
  font-size: 0.72rem; color: var(--gold-pale); margin-top: 1.2rem;
}
footer .footer-contact {
  margin-top: 1.4rem; font-size: 0.95rem; color: var(--ivory-deep);
}
footer .footer-contact a { color: var(--ivory-deep); }
.ci { width: 15px; height: 15px; vertical-align: -2px; margin-right: 0.4rem; color: #FFFFFF; }
footer .footer-contact a:hover .ci { color: var(--gold); }
footer .footer-contact a:hover { color: var(--gold); }
footer .footer-contact .dot { color: var(--gold); margin: 0 0.6rem; }
@media (max-width: 560px) {
  footer .footer-contact .dot { display: block; height: 0; overflow: hidden; margin: 0.15rem 0; }
}
footer .legal { margin-top: 1.2rem; font-size: 0.82rem; color: #A2937F; }
