/* ===========================================================================
   VARIABLES — design tokens
   Loaded first. Nothing in this file selects an element; it only defines the
   vocabulary every other stylesheet uses. Change a value here and it changes
   everywhere.
   =========================================================================== */

:root {
	/* ---------------------------------------------------------------
	   COLOR
	   Dark, high-contrast, red used sparingly as a single accent.
	   --------------------------------------------------------------- */
	--vub-black:        #08090a;   /* page background                       */
	--vub-surface:      #101214;   /* raised panel / alternating section     */
	--vub-surface-2:    #17191c;   /* card background                        */
	--vub-surface-3:    #1f2226;   /* hover / input background               */

	--vub-white:        #ffffff;   /* primary foreground                     */
	--vub-text:         #e9eaec;   /* body copy                              */
	--vub-text-muted:   #9aa0a6;   /* secondary copy, captions               */
	--vub-text-faint:   #6b7076;   /* meta, disabled                         */

	--vub-red:          #d81f2a;   /* the accent. Use with restraint.        */
	--vub-red-hover:    #b8161f;
	--vub-red-soft:     rgba(216, 31, 42, 0.12);

	--vub-border:       rgba(255, 255, 255, 0.10);
	--vub-border-strong:rgba(255, 255, 255, 0.20);

	--vub-overlay:      rgba(8, 9, 10, 0.72);   /* over photography          */
	--vub-scrim:        linear-gradient(180deg, rgba(8,9,10,0.10) 0%, rgba(8,9,10,0.85) 100%);

	/* The contact section's world-map wall (sections.css, 12). The relief is
	   charcoal on charcoal, lit from the upper left; these carry its wall on
	   past the render's edges: the tones of its left and right edges at the
	   top and the bottom, and between the two for a wall where neither side
	   edge shows. */
	--vub-map-wall-left-top:     #383939;
	--vub-map-wall-left-bottom:  #1b1b1b;
	--vub-map-wall-right-top:    #262627;
	--vub-map-wall-right-bottom: #151515;
	--vub-map-wall-top:    color-mix(in srgb, var(--vub-map-wall-left-top), var(--vub-map-wall-right-top));
	--vub-map-wall-bottom: color-mix(in srgb, var(--vub-map-wall-left-bottom), var(--vub-map-wall-right-bottom));
	--vub-map-glow:        #ffd23f;   /* the place the Location button lights up */

	--vub-focus:        #ffffff;   /* focus ring, must stay highly visible   */

	/* ---------------------------------------------------------------
	   TYPOGRAPHY
	   System stack by default — zero network requests, instant render.
	   To self-host a display face, drop the files in assets/fonts/,
	   add an @font-face block in base.css, and change --vub-font-display.
	   --------------------------------------------------------------- */
	--vub-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
	                 "Helvetica Neue", Arial, sans-serif;
	--vub-font-display: var(--vub-font-body);
	--vub-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	/* Fluid type scale. clamp(min, preferred, max) — no media queries needed. */
	--vub-text-xs:   0.75rem;                                  /* 12px       */
	--vub-text-sm:   0.875rem;                                 /* 14px       */
	--vub-text-base: 1rem;                                     /* 16px       */
	--vub-text-md:   1.0625rem;                                /* 17px       */
	--vub-text-lg:   clamp(1.125rem, 0.4vw + 1.03rem, 1.25rem);
	--vub-text-xl:   clamp(1.375rem, 0.8vw + 1.19rem, 1.75rem);
	--vub-text-2xl:  clamp(1.75rem, 1.6vw + 1.38rem, 2.5rem);
	--vub-text-3xl:  clamp(2.25rem, 3vw + 1.55rem, 3.5rem);
	--vub-text-4xl:  clamp(2.75rem, 5vw + 1.6rem, 5rem);
	--vub-text-hero: clamp(3rem, 7vw + 1rem, 6.5rem);

	--vub-weight-normal:   400;
	--vub-weight-medium:   500;
	--vub-weight-semibold: 600;
	--vub-weight-bold:     700;
	--vub-weight-black:    900;

	--vub-leading-tight:   1.05;
	--vub-leading-snug:    1.2;
	--vub-leading-normal:  1.5;
	--vub-leading-relaxed: 1.7;

	--vub-tracking-tight:  -0.02em;
	--vub-tracking-normal: 0;
	--vub-tracking-wide:   0.08em;
	--vub-tracking-wider:  0.16em;   /* eyebrows / small caps               */

	/* ---------------------------------------------------------------
	   SPACING — 4px base, named by t-shirt size
	   --------------------------------------------------------------- */
	--vub-space-3xs: 0.25rem;   /*  4px */
	--vub-space-2xs: 0.5rem;    /*  8px */
	--vub-space-xs:  0.75rem;   /* 12px */
	--vub-space-sm:  1rem;      /* 16px */
	--vub-space-md:  1.5rem;    /* 24px */
	--vub-space-lg:  2rem;      /* 32px */
	--vub-space-xl:  3rem;      /* 48px */
	--vub-space-2xl: 4rem;      /* 64px */
	--vub-space-3xl: 6rem;      /* 96px */
	--vub-space-4xl: 8rem;      /* 128px */

	/* Vertical rhythm between full-width sections. Fluid. */
	--vub-section-y: clamp(4rem, 8vw, 8rem);
	--vub-section-y-tight: calc(var(--vub-section-y) * 0.6);

	/* Between the top of the coaches ring band and the heading laid over it.
	   A token rather than a value in ring.css because the gallery heading's
	   gap is built from it too, and the two must match. ring.css drops it on
	   phones. */
	--vub-ring-head-pad: clamp(1.5rem, 3.5vw, 3rem);

	/* ---------------------------------------------------------------
	   LAYOUT
	   --------------------------------------------------------------- */
	--vub-container:        1240px;  /* default content width               */
	--vub-container-narrow: 820px;   /* prose, FAQ, forms                   */
	--vub-container-wide:   1560px;  /* wide grids (currently unused)       */
	/* The container's horizontal gutter, and the only place it is set. A flat
	   100px read well on a desktop and collapsed the page on a phone: at a 390px
	   viewport it left a 190px content column standing between two 100px margins,
	   so every headline overflowed it. This ramps instead — 20px on a small phone
	   up to the same 100px the desktop always had.

	   Both ends land exactly: 12.5vw - 28px is 20px at 384px and 100px at 1024px,
	   so it is pinned to its floor at or below a small phone, pinned to the
	   desktop's 100px at every width from 1024px up, and only moves between the
	   two. Nothing else applies a horizontal inset to .vub-container, so this
	   number can never be counted twice. */
	--vub-gutter:           clamp(1.25rem, 12.5vw - 28px, 100px);

	--vub-grid-gap:      clamp(1.25rem, 2.5vw, 2rem);
	--vub-header-height: 72px;

	/* ---------------------------------------------------------------
	   BORDER RADIUS — restrained. This is an athletic brand, not a SaaS app.
	   --------------------------------------------------------------- */
	--vub-radius-none: 0;
	--vub-radius-sm:   2px;
	--vub-radius-md:   4px;
	--vub-radius-lg:   8px;
	--vub-radius-pill: 999px;

	/* Every button is square: .vub-btn, the header call-to-action, the mobile
	   menu toggle and the footer's social buttons. One switch for all of them. */
	--vub-radius-button: var(--vub-radius-none);

	/* Every box is square too: cards, photographs and panels — the program and
	   pricing cards, the schedule table, the map, every .vub-media. */
	--vub-radius-box: var(--vub-radius-none);

	/* ---------------------------------------------------------------
	   BORDERS / SHADOW
	   --------------------------------------------------------------- */
	--vub-border-width: 1px;
	--vub-rule: var(--vub-border-width) solid var(--vub-border);

	--vub-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
	--vub-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
	--vub-shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.55);

	/* ---------------------------------------------------------------
	   MOTION — short, functional, never decorative
	   --------------------------------------------------------------- */
	--vub-ease:        cubic-bezier(0.2, 0, 0.2, 1);
	--vub-ease-out:    cubic-bezier(0.16, 1, 0.3, 1);

	--vub-duration-fast: 120ms;
	--vub-duration:      200ms;
	--vub-duration-slow: 320ms;

	--vub-transition:        all var(--vub-duration) var(--vub-ease);
	--vub-transition-color:  color var(--vub-duration-fast) var(--vub-ease),
	                         background-color var(--vub-duration-fast) var(--vub-ease),
	                         border-color var(--vub-duration-fast) var(--vub-ease);
	--vub-transition-transform: transform var(--vub-duration) var(--vub-ease-out);

	/* How long a room's lights take to come up — the homepage hero and the
	   About page hero (hero.css, sections.css). Not one of the UI durations
	   above: those are far too quick to read as lighting. */
	--vub-lights-duration: 1400ms;

	/* ---------------------------------------------------------------
	   Z-INDEX — one place, so nothing ever fights
	   --------------------------------------------------------------- */
	--vub-z-base:    1;
	--vub-z-sticky:  100;
	--vub-z-header:  200;
	--vub-z-overlay: 300;
	--vub-z-modal:   400;
}

/* Users who ask the OS for less motion get none of ours. */
@media (prefers-reduced-motion: reduce) {
	:root {
		--vub-duration-fast: 1ms;
		--vub-duration:      1ms;
		--vub-duration-slow: 1ms;
	}
}
