/* Ceol Music workshop sign-up. Tokens are a subset of ../ceol/DESIGN.md, copied 1:1.
   No rule below may introduce a literal hex. */
:root {
  --forest-deep: #123527;
  --forest-night: #0d2a1e;
  --forest-mid: #2f6a4f;
  --forest-sage: #4b7a63;
  --forest-muted: #4b6b5b;
  --forest-faint: #5b7569;

  --ivory-paper: #faf8f4;
  --cream-surface: #f6f2ea;
  --paper-white: #ffffff;
  --mint-tint: #e2eede;

  --rosewood-ink: #7d3e54;
  --rosewood-deep: #a8546f;
  --rosewood-bloom: #f0b3c6;
  --rosewood-tint: #f6e6ea;

  --sage-soft: #d3e2d7;
  --mist-text: #a9d3ba;

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: Outfit, system-ui, sans-serif;

  --rounded-focus: 4px;
  --rounded-sm: 14px;
  --rounded-lg: 26px;
  --rounded-pill: 999px;

  --space-section: clamp(48px, 7vw, 88px);
  --ease-rise: cubic-bezier(.22, .68, .28, 1);
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--ivory-paper);
  color: var(--forest-deep);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; } /* component display rules must not defeat the hidden attribute */
img { max-width: 100%; display: block; }
a { color: var(--forest-mid); }
button, input, select { font-family: inherit; }
::selection { background: var(--rosewood-tint); color: var(--forest-deep); }

:focus-visible {
  outline: 2px solid var(--rosewood-deep);
  outline-offset: 2px;
  border-radius: var(--rounded-focus);
}

.container { max-width: 1100px; margin: 0 auto; padding-inline: clamp(20px, 4vw, 56px); }
.section { padding-block: var(--space-section); }

.skip-link {
  position: absolute; left: 12px; top: 12px; z-index: 10;
  padding: 10px 16px; border-radius: var(--rounded-pill);
  background: var(--cream-surface); color: var(--forest-deep);
  transform: translateY(-140%); transition: transform .2s var(--ease-rise);
}
.skip-link:focus-visible { transform: none; }

/* Hero: dark surface earned by a real photograph and a scrim. */
.hero { position: relative; overflow: hidden; background: var(--forest-night); color: var(--cream-surface); }
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 30% 40%;
}
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9, 32, 22, .6) 0%, rgba(9, 32, 22, .5) 40%, rgba(9, 28, 20, .94) 100%);
}
.hero__inner { position: relative; padding-block: 28px clamp(48px, 8vw, 88px); }
.hero__mark { display: inline-block; margin-bottom: clamp(40px, 8vw, 88px); }
.hero__mark img { height: 53px; width: auto; }
.eyebrow {
  margin: 0 0 14px; font-size: 13px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--mist-text);
}
.hero h1 {
  margin: 0; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.75rem, 8vw, 5.5rem); line-height: 1;
  letter-spacing: -.015em; color: var(--cream-surface);
}
.hero h1 em { font-style: italic; color: var(--rosewood-bloom); }
.lede { margin: 22px 0 0; max-width: 34ch; font-size: clamp(17px, 2.2vw, 20px); line-height: 1.55; color: var(--sage-soft); }

/* Details + form */
.signup-grid { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 64px); align-items: flex-start; }
.details { flex: 1 1 280px; min-width: 0; }
.details h2, .form-panel h2 {
  margin: 0 0 22px; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 2.75rem); line-height: 1.1; letter-spacing: -.01em;
}
.facts { margin: 0 0 28px; display: grid; gap: 20px; }
.fact { display: grid; gap: 4px; margin: 0; }
.fact dt { font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--forest-sage); }
.fact dd { margin: 0; font-size: 20px; font-weight: 500; }
.fact dd.price { font-family: var(--font-display); font-weight: 400; font-size: 32px; }
.fact dd.price span { font-family: var(--font-body); font-size: 15px; color: var(--forest-muted); }
.payment { margin: 0 0 20px; padding: 18px 20px; border-radius: var(--rounded-sm); background: var(--mint-tint); }
.payment h3 { margin: 0 0 8px; font-size: 14px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--forest-muted); }
.payment p { margin: 0; line-height: 1.6; }
.note { margin: 0 0 12px; max-width: 42ch; font-size: 15px; line-height: 1.6; color: var(--forest-muted); }
.note a { display: inline-flex; align-items: center; min-height: 44px; }

.form-panel {
  flex: 1.2 1 340px; min-width: 0;
  background: rgba(255, 255, 255, .75);
  border: 1px solid rgba(18, 53, 39, .1);
  border-radius: var(--rounded-lg);
  padding: clamp(22px, 3vw, 32px);
}
.form-panel h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }

.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field > span { font-size: 14px; color: var(--forest-muted); font-weight: 500; }
.field input, .field select {
  width: 100%; padding: 13px 15px;
  border-radius: var(--rounded-sm);
  border: 1px solid rgba(18, 53, 39, .2);
  background: var(--paper-white);
  font-size: 16px; color: var(--forest-deep);
}
.field select { appearance: auto; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--rosewood-deep); }
.field__error, .choice-fieldset .field__error { font-size: 13px; color: var(--rosewood-ink); }

.choice-fieldset { border: none; padding: 0; margin: 0 0 16px; }
.choice-fieldset legend { font-size: 14px; color: var(--forest-muted); font-weight: 500; padding: 0 0 7px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip label {
  display: inline-flex; align-items: center; min-height: 48px; padding: 14px 24px;
  border-radius: var(--rounded-pill); cursor: pointer; font-size: 15px;
  border: 1px solid rgba(18, 53, 39, .2); color: var(--forest-muted);
  transition: all .15s ease;
}
.chip input:checked + label { border-color: transparent; background: var(--mint-tint); color: var(--forest-deep); font-weight: 500; }
.chip input:focus-visible + label { outline: 2px solid var(--rosewood-deep); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin: 4px 0 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--rounded-pill); font-size: 16px; font-weight: 500;
  border: none; cursor: pointer; text-align: center;
  transition: background .2s ease;
}
.btn--dark { padding: 15px 24px; background: var(--forest-deep); color: var(--ivory-paper); }
.btn--dark:hover { background: var(--forest-mid); }
.form-submit { width: 100%; }
.form-submit[aria-disabled="true"] { opacity: .7; cursor: progress; }
.form-note { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--forest-faint); }

.form-error {
  margin: 14px 0 0; padding: 14px 16px;
  border-radius: var(--rounded-sm);
  background: var(--rosewood-tint);
  border: 1px solid rgba(168, 84, 111, .28);
  font-size: 14px; line-height: 1.55; color: var(--rosewood-ink);
}
.form-error a { color: var(--rosewood-ink); text-decoration: underline; }

.form-thanks { display: grid; gap: 12px; padding: 18px 4px; text-align: center; }
.form-thanks h2 { margin: 0; }
.form-thanks h2:focus-visible { outline: 2px solid var(--rosewood-deep); outline-offset: 6px; }
.form-thanks p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--forest-muted); }
.form-thanks button {
  justify-self: center; margin-top: 8px; padding: 13px 24px;
  border-radius: var(--rounded-pill);
  border: 1px solid rgba(18, 53, 39, .2); background: transparent;
  cursor: pointer; font-size: 15px; color: var(--forest-deep);
}

.site-footer {
  border-top: 1px solid rgba(18, 53, 39, .1);
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
  padding-block: 44px 52px;
}
.site-footer img { height: 30px; width: auto; opacity: .85; }
.site-footer p { margin: 0; font-size: 14px; color: var(--forest-faint); }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }

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