/* Orlino brand tokens: the single source of website brand colors and type.
   Values are recorded in openspec capability "website-brand"; change them there first.
   Not loaded by any page yet. Pages adopt it in their own changes and reference
   these tokens with var(); colour literals belong in this file only.
   Current direction (2026-10-21): white grounds; --brand-blue only for buttons, links and
   small accents. Yellow and the IP gradient are kept here but paused: no page may use them.
   The logo is undecided, so the site keeps its existing logo and favicon. */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-variable-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand palette: five fixed colours. */
  --brand-blue: #3264FF;
  --brand-yellow: #FFE34A;
  --brand-eye-blue: #4D83FF;
  --brand-black: #171717;
  --brand-white: #FFFFFF;

  /* Paused (2026-10-21): no page may reference --brand-yellow or the --brand-ip-gradient-* tokens. */
  /* IP yellow gradient: one continuous gradient over the whole character (body, hands, crown
     droplets, fused necks), laid out in the character's own coordinates, 135deg from top-left
     to bottom-right. Stops are --brand-yellow lightened and darkened by 10 HSL lightness points
     (hue 50.7deg and saturation 100% unchanged), with --brand-yellow itself at 50%. */
  --brand-ip-gradient-start: #FFEB7D;
  --brand-ip-gradient-end: #FFDB17;
  --brand-ip-gradient-angle: 135deg;
  --brand-ip-gradient: linear-gradient(var(--brand-ip-gradient-angle), var(--brand-ip-gradient-start) 0%, var(--brand-yellow) 50%, var(--brand-ip-gradient-end) 100%);

  /* Liquid droplets: translucent glass blue on white grounds. Fill and edges are colour-mixed
     with transparent; highlight values are SVG feSpecularLighting parameters; the goo threshold
     is the alpha row of the feColorMatrix that fuses neighbouring drops after the blur. */
  --brand-drop-fill-color: var(--brand-eye-blue);
  --brand-drop-fill-opacity: 0.16;
  --brand-drop-edge-color: var(--brand-blue);
  --brand-drop-edge-opacity: 0.28;
  --brand-drop-rim-opacity: 0.55;
  --brand-drop-rim-width: 1.4px;
  --brand-drop-highlight-color: var(--brand-white);
  --brand-drop-highlight-strength: 1.15;
  --brand-drop-highlight-exponent: 34;
  --brand-drop-blur: 11px;
  --brand-drop-goo: 24 -10;
  --brand-drop-fill: color-mix(in srgb, var(--brand-drop-fill-color) 16%, transparent);
  --brand-drop-edge: color-mix(in srgb, var(--brand-drop-edge-color) 28%, transparent);
  --brand-drop-rim: color-mix(in srgb, var(--brand-drop-edge-color) 55%, transparent);

  /* Light blue section ground: about --brand-blue mixed 8% into white. Fixed; do not derive again. */
  --brand-blue-soft: #EEF3FF;

  /* Functional colours. Never use them as brand accents. */
  --ui-text-muted: #5F6672;
  --ui-rule: #E8EAF0;
  --ui-surface: #F6F7FB;
  --ui-success: #1F7244;
  --ui-warning: #8A5300;
  --ui-error: #B42318;

  /* Calendar event categories (home page week calendar only; never elsewhere).
     Bills and reminders use brand blue: --brand-blue-soft ground, --brand-black text,
     --brand-blue accent bar. Workouts use green, dinners and plans use violet. */
  --cal-event-green-bg: #E3F5E8;
  --cal-event-green-ink: #1F7244;
  --cal-event-violet-bg: #EFEAFD;
  --cal-event-violet-ink: #5B3CC4;

  /* Product UI replica neutrals: only inside illustrative copies of the Orlino app interface
     (demo windows), matching the product exactly. Never for marketing copy or page chrome.
     Translucent strokes and shadows are colour-mixed from these with transparent. */
  --product-ui-ink: #0F1115;
  --product-ui-text: #3A3F45;
  --product-ui-muted: #61666B;
  --product-ui-faint: #ADB2B8;
  --product-ui-stroke: #E2E2E2;
  --product-ui-black: #000000;
  --product-ui-shadow-tint: #204E74;

  /* Type: self-hosted files only. */
  --brand-font-heading: "Instrument Sans", "Inter", system-ui, sans-serif;
  --brand-font-body: "Inter", system-ui, sans-serif;
  /* Small uppercase labels only (chapter numbers, "ILLUSTRATIVE UI", step labels); one weight, 500. */
  --brand-font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Focus: a near-black ring outlined in white, visible on white and on brand blue. */
  --brand-focus-ring: 0 0 0 2px var(--brand-white), 0 0 0 5px var(--brand-black), 0 0 0 7px var(--brand-white);

  /* Motion: one easing curve and three durations for the whole site. Reference these; never
     write easing curves or durations as literals. */
  --motion-ease: cubic-bezier(.2, .7, .2, 1);
  --motion-fast: 250ms;
  --motion-base: 600ms;
  --motion-slow: 900ms;
  --motion-stagger: 120ms;     /* step between lines or items entering one after another */
  /* The few sanctioned continuous loops (page spec, round 3): constant speed, never eased. */
  --motion-linear: linear;     /* constant-speed loops only */
  --motion-marquee: 110s;      /* people wall: one full pass, paused on hover */
  --motion-breath: 2400ms;     /* online dot: slow breathing */
}

/* Reduced motion: every duration collapses to zero, so anything built on the tokens lands on
   its final frame at once. Effects that move on their own must also be switched off. */
@media (prefers-reduced-motion: reduce) {
  :root {
    --motion-fast: 0ms;
    --motion-base: 0ms;
    --motion-slow: 0ms;
    /* Loops are stopped, not sped up: pair every loop with animation: none under reduced motion. */
  }
}

/* Buttons (M6). Two layers:
   .brand-btn + --primary / --secondary   full look and feel, for page buttons;
   .brand-btn-feel (+ --secondary)        feel only, for buttons that keep their own look
                                           (the site header).
   Put the arrow glyph in .brand-btn__arrow. Hover, press and the light sweep only apply with a
   fine pointer and when the visitor allows motion; on touch or reduced motion nothing changes. */
.brand-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 14px 24px;
  font: 600 15px/1.2 var(--brand-font-body);
  cursor: pointer;
  overflow: hidden;
  text-decoration: none;
}
.brand-btn--primary {
  border: 0;
  background: var(--brand-blue);
  color: var(--brand-white);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--brand-blue) 28%, transparent), inset 0 -3px 0 color-mix(in srgb, var(--brand-black) 12%, transparent);
}
.brand-btn--secondary {
  gap: 8px;
  padding: 13px 22px;
  border: 1.5px solid var(--brand-blue);
  background: var(--brand-white);
  color: var(--brand-blue);
}
.brand-btn:focus-visible, .brand-btn-feel:focus-visible { outline: none; box-shadow: var(--brand-focus-ring); }
.brand-btn__arrow { display: inline-block; }
.brand-btn-feel { position: relative; overflow: hidden; }
.brand-btn--primary::after, .brand-btn-feel:not(.brand-btn-feel--secondary)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--brand-white) 35%, transparent) 50%, transparent 70%);
  transform: translateX(-120%);
  pointer-events: none;
}
@keyframes brand-arrow-nudge { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(3px); } }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .brand-btn, .brand-btn-feel {
    transition: transform var(--motion-fast) var(--motion-ease), box-shadow var(--motion-fast) var(--motion-ease), background-color var(--motion-fast) var(--motion-ease);
  }
  .brand-btn__arrow { transition: transform var(--motion-fast) var(--motion-ease); }
  /* Primary: lift, the download arrow nods twice, one light sweep crosses once. */
  .brand-btn--primary:hover, .brand-btn-feel:not(.brand-btn-feel--secondary):hover { transform: translateY(-1px); }
  .brand-btn--primary:hover {
    box-shadow: 0 14px 28px color-mix(in srgb, var(--brand-blue) 32%, transparent), inset 0 -3px 0 color-mix(in srgb, var(--brand-black) 12%, transparent);
  }
  .brand-btn--primary:hover .brand-btn__arrow, .brand-btn-feel:not(.brand-btn-feel--secondary):hover .brand-btn__arrow {
    animation: brand-arrow-nudge var(--motion-slow) var(--motion-ease) 2;
  }
  .brand-btn--primary:hover::after, .brand-btn-feel:not(.brand-btn-feel--secondary):hover::after {
    transition: transform var(--motion-slow) var(--motion-ease);
    transform: translateX(120%);
  }
  /* Secondary: light-blue ground, the arrow shifts up and to the right. */
  .brand-btn--secondary:hover { background: var(--brand-blue-soft); }
  .brand-btn--secondary:hover .brand-btn__arrow, .brand-btn-feel--secondary:hover .brand-btn__arrow { transform: translate(2px, -2px); }
  /* Press: a small spring. */
  .brand-btn:active, .brand-btn-feel:active { transform: translateY(1px) scale(.985); transition-duration: calc(var(--motion-fast) / 3); }
}

/* Official Figma logo, exported from orlino-line-light (2026-11-05).
   Keep the wordmark artwork intact rather than recreating it as styled text. */
body a:is(.brand,.docs-brand,.orlino-header-brand) > img.orlino-brand-lockup {
  display:block;width:104px;height:auto;max-width:none;object-fit:contain;
  flex:none;border-radius:0;aspect-ratio:114/44;
}
@media(max-width:600px){body a:is(.brand,.docs-brand,.orlino-header-brand) > img.orlino-brand-lockup {width:94px;}}
