/* Dynasty Studios design tokens (TOLD: the living manuscript). Generated by reference/tools/make_tokens.py;
   edit the script, not this file. Every text pair passes WCAG 2.2 AA 4.5:1 and every control boundary 3:1
   (report: reference/data/contrast.json).
   Fonts: SIL Open Font License 1.1, self-hosted (reference/assets/fonts.css, fonts/OFL.txt).

   How it works: the house sets the spine (type, space, motion, the crown); a world swaps only its palette and
   title face through [data-world]; a reader swaps the light through [data-light="up|half|down"].
   Up = paper, Half = dusk, Down = the world's own night grade. */

:root {
  /* house metal and lamp black: the spine, never a world colour */
  --ink: #0B0B0C;
  --ink-2: #151517;
  --ink-3: #1E1E21;
  --chalk: #F1EEE8;
  --chalk-mute: #A9A59D;
  --rule: #77736C;
  --hair: rgba(241, 238, 232, .14);
  --brass: #B8914F;
  --brass-hi: #D3AE6E;
  --on-brass: #0B0B0C;

  /* type families (all OFL 1.1) */
  --f-read: "Literata", "Noto Serif Orthography", "Iowan Old Style", Georgia, serif;
  --f-display: "Literata", "Noto Serif Orthography", "Iowan Old Style", Georgia, serif;
  --f-ui: "Atkinson Hyperlegible Next", "Noto Sans Orthography", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Atkinson Hyperlegible Mono", "Noto Sans Orthography", ui-monospace, Menlo, Consolas, monospace;
  --f-title: var(--f-display);
  --title-wt: 800; --title-style: italic; --title-wd: 100; --title-ls: -.02em; --title-case: none;

  /* type scale: a 1.25 ratio on a 17px interface base; reading text has its own scale */
  --fs-label: 13px;    /* the floor: nothing on the site is set smaller */
  --fs-small: 14.5px;
  --fs-ui: 16px;
  --fs-body: 17px;
  --fs-lede: 21px;
  --fs-h4: 24px;
  --fs-h3: clamp(26px, 2.2vw, 34px);
  --fs-h2: clamp(40px, 5vw, 80px);
  --fs-h1: clamp(56px, 9vw, 140px);
  --fs-hero: clamp(64px, 14.4vw, 236px);
  --fs-read: 21px;     /* reader default; 19.5px under 860px; the reader can step it from 17 to 29 */
  --lh-read: 1.64;
  --measure: 34em;     /* about 66 characters at the reading size */

  /* space: 4px base */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --gut: clamp(16px, 4vw, 56px);
  --wrap: 1320px;
  --bar: 64px;
  --target: 44px;      /* every control; WCAG 2.5.8 asks for 24 */
  --radius: 2px;       /* cut, not rounded: paper and metal edges */
  --radius-pill: 22px; /* only the selection pill and the floating pen */

  /* motion: one dominant motion per screen, every motion has a visible cause */
  --t-instant: 0ms;
  --t-quick: 120ms;    /* hover, press, chip toggle */
  --t-base: 240ms;     /* sheets, popovers, menus */
  --t-ink: 350ms;      /* a word changing from untold to told */
  --t-slow: 600ms;     /* world ground changing on the home tellings */
  --t-dip: 900ms;      /* EDEN: colour rising through a told line */
  --t-hold: 2600ms;    /* a telling rests on its last word before the next */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-in-out: cubic-bezier(.6, 0, .3, 1);
  --ease-cut: steps(1, end);

  /* texture: one quiet grain, off under reduced data and forced colours */
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.1 -.2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --grain-opacity: .09;

  /* the aperture: the shape a world cuts its pictures with (house: a plain frame) */
  --aperture: none;
}

:root {
  --ground: #0B0B0C;
  --surface: #151517;
  --raised: #1E1E21;
  --text: #F1EEE8;
  --mute: #A9A59D;
  --untold: #B9B4AB;
  --told: #FFFFFF;
  --now: #F1EEE8;
  --voice: #F1EEE8;
  --accent: #B8914F;
  --accent-text: #D3AE6E;
  --gl: #D3CFC7;
  --line: #77736C;
  --focus: #FFFFFF;
  --focus-halo: #0B0B0C;
  --tier-book: #E9E4DA;
  --tier-attested: #86BFAE;
  --tier-disputed: #A3B6E0;
  --tier-dramatised: #E3976B;
  --tier-inference: #B3AEA5;
  --crown: #B8914F;
  --crown-hi: #D3AE6E;
  --crown-ink: #0B0B0C;
  --hair: rgba(255, 255, 255, .12);
  color-scheme: dark;
}

/* house light states for pages without a world (policy pages, library, checkout) */

[data-light="up"] {
  --ground: #F3EEE4;
  --surface: #FBF8F2;
  --raised: #FFFFFF;
  --text: #1B1712;
  --mute: #5D554B;
  --untold: #4C453C;
  --told: #0F0C09;
  --now: #7A4A00;
  --voice: #7A4A00;
  --accent: #7A4A00;
  --accent-text: #7A4A00;
  --gl: #3D3730;
  --line: #8A8073;
  --focus: #7A4A00;
  --focus-halo: #FFFFFF;
  --tier-book: #1E1A16;
  --tier-attested: #2C6656;
  --tier-disputed: #34508A;
  --tier-dramatised: #8E4322;
  --tier-inference: #5C554C;
  --crown: #8C6A2E;
  --crown-hi: #73561F;
  --crown-ink: #FFFFFF;
  --hair: rgba(0, 0, 0, .12);
  color-scheme: light;
}

[data-light="half"] {
  --ground: #1E2227;
  --surface: #272C32;
  --raised: #30363D;
  --text: #E7E4DE;
  --mute: #B2AFA8;
  --untold: #BDBAB3;
  --told: #FFFFFF;
  --now: #F4D58C;
  --voice: #F4D58C;
  --accent: #B8914F;
  --accent-text: #E2C285;
  --gl: #D6D2CA;
  --line: #7C838B;
  --focus: #FFFFFF;
  --focus-halo: #0B0B0C;
  --tier-book: #E9E4DA;
  --tier-attested: #86BFAE;
  --tier-disputed: #A3B6E0;
  --tier-dramatised: #E3976B;
  --tier-inference: #B3AEA5;
  --crown: #B8914F;
  --crown-hi: #D3AE6E;
  --crown-ink: #0B0B0C;
  --hair: rgba(255, 255, 255, .12);
  color-scheme: dark;
}


/* ---------------------------------------------------------------- worlds */

/* ekaladerhan: default light = night */

[data-world="ekaladerhan"] {
  --ground: #120C08;
  --surface: #1E140D;
  --raised: #2A1C12;
  --text: #EDE7DD;
  --mute: #A99B89;
  --untold: #B4A999;
  --told: #F8F4EE;
  --now: #F2814F;
  --voice: #E8703D;
  --accent: #C2532B;
  --accent-text: #E08A5F;
  --gl: #C9CDD0;
  --line: #86705C;
  --focus: #FFFFFF;
  --focus-halo: #0B0B0C;
  --tier-book: #E9E4DA;
  --tier-attested: #86BFAE;
  --tier-disputed: #A3B6E0;
  --tier-dramatised: #E3976B;
  --tier-inference: #B3AEA5;
  --crown: #B8914F;
  --crown-hi: #D3AE6E;
  --crown-ink: #0B0B0C;
  --hair: rgba(255, 255, 255, .12);
  color-scheme: dark;
  --f-title: "Castoro Titling", "Literata", "Noto Serif Orthography", Georgia, serif;
  --title-wt: 400; --title-style: normal; --title-wd: 100; --title-ls: .04em; --title-case: uppercase;
}

[data-world="ekaladerhan"][data-light="down"], [data-world="ekaladerhan"] [data-light="down"] {
  --ground: #120C08;
  --surface: #1E140D;
  --raised: #2A1C12;
  --text: #EDE7DD;
  --mute: #A99B89;
  --untold: #B4A999;
  --told: #F8F4EE;
  --now: #F2814F;
  --voice: #E8703D;
  --accent: #C2532B;
  --accent-text: #E08A5F;
  --gl: #C9CDD0;
  --line: #86705C;
  --focus: #FFFFFF;
  --focus-halo: #0B0B0C;
  --tier-book: #E9E4DA;
  --tier-attested: #86BFAE;
  --tier-disputed: #A3B6E0;
  --tier-dramatised: #E3976B;
  --tier-inference: #B3AEA5;
  --crown: #B8914F;
  --crown-hi: #D3AE6E;
  --crown-ink: #0B0B0C;
  --hair: rgba(255, 255, 255, .12);
  color-scheme: dark;
}

[data-world="ekaladerhan"][data-light="up"], [data-world="ekaladerhan"] [data-light="up"] {
  --ground: #EFE4D0;
  --surface: #F7EFE2;
  --raised: #FFFFFF;
  --text: #2A1A10;
  --mute: #69503F;
  --untold: #5B4636;
  --told: #1A0F08;
  --now: #9C3412;
  --voice: #A23A17;
  --accent: #A23A17;
  --accent-text: #8E2F10;
  --gl: #3F4448;
  --line: #8F775F;
  --focus: #7A4A00;
  --focus-halo: #FFFFFF;
  --tier-book: #1E1A16;
  --tier-attested: #2C6656;
  --tier-disputed: #34508A;
  --tier-dramatised: #8E4322;
  --tier-inference: #5C554C;
  --crown: #8C6A2E;
  --crown-hi: #73561F;
  --crown-ink: #FFFFFF;
  --hair: rgba(0, 0, 0, .12);
  color-scheme: light;
}

[data-world="ekaladerhan"][data-light="half"], [data-world="ekaladerhan"] [data-light="half"] {
  --ground: #1E2227;
  --surface: #272C32;
  --raised: #30363D;
  --text: #E7E4DE;
  --mute: #B2AFA8;
  --untold: #BDBAB3;
  --told: #FFFFFF;
  --now: #F2814F;
  --voice: #E8703D;
  --accent: #B8914F;
  --accent-text: #E2C285;
  --gl: #D6D2CA;
  --line: #7C838B;
  --focus: #FFFFFF;
  --focus-halo: #0B0B0C;
  --tier-book: #E9E4DA;
  --tier-attested: #86BFAE;
  --tier-disputed: #A3B6E0;
  --tier-dramatised: #E3976B;
  --tier-inference: #B3AEA5;
  --crown: #B8914F;
  --crown-hi: #D3AE6E;
  --crown-ink: #0B0B0C;
  --hair: rgba(255, 255, 255, .12);
  color-scheme: dark;
}

/* 13-moons: default light = night */

[data-world="13-moons"] {
  --ground: #0E0B07;
  --surface: #19130C;
  --raised: #241B11;
  --text: #E6DED0;
  --mute: #A39887;
  --untold: #9DA8AD;
  --told: #F3E3C6;
  --now: #F0A050;
  --voice: #E8963F;
  --accent: #B2C8CA;
  --accent-text: #B2C8CA;
  --gl: #B2C8CA;
  --line: #806F59;
  --focus: #FFFFFF;
  --focus-halo: #0B0B0C;
  --tier-book: #E9E4DA;
  --tier-attested: #86BFAE;
  --tier-disputed: #A3B6E0;
  --tier-dramatised: #E3976B;
  --tier-inference: #B3AEA5;
  --crown: #B8914F;
  --crown-hi: #D3AE6E;
  --crown-ink: #0B0B0C;
  --hair: rgba(255, 255, 255, .12);
  color-scheme: dark;
  --f-title: "Gloock", "Literata", "Noto Serif Orthography", Georgia, serif;
  --title-wt: 400; --title-style: normal; --title-wd: 100; --title-ls: 0; --title-case: none;
}

[data-world="13-moons"][data-light="down"], [data-world="13-moons"] [data-light="down"] {
  --ground: #0E0B07;
  --surface: #19130C;
  --raised: #241B11;
  --text: #E6DED0;
  --mute: #A39887;
  --untold: #9DA8AD;
  --told: #F3E3C6;
  --now: #F0A050;
  --voice: #E8963F;
  --accent: #B2C8CA;
  --accent-text: #B2C8CA;
  --gl: #B2C8CA;
  --line: #806F59;
  --focus: #FFFFFF;
  --focus-halo: #0B0B0C;
  --tier-book: #E9E4DA;
  --tier-attested: #86BFAE;
  --tier-disputed: #A3B6E0;
  --tier-dramatised: #E3976B;
  --tier-inference: #B3AEA5;
  --crown: #B8914F;
  --crown-hi: #D3AE6E;
  --crown-ink: #0B0B0C;
  --hair: rgba(255, 255, 255, .12);
  color-scheme: dark;
}

[data-world="13-moons"][data-light="up"], [data-world="13-moons"] [data-light="up"] {
  --ground: #ECE5D8;
  --surface: #F5F0E7;
  --raised: #FFFFFF;
  --text: #1F1910;
  --mute: #5E5445;
  --untold: #4E4639;
  --told: #120D07;
  --now: #8A4B10;
  --voice: #8A4B10;
  --accent: #3D5A5E;
  --accent-text: #3D5A5E;
  --gl: #3D5A5E;
  --line: #8C7F6B;
  --focus: #7A4A00;
  --focus-halo: #FFFFFF;
  --tier-book: #1E1A16;
  --tier-attested: #2C6656;
  --tier-disputed: #34508A;
  --tier-dramatised: #8E4322;
  --tier-inference: #5C554C;
  --crown: #8C6A2E;
  --crown-hi: #73561F;
  --crown-ink: #FFFFFF;
  --hair: rgba(0, 0, 0, .12);
  color-scheme: light;
}

[data-world="13-moons"][data-light="half"], [data-world="13-moons"] [data-light="half"] {
  --ground: #1E2227;
  --surface: #272C32;
  --raised: #30363D;
  --text: #E7E4DE;
  --mute: #B2AFA8;
  --untold: #BDBAB3;
  --told: #FFFFFF;
  --now: #F0A050;
  --voice: #E8963F;
  --accent: #B8914F;
  --accent-text: #E2C285;
  --gl: #D6D2CA;
  --line: #7C838B;
  --focus: #FFFFFF;
  --focus-halo: #0B0B0C;
  --tier-book: #E9E4DA;
  --tier-attested: #86BFAE;
  --tier-disputed: #A3B6E0;
  --tier-dramatised: #E3976B;
  --tier-inference: #B3AEA5;
  --crown: #B8914F;
  --crown-hi: #D3AE6E;
  --crown-ink: #0B0B0C;
  --hair: rgba(255, 255, 255, .12);
  color-scheme: dark;
}

/* eden: default light = paper */

[data-world="eden"] {
  --ground: #EAE2D6;
  --surface: #F3EEE6;
  --raised: #FFFFFF;
  --text: #1D1A17;
  --mute: #5A5148;
  --untold: #57504A;
  --told: #1F3460;
  --now: #9B1B1F;
  --voice: #26406A;
  --accent: #9B1B1F;
  --accent-text: #9B1B1F;
  --gl: #26406A;
  --line: #867A6D;
  --focus: #7A4A00;
  --focus-halo: #FFFFFF;
  --tier-book: #1E1A16;
  --tier-attested: #2C6656;
  --tier-disputed: #34508A;
  --tier-dramatised: #8E4322;
  --tier-inference: #5C554C;
  --crown: #8C6A2E;
  --crown-hi: #73561F;
  --crown-ink: #FFFFFF;
  --hair: rgba(0, 0, 0, .12);
  color-scheme: light;
  --f-title: "Bodoni Moda", "Literata", "Noto Serif Orthography", Georgia, serif;
  --title-wt: 500; --title-style: normal; --title-wd: 100; --title-ls: .14em; --title-case: uppercase;
}

[data-world="eden"][data-light="down"], [data-world="eden"] [data-light="down"] {
  --ground: #111E2D;
  --surface: #18283A;
  --raised: #203248;
  --text: #EEF0F3;
  --mute: #AEB8C6;
  --untold: #B6C0CD;
  --told: #FFFFFF;
  --now: #F2A39C;
  --voice: #9FB6DD;
  --accent: #E0645E;
  --accent-text: #F2A39C;
  --gl: #9FB6DD;
  --line: #667B97;
  --focus: #FFFFFF;
  --focus-halo: #0B0B0C;
  --tier-book: #E9E4DA;
  --tier-attested: #86BFAE;
  --tier-disputed: #A3B6E0;
  --tier-dramatised: #E3976B;
  --tier-inference: #B3AEA5;
  --crown: #B8914F;
  --crown-hi: #D3AE6E;
  --crown-ink: #0B0B0C;
  --hair: rgba(255, 255, 255, .12);
  color-scheme: dark;
}

[data-world="eden"][data-light="up"], [data-world="eden"] [data-light="up"] {
  --ground: #EAE2D6;
  --surface: #F3EEE6;
  --raised: #FFFFFF;
  --text: #1D1A17;
  --mute: #5A5148;
  --untold: #57504A;
  --told: #1F3460;
  --now: #9B1B1F;
  --voice: #26406A;
  --accent: #9B1B1F;
  --accent-text: #9B1B1F;
  --gl: #26406A;
  --line: #867A6D;
  --focus: #7A4A00;
  --focus-halo: #FFFFFF;
  --tier-book: #1E1A16;
  --tier-attested: #2C6656;
  --tier-disputed: #34508A;
  --tier-dramatised: #8E4322;
  --tier-inference: #5C554C;
  --crown: #8C6A2E;
  --crown-hi: #73561F;
  --crown-ink: #FFFFFF;
  --hair: rgba(0, 0, 0, .12);
  color-scheme: light;
}

[data-world="eden"][data-light="half"], [data-world="eden"] [data-light="half"] {
  --ground: #1E2227;
  --surface: #272C32;
  --raised: #30363D;
  --text: #E7E4DE;
  --mute: #B2AFA8;
  --untold: #BDBAB3;
  --told: #FFFFFF;
  --now: #F2A39C;
  --voice: #9FB6DD;
  --accent: #B8914F;
  --accent-text: #E2C285;
  --gl: #D6D2CA;
  --line: #7C838B;
  --focus: #FFFFFF;
  --focus-halo: #0B0B0C;
  --tier-book: #E9E4DA;
  --tier-attested: #86BFAE;
  --tier-disputed: #A3B6E0;
  --tier-dramatised: #E3976B;
  --tier-inference: #B3AEA5;
  --crown: #B8914F;
  --crown-hi: #D3AE6E;
  --crown-ink: #0B0B0C;
  --hair: rgba(255, 255, 255, .12);
  color-scheme: dark;
}

/* white-chip: default light = paper */

[data-world="white-chip"] {
  --ground: #ECE8E3;
  --surface: #F6F3EF;
  --raised: #FFFFFF;
  --text: #10221D;
  --mute: #4F5B57;
  --untold: #505C58;
  --told: #08193A;
  --now: #9B191D;
  --voice: #9B191D;
  --accent: #122C26;
  --accent-text: #1B4A3E;
  --gl: #08193A;
  --line: #76827D;
  --focus: #7A4A00;
  --focus-halo: #FFFFFF;
  --tier-book: #1E1A16;
  --tier-attested: #2C6656;
  --tier-disputed: #34508A;
  --tier-dramatised: #8E4322;
  --tier-inference: #5C554C;
  --crown: #8C6A2E;
  --crown-hi: #73561F;
  --crown-ink: #FFFFFF;
  --hair: rgba(0, 0, 0, .12);
  color-scheme: light;
  --f-title: "Archivo", "Atkinson Hyperlegible Next", "Noto Sans Orthography", system-ui, sans-serif;
  --title-wt: 900; --title-style: normal; --title-wd: 112; --title-ls: -.03em; --title-case: uppercase;
}

[data-world="white-chip"][data-light="down"], [data-world="white-chip"] [data-light="down"] {
  --ground: #0A1530;
  --surface: #101D3D;
  --raised: #17264A;
  --text: #F4F1EC;
  --mute: #B7BFCF;
  --untold: #C0C7D4;
  --told: #FFFFFF;
  --now: #F08A8C;
  --voice: #F08A8C;
  --accent: #7FC4A8;
  --accent-text: #9AD3BB;
  --gl: #C9D6F2;
  --line: #62729A;
  --focus: #FFFFFF;
  --focus-halo: #0B0B0C;
  --tier-book: #E9E4DA;
  --tier-attested: #86BFAE;
  --tier-disputed: #A3B6E0;
  --tier-dramatised: #E3976B;
  --tier-inference: #B3AEA5;
  --crown: #B8914F;
  --crown-hi: #D3AE6E;
  --crown-ink: #0B0B0C;
  --hair: rgba(255, 255, 255, .12);
  color-scheme: dark;
}

[data-world="white-chip"][data-light="up"], [data-world="white-chip"] [data-light="up"] {
  --ground: #ECE8E3;
  --surface: #F6F3EF;
  --raised: #FFFFFF;
  --text: #10221D;
  --mute: #4F5B57;
  --untold: #505C58;
  --told: #08193A;
  --now: #9B191D;
  --voice: #9B191D;
  --accent: #122C26;
  --accent-text: #1B4A3E;
  --gl: #08193A;
  --line: #76827D;
  --focus: #7A4A00;
  --focus-halo: #FFFFFF;
  --tier-book: #1E1A16;
  --tier-attested: #2C6656;
  --tier-disputed: #34508A;
  --tier-dramatised: #8E4322;
  --tier-inference: #5C554C;
  --crown: #8C6A2E;
  --crown-hi: #73561F;
  --crown-ink: #FFFFFF;
  --hair: rgba(0, 0, 0, .12);
  color-scheme: light;
}

[data-world="white-chip"][data-light="half"], [data-world="white-chip"] [data-light="half"] {
  --ground: #1E2227;
  --surface: #272C32;
  --raised: #30363D;
  --text: #E7E4DE;
  --mute: #B2AFA8;
  --untold: #BDBAB3;
  --told: #FFFFFF;
  --now: #F08A8C;
  --voice: #F08A8C;
  --accent: #B8914F;
  --accent-text: #E2C285;
  --gl: #D6D2CA;
  --line: #7C838B;
  --focus: #FFFFFF;
  --focus-halo: #0B0B0C;
  --tier-book: #E9E4DA;
  --tier-attested: #86BFAE;
  --tier-disputed: #A3B6E0;
  --tier-dramatised: #E3976B;
  --tier-inference: #B3AEA5;
  --crown: #B8914F;
  --crown-hi: #D3AE6E;
  --crown-ink: #0B0B0C;
  --hair: rgba(255, 255, 255, .12);
  color-scheme: dark;
}

/* the-kings-question: default light = night */

[data-world="the-kings-question"] {
  --ground: #172029;
  --surface: #1F2A35;
  --raised: #283542;
  --text: #E8ECEF;
  --mute: #A3AFB9;
  --untold: #AAB5BF;
  --told: #FFFFFF;
  --now: #E9B676;
  --voice: #E0AE6E;
  --accent: #8FA6B8;
  --accent-text: #B6C6D3;
  --gl: #E0AE6E;
  --line: #647789;
  --focus: #FFFFFF;
  --focus-halo: #0B0B0C;
  --tier-book: #E9E4DA;
  --tier-attested: #86BFAE;
  --tier-disputed: #A3B6E0;
  --tier-dramatised: #E3976B;
  --tier-inference: #B3AEA5;
  --crown: #B8914F;
  --crown-hi: #D3AE6E;
  --crown-ink: #0B0B0C;
  --hair: rgba(255, 255, 255, .12);
  color-scheme: dark;
  --f-title: "Forum", "Literata", "Noto Serif Orthography", Georgia, serif;
  --title-wt: 400; --title-style: normal; --title-wd: 100; --title-ls: .005em; --title-case: none;
}

[data-world="the-kings-question"][data-light="down"], [data-world="the-kings-question"] [data-light="down"] {
  --ground: #172029;
  --surface: #1F2A35;
  --raised: #283542;
  --text: #E8ECEF;
  --mute: #A3AFB9;
  --untold: #AAB5BF;
  --told: #FFFFFF;
  --now: #E9B676;
  --voice: #E0AE6E;
  --accent: #8FA6B8;
  --accent-text: #B6C6D3;
  --gl: #E0AE6E;
  --line: #647789;
  --focus: #FFFFFF;
  --focus-halo: #0B0B0C;
  --tier-book: #E9E4DA;
  --tier-attested: #86BFAE;
  --tier-disputed: #A3B6E0;
  --tier-dramatised: #E3976B;
  --tier-inference: #B3AEA5;
  --crown: #B8914F;
  --crown-hi: #D3AE6E;
  --crown-ink: #0B0B0C;
  --hair: rgba(255, 255, 255, .12);
  color-scheme: dark;
}

[data-world="the-kings-question"][data-light="up"], [data-world="the-kings-question"] [data-light="up"] {
  --ground: #F1ECE2;
  --surface: #F8F5EE;
  --raised: #FFFFFF;
  --text: #1E242A;
  --mute: #545C64;
  --untold: #48515A;
  --told: #10161C;
  --now: #7E5016;
  --voice: #7E5016;
  --accent: #3D4A55;
  --accent-text: #3D4A55;
  --gl: #7E5016;
  --line: #83827D;
  --focus: #7A4A00;
  --focus-halo: #FFFFFF;
  --tier-book: #1E1A16;
  --tier-attested: #2C6656;
  --tier-disputed: #34508A;
  --tier-dramatised: #8E4322;
  --tier-inference: #5C554C;
  --crown: #8C6A2E;
  --crown-hi: #73561F;
  --crown-ink: #FFFFFF;
  --hair: rgba(0, 0, 0, .12);
  color-scheme: light;
}

[data-world="the-kings-question"][data-light="half"], [data-world="the-kings-question"] [data-light="half"] {
  --ground: #1E2227;
  --surface: #272C32;
  --raised: #30363D;
  --text: #E7E4DE;
  --mute: #B2AFA8;
  --untold: #BDBAB3;
  --told: #FFFFFF;
  --now: #E9B676;
  --voice: #E0AE6E;
  --accent: #B8914F;
  --accent-text: #E2C285;
  --gl: #D6D2CA;
  --line: #7C838B;
  --focus: #FFFFFF;
  --focus-halo: #0B0B0C;
  --tier-book: #E9E4DA;
  --tier-attested: #86BFAE;
  --tier-disputed: #A3B6E0;
  --tier-dramatised: #E3976B;
  --tier-inference: #B3AEA5;
  --crown: #B8914F;
  --crown-hi: #D3AE6E;
  --crown-ink: #0B0B0C;
  --hair: rgba(255, 255, 255, .12);
  color-scheme: dark;
}

/* the-finish-line: default light = night */

[data-world="the-finish-line"] {
  --ground: #4E2A16;
  --surface: #5B321C;
  --raised: #683A21;
  --text: #FBEBD0;
  --mute: #ECD1B3;
  --untold: #EBCFAF;
  --told: #FFF8EC;
  --now: #FFD27A;
  --voice: #FFD27A;
  --accent: #F4D49A;
  --accent-text: #F6DCA9;
  --gl: #F4D49A;
  --line: #B88660;
  --focus: #FFFFFF;
  --focus-halo: #1A0D05;
  --tier-book: #E9E4DA;
  --tier-attested: #86BFAE;
  --tier-disputed: #A3B6E0;
  --tier-dramatised: #E3976B;
  --tier-inference: #B3AEA5;
  --crown: #B8914F;
  --crown-hi: #D3AE6E;
  --crown-ink: #0B0B0C;
  --hair: rgba(255, 255, 255, .12);
  color-scheme: dark;
  --f-title: "Bricolage Grotesque", "Atkinson Hyperlegible Next", "Noto Sans Orthography", system-ui, sans-serif;
  --title-wt: 750; --title-style: normal; --title-wd: 82; --title-ls: -.03em; --title-case: none;
}

[data-world="the-finish-line"][data-light="down"], [data-world="the-finish-line"] [data-light="down"] {
  --ground: #4E2A16;
  --surface: #5B321C;
  --raised: #683A21;
  --text: #FBEBD0;
  --mute: #ECD1B3;
  --untold: #EBCFAF;
  --told: #FFF8EC;
  --now: #FFD27A;
  --voice: #FFD27A;
  --accent: #F4D49A;
  --accent-text: #F6DCA9;
  --gl: #F4D49A;
  --line: #B88660;
  --focus: #FFFFFF;
  --focus-halo: #1A0D05;
  --tier-book: #E9E4DA;
  --tier-attested: #86BFAE;
  --tier-disputed: #A3B6E0;
  --tier-dramatised: #E3976B;
  --tier-inference: #B3AEA5;
  --crown: #B8914F;
  --crown-hi: #D3AE6E;
  --crown-ink: #0B0B0C;
  --hair: rgba(255, 255, 255, .12);
  color-scheme: dark;
}

[data-world="the-finish-line"][data-light="up"], [data-world="the-finish-line"] [data-light="up"] {
  --ground: #F5EEE3;
  --surface: #FBF7F0;
  --raised: #FFFFFF;
  --text: #2A1A10;
  --mute: #634A39;
  --untold: #56402F;
  --told: #1A0F08;
  --now: #963C14;
  --voice: #A8461A;
  --accent: #A8461A;
  --accent-text: #8F3A12;
  --gl: #7A3A12;
  --line: #957C66;
  --focus: #7A4A00;
  --focus-halo: #FFFFFF;
  --tier-book: #1E1A16;
  --tier-attested: #2C6656;
  --tier-disputed: #34508A;
  --tier-dramatised: #8E4322;
  --tier-inference: #5C554C;
  --crown: #8C6A2E;
  --crown-hi: #73561F;
  --crown-ink: #FFFFFF;
  --hair: rgba(0, 0, 0, .12);
  color-scheme: light;
}

[data-world="the-finish-line"][data-light="half"], [data-world="the-finish-line"] [data-light="half"] {
  --ground: #1E2227;
  --surface: #272C32;
  --raised: #30363D;
  --text: #E7E4DE;
  --mute: #B2AFA8;
  --untold: #BDBAB3;
  --told: #FFFFFF;
  --now: #FFD27A;
  --voice: #FFD27A;
  --accent: #B8914F;
  --accent-text: #E2C285;
  --gl: #D6D2CA;
  --line: #7C838B;
  --focus: #FFFFFF;
  --focus-halo: #0B0B0C;
  --tier-book: #E9E4DA;
  --tier-attested: #86BFAE;
  --tier-disputed: #A3B6E0;
  --tier-dramatised: #E3976B;
  --tier-inference: #B3AEA5;
  --crown: #B8914F;
  --crown-hi: #D3AE6E;
  --crown-ink: #0B0B0C;
  --hair: rgba(255, 255, 255, .12);
  color-scheme: dark;
}


/* ---------------------------------------------------------------- preferences */
@media (prefers-reduced-motion: reduce) {
  :root { --t-quick: 0ms; --t-base: 0ms; --t-ink: 0ms; --t-slow: 0ms; --t-dip: 0ms; }
}
@media (prefers-reduced-data: reduce) {
  :root { --grain: none; --grain-opacity: 0; }
}
@media (forced-colors: active) {
  :root { --grain: none; --grain-opacity: 0; }
}
@media (prefers-contrast: more) {
  :root { --hair: currentColor; --grain-opacity: 0; }
}
