/* ============================================================
   Selah Creations — stylesheet
   Palette and type are pulled directly from the logo:
   the script teal, the "CREATIONS" grey, and the watercolour
   blush / mauve / sage of the wreath.
   ============================================================ */

/* If you own the exact script from the logo (a commercial calligraphy
   face — Selima, Bombshell Pro and Amsterdam are the usual suspects),
   drop the files into css/fonts/ and uncomment this block. Everything
   set in --display will pick it up; no other change is needed.

@font-face {
  font-family: "Selah Script";
  src: url("fonts/selah-script.woff2") format("woff2");
  font-display: swap;
}
*/

/* ── Tokens ───────────────────────────────────────────── */
:root {
  --teal:        #18789c;   /* the script in the logo */
  --teal-deep:   #0f5a76;
  --teal-wash:   #e6f1f5;
  --grey:        #606060;   /* "CREATIONS" in the logo */
  --ink:         #383a3b;
  --blush:       #f0c0b4;   /* wreath petals */
  --blush-soft:  #f7ded6;
  --mauve:       #e4cccc;
  --sage:        #646e50;   /* wreath leaves */
  --brass:       #b08d57;   /* hardware */
  --paper:       #fbf7f6;
  --paper-tint:  #f6ecea;
  --line:        #e6d8d4;

  --display: "Selah Script", "Allura", "Great Vibes", "Parisienne", cursive;
  --body:    "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --tag:     "Courier Prime", "Courier New", monospace;

  --wrap: 1160px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --radius: 3px;
  --shadow: 0 18px 40px -28px rgba(56, 58, 59, .45);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal); }

h1, h2, h3 { margin: 0 0 .6em; line-height: 1.15; font-weight: 500; }

p { margin: 0 0 1.1em; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--teal); color: #fff; padding: .75rem 1.25rem;
}
.skip-link:focus { left: 0; }

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

/* the letterspaced grey label — lifted straight from "CREATIONS" */
.eyebrow {
  font-family: var(--body);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 0 0 1rem;
}

.display {
  font-family: var(--display);
  font-weight: 400;
  color: var(--teal);
  font-size: clamp(2.9rem, 7vw, 4.6rem);
  line-height: 1;
  margin: 0 0 .35em;
}

/* ── The thread: one saddle stitch down the page ──────── */
.thread {
  position: fixed;
  left: 10px;
  top: 0;
  width: 42px;
  height: 100vh;
  z-index: 15;
  pointer-events: none;
  opacity: .55;
}

@media (max-width: 1240px) { .thread { display: none; } }

/* ── Masthead ─────────────────────────────────────────── */
.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem var(--gutter);
  background: rgba(251, 247, 246, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, padding .3s ease;
}
.masthead.is-stuck { border-bottom-color: var(--line); }

.masthead__logo img { height: 68px; width: auto; transition: height .3s ease; }
.masthead.is-stuck .masthead__logo img { height: 56px; }

.masthead__nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); }
.masthead__nav a {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--grey);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.masthead__nav a:hover { color: var(--teal); border-bottom-color: var(--blush); }

.masthead__cta {
  color: var(--teal) !important;
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  padding: .55rem .95rem !important;
}
.masthead__cta:hover { background: var(--teal); color: #fff !important; }

.masthead__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: .5rem;
  cursor: pointer;
}
.masthead__toggle span { display: block; width: 24px; height: 1.5px; background: var(--grey); }

.mobile-nav {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: .5rem var(--gutter) 1.25rem;
}
.mobile-nav a {
  display: block;
  padding: .8rem 0;
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--grey);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 860px) {
  .masthead__nav { display: none; }
  .masthead__toggle { display: flex; }
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--teal);
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.btn--solid { background: var(--teal); color: #fff; }
.btn--solid:hover { background: var(--teal-deep); border-color: var(--teal-deep); transform: translateY(-2px); }
.btn--quiet { background: transparent; color: var(--teal); }
.btn--quiet:hover { background: var(--teal-wash); }
.btn--full { width: 100%; }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  padding: clamp(3rem, 8vw, 6rem) var(--gutter) clamp(3.5rem, 8vw, 6rem);
  background:
    radial-gradient(120% 90% at 78% 12%, var(--blush-soft) 0%, rgba(247, 222, 214, 0) 58%),
    radial-gradient(90% 80% at 6% 88%, rgba(228, 204, 204, .55) 0%, rgba(228, 204, 204, 0) 60%),
    var(--paper);
  position: relative;
  z-index: 2;
}

.hero__inner { max-width: 780px; margin: 0 auto; text-align: center; }

.hero__logo {
  width: min(620px, 92%);
  margin: 0 auto clamp(1.5rem, 4vw, 2.5rem);
}

.hero__eyebrow {
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 0 0 1.1rem;
}

.hero__headline {
  font-family: var(--body);
  font-weight: 300;
  font-size: clamp(1.6rem, 4.2vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: -.005em;
  color: var(--ink);
  margin: 0 0 1.2rem;
}

.hero__lede {
  max-width: 58ch;
  margin: 0 auto 2rem;
  color: #55585a;
  font-weight: 300;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  justify-content: center;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 0;
  padding-top: 2rem;
  border-top: 1px dashed var(--line);
}
.hero__facts dt {
  font-family: var(--tag);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: .35rem;
}
.hero__facts dd {
  margin: 0;
  font-size: .84rem;
  font-weight: 300;
  color: var(--grey);
  line-height: 1.5;
}
@media (max-width: 620px) {
  .hero__facts { grid-template-columns: 1fr; text-align: left; }
}

/* ── Sections ─────────────────────────────────────────── */
.section {
  padding: clamp(3.5rem, 9vw, 6.5rem) var(--gutter);
  position: relative;
  z-index: 2;
}
.section--tinted {
  background: var(--paper-tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section__head { max-width: var(--wrap); margin: 0 auto clamp(2rem, 5vw, 3rem); }
.section__note { max-width: 60ch; color: #5a5d5f; font-weight: 300; margin: 0; }

/* ── Filters ──────────────────────────────────────────── */
.filters {
  max-width: var(--wrap);
  margin: 0 auto 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.filter {
  font-family: var(--body);
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: .6rem 1.15rem;
  cursor: pointer;
  transition: all .2s ease;
}
.filter:hover { border-color: var(--blush); color: var(--teal); }
.filter.is-active { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ── Collection grid ──────────────────────────────────── */
.grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}
.grid__loading, .grid__empty {
  max-width: var(--wrap);
  margin: 1rem auto;
  color: var(--grey);
  font-weight: 300;
}

.piece {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.piece:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.piece[hidden] { display: none; }

.piece__figure {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: var(--tint, var(--paper-tint));
}
.piece__figure img { width: 78%; height: auto; transition: transform .4s ease; }
.piece:hover .piece__figure img { transform: scale(1.04) rotate(-1deg); }

.piece__no {
  position: absolute;
  top: .85rem;
  left: .85rem;
  font-family: var(--tag);
  font-size: .66rem;
  letter-spacing: .1em;
  color: var(--grey);
  background: rgba(255, 255, 255, .85);
  padding: .2rem .5rem;
  border-radius: 2px;
}

.piece__status {
  position: absolute;
  top: .85rem;
  right: .85rem;
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .3rem .6rem;
  border-radius: 100px;
  background: var(--teal);
  color: #fff;
}
.piece__status[data-status="Sold"] { background: var(--grey); }
.piece__status[data-status="On the bench"] { background: var(--brass); }

.piece__body { padding: 1.4rem 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; }

.piece__name {
  font-family: var(--body);
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: .01em;
  margin: 0 0 .5rem;
  color: var(--ink);
}
.piece__desc {
  font-size: .86rem;
  font-weight: 300;
  color: #5c5f61;
  margin: 0 0 1.1rem;
  line-height: 1.6;
}

.piece__spec {
  margin: 0 0 1.2rem;
  padding-top: .9rem;
  border-top: 1px dashed var(--line);
  font-family: var(--tag);
  font-size: .72rem;
  line-height: 1.65;
  color: var(--grey);
}
.piece__spec div { display: flex; gap: .6rem; }
.piece__spec dt { min-width: 5.6rem; color: var(--brass); }
.piece__spec dd { margin: 0; }

.piece__foot {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.piece__price { font-family: var(--tag); font-size: .95rem; color: var(--ink); }
.piece__price[data-sold="true"] { text-decoration: line-through; color: #9a9c9d; }
.piece__link {
  font-size: .64rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--teal);
  border-bottom: 1px solid var(--blush);
  padding-bottom: 2px;
}
.piece__link:hover { border-bottom-color: var(--teal); }

/* ── Swatches ─────────────────────────────────────────── */
.swatches {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.swatch {
  position: relative;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 0 0 1.1rem;
  cursor: pointer;
  overflow: hidden;
  font-family: var(--body);
  transition: transform .25s ease, border-color .25s ease;
}
.swatch:hover { transform: translateY(-3px); border-color: var(--blush); }
.swatch.is-active { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }

.swatch__chip { display: block; height: 108px; }
.swatch__name {
  display: block;
  padding: .95rem 1.1rem .25rem;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--ink);
}
.swatch__hint {
  display: block;
  padding: 0 1.1rem;
  font-family: var(--tag);
  font-size: .7rem;
  color: var(--grey);
}

/* punched stitch holes along the chip edge */
.swatch__chip::after {
  content: "";
  position: absolute;
  left: 1.1rem; right: 1.1rem;
  top: 92px;
  height: 2px;
  background-image: repeating-linear-gradient(to right, rgba(255,255,255,.85) 0 9px, transparent 9px 16px);
}

.swatch-detail {
  max-width: var(--wrap);
  margin: 1.75rem auto 0;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
.swatch-detail h3 {
  font-family: var(--body);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: .04em;
  margin-bottom: .6rem;
}
.swatch-detail p { font-weight: 300; color: #5a5d5f; max-width: 62ch; }
.swatch-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-top: 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--line);
  font-family: var(--tag);
  font-size: .74rem;
  color: var(--grey);
}
.swatch-detail__meta span { display: block; color: var(--brass); letter-spacing: .12em; text-transform: uppercase; font-size: .64rem; }

/* ── Steps ────────────────────────────────────────────── */
.steps {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0;
  border-top: 1px dashed var(--line);
}
.step {
  padding: 1.75rem clamp(1rem, 2vw, 1.6rem) 1.75rem 0;
  border-bottom: 1px dashed var(--line);
  border-right: 1px dashed var(--line);
}
.step:last-child { border-right: 0; }
.step__no {
  display: block;
  font-family: var(--tag);
  font-size: .8rem;
  letter-spacing: .16em;
  color: var(--brass);
  margin-bottom: .8rem;
}
.step h3 {
  font-family: var(--body);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .02em;
  color: var(--teal);
  margin-bottom: .5rem;
}
.step p { font-size: .85rem; font-weight: 300; color: #5c5f61; margin: 0; line-height: 1.65; }
@media (max-width: 700px) { .step { border-right: 0; padding-right: 0; } }

/* ── Commission ───────────────────────────────────────── */
.commission {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 860px) { .commission { grid-template-columns: 1fr; } }

.commission__copy p { font-weight: 300; color: #55585a; max-width: 52ch; }
.commission__list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  font-family: var(--tag);
  font-size: .76rem;
  color: var(--grey);
}
.commission__list li {
  padding: .6rem 0 .6rem 1.5rem;
  border-bottom: 1px dashed var(--line);
  position: relative;
}
.commission__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.15rem;
  width: 10px; height: 1.5px;
  background: var(--brass);
}

.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
.field { margin: 0 0 1.3rem; border: 0; padding: 0; }
.field label, .field legend {
  display: block;
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: .55rem;
  padding: 0;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: .9rem;
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .8rem .9rem;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--teal);
  outline: none;
  box-shadow: 0 0 0 3px var(--teal-wash);
}
.field input.has-error, .field select.has-error { border-color: #b4543f; }

.field__error {
  margin: .4rem 0 0;
  font-family: var(--tag);
  font-size: .72rem;
  color: #b4543f;
  min-height: 0;
}

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  position: relative;
  font-size: .68rem;
  letter-spacing: .08em;
  color: var(--grey);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: .5rem 1rem;
  cursor: pointer;
  transition: all .2s ease;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:hover { border-color: var(--blush); }
.chip.is-checked { background: var(--teal-wash); border-color: var(--teal); color: var(--teal-deep); }
.chip:focus-within { outline: 2px solid var(--teal); outline-offset: 2px; }

.form__status {
  margin: 1rem 0 0;
  font-family: var(--tag);
  font-size: .78rem;
  color: var(--teal-deep);
  min-height: 1.2em;
}

/* ── Footer ───────────────────────────────────────────── */
.footer {
  padding: clamp(3rem, 7vw, 4.5rem) var(--gutter) 2rem;
  background: var(--paper);
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
.footer__grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__logo { width: 250px; margin-bottom: 1rem; }
.footer__tag, .footer p { font-size: .82rem; font-weight: 300; color: var(--grey); }
.footer h3 {
  font-family: var(--body);
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: .8rem;
}
.footer__fine {
  max-width: var(--wrap);
  margin: clamp(2rem, 5vw, 3rem) auto 0;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--line);
  font-family: var(--tag);
  font-size: .7rem;
  color: #8b8d8e;
}

/* ── Scroll reveal ────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .thread { display: none; }
}
