/* GitAway design language v2 (F-250, D-610), in the Stage look (F-296, D-956..D-961; docs/design/palette-bo, look C): an Apple-grey stage, colour only from content.
   Light: a flat #F5F5F7 stage, white cards, ink #1D1D1F, secondary #5F5F64, the one action ink. Dark (F-304): a flat #161618 grey stage (not black), #222225 and #2D2D31 cards (raised #3A3A3F), white ink, the action white with black words.
   Colour comes from each place's own vivid colour (gitaway/placecolor.py), the photos, the weather's real colours and two signals: orange is Heads up, green is good news.
   The Harbour ground (F-281: a gradient, a sun or moon, two ridges) and the moods are retired; its tokens are gone. Inter, heavy and tight, for the headlines (--f-display) and for everything you read
   and every price (tabular figures); Newsreader stays only for the guide book's pages (cv2.css), a physical thing. Near-opaque cards; frosted glass only as `.v2-glass`. A page opts in with ONE class: `v2`
   on its wrapper (layout.page(v2=True)). These are the v2 tokens, in one place for light and dark (the motion lint reads this file as it reads tokens.css). Dark is `html[data-mode="dark"]` (assets/js/mode.js).
   The old token names (--ink, --card, --k-flight ...) are pointed at v2's values on a v2 page, so the parts not redrawn yet take the new look. Measured contrast (words, on the surface they sit on):
   ink on stage 15.5, #5F5F64 on stage 5.8, on card 6.3; #B84A00 on card 5.2; #0F766E on stage 5.0; dark (F-304) secondary #A6A6AB on #161618 7.2, on #222225 6.3, on #2D2D31 5.4, on the raised #3A3A3F 4.5; #45BFA4 on #2D2D31 6.0, on #3A3A3F 5.0. */
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/newsreader-variable.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root:has(.v2) {
  font-size: 100%;      /* a rem is 16px on a v2 page (Direction A's 12px root made the old pages thin and small: the founder's complaint) */
  --text-min: 1rem; --label-min: 0.8125rem; --target: 3rem;
  --f-display: "Inter", system-ui, sans-serif;      /* heavy and tight (F-296, D-956) */
  --f-ui: "Inter", system-ui, sans-serif;
  --d-wt: 700; --d-track: -0.03em; --d-lh: 1.08;
  --num-feat: "tnum" 1, "cv11" 1, "ss01" 1;

  /* the Stage (F-296, D-956): a flat grey stage and white cards; --stage is the page ground, --ground-ink the words that sit straight on it (a card keeps --ink) */
  --stage: #F5F5F7;
  --ground-ink: #1D1D1F; --ground-ink-2: #5F5F64;
  --sky-1: #F5F5F7; --sky-2: #F5F5F7; --sky-3: #F5F5F7;      /* the cover's and sign-in's old sky stops, flat now */
  --ink: #1D1D1F; --ink-2: #48484C; --ink-3: #5F5F64; --on-ink: #FFFFFF;
  --card-t: #FFFFFF; --card-solid: #FFFFFF; --card-2: #F5F5F7; --card-3: #E8E8ED; --lead-bg: #FAFAFC;
  --line: rgb(0 0 0 / .08); --line-2: rgb(0 0 0 / .16);
  --glass: #FFFFFF; --glass-line: rgb(0 0 0 / .08);
  --word: #1D1D1F;
  /* the signals (D-957): orange is Heads up (words #B84A00), green is good news (cheapest, saves, refundable, booked) */
  --sig: #F25500; --sig-ink: #B84A00; --sig-t: #FFF1E6; --sig-on: #FFFFFF;
  --warn-tint: var(--sig-t); --warn-ink: var(--sig-ink); --warn-line: var(--sig);      /* Heads up (hotelfine.css) wears the signal */
  --good: #0F766E; --good-t: #E3F3EE; --good-i: #0B5C55;
  /* the dark band (More to know before you pick, D-958) */
  --band-bg: #1D1D1F; --band-ink: #FFFFFF; --band-ink-2: #A1A1A6; --band-chip: #2C2C2E; --band-chip-h: #3A3A3C; --band-chip-ink: #FFFFFF; --band-ct: rgb(255 255 255 / .14);
  --band-open: #FFFFFF; --band-open-ink: #1D1D1F; --band-open-ink-2: #6E6E73; --band-open-ct: #F0F0F3;      /* an opened chip is white in both modes */
  /* the band's icon tiles (D-958): vivid fills and the glyph colour that passes on each (white 4.5 and up, ink on the light ones) */
  --tl-wx: #F5A300; --tl-wx-on: #1D1D1F; --tl-see: #00A6A6; --tl-see-on: #1D1D1F; --tl-flight: #0071E3; --tl-flight-on: #FFFFFF; --tl-food: #D41F62; --tl-food-on: #FFFFFF;
  --tl-stay: #17834A; --tl-stay-on: #FFFFFF; --tl-grey: #636366; --tl-grey-on: #FFFFFF;
  --flight: #1D1D1F; --flight-t: #F0F0F3; --flight-i: #1D1D1F;
  --stay: #1D1D1F; --stay-t: #F0F0F3; --stay-i: #1D1D1F;
  --food: #D41F62; --food-t: #FCE4EC; --food-i: #8C1040;
  --see: #0F766E; --see-t: #E3F3EE; --see-i: #0B5C55;
  --tix: #B23C10; --tix-t: #FCE6DA; --tix-i: #7A2906;
  --wx: #0A84FF; --wx-t: #F0F0F3; --wx-i: #1D1D1F;
  --wx-sun: #F5B400; --wx-rain: #0A84FF; --wx-cloud: #8E8E93;      /* the weather in its real colours */
  --ride: #FFD43B; --ride-t: #F0F0F3; --ride-i: #48484C; --ride-on: #17140A;
  --sun: #FFB547; --sun-ink: #F5B400; --on: #FFFFFF; --pill-on: #1D1D1F; --pill-fg: #FFFFFF;
  --cell: #F5F5F7; --cell-hover: #EDEDF0; --pick: #1D1D1F; --pick-on: #FFFFFF; --pick-cap: #D5EFE8; --pick-cap-i: #0B5C55; --pick-band: #1D1D1F; --band-label: #1D1D1F;
  --hatch: rgb(0 0 0 / .06); --scrim: rgb(0 0 0 / .28);
  --sh1: 0 1px 0.125rem rgb(0 0 0 / .05);
  --sh2: 0 1px 0.125rem rgb(0 0 0 / .04), 0 0.5rem 1.5rem -0.625rem rgb(0 0 0 / .12);
  --sh3: 0 1px 0.125rem rgb(0 0 0 / .04), 0 1rem 2.5rem -1.125rem rgb(0 0 0 / .16);
  --glass-sh: 0 0.5rem 1.5rem -0.625rem rgb(0 0 0 / .12);
  /* the calm palette (F-261, D-700), as the Stage: ink carries the UI, one place to change it. A primary action is solid ink, a header is a card, the pass black. */
  --cta-bg: #1D1D1F; --cta-fg: #FFFFFF; --cta-sh: 0 0.625rem 1.5rem -0.75rem rgb(0 0 0 / .5); --cta-sh-up: 0 1rem 2rem -0.75rem rgb(0 0 0 / .55);
  --head-bg: var(--card-solid); --head-fg: var(--ink); --head-fg2: var(--ink-2); --head-chip: var(--card-2);
  --pass-bg: #1D1D1F; --pass-good: #45BFA4;
  --cloud: color-mix(in srgb, #fff 85%, transparent);
  --v2-map-land: #E8EFE3; --v2-map-water: #A9D3F0; --v2-map-road: #FFFFFF;      /* the rail's schematic map */
  --v2-thump: cubic-bezier(.2, 1.4, .4, 1);      /* the stamp landing on the pass */
  --v2-stamp-bg: rgb(0 0 0 / .55);

  /* the motion: springs as linear() curves (the prototype's), durations in one place; assets/js/v2.js reads them with getComputedStyle, so no script writes a time */
  --spring: linear(0, 0.009, 0.035 2.1%, 0.141, 0.281 6.7%, 0.723 12.9%, 0.938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, 0.991, 0.977 51%, 0.974 53.8%, 0.975 57.1%, 0.997 69.8%, 1.003 76.9%, 1);
  --spring-soft: linear(0, 0.006, 0.025 2.8%, 0.101 6.1%, 0.539 18.9%, 0.721 25.3%, 0.849 31.5%, 0.937 38.1%, 0.968 41.8%, 0.991 45.7%, 1.006 50.1%, 1.015 55%, 1.017 63.9%, 1.001 85.9%, 1);
  --v2-ease: cubic-bezier(.2, .8, .2, 1);
  --v2-glide: 760ms;       /* the sentence gliding up into the results */
  --v2-sheet: 420ms;       /* a phone's picker rising */
  --v2-pop: 220ms;         /* a laptop's picker growing from its word */
  --v2-out: 150ms;         /* a picker leaving */
  --v2-settle: 620ms;      /* a square settling into its answer */
  --v2-band: 450ms;        /* the nights band moving */
  --v2-pick: 520ms;        /* the pick bar arriving */
  --v2-quick: 200ms;       /* a hover, a tap, a colour */
  --v2-slow: 1000ms;       /* the sun and the shore leaving for the results */
  --v2-shimmer: 1300ms;    /* one pass of a waiting square's shimmer */
  --v2-flash: 700ms;       /* the flash on a word that just changed */
  --v2-spin-t: 800ms;      /* one turn of the spinner */
  --v2-drawer: 820ms;      /* the drawer growing down out of its square's column (F-251) */
  --v2-drawer-again: 520ms;      /* the drawer, already open, taking another square */
  --v2-drawer-in: 460ms;   /* what is in the drawer arriving, one part after another */
  --v2-drawer-stagger: 70ms;
  --v2-drawer-out: 220ms;  /* the drawer going away */
  --v2-fold: 320ms;        /* the drawer's stay or flights opening in place, the other folding to its summary (F-258: height and fade, nothing else moves) */
  --v2-press: 90ms;        /* a button going in (F-258) */
  --v2-release: 480ms;     /* and springing back on --spring */
  --v2-press-scale: .96;
  --v2-count: 520ms;       /* the total counting to its new value */
  --v2-swap: 350ms;        /* what a choice changes fading in */
  --v2-rail: 450ms;        /* a widget arriving */
  --v2-book-spin: 1000ms;  /* the Book button spinning while the room is held */
  --v2-sheet-in: 640ms;    /* the booking sheet growing out of the button */
  --v2-pane: 380ms;        /* the next question sliding in */
  --v2-step: 850ms;        /* one booking step spinning */
  --v2-confetti: 2600ms;   /* the confetti falling */
  --v2-land-delay: 400ms;  /* planning (F-252): the first booking landing in the calendar after the arrival */
  --v2-land-stagger: 90ms; /* each next booking landing */
  --v2-arrive-delay: 120ms; /* the calendar rising after the header */
  --v2-stamp-delay: 300ms; /* the saved stamp thumping onto the pass */

  /* creators v2 (F-253): the book is a physical thing, so its paper and its kind colours stay in both modes (dimmed in dark); the --cv-d* are the prototype's own timings, one token each */
  --bk-paper: #F5F5F7; --bk-paper-2: #E8E8ED; --bk-card: #FFFFFF; --bk-ink: #1D1D1F; --bk-ink-2: #48484C; --bk-line: rgb(0 0 0 / .14); --bk-plate: #FFFFFF; --bk-foil: #E8E8ED;
  --bk-see: #0F766E; --bk-food: #D41F62; --bk-tix: #B23C10; --bk-ride: #E7B416; --bk-show: #00779A; --bk-walk: #0071E3;
  --bk-turn: cubic-bezier(.45, .05, .2, 1);
  --cv-d0: 0ms;
  --cv-d150: 150ms;
  --cv-d180: 180ms;
  --cv-d200: 200ms;
  --cv-d220: 220ms;
  --cv-d250: 250ms;
  --cv-d300: 300ms;
  --cv-d400: 400ms;
  --cv-d450: 450ms;
  --cv-d500: 500ms;
  --cv-d550: 550ms;
  --cv-d600: 600ms;
  --cv-d700: 700ms;
  --cv-d750: 750ms;
  --cv-d800: 800ms;
  --cv-d900: 900ms;
  --cv-d1000: 1000ms;
  --cv-d1300: 1300ms;
  --cv-d1400: 1400ms;
  --cv-d1600: 1600ms;
  --cv-d2400: 2400ms;
  --cv-stag: 45ms; --cv-stag-fine: 30ms;

  /* the cover's postcard (F-266, cover v3): the prototype's timeline, one token per time (--cvt-<ms>); assets/css/cover.css */
  --cvt-1: 1ms; --cvt-110: 110ms; --cvt-120: 120ms; --cvt-140: 140ms; --cvt-160: 160ms; --cvt-250: 250ms; --cvt-260: 260ms; --cvt-300: 300ms; --cvt-350: 350ms; --cvt-380: 380ms; --cvt-400: 400ms; --cvt-420: 420ms; --cvt-450: 450ms; --cvt-460: 460ms; --cvt-480: 480ms; --cvt-500: 500ms; --cvt-520: 520ms; --cvt-600: 600ms; --cvt-620: 620ms; --cvt-700: 700ms; --cvt-750: 750ms; --cvt-800: 800ms; --cvt-900: 900ms; --cvt-1000: 1000ms; --cvt-1100: 1100ms; --cvt-1300: 1300ms; --cvt-1400: 1400ms; --cvt-1500: 1500ms; --cvt-1800: 1800ms; --cvt-1900: 1900ms; --cvt-2000: 2000ms; --cvt-2100: 2100ms; --cvt-2150: 2150ms; --cvt-2200: 2200ms; --cvt-2250: 2250ms; --cvt-2400: 2400ms; --cvt-2500: 2500ms; --cvt-2700: 2700ms; --cvt-2750: 2750ms; --cvt-2800: 2800ms; --cvt-3100: 3100ms;
  --cvt-cam: 24000ms; --cvt-loop: 12000ms;      /* F-305/F-306: the guided zoom (The catch, up front) and the creator section's story, one loop each (cover_why.css, cover_creator.css) */

  --r-xl: 2rem; --r-lg: 1.5rem; --r-md: 1.125rem; --r-sm: 0.75rem;
  --lead: 14.125rem; --cw: 6.25rem; --ch: 4.375rem;
  --v2-sheet-w: min(23.75rem, calc(100vw - 1.5rem));

  /* the old names, pointed at v2 */
  --paper: var(--card-2); --paper-2: var(--card-2); --ground: var(--stage);
  --card: var(--card-solid);
  --k-flight: #0071E3; --k-flight-t: #E5F0FC; --k-flight-i: #00439A;
  --k-stay: #1D1D1F; --k-stay-t: var(--stay-t); --k-stay-i: var(--stay-i);
  --k-food: var(--food); --k-food-t: var(--food-t); --k-food-i: var(--food-i);
  --k-see: var(--see); --k-see-t: var(--see-t); --k-see-i: var(--see-i);
  --k-tix: var(--tix); --k-tix-t: var(--tix-t); --k-tix-i: var(--tix-i);
  --k-wx: #6E6E73; --k-wx-t: var(--wx-t); --k-wx-i: var(--wx-i);
  --k-ride: var(--ride); --k-ride-t: var(--ride-t); --k-ride-on: var(--ride-on);
  --k-on: var(--on);
  --font-display: var(--f-display); --font-body: var(--f-ui);
  color-scheme: light;
}
:root[data-mode="dark"]:has(.v2) {
  --stage: #161618;
  --ground-ink: #F5F5F7; --ground-ink-2: #A6A6AB;
  --sky-1: #161618; --sky-2: #161618; --sky-3: #161618;
  --ink: #F5F5F7; --ink-2: #C7C7CC; --ink-3: #A6A6AB; --on-ink: #1D1D1F;
  --card-t: #222225; --card-solid: #222225; --card-2: #2D2D31; --card-3: #3A3A3F; --lead-bg: #1E1E21;
  --line: rgb(255 255 255 / .10); --line-2: rgb(255 255 255 / .18);
  --glass: #222225; --glass-line: rgb(255 255 255 / .10);
  --word: #F5F5F7;
  --sig: #FF7A1A; --sig-ink: #FF9A4D; --sig-t: #3A2210; --sig-on: #1D1D1F;
  --good: #45BFA4; --good-t: #1C332D; --good-i: #45BFA4;
  --band-bg: #2D2D31; --band-chip: #3A3A3F; --band-chip-h: #48484A; --band-ink-2: #AEAEB2;
  --flight: #F5F5F7; --flight-t: #2D2D31; --flight-i: #F5F5F7;
  --stay: #F5F5F7; --stay-t: #2D2D31; --stay-i: #F5F5F7;
  --food: #FF6B9A; --food-t: #401528; --food-i: #FFD0DF;
  --see: #45BFA4; --see-t: #1C332D; --see-i: #45BFA4;
  --tix: #FB923C; --tix-t: #3D1E0E; --tix-i: #FFD6BC;
  --wx: #409CFF; --wx-t: #2D2D31; --wx-i: #F5F5F7;
  --wx-sun: #FFC530; --wx-rain: #409CFF; --wx-cloud: #98989D;
  --ride-t: #2D2D31; --ride-i: #C7C7CC;
  --sun-ink: #FFC530; --pill-on: #F5F5F7; --pill-fg: #1D1D1F;
  --cell: #2D2D31; --cell-hover: #3A3A3F; --pick: #F5F5F7; --pick-on: #1D1D1F; --pick-cap: #45BFA4; --pick-cap-i: #04201B; --pick-band: #F5F5F7; --band-label: #F5F5F7;
  --hatch: rgb(255 255 255 / .06); --scrim: rgb(0 0 0 / .55);
  --sh1: 0 0 0 1px rgb(255 255 255 / .04); --sh2: 0 0 0 1px rgb(255 255 255 / .05); --sh3: 0 0 0 1px rgb(255 255 255 / .06);
  --glass-sh: 0 0 0 1px rgb(255 255 255 / .05);
  --cta-bg: #F5F5F7; --cta-fg: #1D1D1F; --cta-sh: 0 0 0 1px rgb(255 255 255 / .06); --cta-sh-up: 0 0 0 1px rgb(255 255 255 / .12);
  --pass-bg: #2D2D31; --pass-good: #45BFA4;
  --cloud: rgb(255 255 255 / .06);
  --v2-map-land: #1E2A2B; --v2-map-water: #17304A; --v2-map-road: #3A4250;
  --bk-paper: #E5E5EA; --bk-paper-2: #D8D8DD; --bk-card: #F2F2F7;
  /* the kinds' solid fills (a tile, a chip) stay the same in dark so white text on them keeps its 5:1 (F-200); the bright kind colours above are for text and rings on the dark stage */
  --k-flight: #0071E3; --k-flight-t: #12243D; --k-flight-i: #9CCBFF; --k-stay: #636366; --k-food: #D41F62; --k-see: #0F766E; --k-tix: #B23C10; --k-wx: #636366;
  color-scheme: dark;
}
@media (max-width: 719px) { :root:has(.v2) { --lead: 6.25rem; --cw: 5rem; --ch: 4.125rem; } }
