/* site.css — Tillzart.
   Palette and motif are taken straight from the logo: near-black ground, cream
   type, and the blue→purple→pink of the wreath. The wreath is made of beads and
   leaves, so the site's dividers are BEADS — a gradient strand rendered as dots.
   That strand and the cream "sold" bead are the only decorative moves; the
   gradient never becomes a button or a headline, because on a jewelry site the
   product is the colour and the interface shouldn't compete with it. */

:root {
  --ground:  #0a0a0d;   /* near-black; the logo's own field */
  --raised:  #131317;   /* cards lift barely off the ground */
  --cream:   #f7edd3;   /* straight from the wordmark */
  --cream-2: rgba(247, 237, 211, .62);
  --cream-3: rgba(247, 237, 211, .34);
  --line:    rgba(247, 237, 211, .14);
  --blue:    #4a63e7;
  --purple:  #8e5fc0;
  --pink:    #e97b95;
  --wreath:  linear-gradient(90deg, var(--blue), var(--purple), var(--pink));
  --measure: 1180px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--cream);
  font-family: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 28px; }

/* ---- the beaded strand -------------------------------------------------- */
/* A gradient bar masked into a row of dots: the wreath, straightened out. */
.strand {
  height: 9px;
  background: var(--wreath);
  -webkit-mask-image: radial-gradient(circle at 5px 4.5px, #000 2.1px, transparent 2.3px);
          mask-image: radial-gradient(circle at 5px 4.5px, #000 2.1px, transparent 2.3px);
  -webkit-mask-size: 13px 9px;
          mask-size: 13px 9px;
  -webkit-mask-repeat: repeat-x;
          mask-repeat: repeat-x;
  opacity: .85;
}
/* Browsers without mask support still get a hairline in the brand gradient. */
@supports not ((-webkit-mask-image: radial-gradient(#000, #000)) or (mask-image: radial-gradient(#000, #000))) {
  .strand { height: 1px; -webkit-mask-image: none; mask-image: none; }
}

/* ---- masthead ----------------------------------------------------------- */
/* The header sticks to the top and shrinks once you scroll past it. At full
   size it shows the whole banner; .shrunk (added by a scroll sentinel) collapses
   the banner to a slim bar so it doesn't dominate a phone screen on every scroll.
   The height is animated, so it glides rather than snapping. */
.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ground);
  padding: 24px 0 0;
  margin-bottom: 34px;
  border-bottom: 1px solid transparent;
  transition: padding .28s ease, border-color .28s ease;
}
.masthead.shrunk {
  padding: 8px 0 0;
  border-bottom-color: var(--line);
}

.banner { display: block; text-decoration: none; margin-bottom: 16px; }
.banner img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  /* the shrink: cap the banner's height and let it crop to a bar. max-height
     animates smoothly where an auto height can't. */
  max-height: 240px;
  object-fit: contain;
  transition: max-height .28s ease, margin-bottom .28s ease;
}
/* Wide (horizontal) lockup fills the content column. Stacked (square) lockup is
   centered and capped so it reads as an emblem, not a stretched billboard. */
.banner-wide .banner img { max-width: 100%; }
.banner-stacked .banner img { max-width: 380px; max-height: 300px; }

.masthead.shrunk .banner img { max-height: 58px; margin-bottom: 0; }
.masthead.shrunk .banner { margin-bottom: 10px; }
.masthead.shrunk.banner-stacked .banner img { max-height: 56px; }

.mainnav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 14px;
}
.mainnav a {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream-2);
  padding: 4px 0;
  position: relative;
  white-space: nowrap;
}
.mainnav a:hover { color: var(--cream); }
/* the current page is marked with a single pink bead, echoing the wreath */
.mainnav a[aria-current="page"] { color: var(--cream); }
.mainnav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -3px;
  width: 5px; height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--pink);
}

/* ---- placard ------------------------------------------------------------ */
.placard { padding-top: 12px; }
.placard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.placard h1, .placard h2, .placard h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  letter-spacing: .005em;
  line-height: 1.12;
  margin: 0;
}
.placard h1 { font-size: clamp(30px, 4vw, 44px); }
.placard h2 { font-size: clamp(24px, 3vw, 34px); }
.placard h3 { font-size: 21px; }
.placard-meta {
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cream-3);
  margin: 8px 0 0;
}
.placard-meta span + span::before { content: " · "; }
.placard-price {
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--cream-2);
  margin: 9px 0 0;
}

/* the cream bead: what the logo's wreath uses to punctuate a strand, and what
   this site uses to say a one-of-a-kind piece is gone. */
.bead {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 0 0 3px rgba(247, 237, 211, .12);
  display: inline-block;
  flex: none;
  margin-top: 8px;
}
.bead-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cream-2);
}
.bead-label .bead { margin-top: 0; width: 8px; height: 8px; box-shadow: none; }

/* ---- grid --------------------------------------------------------------- */
.works {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 44px 30px;
  padding-bottom: 80px;
}
.work { text-decoration: none; display: block; }
.work-frame {
  background: var(--raised);
  border: 1px solid var(--line);
  padding: 15px;
  overflow: hidden;                 /* the image zooms within the frame */
  transition: border-color .3s ease;
}
.work-frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--raised);
  transition: transform .35s ease;
  will-change: transform;
}

/* Desktop: hovering zooms the image in place; a single click opens the piece.
   Guarded by (hover: hover) so touch devices never get a stuck hover state. */
@media (hover: hover) {
  .work:hover .work-frame { border-color: rgba(247, 237, 211, .35); }
  .work:hover .work-frame img { transform: scale(1.12); }
}

/* Touch: first tap adds .expanded (zoomed preview), second tap follows the link.
   The class is toggled in JS; here it just mirrors the desktop zoom. */
.work.expanded .work-frame { border-color: rgba(247, 237, 211, .45); }
.work.expanded .work-frame img { transform: scale(1.12); }

.work:focus-visible .work-frame { outline: 2px solid var(--cream); outline-offset: 3px; }

/* ---- detail ------------------------------------------------------------- */
.back {
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cream-3);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 24px;
}
.back:hover { color: var(--cream); }
.detail {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 50px;
  align-items: start;
  padding-bottom: 80px;
}
.stage { background: var(--raised); border: 1px solid var(--line); padding: 22px; }
.stage img { width: 100%; height: auto; }
.stage-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.stage-thumbs button {
  width: 66px; height: 66px; padding: 0;
  border: 1px solid var(--line); background: var(--raised);
  cursor: pointer; overflow: hidden;
}
.stage-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.stage-thumbs button[aria-current="true"] { border-color: var(--cream); }

.description { color: var(--cream-2); margin: 20px 0 0; font-size: 15px; }

/* buy list */
.buy { margin-top: 30px; }
.buy-label {
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--cream-3); margin: 14px 0 6px;
}
.buy-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line);
}
.buy-row:last-of-type { border-bottom: 0; }
.buy-what { font-size: 15px; }
.buy-what .kind {
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cream-3); display: block; margin-bottom: 4px;
}
.buy-what .sub {
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cream-3); display: block; margin-top: 4px;
}
.buy-side { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.price { font-size: 15px; letter-spacing: .04em; }
.btn-buy {
  background: transparent; color: var(--cream);
  border: 1px solid var(--cream-3);
  padding: 9px 18px;
  font: inherit; font-size: 12px; font-weight: 400;
  letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-buy:hover:not(:disabled) { background: var(--cream); color: var(--ground); border-color: var(--cream); }
.btn-buy:disabled { opacity: .35; cursor: default; }
.buy-note {
  font-size: 11px; letter-spacing: .06em; color: var(--cream-3);
  margin: 18px 0 0;
}

/* ---- empty + footer ----------------------------------------------------- */
.empty-wall {
  border: 1px dashed var(--line);
  background: var(--raised);
  padding: 80px 24px;
  text-align: center;
  color: var(--cream-3);
  margin-bottom: 80px;
}
.empty-wall p { margin: 0; }
.site-foot {
  padding: 26px 0 46px;
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream-3);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--cream); }

/* ---- content pages (About, My Vision, Events, Contact) ------------------ */
.content {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 0 90px;
}
.content-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  margin: 0 0 20px;
}
.content .strand { margin-bottom: 26px; }
.content-body { color: var(--cream-2); font-size: 16px; line-height: 1.75; }
.content-body p { margin: 0 0 18px; }
.content-lede { font-size: 18px; color: var(--cream); }
.content-link {
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid var(--cream-3);
  padding-bottom: 1px;
}
.content-link:hover { border-bottom-color: var(--cream); }

/* ---- header chooser (temporary landing) --------------------------------- */
.chooser { padding: 48px 0 80px; }
.chooser-intro { text-align: center; max-width: 620px; margin: 0 auto 8px; }
.chooser-intro h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 10px;
}
.chooser-intro p { color: var(--cream-2); margin: 0 0 22px; }
.chooser-intro .strand { margin-bottom: 8px; }

.chooser-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin: 34px 0 40px;
}
.choice {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--cream);
  background: var(--raised);
  border: 1px solid var(--line);
  padding: 22px;
  transition: border-color .25s ease, transform .25s ease;
}
.choice:hover { border-color: rgba(247, 237, 211, .4); transform: translateY(-3px); }
.choice-frame {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.choice-frame img { width: 100%; height: auto; }
.choice.banner-stacked .choice-frame img { max-width: 300px; }
.choice-label {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cream-2);
}
.choice-go {
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--cream-3);
  margin-top: 6px;
}
.choice:hover .choice-go { color: var(--cream); }

.chooser-admin { text-align: center; margin-top: 10px; }
.chooser-admin a {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cream-3);
  text-decoration: none;
}
.chooser-admin a:hover { color: var(--cream); }

@media (max-width: 620px) {
  .chooser-grid { grid-template-columns: 1fr; gap: 20px; }
  .choice-frame { min-height: 160px; }
}

/* ---- responsive ---------------------------------------------------------
   Phones first in practice: she photographs and posts from a phone, and most
   buyers arrive from a phone too. Two rules drive the rest — nothing may
   overflow the viewport, and anything tappable is at least 44px tall. */

@media (max-width: 900px) {
  .detail { grid-template-columns: 1fr; gap: 26px; }
  .stage { padding: 14px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .masthead { padding: 14px 0 0; margin-bottom: 24px; }
  .masthead.shrunk { padding: 6px 0 0; }

  /* nav: smaller gaps so all five links fit across a phone, still tappable */
  .mainnav { gap: 16px 18px; padding-bottom: 12px; }
  .mainnav a { font-size: 10.5px; letter-spacing: .14em; padding: 6px 0; }

  /* the shrunk banner can go a touch smaller on a phone */
  .masthead.shrunk .banner img { max-height: 46px; }

  /* Two across, not one: jewelry is small and reads fine at this size, and a
     single column turns the gallery into an endless scroll. */
  .works {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 12px;
    padding-bottom: 48px;
  }
  .work-frame { padding: 8px; }
  .placard h3 { font-size: 17px; }
  .placard-meta { font-size: 9.5px; letter-spacing: .12em; }
  .placard-price { font-size: 12px; }

  /* a buy row stops being a row when there's no width for one */
  .buy-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .buy-side { width: 100%; justify-content: space-between; }
  .btn-buy { min-height: 44px; padding: 11px 20px; }

  .stage-thumbs button { width: 56px; height: 56px; }
  .empty-wall { padding: 54px 18px; margin-bottom: 48px; }
  .site-foot { padding: 20px 0 36px; }
}

/* very narrow phones: one column is genuinely better than two cramped ones */
@media (max-width: 380px) {
  .works { grid-template-columns: 1fr; gap: 22px; }
}

/* landscape phones / small tablets */
@media (min-width: 641px) and (max-width: 900px) {
  .works { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  /* no zoom when motion is reduced — the border change alone signals focus */
  .work:hover .work-frame img,
  .work.expanded .work-frame img { transform: none; }
}

a:focus-visible, button:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }
