/* Hallmark · genre: playful · macrostructure: Narrative Workflow (2-step form) + Catalogue (slot cards) · theme: Hum (softened) · design-system: shared with home.css · nav: N1 wordmark + 1 link · footer: Ft2 inline single line */

@import url("bright-tokens.css");

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

html,
body {
  overflow-x: clip;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.vf-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-paper);
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

/* ---------- top bar ---------- */

.vf-bar {
  max-width: 52rem;
  margin-inline: auto;
  padding: max(var(--space-sm), env(safe-area-inset-top)) var(--gutter) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.vf-bar__mark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  color: var(--color-ink);
  font-size: var(--text-lg);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.vf-bar__dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--color-pear-deep);
}

.vf-bar__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0 var(--space-sm);
  border: 1.5px solid var(--color-rule);
  border-radius: var(--radius-pill);
  color: var(--color-ink-2);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}

.vf-bar__link:hover {
  background: var(--color-paper-2);
  border-color: var(--color-pear-deep);
}

.vf-bar__link:focus-visible,
.vf-bar__mark:focus-visible,
.vf-head__link:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-pill);
}

/* ---------- head ---------- */

.vf {
  max-width: 52rem;
  margin-inline: auto;
  padding: var(--space-lg) var(--gutter) var(--space-lg);
}

.vf-head {
  position: relative;
  isolation: isolate;
  margin-bottom: var(--space-md);
}

.vf-head::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -1.1rem;
  left: -1rem;
  width: 4.25rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--color-sky);
}

.vf-head__title {
  margin: 0;
  font-size: clamp(2rem, 8vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.vf-head__meta {
  margin: var(--space-2xs) 0 0;
  color: var(--color-ink-2);
  font-weight: 700;
}

.vf-head__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  margin-top: var(--space-xs);
  padding: 0 var(--space-sm);
  border-radius: var(--radius-pill);
  background: color-mix(in oklab, var(--color-mint) 35%, var(--color-surface));
  color: var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 800;
  text-decoration: none;
  transition: background-color var(--dur-short) var(--ease-out);
}

.vf-head__link:hover {
  background: var(--color-mint);
}

/* ---------- flash ---------- */

.vf-flash {
  margin: 0 0 var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-row);
  font-weight: 800;
  line-height: 1.55;
}

.vf-flash--ok {
  color: var(--color-ok-ink);
  background: color-mix(in oklab, var(--color-mint) 38%, var(--color-surface));
}

.vf-flash--error {
  color: var(--color-coral-ink);
  background: color-mix(in oklab, var(--color-coral) 16%, var(--color-surface));
}

.vf-empty {
  padding: var(--space-lg) var(--space-md);
  border-radius: var(--radius-tile);
  background: var(--color-surface);
  box-shadow: var(--shadow-rest);
  color: var(--color-ink-2);
  font-weight: 700;
  text-align: center;
}

/* ---------- cards & steps ---------- */

.vf-form {
  display: grid;
  gap: var(--space-sm);
}

.vf-card {
  min-width: 0;
  padding: var(--space-md) var(--space-sm);
  border-radius: var(--radius-tile);
  background: var(--color-surface);
  box-shadow: var(--shadow-rest);
}

.vf-step {
  margin: 0 0 var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.vf-step__n {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 50%;
  background: var(--tone);
  font-family: var(--font-num);
  font-size: var(--text-md);
  font-weight: 800;
}

.vf-step--pear { --tone: var(--color-pear); }
.vf-step--sky { --tone: var(--color-sky); }

.vf-help {
  margin: 0 0 var(--space-sm);
  color: var(--color-ink-2);
  font-size: var(--text-sm);
}

.vf-step + .vf-help {
  margin-top: calc(var(--space-2xs) * -1);
}

.vf-field .vf-help {
  margin: var(--space-2xs) 0 0;
}

/* ---------- fields ---------- */

.vf-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-sm);
}

.vf-field {
  min-width: 0;
}

.vf-label {
  display: block;
  margin: 0 0 var(--space-2xs);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.vf-optional {
  color: var(--color-ink-2);
  font-size: var(--text-sm);
  font-weight: 700;
}

.vf-input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 3.25rem;
  padding: 0 var(--space-sm);
  border: 1.5px solid var(--color-rule-strong);
  border-radius: var(--radius-input);
  background: var(--color-surface);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 700;
  transition: border-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out);
}

.vf-input::placeholder {
  color: var(--color-ink-2);
  font-weight: 400;
}

.vf-input--select {
  appearance: none;
  padding-right: 2.75rem;
  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='%23262a33' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M1.5 1.5 7 7l5.5-5.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}

.vf-input:hover {
  border-color: var(--color-pear-deep);
}

.vf-input:focus-visible {
  outline: none;
  border-color: var(--color-focus);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-focus) 28%, transparent);
}

.vf-field.has-error .vf-input {
  border-color: var(--color-coral);
}

.vf-error {
  margin: var(--space-2xs) 0 0;
  color: var(--color-coral-ink);
  font-size: var(--text-sm);
  font-weight: 700;
}

.vf-error::before {
  content: "! ";
}

/* ---------- teams & slot cards ---------- */

.vf-team {
  min-width: 0;
  margin: 0 0 var(--space-md);
  padding: 0;
  border: 0;
}

.vf-team:last-child {
  margin-bottom: 0;
}

.vf-team--pear { --tone: var(--color-pear); --tone-deep: var(--color-pear-deep); }
.vf-team--sky { --tone: var(--color-sky); --tone-deep: var(--color-sky-deep); }
.vf-team--mint { --tone: var(--color-mint); --tone-deep: var(--color-mint-deep); }
.vf-team--lav { --tone: var(--color-lav); --tone-deep: var(--color-lav-deep); }

.vf-team__title {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  margin: 0 0 var(--space-xs);
  padding: 0;
  font-size: var(--text-lg);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.vf-team__title::before {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--tone-deep);
}

.vf-slots {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2xs);
}

.vf-slot {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "box body count"
    "track track track"
    "names names names";
  column-gap: var(--space-xs);
  align-items: start;
  min-width: 0;
  padding: var(--space-sm);
  border-radius: var(--radius-row);
  background: var(--color-paper);
  box-shadow: inset 0 0 0 1.5px var(--color-rule);
  cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-press);
}

.vf-slot:hover {
  box-shadow: inset 0 0 0 1.5px var(--tone-deep);
}

.vf-slot:active {
  transform: scale(0.99);
}

.vf-slot__check {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.vf-slot__box {
  grid-area: box;
  position: relative;
  width: 1.625rem;
  height: 1.625rem;
  margin-top: 0.1rem;
  border-radius: 8px;
  background: var(--color-surface);
  box-shadow: inset 0 0 0 2px var(--color-rule-strong);
  transition: background-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out);
}

.vf-slot__box::after {
  content: "";
  position: absolute;
  top: 0.3rem;
  left: 0.55rem;
  width: 0.45rem;
  height: 0.8rem;
  border-right: 3px solid var(--color-surface);
  border-bottom: 3px solid var(--color-surface);
  transform: rotate(45deg) scale(0.4);
  opacity: 0;
  transition: transform var(--dur-short) var(--ease-out), opacity var(--dur-micro) linear;
}

.vf-slot:has(.vf-slot__check:checked) {
  background: color-mix(in oklab, var(--tone) 30%, var(--color-surface));
  box-shadow: inset 0 0 0 2px var(--tone-deep);
}

.vf-slot__check:checked + .vf-slot__box {
  background: var(--tone-deep);
  box-shadow: none;
}

.vf-slot__check:checked + .vf-slot__box::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.vf-slot__check:focus-visible + .vf-slot__box {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

.vf-slot.is-full {
  cursor: not-allowed;
  opacity: 0.6;
}

.vf-slot.is-full:hover {
  box-shadow: inset 0 0 0 1.5px var(--color-rule);
}

.vf-slot.is-full .vf-slot__box {
  background: var(--color-paper-2);
}

.vf-slot__body {
  grid-area: body;
  display: grid;
  gap: 2px;
  min-width: 0;
}

.vf-slot__title {
  font-size: var(--text-lg);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.vf-slot__when {
  color: var(--color-ink-2);
  font-size: var(--text-sm);
  font-weight: 700;
}

.vf-slot__detail {
  color: var(--color-ink-2);
  font-size: var(--text-sm);
}

.vf-slot__count {
  grid-area: count;
  display: grid;
  justify-items: end;
  gap: var(--space-3xs);
}

.vf-slot__num {
  font-family: var(--font-num);
  font-size: var(--text-lg);
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.vf-slot__num small {
  margin-left: 0.15em;
  font-family: var(--font-body);
  font-size: 0.7em;
}

.vf-slot__unlimited {
  margin-left: 0;
  color: var(--color-ink-2);
  font-size: 0.62em;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.vf-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0 var(--space-2xs);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 800;
  white-space: nowrap;
}

.vf-chip--full {
  color: var(--color-ok-ink);
  background: color-mix(in oklab, var(--color-mint) 40%, var(--color-surface));
}

.vf-chip--short {
  color: var(--color-coral-ink);
  background: color-mix(in oklab, var(--color-coral) 16%, var(--color-surface));
}

.vf-slot__track {
  grid-area: track;
  position: relative;
  display: block;
  height: 0.5rem;
  margin-top: var(--space-xs);
  border-radius: var(--radius-pill);
  background: var(--color-paper-2);
  overflow: hidden;
}

.vf-slot:has(.vf-slot__check:checked) .vf-slot__track {
  background: var(--color-surface);
}

.vf-slot__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--p);
  border-radius: inherit;
  background: var(--tone-deep);
}

.vf-slot__names {
  grid-area: names;
  margin-top: var(--space-2xs);
  color: var(--color-ink-2);
  font-size: var(--text-sm);
  line-height: 1.5;
}

/* ---------- sticky submit ---------- */

.vf-submit {
  position: sticky;
  bottom: 0;
  z-index: var(--z-sticky, 200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-inline: calc(var(--gutter) * -0.5);
  padding: var(--space-xs) var(--space-sm) max(var(--space-xs), env(safe-area-inset-bottom));
  border-radius: var(--radius-tile) var(--radius-tile) 0 0;
  background: color-mix(in oklab, var(--color-paper) 92%, transparent);
  box-shadow: 0 -10px 24px -18px oklch(23% 0.014 250 / 0.45);
}

.vf-submit__picked {
  margin: 0;
  font-weight: 700;
  white-space: nowrap;
}

.vf-submit__picked b {
  font-family: var(--font-num);
  font-size: var(--text-xl);
  font-weight: 800;
}

.vf-btn {
  --btn-face: var(--color-pear);
  --btn-edge: var(--shadow-btn-edge);
  --btn-cast: var(--shadow-btn-cast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 var(--space-lg);
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--btn-face);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 0 0 var(--btn-edge), 0 6px 12px -3px var(--btn-cast);
  transition: transform 140ms var(--ease-press), box-shadow 140ms var(--ease-press);
}

.vf-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 0 var(--btn-edge), 0 12px 22px -4px var(--btn-cast);
}

.vf-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 0 var(--btn-edge), 0 2px 6px -2px var(--btn-cast);
  transition-duration: 70ms;
}

.vf-btn:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 4px;
}

/* ---------- footer ---------- */

.vf-foot p {
  max-width: 52rem;
  margin: 0 auto;
  padding: 0 var(--gutter) max(var(--space-lg), env(safe-area-inset-bottom));
  color: var(--color-ink-2);
  font-size: var(--text-xs);
}

/* ---------- wider screens ---------- */

@media (min-width: 640px) {
  .vf-card {
    padding: var(--space-lg);
  }

  .vf-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  .vf-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .vf-slot,
  .vf-slot__box,
  .vf-slot__box::after,
  .vf-btn {
    transition: none;
  }

  .vf-slot:active,
  .vf-btn:hover,
  .vf-btn:active {
    transform: none;
  }
}

/* ---------- Ivory & Gold refinements (overrides the playful defaults above) ---------- */

.vf-bar__mark {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.vf-bar__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 0;
  background: var(--color-gold);
  transform: rotate(45deg);
}

.vf-bar__link {
  border-width: 1px;
  border-color: var(--color-rule-strong);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.vf-bar__link:hover {
  background: var(--color-surface);
  border-color: var(--color-gold);
}

.vf-head {
  margin-bottom: var(--space-lg);
}

.vf-head::before {
  display: none;
}

.vf-head__title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.vf-head__title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 1px;
  margin-top: var(--space-sm);
  background: var(--color-gold);
}

.vf-head__meta {
  font-weight: 500;
  letter-spacing: 0.01em;
}

.vf-step {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.vf-step__n {
  width: 2rem;
  height: 2rem;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--color-gold);
  color: var(--color-gold-deep);
  font-family: var(--font-num);
  font-size: 1.2rem;
  font-weight: 600;
}

.vf-card {
  border-radius: var(--radius-tile);
}

.vf-label {
  font-weight: 600;
  letter-spacing: 0;
}

.vf-input {
  border-width: 1px;
  font-weight: 500;
}

.vf-input:hover {
  border-color: var(--color-gold);
}

.vf-flash {
  font-weight: 600;
  box-shadow: inset 0 0 0 1px currentColor;
}

.vf-empty,
.vf-nothing {
  font-weight: 500;
}

.vf-foot p {
  letter-spacing: 0.04em;
}

.vf-btn,
.vf-cta {
  background: var(--btn-bg);
  color: var(--btn-ink);
  border-radius: var(--radius-btn);
  font-weight: 600;
  letter-spacing: 0.06em;
  box-shadow: var(--shadow-btn);
}

.vf-btn:hover,
.vf-cta:hover {
  background: var(--btn-bg-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-btn);
}

.vf-btn:active,
.vf-cta:active {
  transform: translateY(0);
  box-shadow: var(--shadow-btn);
}

.vf-head__link {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--color-gold);
  color: var(--color-forest);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.vf-head__link:hover {
  background: var(--color-gold-soft);
}

.vf-team__title,
.vf-slot__title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.vf-slot {
  box-shadow: inset 0 0 0 1px var(--color-rule);
}

.vf-slot__num {
  font-weight: 600;
}

.vf-chip {
  font-weight: 600;
}

.vf-submit__picked b {
  font-weight: 600;
}