/* The Gift — extends carbon.css.
 *
 * The one hue in this file, and it is scoped to a single meaning: a room that is
 * live and upcoming. #F6049F exactly as specified — kept as hex rather than
 * converted to oklch, because an eyeballed conversion drifts the hue and this
 * value is exact.
 *
 * It is deliberately hotter than the rest of the palette (roughly double the
 * chroma of --ember), which is the point: everything else on this desk is
 * monochrome, so the one thing that is happening right now is the one thing
 * with colour.
 *
 * How the sign is built matters: the tube stays WHITE-HOT and only the bloom it
 * casts carries the hue. That is how neon physically works — the discharge
 * colour shows in the halo, not in the core — and it means the VLTRN "V" is
 * never recoloured, which is the house rule.
 */

.sign-wrap {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
  margin-bottom: clamp(28px, 5vw, 44px);
}

.sign {
  position: relative;
  width: clamp(64px, 9vw, 92px);
  height: clamp(64px, 9vw, 92px);
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--carbon-edge);
  background: var(--carbon-raised);
}

.sign-v { width: 56%; height: 56%; display: block; position: relative; z-index: 2; }

/* Unlit: the mark is present but cold — the shop is shut, not missing. */
.sign[data-lit='false'] .sign-v path { fill: var(--white-ghost); }
.sign[data-lit='false'] { border-color: var(--carbon-edge); }

/* Lit: the glass strikes. The innermost shadow stays near-white so the mark
   itself still reads as the VLTRN mark; everything beyond it is the colour. */
.sign[data-lit='true'] { border-color: color-mix(in oklab, var(--live) 55%, transparent); }
.sign[data-lit='true'] .sign-v path {
  fill: var(--white);
  filter:
    drop-shadow(0 0 3px color-mix(in oklab, var(--white) 85%, transparent))
    drop-shadow(0 0 10px color-mix(in oklab, var(--live) 88%, transparent))
    drop-shadow(0 0 22px color-mix(in oklab, var(--live) 60%, transparent))
    drop-shadow(0 0 42px color-mix(in oklab, var(--live) 34%, transparent));
  animation: tube 5.5s var(--ease) infinite;
}

/* The bloom cast on the surrounding wall. */
.sign-tube {
  position: absolute;
  inset: -1px;
  z-index: 1;
  opacity: 0;
  background: radial-gradient(circle at 50% 50%,
    color-mix(in oklab, var(--live) 52%, transparent) 0%,
    color-mix(in oklab, var(--live) 20%, transparent) 44%,
    transparent 74%);
  transition: opacity 0.9s var(--ease);
}
.sign[data-lit='true'] .sign-tube { opacity: 1; }

/* Real neon is not perfectly steady. Kept subtle — this is a shop sign, not a
   fault indicator. */
@keyframes tube {
  0%, 100% { opacity: 1; }
  47%      { opacity: 1; }
  49%      { opacity: 0.82; }
  51%      { opacity: 1; }
  72%      { opacity: 0.93; }
  74%      { opacity: 1; }
}

.sign-state {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-faint);
  margin: 0;
  line-height: 1.5;
  max-width: 34ch;
}
.sign-state.on { color: var(--white); }

.gift-head {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.032em;
  text-transform: uppercase;
  margin: 0 0 var(--sp-lg);
  max-width: 16ch;
}

/* While a session is live, the name is backlit and breathing.
   Two layers: one tight and saturated so the hue stays legible against white
   display type, one wide and faint for the spill. A single broad halo was tried
   first and read as a grey wash — white type is brighter than its own shadow,
   so a wide-only glow fogs the letterforms instead of colouring them.
   ~2.8s: slower than this reads as powered, faster reads as a notification. */
body[data-lit='true'] .gift-head {
  /* The live signal itself is in carbon.css (.live-glow / @keyframes
     live-pulse) because the main page carries it too. Applied here by state
     rather than by class, since this element is server-agnostic markup. */
  text-shadow:
    0 0 18px color-mix(in oklab, var(--live) 58%, transparent),
    0 0 40px color-mix(in oklab, var(--live) 26%, transparent);
  animation: live-pulse 2.8s var(--ease) infinite;
}

/* The state line picks up the colour too, since it is the sentence that says
   the thing is open. */
.sign-state.on { color: color-mix(in oklab, var(--live) 82%, var(--white)); }

/* --- facts ---------------------------------------------------------------- */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  margin: clamp(28px, 4vw, 40px) 0 0;
  background: var(--carbon-edge);
  border: 1px solid var(--carbon-edge);
}
.facts > div {
  background: var(--carbon);
  padding: 16px 18px;
}
.facts dt {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-ghost);
  margin: 0 0 6px;
}
.facts dd {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}
.facts dd.free {
  font-family: var(--mono);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

/* --- covers --------------------------------------------------------------- */
.covers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  max-width: 72ch;
}
.covers li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid var(--carbon-edge);
  font-size: 15px;
  line-height: 1.55;
  color: var(--white-soft);
}
.covers li::before {
  content: counter(cover, decimal-leading-zero);
  counter-increment: cover;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--white-ghost);
  flex: none;
}
.covers { counter-reset: cover; }

/* --- registration --------------------------------------------------------- */
.reg { max-width: 760px; }

.terms {
  margin: var(--sp-xl) 0 var(--sp-lg);
  border: 1px solid var(--carbon-line);
  padding: clamp(18px, 3vw, 26px);
  background: var(--carbon-raised);
}
.terms-lead {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--white);
}
.terms details { margin-top: 16px; }
.terms summary {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-faint);
  cursor: pointer;
  padding: 6px 0;
}
.terms summary:hover { color: var(--white); }
.terms-body { margin-top: 12px; border-top: 1px solid var(--carbon-edge); }
.terms-body h3 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin: 20px 0 6px;
}
.terms-body p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--white-soft);
  max-width: 68ch;
}

/* The consent box is the load-bearing control on this page, so it is given the
   weight of one — not a 12px afterthought under the button. */
.accept {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--carbon-line);
  cursor: pointer;
  font-size: 14px;
  line-height: 1.6;
  color: var(--white-soft);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.accept:hover { border-color: var(--white-faint); }
.accept:has(input:checked) { border-color: var(--white); background: var(--carbon-raised); color: var(--white); }
.accept input {
  appearance: none;
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 1px;
  border: 1px solid var(--white-faint);
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.accept input:checked { background: var(--white); border-color: var(--white); }
.accept input:checked::after {
  content: '';
  width: 10px; height: 5px;
  border-left: 2px solid var(--carbon);
  border-bottom: 2px solid var(--carbon);
  transform: rotate(-45deg) translateY(-1px);
}
.accept input:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

.reg-foot {
  margin-top: var(--sp-lg);
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
  flex-wrap: wrap;
}
.reg-foot .fine { margin: 0; }

/* --- closed / done states ------------------------------------------------- */
.shut {
  border: 1px solid var(--carbon-line);
  padding: clamp(22px, 4vw, 34px);
  max-width: 64ch;
}
.shut h3 {
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  font-weight: 400;
}
.shut p { margin: 0 0 12px; color: var(--white-soft); font-size: 14.5px; line-height: 1.62; }
.shut p:last-child { margin-bottom: 0; }

[hidden] { display: none !important; }
