/*
 * Love and Kinship — theme tokens (lak-theme, direction C "Kitchen table", 2026-09-30).
 * Dark-first. One cascade: theme-variables.css → main.css (claude-theme 2.2.7, untouched) → lak.css.
 * Fonts self-hosted, latin + latin-ext: Gloock 400 (display), Red Hat Text 400–700 + italic 400 (text/UI).
 */

@font-face { font-family: 'Gloock'; font-style: normal; font-weight: 400; font-display: swap;
    src: url('../fonts/gloock-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Gloock'; font-style: normal; font-weight: 400; font-display: swap;
    src: url('../fonts/gloock-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Red Hat Text'; font-style: normal; font-weight: 400 700; font-display: swap;
    src: url('../fonts/red-hat-text-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Red Hat Text'; font-style: normal; font-weight: 400 700; font-display: swap;
    src: url('../fonts/red-hat-text-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Red Hat Text'; font-style: italic; font-weight: 400; font-display: swap;
    src: url('../fonts/red-hat-text-italic-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Red Hat Text'; font-style: italic; font-weight: 400; font-display: swap;
    src: url('../fonts/red-hat-text-italic-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    color-scheme: dark;

    /* --- Kitchen-table palette (WCAG, measured 2026-09-30) ----------------------
       text  #F8EDEF on ground 15.3 · surface 13.5 · raised 11.6
       meta  #CDB8C3 on ground  9.4 · surface  8.3 · raised  7.1
       rose  #FF6F9C on ground  6.7 · surface  5.9 · raised  5.1   (links, active, the button)
       rose-hover #FF9BBB 8.9 / 7.9 / 6.7
       gold  #F2C27B on ground 10.7 (numerals, labels)
       inside bubbles: ink #2A1024 on cream #FFF4EC 16.2 · plum link #9E0059 7.5 · bubble meta #7A4E66 6.2
       button: ink #2A1024 on rose 6.7
       hot pink #FF0054 is the heart mark only (4.5 on ground, never text). */
    --lak-ground:     #2A1024;
    --lak-surface:    #3A1832;   /* the table: cards, reading column */
    --lak-raised:     #4A2140;   /* panels on the table, table heads */
    --lak-rule:       rgba(248, 237, 239, 0.14);
    --lak-rule-strong: rgba(248, 237, 239, 0.28);
    --lak-text:       #F8EDEF;
    --lak-meta:       #CDB8C3;
    --lak-rose:       #FF6F9C;
    --lak-rose-hover: #FF9BBB;
    --lak-gold:       #F2C27B;
    --lak-heart:      #FF0054;
    --lak-cream:      #FFF4EC;   /* speech bubbles */
    --lak-cream-ink:  #2A1024;
    --lak-cream-meta: #7A4E66;
    --lak-cream-link: #9E0059;
    --lak-on-rose:    #2A1024;
    --lak-shadow:     0 1px 2px rgba(0,0,0,.25), 0 14px 28px -14px rgba(0,0,0,.55);

    /* --- Type -------------------------------------------------------------------- */
    --lak-display: 'Gloock', 'Playfair Display', Georgia, 'Times New Roman', serif;
    --lak-body:    'Red Hat Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --lak-ui:      var(--lak-body);

    --lak-size-body: clamp(1.125rem, 1.08rem + 0.22vw, 1.1875rem);   /* 18–19px */
    --lak-size-meta: 0.875rem;
    --lak-lh-body:   1.72;
    --lak-lh-head:   1.1;
    --lak-track-label: 0.09em;

    --lak-hero:  clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
    --lak-title: clamp(2.125rem, 1.5rem + 2.2vw, 3.25rem);
    --lak-h2:    clamp(1.625rem, 1.3rem + 1.1vw, 2.25rem);
    --lak-h3:    clamp(1.25rem, 1.1rem + 0.55vw, 1.5rem);

    /* --- Shape & metrics ------------------------------------------------------------ */
    --lak-radius-sm: 8px;
    --lak-radius:    12px;
    --lak-radius-lg: 18px;
    --lak-page-max:  1200px;
    --lak-content-max: 720px;
    --lak-sidebar:   320px;
    --lak-side-gap:  2.5rem;
    --lak-gutter:    clamp(1rem, 3vw, 2.5rem);
    --lak-tap:       44px;

    /* --- Bridge to main.css ------------------------------------------------------------ */
    --font-size-body-min: 1.125rem; --font-size-body-max: 1.1875rem; --font-size-body-fluid: calc(1.08rem + 0.22vw);
    --font-size-h1-min: 2.125rem; --font-size-h1-max: 3.25rem; --font-size-h1-fluid: calc(1.5rem + 2.2vw);
    --font-size-h2-min: 1.625rem; --font-size-h2-max: 2.25rem; --font-size-h2-fluid: calc(1.3rem + 1.1vw);
    --font-size-h3-min: 1.25rem; --font-size-h3-max: 1.5rem; --font-size-h3-fluid: calc(1.1rem + 0.55vw);
    --font-size-h4-min: 1.125rem; --font-size-h4-max: 1.25rem; --font-size-h4-fluid: calc(1.05rem + 0.3vw);
    --font-size-h5-min: 1.0625rem; --font-size-h5-max: 1.125rem; --font-size-h5-fluid: calc(1rem + 0.2vw);
    --font-size-h6-min: 1rem; --font-size-h6-max: 1.0625rem; --font-size-h6-fluid: calc(0.96rem + 0.12vw);
    --line-height-body: 1.72;
    --line-height-heading: 1.1;

    --color-primary: #FF6F9C;
    --color-primary-hover: #FF9BBB;
    --color-heading: #F8EDEF;
    --color-accent: #FF6F9C;
    --color-text-dark: #F8EDEF;
    --color-text-medium: #CDB8C3;
    --color-text-light: #CDB8C3;
    --color-background: #2A1024;
    --color-background-light: #3A1832;
    --color-background-tint: #4A2140;
    --color-border: rgba(248, 237, 239, 0.14);
    --color-border-soft: rgba(248, 237, 239, 0.14);
    --color-border-light: rgba(248, 237, 239, 0.14);
    --color-footer-bg: #2A1024;
    --color-footer-border: rgba(248, 237, 239, 0.14);
    --color-footer-text: #F8EDEF;
    --color-copyright: #CDB8C3;
    --color-error: #FF9BBB;
    --color-warning: #F2C27B;
    --color-error-bg: #4A2140; --color-error-text: #FF9BBB;
    --color-warning-bg: #4A2140; --color-warning-text: #F2C27B;
    --color-facebook: #F8EDEF; --color-facebook-hover: #FF6F9C;
    --color-twitter: #F8EDEF; --color-twitter-hover: #FF6F9C;
    --color-pinterest: #F8EDEF; --color-pinterest-hover: #FF6F9C;
    --color-linkedin: #F8EDEF; --color-linkedin-hover: #FF6F9C;

    --font-family-display: 'Gloock', Georgia, serif;
    --font-heading: 'Gloock', Georgia, serif;
    --font-family-body: 'Red Hat Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-family: 'Red Hat Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

    --radius-sm: 8px; --radius-md: 12px; --radius-lg: 18px;
    --border-radius: 12px; --border-radius-lg: 18px;
    --content-max: 720px;
    --page-max: 1200px;
}
