/* Magic Memory Design System — generated from tokens.json */
:root, [data-theme="light"] {
  --mm-pink: #fb5cac; /* Signature fluorescent pink, the field: box, card back, leaflet, site chrome, used full bleed. mm-black text on it is 6.5:1; white text on it is 2.9:1, display type only. Never pink text on white (2.9:1). */
  --mm-pink-deep: #f03d97; /* Pressed and hover pink, slightly hotter. As the solid Button's label on white it is 3.6:1, under 4.5:1 at that size; kept as in the source. */
  --mm-pink-tint: #fda6cf; /* Soft pink for fills on white; the highlight colour inside a pink article. */
  --mm-pink-veil: #ffd6ea; /* Palest pink wash: solid Button hover, ::selection, inline code and mark backgrounds behind mm-black text (14.4:1). */
  --mm-black: #14110f; /* Ink: engravings, body text on white (18.8:1) and on pink (6.5:1). */
  --mm-ink-soft: #3a3330; /* Secondary ink and captions on white (12.4:1). On pink it is 4.3:1, so soft text on pink switches to mm-black. */
  --mm-white: #ffffff; /* Reading surface, and the voice on pink. White text on pink is 2.9:1: display type 24px and up. The outline Button and line SuitTag set it smaller, as in the source. */
  --mm-hairline: #e6e3e0; /* 1px rule and card keyline on white. Decorative only (1.3:1). */
  --mm-slate: #2c2e35; /* Card-front ink: text and engravings on white (13.6:1) and on every suit colour (5:1 or more). */
  --mm-major: #fcf305; /* MAJORS (figures), yellow. Overprint ink on white card fronts: the rotated verb, one graphic shape, the suit label. Multiply it over the engraving. Never text on white (1.2:1). */
  --mm-loci: #95dcf8; /* LOCI (space), cyan. Overprint ink, as mm-major; slate or black text on it. */
  --mm-loci-deep: #52d3f7; /* The print file's stronger LOCI value, for small marks that must read. */
  --mm-seals: #fed6c8; /* SEALS (symbols), peach. Overprint ink, as mm-major. */
  --mm-seals-deep: #ffbfaa; /* The print file's stronger SEALS value, for small marks. */
  --mm-hours: #dbe477; /* HOURS (time), lime. Overprint ink, as mm-major. */
  --mm-hours-deep: #bad967; /* The print file's stronger HOURS value, for small marks. */
  --mm-faces: #bab2d6; /* FACES (people), lavender. Overprint ink, as mm-major. */
  --mm-faces-deep: #939bd0; /* The print file's stronger FACES value, for small marks. */
  --mm-overlay: rgba(20, 17, 15, 0.6); /* Ink overlay behind modals and the focus view: mm-black at 60%, written out from the source's color-mix. Change it with mm-black. */
  --bg: var(--mm-pink); /* Default page world: pink. */
  --surface: var(--mm-pink); /* Default surface: pink. */
  --surface-white: var(--mm-white); /* A card or sheet on the pink. */
  --surface-ink: var(--mm-black); /* An inverted ink panel. */
  --text: var(--mm-white); /* Default voice on pink: display sizes only (2.9:1). */
  --text-on-white: var(--mm-black); /* Body text on white. */
  --text-on-white-soft: var(--mm-ink-soft); /* Secondary text on white. */
  --text-on-ink: var(--mm-pink); /* Pink type on black (6.5:1); reads electric. */
  --line: var(--mm-white); /* Rules and keylines on pink. */
  --line-hair: var(--mm-hairline); /* Hairlines on white. */
  --accent: var(--mm-pink); /* Accent: the pink. */
  --accent-press: var(--mm-pink-deep); /* Accent when pressed. */
  --suit-major: var(--mm-major); /* Major cards' colour. */
  --suit-loci: var(--mm-loci); /* LOCI cards' colour. */
  --suit-seals: var(--mm-seals); /* SEALS cards' colour. */
  --suit-hours: var(--mm-hours); /* HOURS cards' colour. */
  --suit-faces: var(--mm-faces); /* FACES cards' colour. */
  --text-on-suit: var(--mm-slate); /* Text on any suit colour. */
  --duotone-dark: var(--mm-black); /* Engraving duotone: the ink. */
  --duotone-light: var(--mm-pink); /* Engraving duotone: the field. */
  --read-bg: var(--mm-white); /* Article background (.mm-article). A pink article overrides the read-* set in components/bundle.css. */
  --read-text: var(--mm-black); /* Article text on read-bg (18.8:1). */
  --read-text-soft: var(--mm-ink-soft); /* Secondary article text on white: list numerals, captions, footnotes. */
  --read-rule: var(--mm-black); /* Keylines above h2, around quotes, under table heads. */
  --read-hair: var(--mm-hairline); /* Table row hairlines. */
  --read-mark: var(--mm-pink); /* Link underlines and list bullets. */
  --read-highlight: var(--mm-pink-veil); /* ::selection, inline code and mark backgrounds. */
  --shadow-none: none; /* Flat, the default. */
  --shadow-card: 0 2px 0 #14110f; /* Hard 2px offset in mm-black, like a printed card. */
  --shadow-lift: 0 14px 30px -16px rgba(20, 17, 15, 0.55); /* Soft lift: mm-black at 55%. */
  --shadow-sheet: 0 18px 40px -22px rgba(20, 17, 15, 0.5); /* A white sheet lifting off the pink; DeckCard on hover. mm-black at 50%. */
}
:root {
  --sp-1: 0.25rem; /* 4px. */
  --sp-2: 0.5rem; /* 8px. */
  --sp-3: 0.75rem; /* 12px. */
  --sp-4: 1rem; /* 16px. */
  --sp-5: 1.5rem; /* 24px. */
  --sp-6: 2rem; /* 32px. */
  --sp-7: 3rem; /* 48px. */
  --sp-8: 4rem; /* 64px. */
  --sp-9: 6rem; /* 96px. */
  --prose-gap: 1.15em; /* Space between paragraphs and blocks in .mm-article. */
  --prose-section: 2.75em; /* Space above an h2 in .mm-article. */
  --r-none: 0; /* The default: everything is hard-cornered. */
  --r-sm: 2px; /* Barely-there softening: Button, the rect Plate. */
  --r-md: 4px; /* A little softer, used rarely. */
  --r-card: 10px; /* The playing-card corner: DeckCard and card images. */
  --r-pill: 999px; /* Deliberate tags only: SuitTag. */
  --fs-3xl: clamp(3.5rem, 8vw, 7rem); /* Hero (.mm-hero). */
  --fs-2xl: clamp(2.5rem, 5vw, 4rem); /* Titles (.mm-title). */
  --fs-xl: 2.25rem; /* Section heads; the CardEmbed name. */
  --fs-lg: 1.5rem; /* Card names; the SubscribeBox title. */
  --fs-md: 1.125rem; /* Sub-heads. */
  --fs-body: 1rem; /* Running text; the body default. */
  --fs-sm: 0.8125rem; /* Captions, suit tags, labels, kickers, bylines. */
  --fs-xs: 0.6875rem; /* Micro labels. */
  --lh-tight: 1.02; /* Display: hero and titles. */
  --lh-snug: 1.18; /* Display at sub-head sizes. */
  --lh-body: 1.5; /* Running text. */
  --tr-display: 0.02em; /* Display tracking (.mm-hero). */
  --tr-tight: 0; /* No tracking. */
  --tr-label: 0.18em; /* Tracked-out labels: .mm-label, kickers, bylines. */
  --tr-wide: 0.42em; /* The M A G I C spread (.mm-spread). */
  --fw-regular: 400; /* Kraft Mono's single weight; body text weight. */
  --fs-prose: 1.1875rem; /* Article running text: 19px Newsreader. */
  --fs-prose-sm: 1rem; /* Footnotes and table text in articles. */
  --fs-caption: 0.8125rem; /* Kraft Mono captions and table heads in articles. */
  --fs-lede: 1.5rem; /* Standfirst: .mm-lede and the ArticleHeader dek. */
  --fs-h1-article: clamp(2rem, 4.6vw, 3.25rem); /* Article h1 and the ArticleHeader title. */
  --fs-h2-article: 1.625rem; /* Article h2. */
  --fs-h3-article: 1.0625rem; /* Article h3. */
  --fs-quote: clamp(1.375rem, 2.6vw, 1.875rem); /* Blockquotes and the md PullQuote. */
  --lh-prose: 1.58; /* Article running text. */
  --lh-heading: 1.12; /* Article h1 and h2. */
  --bd-hair: 1px; /* Hairline on white. */
  --bd-rule: 2px; /* The signature keyline: white on pink, ink on white. */
  --bd-heavy: 3px; /* Heavy keyline. */
  --measure: 62ch; /* Default text measure. */
  --container: 72rem; /* Page container width. */
  --card-ratio: 5 / 7; /* Playing-card aspect ratio. */
  --measure-prose: 40rem; /* Article column, about 68 characters of Newsreader. */
  --measure-wide: 56rem; /* Figures that break the article column (.mm-wide). */
  --justify-min: 30rem; /* Below this column width article text rags right. The container query in components/bundle.css repeats 30rem, as CSS cannot read a variable there. */
  --font-mono: "Kraft Mono", "Courier New", ui-monospace, monospace;
  --font-display: "Kraft Mono", "Courier New", ui-monospace, monospace;
  --font-body: "Newsreader", "Iowan Old Style", Georgia, serif;
  --text-section-head: 400 2.25rem/1.02 var(--font-display); /* Section heads (fs-xl, lh-tight). Uppercase. */
  --text-card-name: 400 1.5rem/1.02 var(--font-display); /* Card names (fs-lg, lh-tight). Uppercase. */
  --text-sub-head: 400 1.125rem/1.18 var(--font-display); /* Sub-heads (fs-md, lh-snug). Uppercase. */
  --text-label: 400 0.8125rem/1.5 var(--font-display); /* Captions, suit tags, kickers and bylines (fs-sm, tr-label; the .mm-label role). Uppercase. */
  --text-micro: 400 0.6875rem/1.5 var(--font-display); /* Micro labels (fs-xs). Uppercase. */
  --text-prose: 400 1.1875rem/1.58 var(--font-body); /* Article running text, ink on white (fs-prose, lh-prose; .mm-article). */
  --text-lede: 400 1.5rem/1.4 var(--font-body); /* Standfirst and dek (fs-lede; .mm-lede). */
  --text-body: 400 1rem/1.5 var(--font-body); /* Default body text (fs-body, lh-body). */
  --text-footnote: 400 1rem/1.58 var(--font-body); /* Footnotes and table text in articles (fs-prose-sm). */
  --text-article-h2: 400 1.625rem/1.12 var(--font-display); /* h2: uppercase on a 2px keyline (fs-h2-article, lh-heading). */
  --text-article-h3: 400 1.0625rem/1.3 var(--font-display); /* h3: a tracked uppercase label (fs-h3-article). */
  --text-article-h4: italic 400 1rem/1.58 var(--font-display); /* h4: italic with an underline. */
  --text-caption: 400 0.8125rem/1.58 var(--font-display); /* Figure captions, uppercase (fs-caption). */
}
.section-head {
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: 0;
}
.card-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: 0;
}
.sub-head {
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.18;
  font-weight: 400;
  letter-spacing: 0;
}
.label {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0.18em;
}
.micro {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0;
}
.prose {
  font-family: var(--font-body);
  font-size: 1.1875rem;
  line-height: 1.58;
  font-weight: 400;
  letter-spacing: 0;
}
.lede {
  font-family: var(--font-body);
  font-size: 1.5rem;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0;
}
.body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0;
}
.footnote {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.58;
  font-weight: 400;
  letter-spacing: 0;
}
.article-h2 {
  font-family: var(--font-display);
  font-size: 1.625rem;
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: 0.1em;
}
.article-h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: 0.18em;
}
.article-h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.58;
  font-weight: 400;
  letter-spacing: 0;
  font-style: italic;
}
.caption {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  line-height: 1.58;
  font-weight: 400;
  letter-spacing: 0.08em;
}
@font-face {
  font-family: "Kraft Mono";
  src: url("fonts/KraftMono.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Kraft Mono";
  src: url("fonts/KraftMono-Italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
