/* Design tokens: the one place for every colour, typeface, size and space.
   Look 2, "Flower beds in daylight", from the Visual direction and site plan.
   site.css and the artwork read these; nothing else declares a raw value.
   (The one thing CSS will not read from a variable is a media query's width:
   site.css switches from phone to desktop at 48rem, written there twice.) */

/* Poppins, served from this site. Latin, three weights, no italics.
   SIL Open Font License: assets/fonts/LICENSE.txt. */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/poppins-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/poppins-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/poppins-latin-600-normal.woff2") format("woff2");
}

/* Match the widths of the lead, controls and heading during a Poppins download.
   Poppins ascends 105% and descends 35%; divide by each face’s size adjustment. */
@font-face {
  font-family: "Poppins Fallback";
  font-weight: 400;
  src: local("Arial"), local("Liberation Sans");
  size-adjust: 113%;
  ascent-override: 92.92%;
  descent-override: 30.97%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Poppins Fallback";
  font-weight: 500;
  src: local("Arial"), local("Liberation Sans");
  size-adjust: 111%;
  ascent-override: 94.59%;
  descent-override: 31.53%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Poppins Fallback";
  font-weight: 600;
  src: local("Arial Bold"), local("Liberation Sans Bold");
  size-adjust: 106.8%;
  ascent-override: 98.31%;
  descent-override: 32.77%;
  line-gap-override: 0%;
}

:root {
  /* Palette */
  --color-cream: #FBF6EA;      /* page */
  --color-white: #FFFFFF;      /* cards */
  --color-leaf-ink: #22301F;   /* text and card line */
  --color-poppy: #D9472F;      /* artwork and labels */
  --color-poppy-deep: #C03A22; /* labels and small accents */
  --color-iris: #6C5BC0;
  --color-marigold: #F2C94C;
  --color-sunlight: #FFF4CD;       /* the sun disc in the garden (garden.js) */
  --color-sunlight-edge: #EDE1BA;  /* the disc's shaded rim */
  --color-sun-glow: rgb(255 232 175); /* the halo around it */
  --color-meadow: #8FBF6B;
  --color-hedge: #3F7F62;      /* buttons: white text on it is 4.8 to 1 */
  --color-sky: #BBD6EA;
  --color-row-line: #2F5D3A;

  /* Roles */
  --page-background: var(--color-cream);
  --text: var(--color-leaf-ink);
  --text-quiet: color-mix(in srgb, var(--color-leaf-ink) 72%, var(--color-cream));
  --line: color-mix(in srgb, var(--color-leaf-ink) 16%, transparent);
  --accent: var(--color-poppy-deep);
  --button-background: var(--color-hedge);
  --button-background-hover: color-mix(in srgb, var(--color-hedge) 80%, var(--color-leaf-ink));
  --button-text: var(--color-white);
  --quiet-hover: color-mix(in srgb, var(--color-leaf-ink) 8%, transparent);
  --focus-ring: var(--color-iris);
  --nav-surface: color-mix(in srgb, var(--color-white) 72%, transparent);
  --menu-surface: color-mix(in srgb, var(--color-cream) 92%, transparent);

  /* Type: Poppins alone. */
  --font: "Poppins", "Poppins Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;

  /* The type scale: each size travels with its own line height. */
  --text-sm: 0.875rem;
  --leading-sm: 1.25rem;
  --text-base: 1rem;
  --leading-base: 1.5rem;
  --text-lg: 1.125rem;
  --leading-lg: 1.75rem;
  --text-xl: 1.25rem;
  --leading-xl: 1.75rem;
  --text-2xl: 1.5rem;
  --leading-2xl: 2rem;
  --text-3xl: 1.875rem;
  --leading-3xl: 2.25rem;
  --text-4xl: 2.25rem;
  --leading-4xl: 2.5rem;
  --text-6xl: 3.75rem;
  --leading-6xl: 1;

  /* Space: only these steps. */
  --space-25: 2px;
  --space-50: 4px;
  --space-75: 8px;
  --space-100: 12px;
  --space-200: 16px;
  --space-300: 24px;
  --space-400: 32px;
  --space-500: 40px;
  --space-600: 48px;
  --space-700: 64px;
  --space-800: 80px;
  --space-900: 96px;

  /* Shape */
  --page-width: 72rem;
  --text-width: 680px;
  --gutter: var(--space-300);
  --radius: 0.75rem;
  --radius-pill: 9999px;
  --line-width: 1px;
  --ring-width: 2px;
  --ring-offset: 3px;
  --underline-offset: 0.2em;
  --full: 100%;
  --blur: 12px;
  --blur-strong: 24px;
  --toggle-bar: 18px;
  --toggle-gap: 3px;

  /* Motion: one curve, weighted, settling into place. */
  --curve: cubic-bezier(0.22, 1, 0.36, 1);
  --time-hover: 300ms;
  --time-move: 500ms;
  --stagger: 60ms;
  --press-scale: 0.98;
  --press-fade: 0.72;

  /* Artwork box, until the drawing arrives */
  --art-shape: 16 / 5;
  --art-shape-phone: 4 / 3;
  --art-shape-strip: 48 / 5;
  --art-shape-strip-phone: 4 / 1;
  --mark-size: 72px;
  --art-sky-end: 38%;
  --art-hedge-end: 42%;
}

:root {
  --walk-paper: #fbf5df;
  --walk-gutter: 6vw;
  --walk-viewport: 100vw;
  --walk-hero: 88svh;
  --walk-header-reach: 8rem; /* how far the hero's shade reaches up behind the nav (more than the header's height) */
  --walk-hero-home: 70svh;    /* Home: the services start sooner under the same hero */
  --walk-hero-board: 48svh;   /* How We Work: the board rises over the meadow */
  --board-overlay-clear: 30svh; /* how far the meadow shows through the band before night settles */
  --board-overlay-solid: 70svh; /* where the band is fully night */
  /* How far the cream paper takes to rise out of the garden under the hero. */
  --walk-fade: 22svh;
  --walk-caption-shade: #082123;
  /* Daytime wash and boards. Night stays on the tokens above. */
  --day-caption: #d5eaf0;
  --day-board: #f4f1e4;
  --day-board-end: #e3f0dc;
  --day-ground: #e5f2df;
  --day-paper: #f7f4ea;
  --day-band: #e4f0df;
  --day-card: #e7f0df;
  --walk-copy: 43rem;
}
:root { --walk-tracking: -0.055em; --walk-title: clamp(3.2rem, 6.3vw, 6.25rem); }

:root {
}

/* AI Studio: the moon garden at night */
:root {
  --studio-sky: #132a2a;
  --studio-aside: 17rem;
  --planner-day: 2.75rem;      /* a day cell in the AI Studio calendar */
  --planner-dot: 0.375rem;
  --planner-cal: 22rem;        /* the calendar column */
  --planner-date: 8.5rem;      /* the date column in its session list */
  --touch-target: 44px;
  --studio-deep: #0d2122;
  --studio-cream: #f3ecd6;
  --studio-sage: #dfe8c8;
  --studio-moon: #efe9d2;
  --studio-glow: #7fa08f;
  --studio-sky-height: 36rem;
  --studio-moon-top: 6rem;
  --studio-moon-size: 8rem;
  --studio-moon-halo: 4rem;
  --studio-moon-top-phone: 4.5rem;
  --studio-moon-size-phone: 4.5rem;
  --studio-meadow-width: 58%;
  --studio-meadow-height: 78%;
  --studio-meadow-width-phone: 100%;
  --studio-meadow-height-phone: 30%;
  --studio-sky-height-phone: 40rem;
  --studio-meadow-room-phone: 9rem;
  --studio-meadow-phone-opacity: 0.8;
  --studio-eyebrow-tracking: 0.08em;
  --studio-title: clamp(2.5rem, 6vw, 4.5rem);
  --studio-title-leading: 1.04;
  --studio-title-tracking: -0.04em;
  --studio-day-width: 7rem;
  --studio-time-width: 9rem;
}

/* The "How we work" board lives in the moon garden's world: deep teal with
   real darkness in it, cream light, a little gold. */
:root {
  --board-night: #0E2A2B;
  --board-deep: #0A1F20;
  --board-column: color-mix(in srgb, #F3EBD6 5%, transparent);
  --board-column-light: linear-gradient(color-mix(in srgb, #F3EBD6 9%, transparent), color-mix(in srgb, #F3EBD6 2%, transparent) 55%, color-mix(in srgb, #0A1F20 30%, transparent));
  --board-column-edge: inset 0 1px 0 color-mix(in srgb, #F3EBD6 14%, transparent), inset 0 -24px 40px -28px color-mix(in srgb, #0A1F20 80%, transparent);
  --board-cream: #F3EBD6;
  --board-cream-quiet: color-mix(in srgb, #F3EBD6 66%, #0E2A2B);
  --board-gold: #D9B566;
  --board-ember: #E08A6A;
  --board-line: color-mix(in srgb, #F3EBD6 12%, transparent);
}

/* The board's shapes, sizes and timings. */
:root {
  --board-radius: 1.25rem;
  --board-radius-column: 1rem;
  --board-radius-step: 0.75rem;
  --board-radius-card: 0.75rem;
  --board-lead-width: 46rem;
  --board-column-min: 9.5rem;
  --board-table-min: 60rem;
  --board-column-height: 20rem; /* was 27rem: the columns were mostly empty */
  --board-column-height-phone: 20rem;
  --board-starts-lines: 2lh;
  --board-starts-lines-phone: 4lh;
  --board-rest: color-mix(in srgb, #F3EBD6 7%, transparent);
  --board-rest-text: color-mix(in srgb, #F3EBD6 56%, #0E2A2B); /* was 42%: the quiet cards were hard to read */
  --board-pad-rest: 8px 10px;
  --board-column-phone: 78vw;
  --board-text-label: 0.75rem;
  --board-text-small: 0.8125rem;
  --board-leading-small: 1.35;
  --board-text-chip: 0.75rem;
  --board-tracking-label: 0.04em;
  --board-tracking-title: -0.012em; /* the moving card's title */
  --board-leading-title: 1.25;
  --board-text-title: 0.9375rem;
  --board-check: 1rem;             /* the check badge beside a done note */
  --board-pad-tab: 10px 18px;
  --board-pad-control: 8px 14px;
  --board-pad-chip: 2px 8px;
  --board-glow: 0 0 40px -16px var(--board-gold);
  --board-lift: 0 12px 32px -16px var(--board-deep);
  --board-lift-held: 0 22px 40px -16px var(--board-deep);
  --board-time-glow: 600ms;
  --board-time-step: 400ms;
  --board-time-arrive: 550ms;
}

/* The meadow transition and the workflow boards. */
:root {
  --board-meadow-fade: 24svh;
  --board-blur: 2px;
  /* Our products: a softer, lighter panel than the night boards (Andrew: too dark, too glowy). */
  --panel-soft: linear-gradient(135deg, color-mix(in srgb, color-mix(in srgb, #0E2A2B 80%, #8FBF6B) 90%, transparent), color-mix(in srgb, color-mix(in srgb, #0A1F20 86%, #8FBF6B) 88%, transparent));
  --panel-soft-lift: 0 10px 28px -18px color-mix(in srgb, #0A1F20 70%, transparent);
  --board-glass: color-mix(in srgb, #0A1F20 48%, transparent);
  --board-leaf: #4F7F6E;
  --board-flower-height: 6.875rem;
  --board-flower-space: 7.5rem;
  --board-garden-height: 46rem;
  --board-band-floor: 20rem;
  --board-garden-height-phone: 26rem;
  --board-band-floor-phone: 11rem;
  --board-hush: color-mix(in srgb, #0A1F20 92%, transparent);
  --board-hush-inset: -3rem -6rem;
  --board-beam: linear-gradient(color-mix(in srgb, #F3EBD6 14%, transparent), transparent 70%);
}
