/* Hallmark · genre: playful · macrostructure: Stat-Led (summary) + Catalogue (slots) · 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.vs-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 ---------- */

.vs-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);
}

.vs-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;
}

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

.vs-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);
}

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

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

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

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

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

.vs-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-mint);
}

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

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

.vs-empty,
.vs-nothing {
  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;
}

/* ---------- summary ---------- */

.vs-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.vs-stat {
  display: grid;
  gap: var(--space-3xs);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-tile);
  background: color-mix(in oklab, var(--tone) 32%, var(--color-surface));
}

.vs-stat--pear { --tone: var(--color-pear); }
.vs-stat--mint { --tone: var(--color-mint); }
.vs-stat--sky { --tone: var(--color-sky); }
.vs-stat--coral { --tone: var(--color-coral); background: color-mix(in oklab, var(--color-coral) 16%, var(--color-surface)); }

.vs-stat__num {
  font-family: var(--font-num);
  font-size: clamp(2rem, 7vw, 2.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.vs-stat__num small {
  margin-left: 0.15em;
  font-family: var(--font-body);
  font-size: 0.45em;
  font-weight: 800;
  letter-spacing: 0;
}

.vs-stat--coral .vs-stat__num {
  color: var(--color-coral-ink);
}

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

/* ---------- tools ---------- */

.vs-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.vs-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  min-height: 2.75rem;
  padding: 0 var(--space-sm);
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  box-shadow: inset 0 0 0 1.5px var(--color-rule-strong);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 800;
  cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out);
}

.vs-toggle::before {
  content: "";
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 6px;
  background: var(--color-surface);
  box-shadow: inset 0 0 0 2px var(--color-rule-strong);
}

.vs-toggle:hover {
  box-shadow: inset 0 0 0 1.5px var(--color-coral);
}

.vs-toggle[aria-pressed="true"] {
  background: color-mix(in oklab, var(--color-coral) 14%, var(--color-surface));
  box-shadow: inset 0 0 0 2px var(--color-coral);
}

.vs-toggle[aria-pressed="true"]::before {
  background: var(--color-coral);
  box-shadow: none;
}

.vs-toggle:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

/* ---------- teams & slots ---------- */

.vs-team {
  margin-bottom: var(--space-md);
}

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

.vs-team__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-xs);
  margin: 0 0 var(--space-xs);
  padding-left: var(--space-2xs);
}

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

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

.vs-team__meta {
  color: var(--color-ink-2);
  font-size: var(--text-sm);
  font-weight: 700;
  white-space: nowrap;
}

.vs-slots {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xs);
}

.vs-slot {
  min-width: 0;
  padding: var(--space-sm);
  border-radius: var(--radius-row);
  background: var(--color-surface);
  box-shadow: var(--shadow-rest);
}

.vs-slot__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-xs);
}

.vs-slot__what {
  min-width: 0;
}

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

.vs-slot__when,
.vs-slot__detail {
  margin: 2px 0 0;
  color: var(--color-ink-2);
  font-size: var(--text-sm);
  font-weight: 700;
}

.vs-slot__detail {
  font-weight: 400;
}

.vs-slot__count {
  flex: none;
  display: grid;
  justify-items: end;
  gap: var(--space-3xs);
}

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

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

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

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

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

.vs-chip--open {
  color: var(--color-ink-2);
  background: var(--color-paper-2);
}

.vs-bar-track {
  position: relative;
  height: 0.625rem;
  margin-top: var(--space-xs);
  border-radius: var(--radius-pill);
  background: var(--color-paper-2);
  overflow: hidden;
}

.vs-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--p);
  border-radius: inherit;
  background: var(--tone-deep);
  transform-origin: left center;
  animation: vs-grow var(--dur-long) var(--ease-out) both;
}

.vs-slot--short .vs-bar-fill {
  background: var(--color-coral);
}

.vs-slot--full .vs-bar-fill {
  background: var(--color-mint-deep);
}

@keyframes vs-grow {
  from { transform: scaleX(0); }
}

.vs-names {
  margin: var(--space-xs) 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3xs);
}

.vs-names li {
  padding: 2px var(--space-xs);
  border-radius: var(--radius-pill);
  background: color-mix(in oklab, var(--tone) 26%, var(--color-surface));
  font-size: var(--text-sm);
  font-weight: 700;
}

.vs-none {
  margin: var(--space-xs) 0 0;
  color: var(--color-ink-2);
  font-size: var(--text-sm);
}

body.is-only-short .vs-slot:not(.vs-slot--short) {
  display: none;
}

/* ---------- CTA ---------- */

.vs-bottom {
  display: flex;
  justify-content: center;
  margin-top: var(--space-lg);
}

.vs-cta {
  --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.5rem;
  padding: 0 var(--space-lg);
  border-radius: var(--radius-pill);
  background: var(--btn-face);
  color: var(--color-ink);
  font-size: var(--text-lg);
  font-weight: 800;
  text-decoration: none;
  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);
}

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

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

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

.vs-cta--small {
  min-height: 2.75rem;
  padding: 0 var(--space-md);
  font-size: var(--text-sm);
  box-shadow: 0 3px 0 0 var(--btn-edge), 0 5px 10px -3px var(--btn-cast);
}

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

.vs-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: 720px) {
  .vs-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .vs-bar-fill {
    animation: none;
  }

  .vs-cta,
  .vs-toggle {
    transition: none;
  }

  .vs-cta:hover,
  .vs-cta:active {
    transform: none;
  }
}

@media print {
  .vs-bar,
  .vs-tools,
  .vs-bottom,
  .vs-foot {
    display: none !important;
  }

  .vs-slot,
  .vs-stat {
    box-shadow: none;
    border: 1px solid var(--color-rule);
  }
}

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

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

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

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

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

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

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

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

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

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

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

.vs-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;
}

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

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

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

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

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

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

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

.vs-btn,
.vs-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);
}

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

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

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

.vs-stat {
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-gold) 30%, transparent);
}

.vs-stat__num,
.vs-slot__num {
  font-weight: 600;
  letter-spacing: -0.02em;
}

.vs-stat__label,
.vs-chip,
.vs-toggle,
.vs-names li {
  font-weight: 600;
}

.vs-toggle {
  box-shadow: inset 0 0 0 1px var(--color-rule-strong);
}