@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,600;1,600&family=Montserrat:wght@400;500;600;700&display=swap');

/* Palette sampled from the 2026 flyer: plum on warm cream. */
:root {
  --cream:      #fdeee4;
  --cream-deep: #f8ddd0;
  --plum:       #9c4a97;
  --plum-dark:  #6f2f6d;
  --orchid:     #c078b4;
  --magenta:    #d63f9e;
  --pink-soft:  #f2a8d8;
  --ink:        #4a2a46;
  --ink-soft:   #7a5c76;
  --white:      #fffaf7;
  --danger:     #b3261e;
  --radius:     10px;
}

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

/* The [hidden] attribute is how script.js shows/hides the shirt total, the
   church field and the error lines. An explicit `display` in author CSS beats
   the UA stylesheet's `[hidden] { display: none }`, so .shirt-total's
   `display: flex` would otherwise keep it visible. Make hidden always win. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--plum) 0%, var(--magenta) 100%);
  color: var(--white);
  text-align: center;
  padding: 3rem 1.5rem 2.5rem;
}

.church-logo {
  width: 66px;
  margin: 0 auto 1.25rem;
  /* Logo ships white-on-transparent, which is exactly right on this gradient. */
}

.eyebrow {
  margin: 0 0 .75rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .9;
}

.event-title {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  line-height: 1.05;
}

.tagline {
  margin: .5rem 0 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  opacity: .95;
}

.free-badge {
  display: inline-block;
  margin: 1.5rem 0 0;
  padding: .4rem 1.4rem;
  border: 1.5px solid rgba(255,255,255,.7);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* ── Layout ────────────────────────────────────────────────────── */
.layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.5rem 2rem 3rem;
}

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; padding: 1.75rem 1.15rem 2.5rem; gap: 1.5rem; }
}

.panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 2px 14px rgba(111, 47, 109, .09);
}

@media (max-width: 900px) { .panel { padding: 1.5rem 1.25rem; } }

.panel h2 {
  margin: 0 0 1.25rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 2rem;
  color: var(--plum-dark);
}

/* ── Event details ─────────────────────────────────────────────── */
.day { margin-bottom: 1.5rem; }

.day h3, .speakers h3 {
  margin: 0 0 .3rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--magenta);
}

.times { margin: 0 0 .5rem; font-size: .95rem; }

.day ul { margin: .5rem 0 0; padding-left: 1.1rem; font-size: .93rem; color: var(--ink-soft); }
.day li { margin-bottom: .3rem; }

.speakers { margin: 1.75rem 0 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--cream-deep); }
.speakers p { margin: 0 0 .35rem; font-size: .95rem; }
.worship { margin-top: 1.1rem !important; color: var(--plum); }

/* Circular portraits with a plum ring, as the flyer frames them. */
.speaker-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1rem 0 0;
}

.speaker { margin: 0; text-align: center; }

.speaker img {
  width: 118px;
  height: 118px;
  margin: 0 auto .6rem;
  border-radius: 50%;
  border: 4px solid var(--plum);
  object-fit: cover;
  box-shadow: 0 3px 12px rgba(140, 60, 135, .2);
}

.speaker figcaption { display: flex; flex-direction: column; gap: .1rem; }

.sp-name {
  font-weight: 700;
  font-size: .95rem;
  color: var(--plum-dark);
  line-height: 1.3;
}

.sp-meta { font-size: .8rem; color: var(--ink-soft); }
.sp-when { font-size: .8rem; font-weight: 600; color: var(--plum); }

.extras {
  margin: 0 0 1.25rem;
  padding: .7rem 0;
  border-top: 1px solid var(--cream-deep);
  border-bottom: 1px solid var(--cream-deep);
  text-align: center;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--plum);
}

.venue { margin: 0 0 1.5rem; font-style: normal; font-size: .95rem; line-height: 1.55; }

.flyer { border-radius: var(--radius); border: 1px solid var(--cream-deep); }

/* ── Form ──────────────────────────────────────────────────────── */
.lead { margin: -0.5rem 0 1.5rem; color: var(--ink-soft); font-size: .95rem; }

label {
  display: block;
  margin: 1rem 0 .3rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
}

.opt { font-weight: 400; color: var(--ink-soft); text-transform: none; letter-spacing: 0; }

input[type="text"], input[type="tel"], input[type="email"],
input[type="number"], select {
  width: 100%;
  padding: .65rem .8rem;
  border: 1.5px solid var(--cream-deep);
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(214, 63, 158, .16);
}

.row { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.field label { margin-top: 1rem; }

.check {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: .9rem 0 0;
  font-size: .95rem;
  font-weight: 400;
  letter-spacing: 0;
  cursor: pointer;
}

.check input { width: 1.05rem; height: 1.05rem; accent-color: var(--magenta); flex: none; }

fieldset {
  margin: 1.75rem 0 0;
  padding: 1.25rem;
  border: 1.5px solid var(--cream-deep);
  border-radius: var(--radius);
}

legend {
  padding: 0 .5rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--plum);
}

.error { margin: .6rem 0 0; color: var(--danger); font-size: .87rem; font-weight: 600; }

/* ── Shirts ────────────────────────────────────────────────────── */
.shirt-img {
  width: 100%;
  max-width: 340px;
  margin: 0 auto 1.15rem;
  border-radius: var(--radius);
}

.pricing { margin: 0 0 .3rem; text-align: center; font-size: 1rem; }
.pricing strong { color: var(--magenta); }

.hint { margin: 0 0 1.15rem; text-align: center; font-size: .87rem; color: var(--ink-soft); }

.size-rows { display: flex; flex-direction: column; gap: .5rem; }

.size-row {
  display: grid;
  grid-template-columns: 1fr auto 5rem;
  align-items: center;
  gap: .75rem;
  padding: .5rem .7rem;
  background: var(--cream);
  border-radius: 7px;
}

.size-name { margin: 0; font-size: .95rem; font-weight: 600; letter-spacing: 0; cursor: pointer; }
.size-price { font-size: .9rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.size-qty { text-align: center; padding: .4rem .3rem; }

.shirt-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: .9rem;
  border-top: 1.5px solid var(--cream-deep);
  font-size: 1rem;
}

.shirt-total strong { font-size: 1.35rem; color: var(--magenta); font-variant-numeric: tabular-nums; }

/* ── Submit ────────────────────────────────────────────────────── */
#submitBtn {
  width: 100%;
  margin-top: 1.75rem;
  padding: .95rem 1.5rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--plum) 0%, var(--magenta) 100%);
  color: var(--white);
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: .03em;
  cursor: pointer;
  transition: filter .15s ease, transform .15s ease;
}

#submitBtn:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
#submitBtn:disabled { opacity: .6; cursor: not-allowed; }

.fineprint { margin: .7rem 0 0; text-align: center; font-size: .82rem; color: var(--ink-soft); }

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer {
  padding: 2rem 1.5rem 2.5rem;
  text-align: center;
  font-size: .88rem;
  color: var(--ink-soft);
}

.site-footer p { margin: .25rem 0; }
.site-footer a { color: var(--plum); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
