/* Generated from design/style-guide.src.html by design/build-site.py. Do not edit. */

/* =====================================================================
   1. PRIMITIVES — raw values. Pages never use these directly.
   ===================================================================== */
:root{
  /* Sea: the storm's greys, tinted teal. 950 is the abyss, 50 is salt. */
  --sea-950:#04090c; --sea-900:#08131a; --sea-850:#0c1b22; --sea-800:#112630; --sea-700:#1a3640;
  --sea-600:#2a4d58; --sea-500:#3f6772; --sea-400:#6a8f99; --sea-300:#93b2ba; --sea-200:#c0d4d8;
  --sea-100:#e3eeef; --sea-50:#f3f8f8;
  /* Bolt: lightning. The one accent. */
  --bolt-100:#e8f9ff; --bolt-200:#c4ecff; --bolt-400:#6fcfff; --bolt-600:#1588c9; --bolt-700:#0b6aa3;
  /* Verdicts. */
  --blood-400:#ff6372; --blood-600:#c4263b;
  --flare-400:#ffb547; --flare-700:#8a4f00;
  --kelp-400:#4bd6a0; --kelp-700:#0e7047;
  /* Magic's five colours, as matte sleeve colours. Identity markers only, never decoration. */
  --mana-w:#ece6d3; --mana-u:#2c7bd0; --mana-b:#43355e; --mana-r:#d9452f; --mana-g:#2f9a5c;
  /* Sleeves (card backs in the stack). */
  --storm-top:#0a171c; /* the hero's top edge = the browser tint above it */
  --sleeve-1:#0f3a44; --sleeve-2:#123441; --sleeve-edge:rgba(195,230,240,.22);
}

/* =====================================================================
   2. SEMANTIC TOKENS — what pages use. Two skies: the storm (default) and the dawn.
   ===================================================================== */
:root{
  color-scheme:dark;
  --fc-bg:var(--sea-950);
  --fc-surface:var(--sea-900);
  --fc-raised:var(--sea-850);
  --fc-sunken:#020507;
  --fc-line:rgba(147,178,186,.15);
  --fc-line-strong:rgba(147,178,186,.32);
  --fc-ink:var(--sea-100);
  --fc-ink-2:var(--sea-300);
  --fc-ink-3:var(--sea-400);
  --fc-accent:var(--bolt-200);
  --fc-accent-hover:var(--bolt-100);
  --fc-accent-ink:var(--sea-950);
  --fc-link:var(--bolt-400);
  --fc-focus:var(--bolt-400);
  --fc-error:var(--blood-400);  --fc-error-bg:rgba(255,99,114,.12);
  --fc-warn:var(--flare-400);   --fc-warn-bg:rgba(255,181,71,.12);
  --fc-ok:var(--kelp-400);      --fc-ok-bg:rgba(75,214,160,.11);
  --fc-fix:var(--bolt-400);     --fc-fix-bg:rgba(111,207,255,.11);
  --fc-code-bg:#020507;         --fc-code-ink:var(--sea-100); --fc-code-dim:var(--sea-400);
  --fc-selection:rgba(111,207,255,.3);
  --fc-shadow-1:0 1px 2px rgba(0,0,0,.5),0 4px 14px rgba(0,0,0,.35);
  --fc-shadow-2:0 24px 48px -16px rgba(0,0,0,.8);
  --sleeve-back:#0e2a33;
}

/* The dawn: the same roles after the storm breaks. html[data-sky="dawn"] swaps the
   primitives, so every semantic token above follows. Sea becomes ash and ember, the
   accent turns from lightning to first light. Fix stays a cool morning blue so it never
   reads as a warning. */
:root[data-sky="dawn"]{
  --sea-950:#0c0a0a; --sea-900:#15100f; --sea-850:#1b1513; --sea-800:#241b18; --sea-700:#33261f;
  --sea-600:#4d3a2f; --sea-500:#6e5646; --sea-400:#a08a78; --sea-300:#c4ae9a; --sea-200:#dccbb9;
  --sea-100:#f2e8db; --sea-50:#fbf5ed;
  --bolt-100:#fff1d6; --bolt-200:#ffd99a; --bolt-400:#ffb45c; --bolt-600:#d07a1c; --bolt-700:#a55c0f;
  --storm-top:#141a1f;
  --sleeve-back:#3a1a14;
  --fc-sunken:#060404; --fc-code-bg:#060404;
  --fc-line:rgba(214,180,150,.15); --fc-line-strong:rgba(214,180,150,.32);
  --fc-fix:#8cc8ff; --fc-fix-bg:rgba(140,200,255,.11);
  --fc-selection:rgba(255,180,92,.3);
}

/* Theme-independent tokens */
:root{
  --fc-font-display:"Big Shoulders Display","Barlow Condensed",Impact,sans-serif;
  --fc-font-text:"Barlow",system-ui,-apple-system,"Segoe UI",sans-serif;
  --fc-font-mono:"Red Hat Mono",ui-monospace,SFMono-Regular,Menlo,monospace;

  --fc-text-xs:.75rem;    /* 12  legal, footnotes */
  --fc-text-sm:.875rem;   /* 14  captions, labels */
  --fc-text-md:1rem;      /* 16  body */
  --fc-text-lg:1.125rem;  /* 18  lead body */
  --fc-text-xl:1.375rem;  /* 22  subhead */
  --fc-text-2xl:1.75rem;  /* 28  h3 */
  --fc-text-3xl:2.5rem;   /* 40  h2 (display face) */
  --fc-text-4xl:3.5rem;   /* 56  h2 large */
  --fc-text-hero:clamp(3.4rem,13.5vw,6rem); /* h1, display face, uppercase */
  --fc-leading-display:.88; --fc-leading-snug:1.2; --fc-leading-body:1.55;
  --fc-tracking-display:.004em; --fc-tracking-caps:.08em;

  --fc-space-1:4px; --fc-space-2:8px; --fc-space-3:12px; --fc-space-4:16px; --fc-space-5:24px;
  --fc-space-6:32px; --fc-space-7:48px; --fc-space-8:64px; --fc-space-9:96px; --fc-space-10:128px;
  --fc-gutter:16px; --fc-measure:68ch; --fc-page:1160px;

  --fc-radius-xs:4px; --fc-radius-sm:8px; --fc-radius-md:12px; --fc-radius-lg:16px; --fc-radius-pill:999px;
  --fc-radius-card:4.75% / 3.4%;   /* a real card's corner, as a share of its width/height */

  --fc-control-h:48px; --fc-control-h-sm:36px;
  --fc-border:1px; --fc-focus-ring:2px;

  --fc-shadow-card:0 40px 80px -24px rgba(0,0,0,.85),0 10px 22px rgba(0,0,0,.55);

  --fc-ease-out:cubic-bezier(.16,1,.3,1);
  --fc-ease-in-out:cubic-bezier(.65,0,.35,1);
  --fc-dur-fast:140ms; --fc-dur-base:240ms; --fc-dur-slow:480ms; --fc-dur-word:2400ms;
}
@media (min-width:760px){:root{--fc-gutter:32px}}

/* =====================================================================
   3. BASE
   ===================================================================== */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;background:var(--storm-top)}
body{margin:0;background:var(--storm-top);color:var(--fc-ink);font:var(--fc-text-md)/var(--fc-leading-body) var(--fc-font-text);font-variant-numeric:tabular-nums;overflow-x:hidden}
::selection{background:var(--fc-selection);color:inherit}
:focus-visible{outline:var(--fc-focus-ring) solid var(--fc-focus);outline-offset:3px;border-radius:var(--fc-radius-xs)}
a{color:var(--fc-link);text-decoration-thickness:1px;text-underline-offset:.22em;text-decoration-color:color-mix(in srgb,currentColor 45%,transparent)}
a:hover{text-decoration-color:currentColor}
html{scrollbar-color:var(--fc-line-strong) transparent}
code,kbd,pre{font-family:var(--fc-font-mono)}
img{max-width:100%;display:block}
.wrap{max-width:var(--fc-page);margin:0 auto;padding:0 var(--fc-gutter)}
.vh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
svg.i{width:18px;height:18px;flex:none;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* Type roles */
.fc-h1{font:900 var(--fc-text-hero)/var(--fc-leading-display) var(--fc-font-display);letter-spacing:var(--fc-tracking-display);text-transform:uppercase;margin:0;text-wrap:balance}
.fc-h2{font:800 clamp(var(--fc-text-3xl),7vw,var(--fc-text-4xl))/.95 var(--fc-font-display);text-transform:uppercase;letter-spacing:var(--fc-tracking-display);margin:0;text-wrap:balance}
.fc-h3{font:700 var(--fc-text-xl)/var(--fc-leading-snug) var(--fc-font-text);margin:0;letter-spacing:-.01em}
.fc-lead{font-size:var(--fc-text-xl);line-height:1.35;color:var(--fc-ink);margin:0;font-stretch:96%}
.fc-body{font-size:var(--fc-text-md);color:var(--fc-ink-2);margin:0;max-width:var(--fc-measure)}
.fc-small{font-size:var(--fc-text-sm);color:var(--fc-ink-3)}
.fc-note{font-size:var(--fc-text-sm);font-style:italic;color:var(--fc-ink-3)}
.fc-label{font:600 var(--fc-text-xs)/1 var(--fc-font-text);letter-spacing:var(--fc-tracking-caps);text-transform:uppercase;color:var(--fc-ink-3)}

/* =====================================================================
   4. COMPONENTS
   ===================================================================== */

/* Buttons */
.fc-btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--fc-space-2);min-height:var(--fc-control-h);padding:0 var(--fc-space-5);border-radius:var(--fc-radius-sm);border:var(--fc-border) solid transparent;font:700 var(--fc-text-md)/1 var(--fc-font-text);text-decoration:none;cursor:pointer;transition:background-color var(--fc-dur-fast) var(--fc-ease-out),border-color var(--fc-dur-fast),color var(--fc-dur-fast),transform var(--fc-dur-fast) var(--fc-ease-out),box-shadow var(--fc-dur-base) var(--fc-ease-out);-webkit-tap-highlight-color:transparent}
.fc-btn:active{transform:translateY(1px)}
.fc-btn--primary{background:var(--fc-accent);color:var(--fc-accent-ink);box-shadow:var(--fc-shadow-1)}
.fc-btn--primary:hover,.fc-btn--primary.is-hover{background:var(--fc-accent-hover);box-shadow:var(--fc-shadow-2)}
.fc-btn--secondary{background:transparent;color:var(--fc-ink);border-color:var(--fc-line-strong)}
.fc-btn--secondary:hover,.fc-btn--secondary.is-hover{border-color:var(--fc-ink-2);background:color-mix(in srgb,var(--fc-ink) 5%,transparent)}
.fc-btn--quiet{background:transparent;color:var(--fc-link);padding:0 var(--fc-space-2)}
.fc-btn--quiet:hover,.fc-btn--quiet.is-hover{text-decoration:underline;text-underline-offset:.22em}
.fc-btn--danger{background:transparent;color:var(--fc-error);border-color:color-mix(in srgb,var(--fc-error) 45%,transparent)}
.fc-btn--danger:hover,.fc-btn--danger.is-hover{background:var(--fc-error-bg)}
.fc-btn--sm{min-height:var(--fc-control-h-sm);padding:0 var(--fc-space-3);font-size:var(--fc-text-sm);border-radius:var(--fc-radius-xs)}
.fc-btn.is-focus{outline:var(--fc-focus-ring) solid var(--fc-focus);outline-offset:3px}
.fc-btn:disabled,.fc-btn[aria-disabled="true"]{opacity:.42;cursor:not-allowed;box-shadow:none;transform:none}
.fc-btn[aria-busy="true"]{cursor:progress}
.fc-btn[aria-busy="true"] .spin{animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* Inputs */
.fc-field{display:grid;gap:var(--fc-space-2);max-width:420px}
.fc-field label{font:600 var(--fc-text-sm)/1.2 var(--fc-font-text);color:var(--fc-ink)}
.fc-input{font:var(--fc-text-md)/1.2 var(--fc-font-text);color:var(--fc-ink);background:var(--fc-surface);min-height:var(--fc-control-h);padding:0 var(--fc-space-4);border:var(--fc-border) solid var(--fc-line-strong);border-radius:var(--fc-radius-sm);width:100%;caret-color:var(--fc-accent);transition:border-color var(--fc-dur-fast),box-shadow var(--fc-dur-fast)}
.fc-input::placeholder{color:var(--fc-ink-3)}
.fc-input:hover{border-color:var(--fc-ink-3)}
.fc-input:focus,.fc-input.is-focus{outline:none;border-color:var(--fc-focus);box-shadow:0 0 0 3px color-mix(in srgb,var(--fc-focus) 28%,transparent)}
.fc-input[aria-invalid="true"]{border-color:var(--fc-error);background:var(--fc-error-bg)}
.fc-input:disabled{opacity:.5;cursor:not-allowed}
.fc-help{font-size:var(--fc-text-sm);color:var(--fc-ink-3);margin:0}
.fc-help--error{color:var(--fc-error);display:flex;gap:var(--fc-space-2);align-items:center}

/* Tags (verdicts) */
.fc-tag{display:inline-flex;align-items:center;gap:6px;font:600 var(--fc-text-sm)/1.2 var(--fc-font-text);white-space:nowrap}
.fc-tag svg.i{width:15px;height:15px;stroke-width:2.25}
.fc-tag--ok{color:var(--fc-ok)}
.fc-tag--error{color:var(--fc-error)}
.fc-tag--warn{color:var(--fc-warn)}
.fc-tag--fix{color:var(--fc-fix)}
.fc-tag--plain{color:var(--fc-ink-3);font-weight:400;font-style:italic}

/* Colour identity pips: plain discs in the five sleeve colours. Not mana symbols. */
.fc-pips{display:inline-flex;gap:3px;flex:none}
.fc-pips i{width:10px;height:10px;border-radius:50%;display:block;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)}
.fc-pips .w{background:var(--mana-w);box-shadow:inset 0 0 0 1px rgba(0,0,0,.25)}.fc-pips .u{background:var(--mana-u)}.fc-pips .b{background:var(--mana-b)}.fc-pips .r{background:var(--mana-r)}.fc-pips .g{background:var(--mana-g)}
.fc-pips.many{gap:0}.fc-pips.many i+i{margin-left:-2px} /* four or five colours: overlap like a mana stack */

/* Sleeve row: one card in a decklist. State lives in the whole sleeve, never a side bar. */
.fc-sleeves{list-style:none;margin:0;padding:0;border-top:var(--fc-border) solid var(--fc-line)}
.fc-sleeve{display:flex;align-items:center;gap:var(--fc-space-3);min-height:48px;padding:10px var(--fc-space-3);border-bottom:var(--fc-border) solid var(--fc-line);font:500 var(--fc-text-md)/1.3 var(--fc-font-text);color:var(--fc-ink)}
.fc-sleeve .name{flex:1;min-width:0;overflow-wrap:anywhere}
.fc-sleeve.is-error{background:var(--fc-error-bg)}
.fc-sleeve.is-error .name{color:var(--fc-ink-2);text-decoration:line-through;text-decoration-color:var(--fc-error);text-decoration-thickness:1.5px}
.fc-sleeve.is-warn{background:var(--fc-warn-bg)}
.fc-sleeve.is-warn .name{color:var(--fc-ink-2);text-decoration:line-through;text-decoration-color:var(--fc-warn);text-decoration-thickness:1.5px}
.fc-sleeve.is-fix{background:var(--fc-fix-bg)}
.fc-sleeve.is-ok{background:var(--fc-ok-bg)}
.fc-sleeve.is-commander .name{font-weight:700}

/* Tool result: the essence of a validate_deck call */
.fc-result{background:var(--fc-code-bg);color:var(--fc-code-ink);border-radius:var(--fc-radius-md);padding:var(--fc-space-4);font:400 var(--fc-text-sm)/1.65 var(--fc-font-mono);overflow-x:auto;box-shadow:var(--fc-shadow-1)}
.fc-result .call{color:var(--fc-code-dim);display:flex;gap:8px;align-items:center;margin-bottom:var(--fc-space-2)}
.fc-result .call b{color:var(--bolt-400);font-weight:600}
.fc-result .h{display:block;font-weight:600;margin-top:var(--fc-space-2)}
.fc-result .h.e{color:var(--blood-400)}.fc-result .h.w{color:var(--flare-400)}.fc-result .h.f{color:var(--fc-fix)}.fc-result .h.v{color:var(--kelp-400)}
.fc-result .code{color:var(--fc-code-dim)}

/* Panel: the one container. No nesting. */
.fc-panel{background:var(--fc-surface);border:var(--fc-border) solid var(--fc-line);border-radius:var(--fc-radius-lg);padding:var(--fc-space-5);display:grid;gap:var(--fc-space-4);box-shadow:var(--fc-shadow-1)}

/* Banner */
.fc-banner{display:flex;gap:var(--fc-space-3);align-items:flex-start;padding:var(--fc-space-3) var(--fc-space-4);border-radius:var(--fc-radius-md);font-weight:600;font-size:var(--fc-text-sm);line-height:1.4}
.fc-banner--ok{background:var(--fc-ok-bg);color:var(--fc-ok)}
.fc-banner--error{background:var(--fc-error-bg);color:var(--fc-error)}
.fc-banner--warn{background:var(--fc-warn-bg);color:var(--fc-warn)}

/* Everything below the hero sits on the abyss; the body itself is the storm-top teal so Safari tints the status bar to match the hero. */
main>section:not(.fc-storm),.guide,.site-foot{background:var(--fc-bg)}

/* Footer: the one disclaimer, centred */
.site-foot{border-top:var(--fc-border) solid var(--fc-line);padding:var(--fc-space-6) var(--fc-gutter) var(--fc-space-7);color:var(--fc-ink-3);font-size:var(--fc-text-xs);line-height:1.6;text-align:center}
.site-foot p{margin:0 auto;max-width:100ch;text-wrap:balance}
.site-foot br{display:none} /* one break after the first sentence, wide screens only */
@media (min-width:760px){.site-foot br{display:inline}}
.site-foot a{color:inherit}
/* The wordmark: FIVECOLOR, slanted. Big Shoulders has no italic, so it's skewed: identical in every browser and in the OG image. */
.fc-wordmark{display:inline-block;transform:skewX(-11deg);padding-right:.06em}

/* Install: tabs + command + copy */
.fc-install{border-radius:var(--fc-radius-md);background:color-mix(in srgb,var(--sea-950) 86%,transparent);border:var(--fc-border) solid var(--fc-line-strong);box-shadow:var(--fc-shadow-2);overflow:hidden;color:var(--sea-100)}
.fc-tabs{display:flex;border-bottom:var(--fc-border) solid var(--fc-line)}
.fc-tab{appearance:none;flex:1;background:transparent;border:0;color:var(--sea-400);font:700 var(--fc-text-sm)/1 var(--fc-font-text);min-height:44px;padding:0 var(--fc-space-3);cursor:pointer;position:relative;transition:color var(--fc-dur-fast)}
.fc-tab:hover{color:var(--sea-200)}
.fc-tab[aria-selected="true"]{color:var(--sea-50)}
.fc-tab::after{content:"";position:absolute;left:var(--fc-space-3);right:var(--fc-space-3);bottom:-1px;height:2px;background:var(--bolt-200);transform:scaleX(0);transition:transform var(--fc-dur-base) var(--fc-ease-out)}
.fc-tab[aria-selected="true"]::after{transform:scaleX(1)}
.fc-tab:focus-visible{outline-offset:-4px}
/* Glint: a light passes over an unselected tab, a nudge that the other AIs are there too. Never selects it.
   Hides the text fill, not color: .fc-tab transitions color, so toggling color would fade the label back in (a blink). */
.fc-tab.glint{-webkit-text-fill-color:transparent;-webkit-background-clip:text;background-clip:text;
  background-image:linear-gradient(105deg,var(--sea-400) 38%,var(--sea-50) 50%,var(--sea-400) 62%);background-size:300% 100%;background-repeat:no-repeat;
  animation:tab-glint 1300ms var(--fc-ease-in-out) both}
@keyframes tab-glint{from{background-position:100% 0}to{background-position:0 0}}
.fc-cmd{display:flex;align-items:center;gap:var(--fc-space-2);padding:var(--fc-space-2) var(--fc-space-4)}
.fc-cmd code{flex:1 1 auto;min-width:0;font:500 var(--fc-text-md)/1.45 var(--fc-font-mono);color:var(--sea-50);white-space:nowrap;overflow-x:auto;padding:var(--fc-space-3) 0;scrollbar-width:none}
.fc-cmd code::-webkit-scrollbar{display:none}
.fc-cmd code .p{color:var(--sea-500);user-select:none}
.fc-cmd .fc-btn{background:var(--bolt-200);color:var(--sea-950);min-height:44px;padding:0 var(--fc-space-5);font-size:var(--fc-text-sm);flex:none}
.fc-cmd .fc-btn:hover{background:var(--bolt-100)}
.fc-cmd .fc-btn.done{background:var(--kelp-400)}
@media (max-width:760px){.fc-cmd{flex-wrap:wrap}.fc-cmd code{white-space:normal;overflow-wrap:anywhere;flex-basis:100%;font-size:var(--fc-text-sm)}.fc-cmd .fc-btn{width:100%}}
.fc-tabs .fc-tab{flex:0 1 180px}
.fc-install .hint{margin:0;padding:0 var(--fc-space-4) var(--fc-space-3);font-size:var(--fc-text-xs);color:var(--sea-400)}

@media (prefers-reduced-motion:reduce){
  .storm-layer,.dawn-layer,.dawn-rays{animation:none}
  html{scroll-behavior:auto}
  .swap span{filter:none;transform:none}
  *{transition-duration:1ms!important;animation-duration:1ms!important}
}
