/* ============================================================================
   Psychology Diary — tokens + self-hosted faces
   (psd-theme 1.0.x, Stitch direction "B · Mosaic", picked 2026-11-10)
   Loaded first; main.css reads the --color-* / --font-size-* bridge below,
   psd.css reads the --pd-* tokens.
   ========================================================================= */

/* --- Faces: Barlow Condensed 600 + 700 for the wordmark, headlines, bands and
       UI; Literata 400–700 (variable) + italic for reading text.
       latin + latin-ext, Google Fonts css2 (Chrome UA), 2026-11-10. ------- */
@font-face {
    font-family: 'Barlow Condensed';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/barlow-condensed-600-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Barlow Condensed';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/barlow-condensed-600-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: 'Barlow Condensed';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/barlow-condensed-700-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Barlow Condensed';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/barlow-condensed-700-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: 'Literata';
    font-style: italic;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/literata-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Literata';
    font-style: italic;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/literata-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;
}
@font-face {
    font-family: 'Literata';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/literata-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Literata';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/literata-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: light;
    /* --- Palette (Stitch "Mosaic", 2026-11-10): from the logo — black type,
       one orange dot. White ground, ONE rust ink for everything interactive.
       WCAG: #B5400C on #FFFFFF 5.6 · #FFFFFF on #B5400C 5.6 · #5C5650 on
       #FFFFFF 7.2 · #FFFFFF on #111111 18.9 · #F0875A on #111111 7.9 ·
       #B9B2AA on #111111 9.0. The orange dot #F26A1B is never text. */
    --pd-ground:      #FFFFFF;
    --pd-white:       #FFFFFF;
    --pd-deep:        #F4F1ED;   /* image placeholders, quiet panels */
    --pd-paper:       #F6F3EE;   /* archive head ground; #B5400C on it 5.1, #5C5650 6.5 */
    --pd-rule:        #E5E0DA;
    --pd-ink:         #111111;   /* headlines, bands, footer */
    --pd-text:        #1F1D1B;
    --pd-meta:        #5C5650;
    --pd-brand:       #B5400C;   /* rust: links, buttons, kickers, numerals */
    --pd-brand-dark:  #8F3209;
    --pd-brand-tint:  #FFF1E8;
    --pd-dot:         #F26A1B;   /* the logo's dot: decoration only */
    --pd-on-ink:      #FFFFFF;
    --pd-on-ink-meta: #B9B2AA;
    --pd-on-ink-accent: #F0875A;

    /* --- Type ---------------------------------------------------------------- */
    --pd-display: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', Arial, sans-serif;
    --pd-body:    Literata, Georgia, 'Times New Roman', serif;
    --pd-ui:      'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', Arial, sans-serif;
    --pd-size-body: clamp(1.0938rem, 1.04rem + 0.3vw, 1.1875rem);   /* 17.5–19px */
    --pd-lh-body:   1.7;
    --pd-lh-head:   1.08;
    --pd-title: clamp(2.25rem, 1.7rem + 2vw, 2.75rem);   /* article H1, capped 44px */
    --pd-h2:    clamp(1.75rem, 1.5rem + 0.9vw, 2.125rem);
    --pd-h3:    clamp(1.4375rem, 1.3rem + 0.5vw, 1.625rem);
    --pd-label: 0.875rem;

    /* --- Shape & metrics ------------------------------------------------------ */
    --pd-radius:    0px;
    --pd-board:     4px;
    --pd-page-max:  1280px;
    --pd-sidebar:   304px;
    --pd-gutter:    clamp(1rem, 3vw, 2rem);

    /* --- Bridge to main.css (do not restyle main.css) ------------------------- */
    --font-size-body-min: 1.0625rem;
    --font-size-body-max: 1.1875rem;
    --font-size-body-fluid: calc(1.01rem + 0.3vw);
    --font-size-h1-min: 2.125rem;
    --font-size-h1-max: 2.75rem;
    --font-size-h1-fluid: calc(1.5rem + 2.2vw);
    --font-size-h2-min: 1.5rem;
    --font-size-h2-max: 1.875rem;
    --font-size-h2-fluid: calc(1.3rem + 0.8vw);
    --font-size-h3-min: 1.1875rem;
    --font-size-h3-max: 1.375rem;
    --font-size-h3-fluid: calc(1.1rem + 0.35vw);
    --font-size-h4-min: 1.0625rem;
    --font-size-h4-max: 1.1875rem;
    --font-size-h4-fluid: calc(1.02rem + 0.2vw);
    --font-size-h5-min: 1rem;
    --font-size-h5-max: 1.0625rem;
    --font-size-h5-fluid: calc(0.98rem + 0.15vw);
    --font-size-h6-min: 1rem;
    --font-size-h6-max: 1rem;
    --font-size-h6-fluid: 1rem;
    --line-height-body: 1.7;
    --line-height-heading: 1.08;
    --color-primary: #B5400C;
    --color-primary-hover: #8F3209;
    --color-heading: #111111;
    --color-accent: #B5400C;
    --color-text-dark: #111111;
    --color-text-medium: #5C5650;
    --color-text-light: #5C5650;
    --color-background: #FFFFFF;
    --color-background-light: #FFFFFF;
    --color-background-tint: #F4F1ED;
    --color-border: #E5E0DA;
    --color-border-soft: #E5E0DA;
    --color-footer-bg: #111111;
    --color-error: #B42318;
    --color-warning: #8A5A00;
    --font-family-display: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', Arial, sans-serif;
    --font-family-body: Literata, Georgia, 'Times New Roman', serif;
    --font-family: Literata, Georgia, 'Times New Roman', serif;
    --radius-sm: 0;
    --radius-md: 0;
    --radius-lg: 0;
    --border-radius: 0;
    --border-radius-lg: 0;
    --content-max: 780px;
    --page-max: 1280px;
    --color-border-light: #E5E0DA;
    --color-footer-border: #E5E0DA;
    --color-footer-text: #FFFFFF;
    --color-copyright: #5C5650;
    --color-facebook: #B5400C; --color-facebook-hover: #8F3209;
    --color-twitter: #B5400C; --color-twitter-hover: #8F3209;
    --color-pinterest: #B5400C; --color-pinterest-hover: #8F3209;
    --color-linkedin: #B5400C; --color-linkedin-hover: #8F3209;
    --color-error-bg: #F9E3E0; --color-error-text: #8A1C12;
    --color-warning-bg: #F6EBD2; --color-warning-text: #6B4600;
    --font-primary: Literata, Georgia, 'Times New Roman', serif;
    --font-heading: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', Arial, sans-serif;
}
