/* Good Morning Advisory - design tokens (v1.3, October 2026)
   Accent: Lucky red. Light theme only. Do not add a dark theme or a prefers-color-scheme
   override: ink is used for bands and cards on a light page, never as the page background. */

:root {
  color-scheme: light;

  /* Palette */
  --gm-ink: #0F1830;          /* text, dark bands and cards */
  --gm-paper: #FFFFFF;        /* page background (the LINE image uses #FCFDFE) */
  --gm-slate: #4A5570;        /* secondary text on light */
  --gm-card: #EDF1F7;         /* cards and panels on light */
  --gm-red: #C41E3A;          /* Lucky red: the one accent. Tiles, icon circles, the marked word */
  --gm-red-on-dark: #EE6578;  /* the same red lifted one step, for text and strokes on ink */
  --gm-red-deep: #A51931;     /* pressed and hover states of red elements */
  --gm-mist: #C7D0E4;         /* secondary text on dark, hairlines */
  --gm-panel: #1C2747;        /* cards on a dark band */
  --gm-slate-muted: #6B7690;  /* captions, metadata */

  /* Roles */
  --gm-bg: var(--gm-paper);
  --gm-fg: var(--gm-ink);
  --gm-fg-muted: var(--gm-slate);
  --gm-surface: var(--gm-card);
  --gm-accent: var(--gm-red);
  --gm-accent-hover: var(--gm-red-deep);
  --gm-on-accent: var(--gm-paper);
  --gm-link: var(--gm-red);
  --gm-band-bg: var(--gm-ink);
  --gm-band-fg: var(--gm-paper);
  --gm-band-fg-muted: var(--gm-mist);
  --gm-band-accent: var(--gm-red-on-dark);
  --gm-band-surface: var(--gm-panel);

  /* Type */
  --gm-font-display: "Young Serif", Georgia, "Times New Roman", serif;
  --gm-font-text: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gm-text-xs: 0.75rem;
  --gm-text-sm: 0.875rem;
  --gm-text-md: 1rem;
  --gm-text-lg: 1.25rem;
  --gm-text-xl: 1.75rem;
  --gm-text-2xl: 2.5rem;
  --gm-text-3xl: 3.5rem;
  --gm-leading-tight: 1.1;
  --gm-leading-normal: 1.45;
  --gm-tracking-label: 0.16em;
  /* Web sizes of the type scale (guide §8): headings take these, never a new clamp() */
  --gm-fs-hero: clamp(2.25rem, 1.4rem + 4.2vw, 4rem);            /* display-hero: 36px on a phone to 64px */
  --gm-fs-title: clamp(2rem, 1.3rem + 3vw, 3.25rem);             /* display-title: 32 to 52px */
  --gm-fs-section: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);         /* display-section: 28 to 40px */
  --gm-fs-statement: clamp(1.25rem, 1.05rem + 0.9vw, 1.625rem);     /* text-statement, display-outcome: 20 to 26px */
  --gm-fs-lead: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);               /* text-lead: 18 to 21px */

  /* Shape and spacing */
  --gm-radius-card: 22px;
  --gm-radius-tile: 22.5%;   /* the gm tile: corner radius as a share of its side */
  --gm-radius-pill: 999px;
  --gm-space-1: 4px;
  --gm-space-2: 8px;
  --gm-space-3: 16px;
  --gm-space-4: 24px;
  --gm-space-5: 40px;
  --gm-space-6: 64px;
  --gm-gutter: 24px;
  --gm-measure: 62ch;

  /* Motion (guide §8, "gm wakes up"): once per page load, then still; nothing moves under reduced motion */
  --gm-ease-out: cubic-bezier(0.22, 1, 0.36, 1);       /* arrivals: a fast start and a long, soft landing */
  --gm-ease-standard: cubic-bezier(0.4, 0, 0.2, 1);    /* state changes: hover, press, colour */
  --gm-dur-fast: 160ms;                                /* hover and press: colour changes only */
  --gm-dur-base: 240ms;                                /* small reveals */
  --gm-dur-slow: 420ms;                                /* the tile settling in */
  --gm-dur-wake: 900ms;                                /* the wordmark unfolding; the marked phrase's stroke (x1.5) */
}

html, body {
  background: var(--gm-bg);
  color: var(--gm-fg);
  font-family: var(--gm-font-text);
  line-height: var(--gm-leading-normal);
}

h1, h2, h3, .gm-display {
  font-family: var(--gm-font-display);
  font-weight: 400;
  line-height: var(--gm-leading-tight);
  letter-spacing: -0.01em;
}

a { color: var(--gm-link); }
a:hover { color: var(--gm-accent-hover); }

/* Section label: small caps, red square in front */
.gm-label {
  font-size: var(--gm-text-sm);
  font-weight: 600;
  letter-spacing: var(--gm-tracking-label);
  text-transform: uppercase;
  color: var(--gm-fg-muted);
}

/* The marked word inside a display line: the word itself turns red (no tint block) */
.gm-mark { color: var(--gm-accent); }

/* Alternative: a red stroke under the word, used for the monogram and short headlines */
.gm-stroke {
  background-image: linear-gradient(var(--gm-accent), var(--gm-accent));
  background-size: 100% 9%;
  background-position: 0 86%;
  background-repeat: no-repeat;
  padding: 0 0.04em;
  margin: 0 -0.04em;
}

/* Dark band on a light page */
.gm-band {
  background: var(--gm-band-bg);
  color: var(--gm-band-fg);
}
.gm-band .gm-label { color: var(--gm-band-accent); }
.gm-band .gm-mark { color: var(--gm-band-accent); }
.gm-band .gm-stroke { background-image: linear-gradient(var(--gm-band-accent), var(--gm-band-accent)); }
.gm-band .gm-muted { color: var(--gm-band-fg-muted); }

/* Card and icon circle */
.gm-card {
  background: var(--gm-surface);
  border-radius: var(--gm-radius-card);
  padding: var(--gm-space-4);
}
.gm-band .gm-card { background: var(--gm-band-surface); }
.gm-icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--gm-accent);
  color: var(--gm-on-accent);
}

/* The mark, when drawn in CSS rather than from tile.svg */
.gm-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--gm-radius-tile);
  background: var(--gm-accent);
  color: var(--gm-on-accent);
  font-family: var(--gm-font-display);
  font-size: 1.56rem;        /* 0.52 of the tile */
  letter-spacing: -0.03em;
  line-height: 1;
}
