/* ============================================================
   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; }
.glass-bar .c1 { background: var(--g-amber); }
.glass-bar .c2 { background: var(--g-sage); }
.glass-bar .c3 { background: var(--g-rose); }
.glass-bar .c4 { background: var(--g-plum); }
.glass-bar .c5 { background: var(--g-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; }

/* ---------- 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); }

/* ---------- 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; }
  .about { text-align: center; }
  .about .mark img { width: 180px; height: 180px; }
}
@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; }
  .perk-list { grid-template-columns: 1fr; }
  .workshop .cta-row { flex-direction: column; align-items: flex-start; }
  .signup .field-row { flex-direction: column; gap: 0; }
  .signup input { min-width: 0; width: 100%; }
  .signup .btn { width: 100%; }
  .timing { justify-content: center; }
  section { padding: 48px 0; }
}
