@property --nav-logo{syntax:"<color>";inherits:true;initial-value:#e3f5ba}
@property --nav-ink-rest{syntax:"<color>";inherits:true;initial-value:#848a74}
@property --ink-hero-host{syntax:"<color>";inherits:true;initial-value:#ccd4b9}
@property --ink-closing-sponsor{syntax:"<color>";inherits:true;initial-value:#c1c9ae}
@property --ink-card-hover{syntax:"<color>";inherits:true;initial-value:#4f5445}
@property --ink-featured-hover{syntax:"<color>";inherits:true;initial-value:#e6f9bf}
@property --ink-link{syntax:"<color>";inherits:true;initial-value:#e3f5ba}
@property --ink-link-card{syntax:"<color>";inherits:true;initial-value:#d1fb82}
/* Design tokens: shared values only. Sections consume these instead of inventing new scales. */
:root{
  /* Dark tones. Each hue's -100 is its --*-tone pushed toward black by --dark-depth (the share of
     hue kept), so dark backgrounds read as near-black with only a faint tint. Stage surfaces sit a
     step deeper again (--surface-depth of the -100). Tune the two ratios, not the hexes. */
  --dark-depth:28%;
  --surface-depth:70%;
  --pink-10:#ffe6f4;
  --pink-20:#ffc2e5;
  --pink-40:#ff1493;
  --pink-tone:#31071f;
  --pink-100:color-mix(in srgb,var(--pink-tone) var(--dark-depth),#000);
  --purple-10:#f2e6ff;
  --purple-20:#d9b9fb;
  --purple-40:#8a2be2;
  --purple-tone:#210c38;
  --purple-100:color-mix(in srgb,var(--purple-tone) var(--dark-depth),#000);
  --blue-10:#e4f2ff;
  --blue-20:#b9dfff;
  --blue-40:#1493ff;
  --blue-tone:#0b2542;
  --blue-100:color-mix(in srgb,var(--blue-tone) var(--dark-depth),#000);
  --green-10:#eff9d9;
  --green-20:#e3f5ba;
  --green-40:#d1fb82;
  --green-tone:#26350f;
  --green-100:color-mix(in srgb,var(--green-tone) var(--dark-depth),#000);
  --peri-olive:#6ea414;
  --hero-surface:color-mix(in srgb,var(--green-100) var(--surface-depth),#000);
  --features-surface:color-mix(in srgb,var(--purple-100) var(--surface-depth),#000);
  --blue-surface:color-mix(in srgb,var(--blue-100) var(--surface-depth),#000);
  --pink-surface:color-mix(in srgb,var(--pink-100) var(--surface-depth),#000);
  /* Accents: each hue as ink on the dark stage (the tracks heading, the navbar's hovers). It is the hue's -40
     wherever that clears text contrast (4.5:1) on the stage. Purple's -40 does not (3.4:1), so
     its accent is lifted toward its -20 until it sits level with blue and pink (6:1). */
  --green-accent:var(--green-40);
  --blue-accent:var(--blue-40);
  --pink-accent:var(--pink-40);
  --purple-accent:color-mix(in oklab,var(--purple-40) 60%,var(--purple-20));
  /* Navbar (components/site-nav.css): it wears the palette of the section in view, like the
     stage it floats on. Every colour in it is one of these roles, and every role is read
     straight from the page's scroll palette (--current-*, motion.css), which the root tweens
     once for the whole page. Nothing in the bar fades a colour on a clock of its own, so the
     bar, its wordmark, links and button all change together, and with the page.
       surface    the bar's fill: the stage colour
       ink        text at full strength: a link under the pointer, the menu's links, the CTA's fill
       link-rest  how much of the ink a link in the bar shows at rest (5.4:1 to 5.9:1 on the
                  surface, whatever the palette; the whole ink is 17:1 to 18:1)
       accent     the fill of a hovered CTA or the open menu's button
       logo       the wordmark: the palette's light tint
       hairline   the bar's outline */
  --nav-surface:var(--current-surface);
  --nav-ink:var(--current-color-10);
  --nav-link-rest:55%;
  --nav-accent:var(--current-accent);
  /* registered (above), so the wordmark, a link, reads one finished colour: handed the palette's
     own tween to follow, Chrome painted a visited wordmark in the bar's ink for the whole fade */
  --nav-logo:var(--current-color-20);
  /* Quiet inks: text and marks that sit back are a solid mix of ink and ground, not opacity.
     Mixed here and registered below, so a link (visited ones too) reads one finished colour:
     Chrome lit up visited links whose own colour was a mix of the tweening palette. */
  --nav-ink-rest:color-mix(in srgb,var(--nav-ink) var(--nav-link-rest),var(--nav-surface));
  --ink-hero-host:color-mix(in srgb,var(--current-color-10) 85%,var(--current-surface));
  --ink-closing-sponsor:color-mix(in srgb,var(--current-color-10) 80%,var(--current-surface));
  --ink-card-hover:color-mix(in srgb,var(--current-color-100) 70%,var(--current-color-10));
  --ink-featured-hover:color-mix(in srgb,var(--current-color-10) 70%,var(--current-color-40));
  /* Link inks: the palette's tones for a link's own colour (home.css, .event-details-link), registered
     like the mixes above. Chrome painted a visited "Full details" that read the tweening palette
     directly in its darker accent for the whole fade, then cut to the right tint. */
  --ink-link:var(--current-color-20);
  --ink-link-card:var(--current-color-40);
  --nav-hairline:color-mix(in srgb,var(--current-color-40) 20%,transparent);
  --error-accent:#efb080;
  --error-tone:#472b22;
  --error-surface:color-mix(in srgb,var(--error-tone) var(--dark-depth),#000);

  /* Treatments (sections/treatments.css; switched in scripts/treatments.js): how strong each
     optional finish is when it is on.
       grain     opacity of the noise over the window
       glow      how lit the contour maps' summits are (1: as drawn in graphics.js, GLOW_PASSES)
       tint      opacity of the highest band of the contour maps' ground
       bleed     ink bleed on the large headings (treatments.js, buildBleed). spread: how far
                 the ink creeps, in ems of the type it is on; roughness: how ragged its edge is,
                 in ems (0: smooth); threshold: how much of the spread ink counts as ink (under
                 .5, shapes swell).
       pen       the moving line work as drawn by hand in ink. pressure: how uneven its weight is
                 (0: even, 1: from nothing to double); wobble: how far it strays, in CSS px.
       pen-type  the same on the outlines of the large headings (treatments.js, penType).
                 pressure: how much their edges swell and thin, 0 to 1; rough: how ragged the
                 edges are, 0 to 1; wobble: how far the outline strays, in ems.
     --z-grain: the grain sits over the whole page, the navbar included. */
  --grain-strength:.07;
  --glow-strength:1;
  --tint-strength:.2;
  --bleed-spread:.025;
  --bleed-roughness:0;
  --bleed-threshold:.4;
  --pen-pressure:.7;
  --pen-wobble:1.5;
  --pen-type-pressure:.5;
  --pen-type-wobble:0;
  --pen-type-rough:.3;
  --z-grain:900;

  /* Type families, one per role: headings, running text, and system/UI labels (fonts.css). */
  --font-heading:"Suisse Intl",ui-sans-serif,system-ui,sans-serif;
  --font-system:"Paper Mono",ui-monospace,"SFMono-Regular",Menlo,Consolas,monospace;
  --font-body:"Allo",ui-sans-serif,system-ui,sans-serif;
  /* Weight for heading-face display copy: Suisse Int'l Bold. */
  --font-heading-weight:700;
  --recreated-motion-card:800ms cubic-bezier(.215,.61,.355,1);
  /* Entrances (motion.css): how long one item takes to arrive, the gap between items that arrive
     together, how far a rising item travels, and the gap between the characters of a typed tag. */
  --enter-duration:.7s;
  --enter-stagger:80ms;
  --enter-distance:calc(24*var(--dp));
  --enter-type-stagger:50ms;
  /* Buttons (motion.css): how far a pressed button gives, how fast it goes down, and how long it
     takes to spring back on release; and how long a hovered CTA's arrow takes to pass through. */
  --press-scale:.96;
  /* ...and the navbar wordmark's slash, pressed: how far it gives, and how much further it leans */
  --nav-slash-press-scale:.78;
  --nav-slash-press-turn:16deg;
  --press-duration:120ms;
  --release-duration:.55s;
  --arrow-pass-duration:.6s;
  /* Reveals: the circle that opens at the pointer on a hovered venue photo (home.css) or CTA
     (motion.css), and closes where it leaves. */
  --reveal-open:.7s;
  --reveal-close:.45s;
  /* Underdamped spring (damping ratio .42), sampled for linear(): ~23% overshoot, settles by the end. */
  /* Strong ease-out (quint): a fast start that settles without overshoot. */
  --ease-out-strong:cubic-bezier(.22,1,.36,1);
  --ease-spring:linear(0, .029, .108, .222, .359, .506, .653, .791, .915, 1.021, 1.105, 1.167, 1.208, 1.229, 1.233, 1.224, 1.203, 1.175, 1.142, 1.108, 1.074, 1.042, 1.014, .99, .972, .958, .95, .946, .946, .949, .954, .961, .969, .977, .985, .992, .998, 1.003, 1.007, 1.01, 1);
  --recreated-focus-ring:0 0 0 calc(1.6*var(--dp)) var(--current-color-10),0 0 0 calc(2.8*var(--dp)) var(--current-color-100);
  --recreated-content-max:calc(580*var(--dp));
  --recreated-content-body-max:calc(440*var(--dp));
  --recreated-section-anchor-offset:calc(120*var(--dp));
  /* The one corner radius. Every cornered surface on the site uses it. Square corners
     throughout; dots and circular controls (50%) stay round. */
  --radius:0;
  /* Card corners: every card and panel on the stage takes the navbar's end radius (half the
     bar's height: the 40dp CTA plus 8dp padding above and below; site-nav.css), so the cards and
     the pill navbar read as one family. A surface nested inside a card takes the card radius less its
     inset, so the two corners stay concentric (home.css). */
  --radius-card:calc(28*var(--dp));
  /* Vertical rhythm: every gap between two blocks on a page is one of three steps.
       gutter   two surfaces of the same section (the two venue cards, the FAQ cards); also the
                horizontal gap between cards in a row
       heading  a section heading and the content it introduces
       section  one section and the next, measured between what is visible: the last surface
                of one and the first heading or surface of the next
     The two full-window sections (the hero and the closing call) centre their content in the
     window and bring their own air; the hero's bottom row sits on the window edge, so the
     section gap follows it. Gaps between pieces of text use --stack-* below instead. */
  --stage-gutter:calc(14*var(--dp));
  --space-heading:calc(64*var(--dp));
  --space-section:calc(160*var(--dp));
  /* The tracks stack pins one card in the middle of the window, so its box is a full window
     tall and carries empty stage above and below the card (the bleed). Its section gaps are
     measured from the card, so the bleed is taken back out of the flow (home.css). */
  /* the cards' text doesn't shrink with the window as fast as the card does, so below ~1380px the
     card holds at 370px instead of following the design pixel down. Tall enough for a title,
     challenge and link at the foot under a prize of four lines (the Peri card). */
  --tracks-card-height-max:max(calc(400*var(--dp)),370px);
  --tracks-card-height:var(--tracks-card-height-max);
  --tracks-bleed:max(0px,calc((100vh - var(--tracks-card-height))/2));
  /* Schedule: the days run as one row along a rail, the row the ribbon is drawn in (home.css,
     Schedule). The rail's height is the ribbon's; a window too short for it gets a lower one.
     Each agenda item is one step along the rail, and a day is as wide as the longest agenda. */
  --schedule-rail-height:min(calc(220*var(--dp)),28vh);
  --schedule-step-width:calc(225*var(--dp));
  /* the gap between the rail and the agenda steps under it; from the body text, like
     the --stack-* gaps below, so it follows type scaling */
  --schedule-rail-gap:calc(2*var(--text-base));
  /* Insets: the space between a surface's edge and the text on it. Panels are the navbar-wide
     surfaces (About, the schedule card), cards the small ones (FAQ). Text on two panels then
     starts on the same vertical line down the page. */
  --inset-panel:calc(80*var(--dp));
  --inset-card:calc(20*var(--dp));
  /* The navbar's width (its captured column-md-12 / column-xs-6 classes), for anything that lines
     up with it. Percentages resolve against the box that uses the token. */
  --nav-width:calc(85.71429% - calc(27.857*var(--dp)));
  /* Left side bearing of each face's straight-stemmed capitals (B E H M N…), measured from the
     font files. Pull a flush-left text box back by this much (as a negative margin, on the
     element that sets the font size) so the ink, not the glyph box, meets an edge. */
  --sidebearing-display:.07em;  /* Suisse Int'l 700 (--font-heading-weight) */
  --sidebearing-display-t:.012em; /* its "T", whose bar reaches nearly to the edge */
  --sidebearing-mono:.069em;   /* Paper Mono 500 */

  /* Layout unit: one design pixel. Layouts were drawn on a 1440px artboard (375px on phones) and
     scale with the window, so lengths are written calc(N*var(--dp)). Type never uses it. */
  --dp:calc(100vw/1440);

  /* Type roles. rem-based, so they follow browser zoom and the reader's font-size setting; fluid
     from a 375px phone to a 1440px desktop, easing on to 1920px. Every font-size uses one of these.
       2xs–xs   labels, mono system text, nav, buttons, tags
       sm–md    body copy          lg        lead text, small headings
       xl–3xl   section headings   4xl–6xl   display
       hero     the hero title (sized with the drape graphic) */
  --text-2xs:clamp(.75rem,.739rem + .0469vw,.7953rem);
  --text-xs:clamp(.8125rem,.7905rem + .0939vw,.9032rem);
  --text-sm:clamp(.875rem,.842rem + .1408vw,1.011rem);
  --text-base:clamp(1rem,.967rem + .1408vw,1.136rem);
  --text-md:clamp(1.0312rem,.9762rem + .2347vw,1.2579rem);
  --text-lg:clamp(1.125rem,1.037rem + .3756vw,1.4877rem);
  --text-xl:clamp(1.375rem,1.1989rem + .7512vw,2.1004rem);
  --text-2xl:clamp(1.75rem,1.4859rem + 1.1268vw,2.838rem);
  --text-3xl:clamp(1.875rem,1.3908rem + 2.0657vw,3.8697rem);
  --text-4xl:clamp(2.5rem,1.8398rem + 2.8169vw,5.2201rem);
  --text-5xl:clamp(3rem,1.9877rem + 4.3192vw,7.1708rem);
  --text-6xl:clamp(3.5rem,.8592rem + 11.2676vw,14.3803rem);
  --text-hero:clamp(3.625rem,1.1602rem + 10.5164vw,13.7799rem);

  /* Text stacking: the vertical gap between two pieces of text, or text and its button, sized
     from the body text so it follows type scaling, zoom and the reader's font size the way the
     words do (layout gaps between panels and sections stay in --dp). Related text sits close,
     looser relations get more room:
       pair    a title and the description under it (cards, schedule days, FAQ answers)
       label   a tag or eyebrow and the heading it introduces
       lead    a display heading and its supporting line (plus the heading's own .2em
               descender room, so the gap grows with the heading)
       action  text and the button that follows it */
  --stack-pair:calc(.5*var(--text-base));
  --stack-label:var(--text-base);
  --stack-lead:var(--text-base);
  --stack-action:calc(2.5*var(--text-base));

  /* The least height (and width) of anything meant to be tapped: 44px at the default font size,
     and it grows with the reader's. Links set smaller than this get their row padded out to it. */
  --tap-min:2.75rem;
}
@media (max-width:768px){
  :root{
    /* One design pixel on the 375px phone artboard. It stops growing at 1.2px (a 450px window):
       type is rem-based and does not scale with the window, so past the largest phones a
       still-growing unit only inflated the bars, buttons, radii and gaps around text that stayed
       the same size (a 768px tablet drew the navbar and its buttons at twice their size). */
    --dp:min(calc(100vw/375),1.2px);
    --nav-width:calc(100% - calc(30*var(--dp)));
    --inset-panel:calc(20*var(--dp));
    --recreated-section-anchor-offset:calc(80*var(--dp));
    --space-heading:calc(40*var(--dp));
    --space-section:calc(96*var(--dp));
    /* tall enough for a track card with two wrapped detail rows on a 360px phone */
    --tracks-card-height-max:max(calc(360*var(--dp)),352px);
    --schedule-rail-height:calc(120*var(--dp));
  }
}
