/* ============================================================
   Flux + Thread — stained glass studio
   Brand: lavender + charcoal on warm ivory. "Handmade with love."
   Palette taken from Sarah's flyer (lavender) and logo (black).
   ============================================================ */

:root {
  --bg:        #faf7f2;   /* warm ivory (flyer background) */
  --bg-soft:   #f1ebe0;   /* card / panel */
  --ink:       #1c1b22;   /* near-black (logo) — headings */
  --body:      #34323c;   /* body text */
  --muted:     #726c7d;   /* captions, secondary */
  --rule:      #ded5e8;   /* hairline rules (lavender-gray) */

  --lav:       #b79ad8;   /* flyer-headline lavender — fills, bars */
  --lav-soft:  #e9dff5;   /* tints, tag backgrounds */
  --lav-dk:    #6f4f9c;   /* accessible purple for links / hover */

  /* her actual glass colors — used only as a thin accent bar */
  --g-amber:   #c47a2c;
  --g-sage:    #5f8a63;
  --g-plum:    #6a3d6e;
  --g-rose:    #b06a82;
  --g-lav:     #b79ad8;

  --accent:    var(--lav-dk);
  --accent-dk: #573d7e;
  --max-w:     1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  overflow-x: hidden;   /* guard against decorative offsets causing side-scroll */
  background: var(--bg);
  color: var(--body);
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease, color 120ms ease;
}
a:hover { color: var(--accent-dk); border-bottom-color: var(--accent-dk); }

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0;
}

.smallcaps {
  text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.78rem; color: var(--muted); font-weight: 600;
}

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block; font-family: 'Lora', Georgia, serif;
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; font-weight: 600;
  padding: 14px 28px; border: 1px solid var(--ink); border-radius: 2px;
  background: var(--ink); color: #faf7f2;
  transition: background 140ms ease, color 140ms ease, transform 80ms ease, border-color 140ms ease;
  cursor: pointer;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #faf7f2; border-color: var(--ink); }

/* ---------- Header / nav ---------- */

.site-header { border-bottom: 1px solid var(--rule); background: var(--bg); position: sticky; top: 0; z-index: 50; }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 14px; flex-wrap: wrap; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 14px; border: none; }
.brand:hover { border: none; }
.brand img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.brand .wordmark {
  font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.7rem; font-weight: 600;
  letter-spacing: 0.03em; color: var(--ink); line-height: 1;
}
.brand .wordmark .plus { color: var(--lav-dk); }
.site-nav { display: flex; gap: 26px; align-items: center; }
.site-nav a { color: var(--ink); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.74rem; font-weight: 600; border: none; }
.site-nav a:hover { color: var(--accent); }
.site-nav .btn { color: #faf7f2; }
.site-nav .btn:hover { color: #fff; }

/* ---------- Hero ---------- */

.hero {
  padding: 80px 0 76px;
  background:
    radial-gradient(820px 360px at 12% 0%, rgba(183,154,216,0.22), transparent 62%),
    radial-gradient(720px 320px at 95% 30%, rgba(183,154,216,0.14), transparent 60%);
}
.hero .container { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero .eyebrow { margin-bottom: 18px; }
.hero-title { font-size: 3.9rem; line-height: 1.04; margin: 0 0 18px; font-style: italic; font-weight: 600; }
.hero-tagline { color: var(--body); font-size: 1.16rem; max-width: 30ch; margin: 0 0 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-figure { position: relative; }
.hero-figure img {
  width: 100%; border-radius: 6px; border: 1px solid var(--rule);
  box-shadow: 0 18px 50px rgba(87,61,126,0.18);
}
.hero-figure::before {
  content: ''; position: absolute; inset: -16px -16px 18px 18px; z-index: -1;
  background: var(--lav-soft); border-radius: 8px;
}

.glass-bar { display: flex; height: 8px; }
.glass-bar span { flex: 1; }
/* lavender → deep purple → lavender (symmetric, on-brand) */
.glass-bar .c1 { background: var(--lav); }
.glass-bar .c2 { background: var(--lav-dk); }
.glass-bar .c3 { background: var(--accent-dk); }
.glass-bar .c4 { background: var(--lav-dk); }
.glass-bar .c5 { background: var(--lav); }

/* ---------- Sections ---------- */

section { padding: 72px 0; }
.section-rule { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.section-rule::before, .section-rule::after { content: ''; flex: 1; height: 1px; background: var(--rule); }
.section-rule h2 { font-size: 2.3rem; font-style: italic; font-weight: 600; }
.section-sub { text-align: center; color: var(--muted); max-width: 660px; margin: 0 auto 44px; }

/* ---------- Offerings ---------- */

.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; }
.offer-card { background: var(--bg-soft); border: 1px solid var(--rule); border-top: 4px solid var(--lav); padding: 30px 26px; border-radius: 3px; }
.offer-card h3 { font-size: 1.5rem; margin-bottom: 8px; }
.offer-card p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.offer-card .ic { font-size: 1.5rem; margin-bottom: 12px; display: block; color: var(--lav-dk); }

/* ---------- Featured workshop ---------- */

.workshop { background: var(--bg-soft); }
.workshop .grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 52px; align-items: center; }
.workshop .photo { border-radius: 6px; overflow: hidden; border: 1px solid var(--rule); box-shadow: 0 14px 40px rgba(87,61,126,0.14); }
.workshop .photo img { width: 100%; display: block; }
.workshop h2 { font-size: 2.5rem; font-style: italic; margin-bottom: 6px; }
.workshop .lead-in { color: var(--body); margin: 14px 0 22px; font-size: 1.05rem; }
.learn-title { margin-bottom: 10px; }
.learn-list, .perk-list { list-style: none; padding: 0; margin: 0 0 22px; }
.learn-list li, .perk-list li { position: relative; padding-left: 28px; margin-bottom: 9px; }
.learn-list li::before { content: '\25C6'; position: absolute; left: 0; color: var(--lav-dk); font-size: 0.8rem; top: 2px; }
.perk-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
.perk-list li::before { content: '\2713'; position: absolute; left: 0; color: var(--g-sage); font-weight: 700; }
.workshop .note {
  background: var(--lav-soft); border-left: 3px solid var(--lav-dk);
  padding: 16px 20px; border-radius: 0 3px 3px 0; margin: 0 0 24px; color: var(--ink); font-size: 0.98rem;
}
.workshop .cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.flyer-link { font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }

/* ---------- Gallery ---------- */

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.gallery-grid figure { margin: 0; border-radius: 4px; overflow: hidden; border: 1px solid var(--rule); background: var(--bg-soft); }
.gallery-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; transition: transform 300ms ease; }
.gallery-grid img.flyer-thumb { object-position: top center; }
.gallery-grid figure:hover img { transform: scale(1.04); }
.gallery-grid figcaption { padding: 12px 16px; font-size: 0.88rem; color: var(--muted); font-style: italic; }
.gallery-more { text-align: center; margin-top: 28px; }

/* ---------- About ---------- */

.about { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.about .mark { display: flex; justify-content: center; }
.about .mark img { width: 240px; height: 240px; border-radius: 50%; object-fit: cover; box-shadow: 0 14px 40px rgba(28,27,34,0.22); }
.about h2 { font-size: 2.4rem; font-style: italic; margin-bottom: 16px; }
.about p { margin: 0 0 16px; }

/* ---------- Signup band ---------- */

.band { background: var(--ink); color: #efeaf4; text-align: center; }
.band h2 { color: #fff; font-size: 2.2rem; font-style: italic; margin-bottom: 12px; }
.band p { color: #c9c2d6; max-width: 560px; margin: 0 auto 28px; }
.signup { max-width: 520px; margin: 0 auto; text-align: left; }
.signup .field-row { display: flex; gap: 10px; }
.signup input[type="text"], .signup input[type="email"] {
  font-family: 'Lora', Georgia, serif; font-size: 1rem; padding: 13px 16px; width: 100%;
  border: 1px solid #4a4458; background: #2a2833; color: #fff; border-radius: 2px; margin-bottom: 12px;
}
.signup input::placeholder { color: #8d8799; }
.signup input:focus { outline: none; border-color: var(--lav); }

.timing { border: 0; padding: 0; margin: 2px 0 16px; }
.timing legend { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.14em; color: #c9c2d6; margin-bottom: 10px; padding: 0; }
.timing { display: flex; flex-wrap: wrap; gap: 10px; }
.timing legend { flex-basis: 100%; }
.timing label { position: relative; cursor: pointer; }
.timing input { position: absolute; opacity: 0; }
.timing span {
  display: inline-block; padding: 9px 16px; border: 1px solid #4a4458; border-radius: 999px;
  font-size: 0.86rem; color: #d7d1e0; transition: all 130ms ease;
}
.timing label:hover span { border-color: var(--lav); color: #fff; }
.timing input:checked + span { background: var(--lav); border-color: var(--lav); color: #1c1b22; font-weight: 600; }
.timing input:focus-visible + span { outline: 2px solid var(--lav); outline-offset: 2px; }

.signup .btn { background: var(--lav); border-color: var(--lav); color: #1c1b22; width: 100%; margin-top: 4px; }
.signup .btn:hover { background: #fff; border-color: #fff; color: #1c1b22; }
.band .btn { background: var(--lav); border-color: var(--lav); color: #1c1b22; }
.band .btn:hover { background: #fff; border-color: #fff; color: #1c1b22; }

.signup-status { margin: 14px 0 0; text-align: center; font-size: 0.95rem; min-height: 1.2em; opacity: 0; transition: opacity 160ms ease; }
.signup-status.show { opacity: 1; }
.signup-status.ok { color: #b6e2bd; }
.signup-status.err { color: #f0b3bf; }
.signup-status.pending { color: #d7c8ef; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--rule); padding: 44px 0 56px; text-align: center; color: var(--muted); font-size: 0.9rem; }
.site-footer img { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 14px; object-fit: cover; }
.site-footer .tag { font-style: italic; color: var(--lav-dk); margin-bottom: 4px; }
.site-footer .social { margin-top: 12px; }
.site-footer .social a { color: var(--ink); margin: 0 10px; border: none; font-weight: 600; }
.site-footer .social a:hover { color: var(--accent); }

/* ---------- Workshops listing & detail ---------- */

.card-cta { margin-top: 18px; font-size: 0.72rem; padding: 11px 22px; }

.workshop-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.workshop-listing-card {
  background: var(--bg-soft); border: 1px solid var(--rule); border-top: 4px solid var(--lav);
  border-radius: 3px; overflow: hidden; min-width: 0;
}
.workshop-listing-card > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.workshop-listing-card .body { padding: 24px 26px 28px; }
.workshop-listing-card h3 { font-size: 1.7rem; font-style: italic; margin: 6px 0 4px; overflow-wrap: break-word; }
.workshop-listing-card p { color: var(--muted); font-size: 0.98rem; margin: 0 0 20px; }

/* labeled meta rows (listing card) */
.workshop-meta { margin: 8px 0 14px; font-size: 0.95rem; }
.workshop-meta div { margin-bottom: 3px; }
.workshop-meta .label, .workshop-facts .label {
  display: inline-block; min-width: 84px; text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.72rem; font-weight: 600; color: var(--lav-dk);
}
.workshop-meta .label { vertical-align: top; }
.date-chip {
  display: inline-block; background: var(--lav-soft); color: var(--lav-dk);
  border: 1px solid var(--lav); border-radius: 999px; padding: 3px 13px; margin: 0 6px 5px 0;
  font-size: 0.85rem; font-weight: 600; text-decoration: none; transition: background 130ms ease, color 130ms ease;
}
.date-chip:hover { background: var(--lav); color: #1c1b22; }
/* A sold-out date still links through (to the waitlist) but reads as full. */
.date-chip.is-soldout { background: var(--bg-soft); color: var(--muted); border-color: var(--rule); font-weight: 500; }
.date-chip.is-soldout:hover { background: var(--rule); color: var(--ink); }
.date-or { font-size: 0.82rem; color: var(--muted); font-style: italic; margin: 0 3px; }

/* prominent facts panel (detail page) */
.workshop-facts {
  background: var(--lav-soft); border-left: 3px solid var(--lav-dk);
  padding: 18px 22px; border-radius: 0 3px 3px 0; margin: 4px 0 24px; color: var(--ink); font-size: 1rem;
}
.workshop-facts div { margin-bottom: 5px; }
.workshop-facts div:last-child { margin-bottom: 0; }

/* back link on detail page */
.back-link { margin: 0 0 20px; }
.back-link a { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.76rem; font-weight: 600; }

/* inline flag for unfinalized values — easy to spot and to find */
.placeholder { color: var(--g-amber); border-bottom: 1px dashed var(--g-amber); font-style: italic; }

/* extra reservation-form fields inside the dark band */
.signup input[type="tel"], .signup select, .signup textarea {
  font-family: 'Lora', Georgia, serif; font-size: 1rem; padding: 13px 16px; width: 100%;
  border: 1px solid #4a4458; background: #2a2833; color: #fff; border-radius: 2px; margin-bottom: 12px;
}
.signup textarea { min-height: 88px; resize: vertical; }
.signup select { appearance: none; cursor: pointer; }
.signup textarea::placeholder { color: #8d8799; }
.signup input[type="tel"]:focus, .signup select:focus, .signup textarea:focus { outline: none; border-color: var(--lav); }

/* post-submit confirmation panel (dark band) */
.reserve-confirm { max-width: 560px; margin: 8px auto 0; text-align: center; }
.reserve-confirm h3 { color: #fff; font-size: 1.8rem; font-style: italic; margin-bottom: 10px; }
.reserve-confirm p { color: #c9c2d6; margin: 0 auto 18px; }
.reserve-confirm .btn { margin-bottom: 14px; }
.reserve-confirm .fineprint { font-size: 0.86rem; }
.reserve-confirm .fineprint a { color: var(--lav); }

/* ---------- Workshop detail: gallery + booking box + description ---------- */

/* photo gallery (left column of the detail hero) */
.gallery { min-width: 0; }
.gallery-main img { width: 100%; }
.thumbs { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 14px 0 0; }
.thumb {
  width: 76px; height: 76px; padding: 0; overflow: hidden; cursor: pointer;
  border: 1px solid var(--rule); border-radius: 4px; background: var(--bg);
  transition: border-color 130ms ease, transform 80ms ease, box-shadow 130ms ease;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { border-color: var(--lav); transform: translateY(-1px); }
.thumb.is-active { border-color: var(--lav-dk); box-shadow: 0 0 0 2px var(--lav-soft); }
.thumb:focus-visible { outline: 2px solid var(--lav-dk); outline-offset: 2px; }

/* booking box (right column of the detail hero) — light panel */
.booking-box {
  background: var(--bg); border: 1px solid var(--rule); border-top: 4px solid var(--lav);
  border-radius: 4px; padding: 28px 30px; box-shadow: 0 14px 40px rgba(87,61,126,0.10); min-width: 0;
}
.booking-box h2 { font-size: 2.1rem; font-style: italic; margin: 6px 0 10px; }
.booking-box .lead-in { margin: 0 0 18px; font-size: 1rem; color: var(--body); }
.booking-price {
  font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2rem; font-weight: 600; color: var(--ink);
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px;
}
.booking-price-note { font-family: 'Lora', Georgia, serif; font-size: 0.86rem; color: var(--muted); font-weight: 400; }
.booking-label {
  display: block; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem;
  font-weight: 600; color: var(--lav-dk); margin-bottom: 8px;
}
.booking-reserve { width: 100%; text-align: center; margin: 4px 0 18px; }
.booking-facts { list-style: none; padding: 0; margin: 0 0 12px; font-size: 0.95rem; }
.booking-facts li { margin-bottom: 4px; }
.booking-facts .label {
  display: inline-block; min-width: 84px; text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.72rem; font-weight: 600; color: var(--lav-dk);
}

/* light-themed select (on light bg — distinct from the dark-band .signup select) */
.light-select {
  font-family: 'Lora', Georgia, serif; font-size: 1rem; width: 100%;
  padding: 12px 40px 12px 14px; margin-bottom: 16px;
  border: 1px solid var(--rule); background-color: var(--bg-soft); color: var(--ink); border-radius: 2px;
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke='%236f4f9c' stroke-width='2' d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.light-select:focus { outline: none; border-color: var(--lav-dk); box-shadow: 0 0 0 2px var(--lav-soft); }

/* scarcity badge */
.spots-badge {
  display: inline-block; background: var(--lav-soft); color: var(--lav-dk); border: 1px solid var(--lav);
  border-radius: 999px; padding: 5px 14px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.booking-note {
  font-family: 'Lora', Georgia, serif; font-size: 0.9rem; color: var(--body);
  line-height: 1.5; margin: 0 0 16px;
}
/* Waitlist mode (set when SPOTS_LEFT <= 0 → body.class-full): muted "full" badge,
   swap the confirmation message, and hide reserve-only actions. */
.spots-badge.is-full { background: var(--bg-soft); color: var(--ink); border-color: var(--rule); }
.waitlist-only { display: none; }
body.class-full .reserve-only { display: none; }
body.class-full .waitlist-only { display: block; }
/* Option A: booking is via Square checkout when seats are open, so the on-site form is
   hidden by default and only appears as the waitlist sign-up when the class is full. */
#reserve { display: none; }
body.class-full #reserve { display: block; }
/* Per-date sold-out (a single date full while others stay open): the date picker adds
   body.date-soldout when a sold-out <option> is chosen — same waitlist treatment as class-full. */
body.date-soldout #reserve { display: block; }
body.date-soldout .reserve-only { display: none; }
body.date-soldout .waitlist-only { display: block; }

/* FAQ accordion (no JS — native <details>) */
.faq-section { background: var(--bg); }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 18px 40px 18px 4px;
  font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.35rem;
  font-style: italic; font-weight: 600; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-family: 'Lora', Georgia, serif; font-style: normal; font-size: 1.5rem;
  line-height: 1; color: var(--lav-dk);
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item summary:focus-visible { outline: 2px solid var(--lav-dk); outline-offset: 3px; border-radius: 3px; }
.faq-item p { margin: 0 4px 18px; color: var(--body); line-height: 1.6; }

/* structured description block (full width, below the hero) */
.workshop-detail { background: var(--bg); }
.detail-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.detail-cols > div { min-width: 0; }
.detail-cols .learn-title { margin-top: 24px; }
.detail-cols > div > .learn-title:first-child { margin-top: 0; }
.perk-list.one-col { grid-template-columns: 1fr; }

/* ---------- About page ---------- */

.about-page { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.about-page > div, .about-page > .portrait { min-width: 0; }
.portrait { position: relative; margin: 0; max-width: 420px; }
.portrait img {
  width: 100%; display: block; border-radius: 6px; border: 1px solid var(--rule);
  box-shadow: 0 18px 50px rgba(87,61,126,0.18);
}
.portrait::before {
  content: ''; position: absolute; inset: -16px -16px 18px 18px; z-index: -1;
  background: var(--lav-soft); border-radius: 8px;
}
.about-page h1 { font-size: 3rem; font-style: italic; line-height: 1.05; margin: 8px 0 18px; }
.about-page p { margin: 0 0 16px; }
.about-page .cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- Choose Your Glass page ---------- */

.booking-choose { width: 100%; text-align: center; margin: -8px 0 18px; }

.glass-intro { background: var(--bg); padding-bottom: 0; }
.glass-picker { padding-top: 0; }
.glass-intro .section-sub { max-width: 640px; }
.glass-intro .back-link { text-align: left; }

.glass-form { max-width: 880px; margin: 0 auto; }
/* form sits on light bg — re-light the inputs that .signup styles dark */
.glass-form input[type="text"], .glass-form input[type="email"] {
  background: var(--bg-soft); border: 1px solid var(--rule); color: var(--ink);
}
.glass-form input::placeholder { color: var(--muted); }
.glass-form input:focus { outline: none; border-color: var(--lav-dk); box-shadow: 0 0 0 2px var(--lav-soft); }
.glass-form .booking-label { display: block; margin: 6px 0 8px; }
.glass-guest { max-width: 520px; margin: 0 auto 30px; }

.glass-pattern {
  margin: 0 auto 30px; max-width: 360px; text-align: center;
}
.glass-pattern img {
  display: block; width: 100%; height: auto; border: 1px solid var(--rule);
  border-radius: 4px; background: #fff; padding: 14px; box-sizing: border-box;
}
.glass-pattern figcaption {
  margin-top: 10px; color: var(--muted); font-size: 0.95rem; font-style: italic;
}

.glass-part {
  border: 1px solid var(--rule); border-top: 4px solid var(--lav); border-radius: 4px;
  background: var(--bg-soft); padding: 22px 22px 8px; margin: 0 0 26px; min-width: 0;
}
.glass-part legend { padding: 0 6px; }
/* The number is the star — it maps to the labeled pattern (Piece 1 = "1" on the diagram). */
.glass-part .part-n {
  font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 600;
  font-size: 1.9rem; line-height: 1.1; color: var(--lav-dk);
  margin-right: 12px; vertical-align: baseline;
}
/* The position name steps back to a small secondary descriptor. */
.glass-part .part-name {
  font-family: 'Lora', Georgia, serif; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 0.82rem; color: var(--muted); vertical-align: baseline;
}
.glass-part .part-hint { color: var(--muted); margin: 4px 0 16px; font-size: 0.95rem; }

/* Fixed "clear glass, included" pieces (private class): read-only info card, no picks. */
.glass-part-fixed {
  border: 1px dashed var(--rule); border-radius: 4px;
  background: var(--bg); padding: 18px 22px; margin: 0 0 26px;
}
.glass-part-fixed .part-n {
  font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 600;
  font-size: 1.9rem; line-height: 1.1; color: var(--muted);
  margin-right: 12px; vertical-align: baseline;
}
.glass-part-fixed .part-name {
  font-family: 'Lora', Georgia, serif; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 0.82rem; color: var(--muted); vertical-align: baseline;
}
.glass-part-fixed .fixed-note { color: var(--muted); margin: 8px 0 0; font-size: 0.95rem; }

.swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-bottom: 18px; }

/* swatch = visually-hidden radio + styled card (same trick as .timing) */
.swatch { position: relative; display: block; cursor: pointer; min-width: 0; }
.swatch input { position: absolute; opacity: 0; }
.sw-inner {
  display: block; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden;
  background: var(--bg); transition: border-color 130ms ease, box-shadow 130ms ease, transform 130ms ease;
}
.sw-tile { display: block; width: 100%; height: 96px; background: var(--sw, var(--lav-soft)); }
img.sw-tile { object-fit: cover; }
.sw-cap { display: block; padding: 9px 11px 11px; }
.sw-name { display: block; font-weight: 600; color: var(--ink); font-size: 0.98rem; line-height: 1.2; }
/* sheets are shown by name only (Sarah's choice) — flip to `block` to bring numbers back */
.sw-no { display: none; margin-top: 2px; font-size: 0.78rem; letter-spacing: 0.04em; color: var(--muted); }
.sw-flag { display: inline-block; margin-top: 4px; font-size: 0.72rem; }
.sw-ooak { display: inline-block; margin-top: 5px; padding: 2px 8px; border-radius: 999px;
  background: var(--lav-soft); color: var(--lav-dk); font-size: 0.66rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; }
.sw-check {
  display: none; padding: 6px 11px; font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; color: #1c1b22; background: var(--lav);
}
.swatch:hover .sw-inner { border-color: var(--lav); transform: translateY(-1px); }
.swatch input:focus-visible + .sw-inner { outline: 2px solid var(--lav-dk); outline-offset: 2px; }
.swatch input:checked + .sw-inner { border-color: var(--lav-dk); box-shadow: 0 0 0 2px var(--lav-soft); }
.swatch input:checked + .sw-inner .sw-check { display: block; }
.swatch input:checked + .sw-inner .sw-flag { display: none; }

.glass-submit { width: auto; min-width: 220px; }

/* choose-or-surprise */
.glass-mode { text-align: center; margin: 2px 0 28px; }
.mode-or { display: flex; align-items: center; gap: 16px; margin: 0 auto 16px; max-width: 460px; color: var(--muted); }
.mode-or::before, .mode-or::after { content: ''; flex: 1; height: 1px; background: var(--rule); }
.mode-or span { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; font-weight: 600; }
.mode-hint { color: var(--muted); font-size: 0.92rem; margin: 12px auto 0; max-width: 420px; }
/* keep the Surprise button a secondary outline (override the full-width .signup .btn) */
.glass-mode .btn-ghost { width: auto; background: transparent; color: var(--lav-dk); border-color: var(--lav-dk); }
.glass-mode .btn-ghost:hover { background: var(--lav-dk); color: #fff; border-color: var(--lav-dk); }

.surprise-note { display: none; max-width: 520px; margin: 0 auto; text-align: center;
  background: var(--lav-soft); border: 1px solid var(--lav); border-radius: 4px; padding: 22px 26px; }
.surprise-note p { margin: 0 0 12px; color: var(--ink); }
.glass-form.surprise-on .surprise-note { display: block; }
.glass-form.surprise-on .glass-mode-prompt { display: none; }
.glass-form.surprise-on .glass-part { display: none; }
.glass-form.surprise-on .glass-part-fixed { display: none; }
.glass-form.surprise-on .glass-pattern { display: none; }

.linklike { background: none; border: none; padding: 0; cursor: pointer;
  font-family: 'Lora', Georgia, serif; font-size: 0.95rem; font-weight: 600; color: var(--lav-dk);
  border-bottom: 1px solid transparent; }
.linklike:hover { border-bottom-color: var(--lav-dk); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero .container, .workshop .grid, .about { grid-template-columns: 1fr; gap: 32px; }
  .hero-figure { max-width: 420px; margin: 0 auto; }
  .workshop .grid .photo { max-width: 460px; margin: 0 auto; }
  .workshop .grid .gallery { max-width: 460px; margin: 0 auto; width: 100%; }
  .detail-cols { grid-template-columns: 1fr; gap: 28px; }
  .about { text-align: center; }
  .about .mark img { width: 180px; height: 180px; }
  .about-page { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .portrait { max-width: 360px; margin: 0 auto; }
  .about-page .cta-row { justify-content: center; }
  .swatch-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .glass-form { max-width: 560px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  /* header scrolls away on phones instead of eating the screen */
  .site-header { position: static; }
  .site-header .container { flex-direction: column; align-items: center; text-align: center; padding-top: 14px; padding-bottom: 12px; }
  .brand .wordmark { font-size: 1.5rem; }
  .site-nav { flex-wrap: wrap; justify-content: center; gap: 12px 18px; }
  .hero { padding: 44px 0; text-align: center; }
  .hero-tagline { max-width: none; margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-title { font-size: 2.3rem; }
  .hero-figure::before { inset: -10px -8px 12px 8px; }
  .section-rule h2 { font-size: 1.7rem; }
  .workshop h2 { font-size: 2rem; }
  .about-page h1 { font-size: 2.2rem; }
  .workshop-facts .label, .booking-facts .label { min-width: 70px; }
  .perk-list { grid-template-columns: 1fr; }
  .workshop .cta-row { flex-direction: column; align-items: flex-start; }
  .booking-box { padding: 24px 20px; }
  .booking-box h2 { font-size: 1.85rem; }
  .booking-price { font-size: 1.7rem; }
  .thumbs { justify-content: center; }
  .thumb { width: 64px; height: 64px; }
  .signup .field-row { flex-direction: column; gap: 0; }
  .signup input { min-width: 0; width: 100%; }
  .signup .btn { width: 100%; }
  .timing { justify-content: center; }
  .swatch-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .sw-tile { height: 84px; }
  .glass-part { padding: 18px 16px 4px; }
  .glass-submit { width: 100%; }
  section { padding: 48px 0; }
}
