/* Fettle & Tunker Labs: shared app styles. Generated by fettle-and-tunker-brand/assets/source/gen_web.py.
   Don't edit this copy: change the generator, rebuild, and copy it into each app. */
/* The brand's fonts, shipped in fonts/ beside this file (gen_fonts.py); OFL licences alongside */
@font-face { font-family: 'Space Grotesk'; src: url('fonts/space-grotesk.woff2') format('woff2'); font-style: normal; font-weight: 500 700; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('fonts/ibm-plex-sans.woff2') format('woff2'); font-style: normal; font-weight: 400 600; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('fonts/ibm-plex-mono.woff2') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('fonts/ibm-plex-mono-medium.woff2') format('woff2'); font-style: normal; font-weight: 500; font-display: swap; }
:root {
  --ft-plum: #6B2E83; --ft-plum-dark: #4E1F61; --ft-plum-light: #EBDDF1; --ft-steel: #5A6472; --ft-live: #b4362a;
  --ft-display: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ft-sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ft-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ft-radius: 6px; --ft-radius-lg: 6px; --ft-radius-chip: 4px;
  /* The old brass names, kept so apps don't break; they point at the new colours, following the theme */
  --ft-brass: var(--ft-mark); --ft-brass-light: #EBDDF1; --ft-brass-dark: #4E1F61; --ft-copper: var(--ft-mark);
  --ft-ink-fixed: #22252B; --ft-cream: #FFFFFF; --ft-paper: #F3F4F6;
  --ft-brass-gradient: #6B2E83;
  --ft-serif: var(--ft-display);
  color-scheme: light;
  --ft-bg: #F3F4F6;
  --ft-panel: #FFFFFF;
  --ft-ink: #22252B;
  --ft-ink-2: #5A6472;
  --ft-muted: #5A6472;
  --ft-mark: #6B2E83;
  --ft-mark-dark: #4E1F61;
  --ft-on-mark: #FFFFFF;
  --ft-mark-soft: #F6EEF9;
  --ft-mark-edge: #DCC5E5;
  --ft-line: #D5D9DF;
  --ft-line-soft: #E4E7EB;
  --ft-edge: #7D8590;
  --ft-rule: #22252B;
  --ft-grid: rgba(34, 37, 43, .1);
  --ft-code: rgba(34, 37, 43, .06);
  --ft-up: #1E7A46;
  --ft-up-soft: #E8F5EC;
  --ft-down: #B3261E;
  --ft-down-soft: #FDECEA;
  --ft-warn: #8A5A00;
  --ft-warn-soft: #FFF4DB;
  --ft-info: #1D3F8F;
  --ft-info-soft: #EEF2FD;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ft-bg: #17191D;
  --ft-panel: #22252B;
  --ft-ink: #F3F4F6;
  --ft-ink-2: #B4BBC5;
  --ft-muted: #B4BBC5;
  --ft-mark: #D9B8E8;
  --ft-mark-dark: #EBDDF1;
  --ft-on-mark: #17191D;
  --ft-mark-soft: #3A2D44;
  --ft-mark-edge: #5C4568;
  --ft-line: rgba(243, 244, 246, .18);
  --ft-line-soft: rgba(243, 244, 246, .1);
  --ft-edge: rgba(243, 244, 246, .45);
  --ft-rule: #F3F4F6;
  --ft-grid: rgba(243, 244, 246, .12);
  --ft-code: rgba(255, 255, 255, .06);
  --ft-up: #8fcf98;
  --ft-up-soft: #2A3A31;
  --ft-down: #f0a08e;
  --ft-down-soft: #43302E;
  --ft-warn: #f0c674;
  --ft-warn-soft: #423A28;
  --ft-info: #A9C1FF;
  --ft-info-soft: #2C3448;
}

/* The brand line above each app's title: icon, then "Fettle & Tunker" */
.ft-brand { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font: 600 13px/1 var(--ft-sans);
  letter-spacing: .08em; text-transform: uppercase; color: var(--ft-mark); }
.ft-brand img { width: 24px; height: 24px; display: block; border-radius: 4px; }
.ft-tagline { font-style: italic; }

/* The header: brand, title and tagline over the signature 2px Ink rule */
.ft-header { padding-bottom: 20px; border-bottom: 2px solid var(--ft-rule); }
.ft-header h1 { font: 700 clamp(26px, 4vw, 40px)/1.05 var(--ft-display); letter-spacing: -.02em; margin: 0; }
.ft-rule { height: 0; border: 0; border-top: 2px solid var(--ft-rule); margin: 0; }
/* A Plum panel (the interstitial's left half, a call-out) */
.ft-frame { background: #6B2E83; color: #fff; }
.ft-frame .ft-brand, .ft-frame .ft-sub { color: #EBDDF1; }
.ft-frame a { color: #fff; }
/* Small capitals labels: FACT, NEXT ON YOUR PATH */
.ft-label { font: 600 13px/1.3 var(--ft-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ft-muted); }

/* Steps across the top of the workspace: Done, You are here, Next.
   <ol class="ft-stages"><li data-state="done|current|next"><a href="…"><span>Done</span>1 Data drops</a></li>… */
.ft-stages { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  border: 1px solid var(--ft-line); border-radius: var(--ft-radius); background: var(--ft-panel); overflow: hidden; }
.ft-stages li + li { border-left: 1px solid var(--ft-line-soft); }
.ft-stages a, .ft-stages li > span { display: flex; flex-direction: column; gap: 2px; min-height: 44px; padding: 12px 16px;
  color: var(--ft-ink); text-decoration: none; border-bottom: 4px solid var(--ft-line-soft); font-weight: 500; }
.ft-stages a > span, .ft-stages li > span > span { font-size: 13px; font-weight: 600; color: var(--ft-muted); }
.ft-stages [data-state="done"] > * { border-bottom-color: var(--ft-up); }
.ft-stages [data-state="done"] > * > span { color: var(--ft-up); }
.ft-stages [data-state="current"] > * { border-bottom-color: var(--ft-mark); background: var(--ft-mark-soft); font-weight: 600; }
.ft-stages [data-state="current"] > * > span { color: var(--ft-mark); }
@media (max-width: 640px) { .ft-stages { grid-auto-flow: row; } .ft-stages li + li { border-left: 0; border-top: 1px solid var(--ft-line-soft); } }

/* A plain-words note: where you are, a tip, or a status. Always words and an icon, never colour alone */
.ft-note { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: var(--ft-radius);
  border: 1px solid currentColor; background: var(--ft-info-soft); color: var(--ft-info); }
.ft-note[data-kind="up"] { background: var(--ft-up-soft); color: var(--ft-up); }
.ft-note[data-kind="warn"] { background: var(--ft-warn-soft); color: var(--ft-warn); }
.ft-note[data-kind="down"] { background: var(--ft-down-soft); color: var(--ft-down); }

/* Interstitial: the split card between steps (brand-guidelines.md, Interstitials) */
.ft-interstitial { max-width: 880px; margin: 48px auto; display: flex; flex-wrap: wrap; background: var(--ft-panel);
  border: 1px solid var(--ft-line); border-radius: var(--ft-radius); overflow: hidden; box-shadow: 0 8px 28px rgba(34, 37, 43, .12); }
.ft-interstitial > .ft-frame { flex: 1 1 300px; padding: 36px 32px; display: flex; flex-direction: column; gap: 24px; }
.ft-interstitial > .ft-frame .ft-count { font: 700 120px/0.9 var(--ft-display); }
.ft-interstitial > div:last-child { flex: 1.4 1 380px; padding: 40px 36px; display: flex; flex-direction: column; gap: 22px; }
.ft-interstitial h1 { font: 700 38px/1.1 var(--ft-display); letter-spacing: -.02em; margin: 0; }
@media (prefers-reduced-motion: no-preference) { .ft-interstitial { animation: ft-fade .2s ease-out; } }
@keyframes ft-fade { from { opacity: 0; } to { opacity: 1; } }

/* Testing version notice */
.ft-testing-banner { border: 1px solid var(--ft-down); border-left-width: 4px; border-radius: var(--ft-radius); padding: 8px 12px;
  margin: 0 0 16px; font-size: 14px; color: var(--ft-ink-2); }
.ft-testing-banner strong { color: var(--ft-down); }
/* LIVE: anything that writes to a live system or may cost money */
.live-badge { display: inline-block; font: 700 11px/1.4 var(--ft-sans); letter-spacing: .06em; vertical-align: middle;
  padding: 2px 7px; border-radius: 4px; background: var(--ft-live); color: #fff; margin-right: 6px; }
