/* TextCafe design tokens — from 03-design-reference (Colors.html / Fonts.html):
   base yellow #ffe19a, tan #d9a24f, orange #d6670d, brown #452914,
   background #f7f4ed, link blue #2187d3, text #333333, available green #4a7c59.
   Fonts: Bitter (headlines/titles), Source Sans Pro (UI/body). */

/* Self-hosted Bitter + Source Sans Pro (woff2 in public/fonts, copied to out/fonts by the generator).
   Same families, weights and unicode-range subsets as the former Google Fonts import. */
/* cyrillic-ext */
@font-face {
  font-family: 'Bitter';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/Bitter-400i-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Bitter';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/Bitter-400i-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Bitter';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/Bitter-400i-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Bitter';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/Bitter-400i-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;
}
/* latin */
@font-face {
  font-family: 'Bitter';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/Bitter-400i-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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Bitter';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/Bitter-700i-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Bitter';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/Bitter-700i-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Bitter';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/Bitter-700i-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Bitter';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/Bitter-700i-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;
}
/* latin */
@font-face {
  font-family: 'Bitter';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/Bitter-700i-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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Bitter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/Bitter-400-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Bitter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/Bitter-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Bitter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/Bitter-400-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Bitter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/Bitter-400-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;
}
/* latin */
@font-face {
  font-family: 'Bitter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/Bitter-400-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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Bitter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/Bitter-700-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Bitter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/Bitter-700-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Bitter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/Bitter-700-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Bitter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/Bitter-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;
}
/* latin */
@font-face {
  font-family: 'Bitter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/Bitter-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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/SourceSansPro-400i-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/SourceSansPro-400i-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/SourceSansPro-400i-greek-ext.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/SourceSansPro-400i-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/SourceSansPro-400i-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/SourceSansPro-400i-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;
}
/* latin */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/SourceSansPro-400i-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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/SourceSansPro-400-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/SourceSansPro-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/SourceSansPro-400-greek-ext.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/SourceSansPro-400-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/SourceSansPro-400-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/SourceSansPro-400-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;
}
/* latin */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/SourceSansPro-400-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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/SourceSansPro-600-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/SourceSansPro-600-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/SourceSansPro-600-greek-ext.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/SourceSansPro-600-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/SourceSansPro-600-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/SourceSansPro-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;
}
/* latin */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/SourceSansPro-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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/SourceSansPro-700-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/SourceSansPro-700-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/SourceSansPro-700-greek-ext.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/SourceSansPro-700-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/SourceSansPro-700-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/SourceSansPro-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;
}
/* latin */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/SourceSansPro-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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(/fonts/SourceSansPro-900-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(/fonts/SourceSansPro-900-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(/fonts/SourceSansPro-900-greek-ext.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(/fonts/SourceSansPro-900-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(/fonts/SourceSansPro-900-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(/fonts/SourceSansPro-900-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;
}
/* latin */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(/fonts/SourceSansPro-900-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 {
  --yellow: #ffe19a;
  --tan: #d9a24f;
  --orange: #d6670d;
  --brown: #452914;
  --paper: #f7f4ed;
  --blue: #2187d3;
  --blue-dark: #154c78;
  --text: #333333;
  --green: #4a7c59;
  --line: #eee2c9;
  --line-soft: #f2ead8;
  --muted: #6b5a45;
  --faint: #9a8a72;
  --cream: #fbf8f0;
  --cream2: #fff4dc;
  --cover-placeholder: #e7ddc8;
  --serif: Georgia, "Bitter", serif;
  --sans: "Source Sans Pro", system-ui, sans-serif;
  --side-pad: 48px;
  --surface: #ffffff;
  --on-accent: #ffffff;
  --surface-sunk: #f3ead2;
  --surface-mute: #ebe8e1;
  --cover-edge: rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(69, 41, 20, 0.18);
  --shadow-md: 0 4px 14px rgba(69, 41, 20, 0.12);
  --shadow-sm: 0 2px 10px rgba(69, 41, 20, 0.15);
  --r-3: 3px;
  --r-4: 4px;
  --r-6: 6px;
  --r-8: 8px;
  --r-10: 10px;
  --r-12: 12px;
  --r-16: 16px;
  --r-20: 20px;
  --display: "Bitter", Georgia, serif;
  /* type scale (px) */
  --fs-10: 10px;
  --fs-11: 11px;
  --fs-12: 12px;
  --fs-13: 13px;
  --fs-14: 14px;
  --fs-15: 15px;
  --fs-16: 16px;
  --fs-18: 18px;
  --fs-20: 20px;
  --fs-21: 21px;
  --fs-22: 22px;
  --fs-24: 24px;
  --fs-26: 26px;
  --fs-28: 28px;
  --fs-30: 30px;
  --fs-34: 34px;
  --fs-40: 40px;
  --fw-regular: 400;
  --fw-semibold: 600;
  --fw-bold: 700;
  --w-reading: 760px;
  --dim-1: brightness(0.96);
  --dim-2: brightness(0.94);
  --r-pill: 999px;
  /* series overview newsstand rack (themes override these) */
  --rack-back: #efe6d6;
  --rack-ledge: #3b2a1e;
  --rack-ledge-top: #5a4030;
  --rack-rail: rgba(255, 255, 255, 0.42);
  --rack-rail-edge: rgba(255, 255, 255, 0.85);
  --rack-shadow: 0 1px 2px rgba(0, 0, 0, 0.18), 0 10px 18px rgba(43, 26, 16, 0.22);
  --rack-shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.18), 0 22px 34px rgba(43, 26, 16, 0.3);
  --rack-ledge-shadow: 0 8px 16px rgba(43, 26, 16, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  font-size: var(--fs-15);
}

a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  color: var(--blue-dark);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  color: var(--brown);
  margin: 0;
}

.site-main {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
}

/* ------------------------------------------------------------- header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 11px var(--side-pad);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: var(--serif);
  font-size: var(--fs-28);
  font-weight: var(--fw-bold);
  color: var(--brown);
  text-decoration: none;
  white-space: nowrap;
}

.nav-search {
  flex-grow: 1;
  max-width: 480px;
  margin: 0 32px;
}

.nav-search input {
  box-sizing: border-box; /* width:100% plus padding made the box wider than a phone screen */
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--r-6);
  border: 1px solid var(--tan);
  font-size: var(--fs-14);
  font-family: var(--sans);
  color: var(--text);
  background: var(--surface);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.navlink {
  white-space: nowrap; /* "A–Z" and "COVER-GALERIE" must not break across lines */
  font-size: var(--fs-14);
  font-weight: var(--fw-semibold);
  color: var(--brown);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.navlink:hover {
  color: var(--orange);
}
.navlink.active {
  color: var(--orange);
}

.locale-switch {
  display: flex;
  border: 1px solid var(--tan);
  border-radius: var(--r-6);
  overflow: hidden;
  font-size: var(--fs-13);
}
.locale-switch a {
  padding: 6px 10px;
  color: var(--brown);
  font-weight: var(--fw-semibold);
  background: var(--surface);
}
.locale-switch a.active {
  background: var(--yellow);
  color: var(--brown);
}

/* "Language" menu in the top navigation */
.locale-menu {
  position: relative;
}
.locale-menu summary {
  list-style: none;
  cursor: pointer;
}
.locale-menu summary::-webkit-details-marker {
  display: none;
}
.locale-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.locale-globe {
  flex: none;
}
.locale-code {
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
}
.locale-menu summary::after {
  content: " ▾";
  font-size: var(--fs-11);
}
.locale-menu[open] summary {
  color: var(--orange);
}
.locale-menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--tan);
  border-radius: var(--r-6);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.locale-menu-list a {
  padding: 9px 14px;
  font-size: var(--fs-14);
  font-weight: var(--fw-semibold);
  color: var(--brown);
}
.locale-menu-list a:hover {
  background: var(--yellow);
}
.locale-menu-list a.active {
  background: var(--yellow);
}

/* breadcrumb bar */

.crumbbar {
  padding: 8px var(--side-pad);
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-12);
  color: var(--muted);
  flex-wrap: wrap;
}
.crumbbar .crumb {
  color: var(--brown);
  font-weight: var(--fw-semibold);
}
.crumbbar .crumb:hover {
  color: var(--orange);
}
.crumbbar .sep {
  color: var(--faint);
}

/* ------------------------------------------------------------- layout */

.page {
  padding: 24px var(--side-pad) 48px;
  width: 100%;
}

.browse-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 0 var(--side-pad) 48px;
  width: 100%;
}

.facets {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.jump-filters {
  display: none; /* shown on phones, see the 960px rules */
  margin-bottom: 12px;
  padding: 8px 14px;
  border: 1px solid var(--tan);
  border-radius: var(--r-6);
  background: var(--surface);
  color: var(--blue);
  font-size: var(--fs-13);
  font-weight: var(--fw-bold);
}
.content {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* hero */

.hero {
  padding: 24px var(--side-pad) 14px; /* tight: this is the most valuable space on the page */
}
.hero-title {
  font-family: var(--serif);
  font-size: var(--fs-40);
  font-weight: var(--fw-bold);
  color: var(--orange);
  line-height: 1.12;
  margin: 0;
}
.hero-sub {
  font-size: var(--fs-21);
  font-weight: var(--fw-semibold);
  color: var(--text);
  max-width: none; /* the line under the headline may be as wide as the headline: the French text wrapped at 900px (8 Nov 2026) */
  line-height: 1.3;
  margin: 6px 0 0;
}

/* ------------------------------------------------------------- facets */

.panel {
  background: var(--surface);
  border-radius: var(--r-8);
  padding: 20px;
  border: 1px solid var(--line);
}

.panel-title {
  font-size: var(--fs-13);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brown);
  margin-bottom: 12px;
}

.facet-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: var(--fs-14);
  color: var(--text);
  text-decoration: none;
  border-radius: var(--r-4);
  padding: 3px 6px;
  margin: -3px -6px;
}
.checkrow:hover {
  background: var(--cream2);
}
.checkrow .rowlabel {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.checkrow .box {
  width: 16px;
  height: 16px;
  min-width: 16px;
  border: 1.5px solid var(--tan);
  border-radius: var(--r-3);
  background: var(--surface);
  display: inline-block;
  position: relative;
}
.checkrow.active {
  background: var(--cream2);
}
.checkrow.active .box {
  background: var(--orange);
  border-color: var(--orange);
}
.checkrow.active .box::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid var(--surface);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checkrow.active .rowlabel {
  font-weight: var(--fw-bold);
  color: var(--orange);
}
.checkrow .count {
  color: var(--faint);
  font-size: var(--fs-12);
  flex-shrink: 0;
}

/* thema hierarchy */

.topgroup {
  border-bottom: 1px solid var(--line-soft);
  padding: 8px 0;
}
.topgroup:last-child {
  border-bottom: none;
}
.topgroup summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-14);
  font-weight: var(--fw-bold);
  color: var(--brown);
}
.topgroup summary::-webkit-details-marker {
  display: none;
}
.topgroup summary .arrow {
  color: var(--faint);
  font-size: var(--fs-11);
  width: 12px;
}
.topgroup[open] summary .arrow {
  color: var(--orange);
}
.topgroup summary .count {
  font-weight: var(--fw-regular);
  color: var(--faint);
  font-size: var(--fs-12);
  margin-left: auto;
}
.subthema {
  margin: 8px 0 2px 22px;
  padding-left: 20px;
  border-left: 2px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.facet-details {
  border: none;
}
.facet-details > summary {
  font-size: var(--fs-13);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brown);
  cursor: pointer;
  list-style: none;
}
.facet-details > summary::-webkit-details-marker {
  display: none;
}
.facet-details > summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 6px;
  font-size: var(--fs-11);
}
.facet-details[open] > summary::before {
  content: "▾";
}
.facetsub {
  padding-left: 8px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.searchbox {
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--r-6);
  border: 1px solid var(--tan);
  font-size: var(--fs-13);
  font-family: var(--sans);
  margin-bottom: 12px;
  color: var(--text);
}

.morelink {
  display: block;
  font-size: var(--fs-12);
  font-weight: var(--fw-semibold);
  margin-top: 10px;
  color: var(--blue);
}

.tagchip {
  display: inline-block;
  font-size: var(--fs-12);
  padding: 4px 10px;
  border-radius: var(--r-12);
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--brown);
  text-decoration: none;
}
.tagchip.active {
  background: var(--brown);
  color: var(--on-accent);
}
.tagchip:hover {
  background: var(--cream2);
}

/* ------------------------------------------------------------- shelves + grid */

.shelf {
  margin-bottom: 8px;
}
.shelf-title {
  font-family: var(--serif);
  font-size: var(--fs-20);
  color: var(--brown);
  font-weight: var(--fw-bold);
  margin-bottom: 12px;
}
.shelf-rule {
  height: 1px;
  background: var(--line);
  margin: 16px 0 4px;
  border: none;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 24px;
}

/* Browse results: fixed column counts (3 / 4 / 5 / 6) so a page of 60 titles always fills whole rows */
.results-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (min-width: 1300px) {
  .results-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (min-width: 1700px) {
  .results-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* Ten rows at every width: a page holds 60 books and shows 30 / 40 / 50 / 60 of them at 3 / 4 / 5 / 6 columns (the same breakpoints as the columns
   above and in the 960px block below). "Show more books" is a checkbox next to the grid: ticked, the rest of the page appears. A page with fewer
   books than the limit has no button (the server adds m3 / m4 / m5 to the label when the page has more than 30 / 40 / 50 books). */
.more-toggle {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.more-btn {
  display: none;
  width: fit-content;
  margin: 24px auto 0;
  padding: 8px 20px;
  font-size: var(--fs-13);
  font-weight: var(--fw-bold);
  color: var(--brown);
  background: var(--yellow);
  border: 1px solid var(--brown);
  border-radius: var(--r-4);
  cursor: pointer;
  text-align: center;
}
.more-btn:hover,
.more-toggle:focus-visible ~ .more-btn {
  background: var(--brown);
  color: var(--on-accent);
}
@media (max-width: 960px) {
  .more-toggle:not(:checked) ~ .results-grid > :nth-child(n + 31) { display: none; }
  .more-toggle:not(:checked) ~ .more-btn.m3 { display: block; }
}
@media (min-width: 961px) and (max-width: 1299px) {
  .more-toggle:not(:checked) ~ .results-grid > :nth-child(n + 41) { display: none; }
  .more-toggle:not(:checked) ~ .more-btn.m4 { display: block; }
}
@media (min-width: 1300px) and (max-width: 1699px) {
  .more-toggle:not(:checked) ~ .results-grid > :nth-child(n + 51) { display: none; }
  .more-toggle:not(:checked) ~ .more-btn.m5 { display: block; }
}

.cover-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
}
.cover-card .cover {
  height: auto;
  width: 100%;
  aspect-ratio: 2/3;
  background: var(--cover-placeholder);
  border-radius: var(--r-4);
  border: 1px solid var(--cover-edge);
  object-fit: cover;
  display: block;
}
.cover-card .cover-title {
  font-size: var(--fs-13);
  font-weight: var(--fw-bold);
  color: var(--text);
}
.cover-card .cover-subtitle {
  /* subtitles can be long: two lines at most, then an ellipsis */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: var(--fs-12);
  line-height: 1.3;
  color: var(--muted);
}
.cover-card .cover-author {
  font-size: var(--fs-12);
  color: var(--muted);
}
/* card with a separate author link: cover + title are one link, the author name another */
.cover-card.has-author-link .cover-card-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
}
.cover-card.has-author-link a.cover-author {
  text-decoration: none;
}
.cover-card.has-author-link a.cover-author:hover {
  color: var(--blue);
  text-decoration: underline;
}
/* series tag under the card (Option A, subtle tint): the series name on a slightly darker patch of the page colour */
.cover-card .series-tag {
  display: inline-flex;
  width: fit-content;
  margin-top: 4px;
  padding: 4px 10px;
  background: color-mix(in srgb, var(--text) 11%, transparent);
  color: var(--text);
  font-size: var(--fs-12);
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.cover-card .series-tag:hover {
  background: color-mix(in srgb, var(--text) 20%, transparent);
  text-decoration: none;
}

.badge-soon {
  display: inline-block;
  background: var(--tan);
  color: var(--on-accent);
  font-size: var(--fs-10);
  font-weight: var(--fw-bold);
  padding: 2px 8px;
  border-radius: var(--r-10);
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.badge-available {
  display: inline-block;
  background: var(--green);
  color: var(--on-accent);
  font-size: var(--fs-10);
  font-weight: var(--fw-bold);
  padding: 2px 8px;
  border-radius: var(--r-10);
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.catalog-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.catalog-title {
  font-family: var(--serif);
  font-size: var(--fs-24);
  color: var(--brown);
  font-weight: var(--fw-bold);
  margin: 0;
}
.catalog-count {
  font-size: var(--fs-13);
  color: var(--muted);
  margin-top: 4px;
}
.sort-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-13);
  color: var(--muted);
}
.sort-wrap select {
  font-size: var(--fs-13);
  padding: 6px 8px;
  border-radius: var(--r-6);
  border: 1px solid var(--tan);
  font-family: var(--sans);
  color: var(--brown);
}
.sort-opt {
  color: var(--blue);
  font-weight: var(--fw-regular);
  text-decoration: none;
  white-space: nowrap;
}
.sort-opt:hover { text-decoration: underline; }
.sort-opt.active {
  color: var(--orange);
  font-weight: var(--fw-bold);
}
.sort-arrow {
  display: inline-block;
  margin-left: 4px;
  font-weight: var(--fw-bold);
}
.sort-opt:not(.active) .sort-arrow { opacity: 0.45; }
@media (max-width: 640px) {
  .sort-wrap { flex-wrap: wrap; gap: 6px 12px; }
}

/* active filter chips */

.chiprow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
/* same subtle tint as the series tag under a book card (no white fill) */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: color-mix(in srgb, var(--text) 11%, transparent);
  color: var(--text);
  font-size: var(--fs-12);
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.chip a {
  color: var(--text);
  font-weight: var(--fw-bold);
  text-decoration: none;
}
.chip a:hover {
  background: color-mix(in srgb, var(--text) 20%, transparent);
}
.clearall {
  font-size: var(--fs-12);
  color: var(--blue);
}

/* pagination */

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: var(--fs-13);
  color: var(--muted);
  flex-wrap: wrap;
}
.pagination a,
.pagination span.current {
  padding: 8px 12px;
  border-radius: var(--r-6);
  color: var(--blue);
}
.pagination span.current {
  background: var(--orange);
  color: var(--on-accent);
}
.pagination .gap {
  padding: 8px 4px;
}

.empty-state {
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  font-size: var(--fs-15);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--r-8);
}

/* ------------------------------------------------------------- title page */

.title-layout {
  display: flex;
  gap: 40px;
  padding: 24px var(--side-pad) 40px;
  align-items: flex-start;
}

.title-aside {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.title-aside .cover {
  width: 100%;
  height: auto;
  aspect-ratio: 2/3;
  background: var(--cover-placeholder);
  border-radius: var(--r-6);
  border: 1px solid var(--cover-edge);
  object-fit: contain;
  display: block;
}

.buy-group {
  border: 1px solid var(--brown);
  border-radius: var(--r-6);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
}
.buy-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.buy-price {
  font-size: var(--fs-13);
  font-weight: var(--fw-semibold);
  color: var(--muted);
  white-space: nowrap;
}
.buy-group .buy-label {
  font-size: var(--fs-13);
  font-weight: var(--fw-bold);
  color: var(--brown);
}
.buy-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
/* Contrast (Martin, 10 Nov 2026): the yellow fill is almost the colour of the box behind it (1.01-1.11 : 1 in the nine Magazine backgrounds) and
   the old 4% dimming on hover was invisible. A 1 px edge in the text colour shows the button (14.7 : 1 or more), and hover and keyboard focus
   fill it solid with the accent text colour (18.6 : 1). tests/chipContrast.test.ts keeps both above 3 : 1 in every background. */
.buy-chip {
  font-size: var(--fs-12);
  font-weight: var(--fw-bold);
  color: var(--brown);
  background: var(--yellow);
  border: 1px solid var(--brown);
  padding: 4px 10px;
  border-radius: var(--r-4);
  text-decoration: none;
}
.buy-chip:hover,
.buy-chip:focus-visible {
  background: var(--brown);
  color: var(--on-accent);
  filter: none;
}
.buy-chip[aria-expanded="true"]::after {
  content: " \25BE"; /* the open list is marked, so it does not look like hover */
}
.buy-group.coming-soon {
  border: 1px dashed var(--tan);
}
.buy-group.coming-soon .buy-label {
  color: var(--muted);
}
.buy-chip.muted {
  color: var(--muted);
  background: var(--surface-sunk);
}

.notify-form {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}
.notify-form input {
  flex-grow: 1;
  min-width: 0;
  padding: 6px 8px;
  border-radius: var(--r-4);
  border: 1px solid var(--tan);
  font-size: var(--fs-12);
  font-family: var(--sans);
}
.notify-form button {
  background: var(--yellow);
  border: 1px solid var(--tan);
  color: var(--brown);
  border-radius: var(--r-4);
  padding: 6px 10px;
  font-size: var(--fs-12);
  font-weight: var(--fw-bold);
  cursor: pointer;
}

.translations {
  font-size: var(--fs-12);
  color: var(--muted);
}

.title-main {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.book-title {
  font-family: var(--serif);
  font-size: var(--fs-40);
  font-weight: var(--fw-bold);
  color: var(--brown);
  line-height: 1.15;
  margin: 0;
}
.author-link {
  font-size: var(--fs-18);
  color: var(--blue);
  margin-top: 6px;
  display: inline-block;
}
.book-desc {
  font-size: var(--fs-16);
  line-height: 1.7;
  color: var(--text);
  max-width: var(--w-reading);
}
.book-desc p {
  margin: 0 0 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-12);
  font-weight: var(--fw-bold);
  padding: 4px 10px;
  border-radius: var(--r-10);
  width: fit-content;
  text-decoration: none;
  background: var(--yellow);
  color: var(--brown);
}
a.pill:hover,
a.pill:focus-visible {
  background: var(--brown);
  color: var(--on-accent);
  filter: none;
}
a.pill-dark:hover,
a.pill-dark:focus-visible {
  outline: 2px solid var(--brown); /* already dark: hover shows as a ring */
  outline-offset: 2px;
}
/* a lozenge without a page (a keyword on fewer than 3 books) is text, not a link: grey and not interactive */
span.pill {
  background: var(--surface-mute);
  color: var(--muted);
  font-weight: var(--fw-semibold);
  cursor: default;
}
span.pill:hover {
  filter: none;
}
.pill-dark {
  background: var(--brown);
  color: var(--on-accent);
}

.author-box {
  background: var(--surface);
  border-radius: var(--r-8);
  padding: 20px;
  border: 1px solid var(--line);
  max-width: var(--w-reading);
}
.author-box .about-label {
  font-size: var(--fs-13);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brown);
  margin-bottom: 8px;
}
.author-box .about-text {
  font-size: var(--fs-14);
  line-height: 1.6;
  color: var(--text);
}

/* related tabs */

.related {
  margin-top: 4px;
}
.related-title {
  font-family: var(--serif);
  font-size: var(--fs-22);
  color: var(--brown);
  font-weight: var(--fw-bold);
  margin-bottom: 14px;
}
.tabs {
  display: flex;
  gap: 16px;
  font-size: var(--fs-13);
  font-weight: var(--fw-semibold);
  color: var(--muted);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.tab {
  background: none;
  border: none;
  padding: 0 0 4px;
  font: inherit;
  font-weight: var(--fw-semibold);
  color: var(--muted);
  border-bottom: 2px solid transparent;
  text-decoration: none;
}
.tab:hover {
  color: var(--orange);
}
.tab.active {
  color: var(--orange);
  border-bottom: 2px solid var(--orange);
}
/* related-books tabs: radio + label, no JS, no query strings */
.related-tabs .rt-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.related-tabs .tab {
  cursor: pointer;
}
.related-tabs .rt-panel {
  display: none;
}
.related-tabs #rt-author:checked ~ .rt-panel-author {
  display: block;
}
.related-tabs #rt-author:checked ~ .tabs label[for="rt-author"] {
  color: var(--orange);
  border-bottom: 2px solid var(--orange);
}
.related-tabs #rt-author:focus-visible ~ .tabs label[for="rt-author"] {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.related-tabs #rt-keyword:checked ~ .rt-panel-keyword {
  display: block;
}
.related-tabs #rt-keyword:checked ~ .tabs label[for="rt-keyword"] {
  color: var(--orange);
  border-bottom: 2px solid var(--orange);
}
.related-tabs #rt-keyword:focus-visible ~ .tabs label[for="rt-keyword"] {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.related-tabs #rt-thema:checked ~ .rt-panel-thema {
  display: block;
}
.related-tabs #rt-thema:checked ~ .tabs label[for="rt-thema"] {
  color: var(--orange);
  border-bottom: 2px solid var(--orange);
}
.related-tabs #rt-thema:focus-visible ~ .tabs label[for="rt-thema"] {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.related-tabs #rt-bisac:checked ~ .rt-panel-bisac {
  display: block;
}
.related-tabs #rt-bisac:checked ~ .tabs label[for="rt-bisac"] {
  color: var(--orange);
  border-bottom: 2px solid var(--orange);
}
.related-tabs #rt-bisac:focus-visible ~ .tabs label[for="rt-bisac"] {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.related-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.related-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  width: 110px;
}
/* phones and tablets, upright or on their side: the 'More like this' covers fill the width (as many as fit, at least 140px each) instead of staying 110px wide */
@media (max-width: 960px) {
  .related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px 16px;
  }
  .related-card {
    width: auto;
  }
}
.related-card .cover {
  width: 100%;
  aspect-ratio: 2/3;
  background: var(--cover-placeholder);
  border-radius: var(--r-4);
  border: 1px solid var(--cover-edge);
  object-fit: cover;
  display: block;
}
.related-card .cover-title {
  font-size: var(--fs-12);
  font-weight: var(--fw-bold);
  color: var(--text);
}
.related-card-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
}
.related-card .cover-author {
  font-size: var(--fs-12);
  color: var(--muted);
  margin-top: -2px;
  text-decoration: none;
}
.related-card .cover-author:hover {
  color: var(--orange);
  text-decoration: underline;
}

.discover-box {
  background: var(--surface);
  border-radius: var(--r-8);
  padding: 20px;
  border: 1px solid var(--line);
  max-width: 860px;
}
.discover-title {
  font-family: var(--serif);
  font-size: var(--fs-20);
  color: var(--brown);
  font-weight: var(--fw-bold);
}
.discover-sub {
  font-size: var(--fs-13);
  color: var(--muted);
  margin: 6px 0 14px;
}
.discover-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* cover art panel */

.cover-art-panel {
  background: var(--surface);
  border-radius: var(--r-8);
  padding: 20px;
  border: 1px solid var(--line);
  max-width: var(--w-reading);
}
.cover-art-panel .panel-title {
  margin-bottom: 10px;
}
.cover-art-assets {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.cover-art-asset {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 130px;
}
.cover-art-asset img {
  width: 100%;
  height: auto; /* the img carries width/height attributes: without this a 130px-wide box kept the full 900px height */
  aspect-ratio: 2 / 3;
  object-fit: contain;
  display: block;
  border-radius: var(--r-4);
  border: 1px solid var(--cover-edge);
}
.download-btn {
  display: block;
  text-align: center;
  background: var(--blue);
  color: var(--on-accent);
  font-size: var(--fs-12);
  font-weight: var(--fw-bold);
  padding: 8px 10px;
  border-radius: var(--r-6);
}
.download-btn:hover {
  background: var(--blue-dark);
  color: var(--on-accent);
}
.cover-art-note {
  font-size: var(--fs-12);
  color: var(--muted);
  line-height: 1.6;
}
.ai-notice {
  font-size: var(--fs-12);
  color: var(--muted);
  background: var(--cream2);
  border: 1px solid var(--line);
  border-radius: var(--r-6);
  padding: 8px 12px;
  margin-top: 10px;
}
.credit-line {
  font-size: var(--fs-12);
  color: var(--faint);
  margin-top: 10px;
}

/* ------------------------------------------------------------- gallery */

.genre-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 24px;
}
.genre-tab {
  padding: 8px 16px;
  border-radius: var(--r-20);
  border: 1px solid var(--tan);
  color: var(--brown);
  font-size: var(--fs-13);
  font-weight: var(--fw-semibold);
  background: var(--surface);
}
.genre-tab:has(.genre-ic) {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.genre-ic {
  width: 16px;
  height: 16px;
  flex: none;
}
.genre-tab.dim {
  opacity: 0.45;
  pointer-events: none;
}
.genre-tab.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--on-accent);
}

.gallery-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
}
.gallery-card .cover {
  width: 100%;
  aspect-ratio: 2/3;
  background: var(--cover-placeholder);
  border-radius: var(--r-4);
  border: 1px solid var(--cover-edge);
  object-fit: cover;
  display: block;
}
/* the cards of a row are as tall as the tallest one; the button sits at the bottom of each, so the buttons line
   up whatever number of lines the title takes */
.gallery-card .download-btn {
  margin-top: auto;
}
.gallery-card .cover-title {
  font-size: var(--fs-13);
  font-weight: var(--fw-bold);
  color: var(--text);
}
.gallery-card .cover-author {
  font-size: var(--fs-12);
  color: var(--muted);
  margin-bottom: 4px;
}
/* the author name under a gallery card is a filter link: it adds that author to the genre and filters already chosen */
.gallery-card a.cover-author {
  text-decoration: none;
}
.gallery-card a.cover-author:hover {
  color: var(--blue);
  text-decoration: underline;
}

/* ------------------------------------------------------------- suggest form */

.suggest-intro {
  padding: 40px var(--side-pad) 0;
  max-width: 800px;
}
.suggest-title {
  font-family: var(--serif);
  font-size: var(--fs-34);
  font-weight: var(--fw-bold);
  color: var(--brown);
  line-height: 1.15;
  margin: 0;
}
.suggest-lede {
  font-size: var(--fs-16);
  color: var(--text);
  line-height: 1.6;
  margin-top: 12px;
}
.suggest-layout {
  display: flex;
  gap: 40px;
  padding: 32px var(--side-pad) 48px;
  align-items: flex-start;
}
.suggest-form {
  flex-grow: 1;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.field-label {
  font-size: var(--fs-13);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brown);
  margin-bottom: 8px;
}
.field-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--r-6);
  border: 1px solid var(--tan);
  font-size: var(--fs-14);
  font-family: var(--sans);
  color: var(--text);
  background: var(--surface);
}
textarea.field-input {
  resize: vertical;
}
.optlabel {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-6);
  background: var(--surface);
  cursor: pointer;
}
.optlabel:hover {
  border-color: var(--tan);
}
.optlabel input {
  margin-top: 3px;
  accent-color: var(--orange);
}
/* The language / format radio lists sit directly under their type option and show only while it is selected. */
.suboptions {
  margin: 6px 0 4px 28px;
  padding: 10px 14px;
  border-left: 2px solid var(--tan);
}
.suboptions-label {
  font-size: var(--fs-13);
  font-weight: var(--fw-bold);
  color: var(--brown);
  margin-bottom: 8px;
}
.suboptions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.suboptions-cols {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.subopt {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: var(--fs-14);
  color: var(--text);
  cursor: pointer;
}
.subopt input {
  accent-color: var(--orange);
}
/* Show the list only when its type is picked. Browsers without :has() show both lists (every choice still works). */
@supports selector(:has(*)) {
  .optgroup:not(:has(input[name="type"]:checked)) .suboptions {
    display: none;
  }
}
.opttitle {
  font-size: var(--fs-14);
  font-weight: var(--fw-bold);
  color: var(--brown);
  display: block;
}
.optdesc {
  font-size: var(--fs-13);
  color: var(--muted);
  display: block;
  margin-top: 2px;
}
.btn-primary {
  background: var(--orange);
  color: var(--on-accent);
  border: none;
  border-radius: var(--r-6);
  padding: 12px 24px;
  font-size: var(--fs-14);
  font-weight: var(--fw-bold);
  cursor: pointer;
  font-family: var(--sans);
}
.form-note {
  font-size: var(--fs-12);
  color: var(--faint);
  margin-top: 10px;
}
.suggest-aside {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.suggest-aside .panel h3 {
  font-size: var(--fs-18);
  margin-bottom: 8px;
}
.suggest-aside .stat-box {
  background: var(--cream2);
  border-radius: var(--r-8);
  padding: 20px;
  border: 1px solid var(--line);
}
.suggest-aside .stat-number {
  font-size: var(--fs-28);
  font-weight: var(--fw-bold);
  color: var(--orange);
  font-family: var(--serif);
}
.suggest-aside .stat-caption {
  font-size: var(--fs-13);
  color: var(--muted);
  margin-top: 4px;
}

/* ------------------------------------------------------------- legal */

.legal-page {
  padding: 40px var(--side-pad) 48px;
  max-width: 820px;
}
.legal-title {
  font-family: var(--serif);
  font-size: var(--fs-34);
  font-weight: var(--fw-bold);
  color: var(--brown);
  margin: 0 0 16px;
}
.draft-banner {
  background: var(--cream2);
  border: 1px solid var(--tan);
  color: var(--brown);
  border-radius: var(--r-6);
  padding: 10px 16px;
  font-size: var(--fs-13);
  font-weight: var(--fw-bold);
  margin-bottom: 24px;
}
.legal-body {
  font-size: var(--fs-15);
  line-height: 1.7;
  color: var(--text);
}
.legal-body h2 {
  font-size: var(--fs-20);
  margin: 24px 0 8px;
}
.legal-body p {
  margin: 0 0 12px;
}
.legal-nav {
  margin-bottom: 24px;
  font-size: var(--fs-13);
}
.legal-nav a.active {
  color: var(--orange);
  font-weight: var(--fw-bold);
}

/* ---------------------------------------------------------------- breadcrumbs (browse pages) */
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--fs-13);
  color: var(--muted);
}
.crumbs li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--faint);
}
.crumbs a {
  color: var(--blue);
}
.crumbs [aria-current="page"] {
  color: var(--brown);
  font-weight: var(--fw-semibold);
}

/* ---------------------------------------------------------------- search: type-ahead + results */
.nav-search {
  position: relative;
}
.search-suggest {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  min-width: 280px;
  z-index: 50;
  background: var(--surface);
  border: 1px solid var(--tan);
  border-radius: var(--r-6);
  box-shadow: var(--shadow-lg);
  max-height: 70vh;
  overflow-y: auto;
}
.search-suggest[hidden] {
  display: none;
}
.ss-head {
  padding: 8px 12px 4px;
  font-size: var(--fs-11);
  font-weight: var(--fw-bold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.ss-item {
  display: flex;
  flex-direction: column;
  padding: 6px 12px;
  color: var(--text);
  text-decoration: none;
}
.ss-item:hover,
.ss-item.active {
  background: var(--yellow);
}
.ss-title {
  font-size: var(--fs-14);
}
.ss-subtitle {
  display: block;
  font-size: var(--fs-12);
  font-style: italic;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ss-sub {
  font-size: var(--fs-12);
  color: var(--muted);
}
.search-results {
  margin-bottom: 24px;
}
.search-title {
  font-size: var(--fs-22);
  margin: 0 0 12px;
}
.search-results h2 {
  font-size: var(--fs-15);
  margin: 18px 0 8px;
}
.search-none {
  font-size: var(--fs-16);
  font-weight: var(--fw-semibold);
}
.search-tips,
.search-dym {
  font-size: var(--fs-14);
}
.search-links {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: var(--fs-14);
}
.search-more {
  font-size: var(--fs-13);
  color: var(--muted);
}
.search-mode .content > *:not(#search-results) {
  display: none;
}

/* ---------------------------------------------------------------- A-Z title index, subjects directory */
.titles-index h1,
.subjects-directory h1 {
  font-family: var(--display);
  color: var(--brown);
}
.titles-index,
.subjects-directory,
.authors-index {
  padding: 0 0 32px; /* they sit inside the main panel, next to the left-hand panels */
}
.az-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 18px;
}
.az-letter {
  min-width: 34px;
  padding: 6px 8px;
  text-align: center;
  font-weight: var(--fw-bold);
  border: 1px solid var(--tan);
  border-radius: var(--r-4);
  background: var(--surface);
  color: var(--blue);
  text-decoration: none;
}
.az-letter:hover,
.az-letter.active {
  background: var(--yellow);
  color: var(--brown);
}
.az-letter.off {
  color: var(--faint);
  border-color: transparent;
  background: transparent;
}
.titles-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  columns: 3 190px; /* Titles A-Z and All Authors share this list: three columns where there is room, fewer on narrow screens */
  column-gap: 28px;
  font-size: var(--fs-14);
  line-height: 1.7;
}
.titles-list li {
  break-inside: avoid;
}
.titles-list .titles-author {
  display: block; /* the author sits under the title, so three narrow columns stay tidy */
  color: var(--muted);
  font-size: var(--fs-12);
  line-height: 1.3;
  margin-bottom: 6px;
}
.titles-list .titles-count {
  color: var(--muted);
  font-size: var(--fs-12);
}
.titles-pages {
  list-style: none;
  margin: 12px 0;
  padding: 0;
  font-size: var(--fs-14);
  line-height: 2;
}
.titles-pages a {
  display: inline-block;
  min-width: 26px;
  margin-right: 4px;
  padding: 0 6px;
  text-align: center;
  border: 1px solid var(--tan);
  border-radius: var(--r-4);
  background: var(--surface);
}
.titles-author {
  color: var(--muted);
}
.subjects-directory h2 {
  margin: 28px 0 10px;
}
.subjects-directory h3 {
  margin: 14px 0 6px;
  font-size: var(--fs-16);
}
.subjects-links {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  font-size: var(--fs-14);
  line-height: 1.7;
}
/* Subjects A-Z: ONE flow of columns. A subject (Fiction) stays in the first column and continues in the next only when it
   has to; a heading never sits alone at the foot of a column. */
.subjects-flow {
  columns: 3 210px;
  column-gap: 28px;
}
.subjects-flow .subjects-group {
  margin-bottom: 10px;
}
.subjects-flow h3 {
  break-after: avoid;
}
.subjects-flow .subjects-links li {
  break-inside: avoid;
}
.subjects-links li {
  break-inside: avoid;
}
.subjects-directory .count {
  color: var(--muted);
  font-size: var(--fs-12);
}
.subjects-directory details > summary {
  cursor: pointer;
}
.subjects-selection {
  position: sticky; /* stays in view when the page scrolls to the highlighted entry */
  top: 8px;
  z-index: 5;
  box-shadow: var(--shadow-sm);
  margin: 0 0 18px;
  padding: 10px 14px;
  border-radius: var(--r-6);
  background: var(--yellow);
  color: var(--brown);
  font-size: var(--fs-14);
}
.subjects-selection[hidden] {
  display: none;
}
.subjects-selection a {
  font-weight: var(--fw-bold);
}
.subjects-directory .current,
.subjects-directory :target {
  background: var(--yellow);
  border-radius: var(--r-4);
  box-shadow: 0 0 0 4px var(--yellow); /* the subject you had ticked, highlighted in the full list */
}
.subjects-directory [id] {
  scroll-margin-top: 90px;
}
.subjects-group {
  margin-bottom: 4px;
}

/* ------------------------------------------------------------- footer */

.site-footer {
  background: var(--yellow);
  padding: 16px var(--side-pad);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: var(--fs-12);
  color: var(--brown);
  flex-wrap: wrap;
  margin-top: auto;
}
.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: baseline;
}
a.footer-heading {
  color: var(--brown);
}
.footer-heading {
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: var(--fs-11);
}
.footer-legal-list {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-legal-list li {
  display: inline;
}
.footer-links a {
  color: var(--brown);
}
.footer-links a:hover {
  color: var(--orange);
}
.footer-disclosure {
  width: 100%;
  font-size: var(--fs-11);
  color: var(--muted);
}

/* ------------------------------------------------------------- responsive */

/* mid-width screens: five nav links, the search box and the language switch no longer fit on one row */
@media (max-width: 1240px) {
  .site-header {
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .nav-search {
    order: 3;
    max-width: none;
    margin: 0;
    flex-basis: 100%;
  }
  .nav-right {
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-left: auto;
  }
}
@media (max-width: 960px) {
  :root {
    --side-pad: 20px;
  }
  .site-header {
    flex-wrap: wrap;
  }
  .nav-right {
    flex-wrap: wrap;
    gap: 10px 16px;
    min-width: 0;
  }
  .nav-search {
    order: 3;
    max-width: none;
    margin: 0;
    flex-basis: 100%;
  }
  .hero-title {
    font-size: var(--fs-30);
  }
  .hero-sub {
    font-size: var(--fs-18);
  }
  .browse-layout,
  .title-layout,
  .suggest-layout {
    flex-direction: column;
  }
  .title-layout {
    align-items: stretch; /* stacked: take the screen width instead of shrinking to the widest content (the cards row) */
  }
  .facets {
    width: 100%;
  }
  /* phone: the main panel first, the filter panels after it (a jump link at the top leads to them) */
  .browse-layout .content {
    order: 1;
  }
  .browse-layout .facets {
    order: 2;
  }
  .jump-filters {
    display: inline-block;
  }
  .title-aside,
  .suggest-aside {
    width: 100%;
  }
  .cover-grid,
  .results-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .book-title {
    font-size: var(--fs-30);
  }
}

/* T6: author index (all authors, alphabetical, paginated) */
.panel-title .panel-link {
  float: right;
  font-size: 0.85em;
  font-weight: normal;
  color: var(--blue);
  text-decoration: none;
}
.facets .morelink.active {
  color: var(--orange);
  font-weight: var(--fw-bold);
}
.panel-title .panel-link:hover {
  text-decoration: underline;
}
.authors-index h1 {
  font-family: var(--display);
  color: var(--brown);
}
.authors-index .checkrow .count {
  color: var(--muted);
}

/* T6: expandable "more languages" section in the language facet panel */
.facet-more summary {
  cursor: pointer;
  font-size: 0.85em;
  color: var(--blue);
  padding: 6px 0;
}
.facet-more[open] summary {
  margin-bottom: 6px;
}
.facet-more .facet-list {
  margin-top: 4px;
}

/* ---- Home discovery (MOCKUP, 3 Nov 2026): topic chips, title of the day, collections ---- */
.discovery { margin-bottom: 8px; }
.topics { margin: 22px 0 22px; } /* the "Browse by topic" label sits level with the title of the first left-hand box */
.topics-label { display: block; font-size: var(--fs-12); font-weight: var(--fw-bold); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.topic-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.topic-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--tan); border-radius: var(--r-16); background: var(--cream); color: var(--brown); font-size: var(--fs-14); font-weight: var(--fw-semibold); text-decoration: none; }
.topic-chip:hover { background: var(--yellow); color: var(--orange); }
.topic-chip:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.topic-count { font-size: var(--fs-11); font-weight: var(--fw-regular); color: var(--faint); }
.topic-shuffle { background: var(--blue); border-color: var(--blue); color: var(--on-accent); }
.topic-shuffle:hover { background: var(--blue-dark); color: var(--on-accent); }
.daily { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 20px; margin: 0 0 24px; background: var(--cream2); border: 1px solid var(--line); border-radius: var(--r-6); }
/* a week of titles of the day is in the page; only today's is shown (DAILY_PICK_SCRIPT) */
.daily[hidden] { display: none; }
.daily-cover .cover { width: 100%; aspect-ratio: 2/3; display: block; background: var(--cover-placeholder); border: 1px solid var(--cover-edge); border-radius: var(--r-4); object-fit: cover; }
.daily-kicker { font-size: var(--fs-12); font-weight: var(--fw-bold); letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange); }
.daily-title { font-family: var(--serif); font-size: var(--fs-26); line-height: 1.2; margin: 4px 0 2px; color: var(--brown); }
.daily-title a { color: inherit; text-decoration: none; }
.daily-title a:hover { color: var(--orange); }
.daily-author { color: var(--muted); font-size: var(--fs-14); margin-bottom: 10px; }
.daily-excerpt { margin: 0 0 12px; font-size: var(--fs-15); line-height: 1.5; color: var(--text); }
.daily-link { font-weight: var(--fw-semibold); color: var(--blue); }
.collection-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.collection-all { font-size: var(--fs-13); font-weight: var(--fw-semibold); color: var(--blue); }
.collection-intro { margin: 0 0 14px; color: var(--muted); font-size: var(--fs-14); }
@media (max-width: 600px) {
  .daily { grid-template-columns: 96px 1fr; gap: 14px; padding: 14px; }
  .daily-title { font-size: var(--fs-20); }
}
.buy-note { margin: 0 0 6px; font-size: var(--fs-13); line-height: 1.4; color: var(--muted); }
.buy-note.buy-note-below { margin: 2px 0 0; }

/* In-page buy panel (title page): the store list for a market, opened by the US/Canada | Europe | UK/AUS chips.
   Same look as the .buy-chip row above it: small chips, no solid bars. A retailer with several country stores
   is a plain label followed by its stores as chips (".de .fr"); a single-store retailer is one chip. */
.buy-chip.active { background: var(--brown); color: var(--on-accent); }
.buy-panel { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--tan); }
.buy-panel ul { list-style: none; padding: 0; margin: 0; }
.buy-panel ul.top { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.buy-panel li.tree { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-bottom: 2px; }
.buy-panel .parent { font-size: var(--fs-13); font-weight: var(--fw-bold); color: var(--brown); margin-right: 2px; }
.buy-panel ul.stores { display: contents; }
.buy-panel ul.stores li { display: contents; }
.buy-panel a.retailer, .buy-panel a.store { font-size: var(--fs-12); font-weight: var(--fw-bold); color: var(--brown); background: var(--surface); border: 1px solid var(--tan); padding: 3px 10px; border-radius: var(--r-4); text-decoration: none; }
.buy-panel a.retailer, .buy-panel a.store { border-color: var(--brown); }
.buy-panel a.retailer:hover, .buy-panel a.retailer:focus-visible,
.buy-panel a.store:hover, .buy-panel a.store:focus-visible { background: var(--brown); color: var(--on-accent); }
.buy-panel .note { margin: 8px 0 0; font-size: var(--fs-12); color: var(--muted); }

/* Collapsible sidebar box (Keywords): the title is the summary; the arrow shows the state */
.panel.collapsible > summary.panel-title {
  cursor: pointer;
  list-style: none;
  margin-bottom: 0;
}
.panel.collapsible > summary.panel-title::-webkit-details-marker { display: none; }
.panel.collapsible > summary.panel-title::before {
  content: "▸";
  display: inline-block;
  width: 14px;
  color: var(--muted);
}
.panel.collapsible[open] > summary.panel-title { margin-bottom: 12px; }
.panel.collapsible[open] > summary.panel-title::before { content: "▾"; }
.panel.collapsible .sel-count { color: var(--orange); }
.panel.collapsible > summary.panel-title { display: flex; align-items: baseline; gap: 4px; }
.panel.collapsible > summary.panel-title .panel-link { float: none; margin-left: auto; white-space: nowrap; }

/* a subject with no book in the current result: listed (the list never shrinks) but greyed and not a link */
.checkrow.zero { color: var(--faint); cursor: default; }
.checkrow.zero .count { color: var(--faint); }
.checkrow.zero .box { opacity: 0.4; }

/* Subjects page opened from a selection: a subject with no book in that selection is muted */
.subjects-directory .zero > a, .subjects-directory .zero > summary a, .subjects-directory .zero .count, .subjects-directory .zero h3 a { color: var(--faint); }

/* Advanced: BISAC categories under their major category, in the same three-column list as Titles A-Z */
.bisac-group h2 { font-family: var(--display); font-size: var(--fs-18); color: var(--brown); margin: 22px 0 6px; }
.titles-list .zero a, .titles-list .zero .titles-count, .titles-list .zero .titles-author { color: var(--faint); }
.titles-list a.active { font-weight: var(--fw-bold); color: var(--orange); }

/* Advanced: one continuous three-column flow of category blocks (no gaps after short categories), one line per code */
.bisac-flow { columns: 3 190px; column-gap: 28px; margin-top: 8px; }
.bisac-flow .bisac-group { margin: 0 0 14px; }
.bisac-flow .bisac-group h2 { margin: 0 0 4px; font-size: var(--fs-16); break-after: avoid; }
.bisac-flow ul { list-style: none; margin: 0; padding: 0; font-size: var(--fs-13); line-height: 1.55; }
.bisac-flow li { break-inside: avoid; }
.bisac-flow .bcode { font-variant-numeric: tabular-nums; font-size: var(--fs-12); color: var(--muted); }
.bisac-flow a .bcode { color: var(--blue); } /* the code is the link text when the catalog has no name for it */
.bisac-flow a .bname { color: var(--blue); }
.bisac-flow .zero a, .bisac-flow .zero .bcode, .bisac-flow .zero .titles-count { color: var(--faint); }
.bisac-flow a.active { font-weight: var(--fw-bold); color: var(--orange); }

/* BISAC categories under their Thema subject: collapsed, indented */
.bisac-under { margin: 2px 0 6px 16px; font-size: var(--fs-13); }
.bisac-under > summary { cursor: pointer; color: var(--muted); }
.bisac-under .subjects-links { margin-top: 4px; }

/* Keywords box: type-ahead list under the input (public/search-boost.js) */
.kw-suggest { list-style: none; margin: 4px 0 0; padding: 4px 0; background: var(--surface); border: 1px solid var(--tan); border-radius: var(--r-6); box-shadow: var(--shadow-md); max-height: 260px; overflow: auto; }
.kw-suggest a { display: block; padding: 5px 12px; font-size: var(--fs-14); color: var(--brown); text-decoration: none; }
.kw-suggest a:hover, .kw-suggest a.active { background: var(--yellow); }

/* Subjects A-Z under a selection: a subject with no book in it is plain grey text, not a link */
.subjects-directory .nolink { color: var(--faint); }

/* a choice that is already made for you (the only format with books): shown ticked, not clickable */
.checkrow.fixed { cursor: default; }

/* the home page has no breadcrumb: do not leave an empty strip under the headline */
.crumbbar:empty { display: none; }

/* author line: the author name; the share row sits under it, above the description, at the description's width */
.author-row {
  max-width: var(--w-reading);
  margin-top: 6px;
}
.author-row .author-link {
  margin-top: 4px;
}
.share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: var(--w-reading);
  margin: 14px 0 18px;
}
.share-menu {
  position: relative;
}
.share-menu summary {
  list-style: none;
  cursor: pointer;
}
.share-menu summary::-webkit-details-marker {
  display: none;
}
.share-row .share-main,
.share-row .share-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 16px;
  font-family: var(--sans);
  font-size: var(--fs-13);
  font-weight: var(--fw-semibold);
  border-radius: 999px;
  cursor: pointer;
}
.share-row .share-main {
  color: var(--surface);
  background: var(--orange);
  border: 1px solid var(--orange);
}
.share-row .share-main:hover {
  opacity: 0.88;
}
.share-row .share-pill {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
}
.share-row .share-pill:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.share-row button[hidden] {
  display: none;
}
.share-more {
  font-family: var(--sans);
  font-size: var(--fs-13);
  font-weight: var(--fw-semibold);
  color: var(--muted);
}
.share-more a {
  color: inherit;
  text-decoration: none;
}
.share-more a + a::before {
  content: "\00b7";
  margin: 0 7px;
}
.share-more a:hover {
  color: var(--orange);
}
.share-list {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 60;
  min-width: 170px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-6);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.share-list a,
.share-list button {
  padding: 9px 14px;
  font-family: var(--sans);
  font-size: var(--fs-14);
  font-weight: var(--fw-semibold);
  color: var(--text);
  text-align: left;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
}
.share-list button[hidden] {
  display: none;
}
.share-list a:hover,
.share-list button:hover {
  background: var(--surface-mute);
}
.isbn-line {
  font-size: var(--fs-13);
  line-height: 1.35;
  color: var(--muted);
  margin: -10px 0 0;
}
.isbn-row,
.publisher-row {
  display: block;
}
.isbn-num {
  font-variant-numeric: tabular-nums;
  user-select: all;
}

/* ---- One cover shape in grids and shelves (Andreas, 9 Nov 2026) ----
   Every cover shown among others (browse grids, shelves, related lists, the cover gallery) fills the same 2:3
   frame. AI covers are 2:3 already; human covers are 3:4 and are cropped to 2:3, centred (5.6% off each side). DISPLAY ONLY: the files,
   the downloads, the title page and the cover-art panel keep each cover's real proportions (their images carry width/height
   attributes and use their own ratio). Placeholders (<span>) keep the same frame. */
.cover-card img.cover,
.related-card img.cover,
.gallery-card img.cover { object-fit: cover; object-position: center; }
/* The title of the day is a single feature cover: shown whole, as before (not cropped). */
.daily-cover img.cover { object-fit: contain; object-position: center bottom; background: transparent; border-color: transparent; }
.title-aside img.cover { object-fit: contain; }
.title-aside img.cover,
.cover-art-asset img { aspect-ratio: auto; object-position: center; }

/* Home page of a UI-only language (nl, hu, it) */
/* the shelves of the English catalogue on the nl / hu / it landing pages: same side margin as the headline */
.ui-landing .discovery {
  padding: 0 var(--side-pad);
}
.ui-landing-body {
  padding: 0 var(--side-pad) 24px;
  max-width: 900px;
}
.ui-landing-legal {
  font-size: var(--fs-18);
  margin: 28px 0 8px;
}
.ui-landing-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

/* "See all authors" checkbox above the Authors A-Z list */
.authors-see-all {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 4px 8px;
}

/* ---- Narrow screens: the language menu stays at the right edge and its list opens inside the screen ----
   On a phone the French/German/Spanish links wrap the nav onto two rows; the globe then landed at the left of the second
   row and its list (anchored to the globe's right edge) ran off the left side of the screen. The list is now anchored to the
   full-width nav row instead, so it is right-aligned to the screen edge wherever the globe sits. */
@media (max-width: 960px) {
  .nav-right {
    position: relative;
    width: 100%;
    margin-left: 0;
  }
  .locale-menu {
    position: static;
    margin-left: auto;
  }
  .locale-menu-list {
    right: 0;
    left: auto;
    max-width: calc(100vw - 2 * var(--side-pad));
  }
}

.notify-form {
  flex-wrap: wrap;
  align-items: center;
}
.notify-note {
  flex-basis: 100%;
  margin: 0;
  font-size: var(--fs-11);
  color: var(--faint);
}

/* series index (/series/): one row per series, its name, count and link on one line above a newsstand rack of covers */
.series-index h1 { margin: 8px 0 16px; }
.series-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 48px; }
.series-tile { border-top: 3px solid var(--text); padding-top: 10px; min-width: 0; }
.series-tile-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; border-bottom: 1px solid var(--text); padding-bottom: 8px; margin-bottom: 22px; }
.series-tile-name { margin: 0; font-family: var(--serif); font-size: var(--fs-34); font-weight: var(--fw-regular); line-height: 1.05; }
.series-tile-name a { color: var(--text); text-decoration: none; }
.series-tile-count { margin: 0; font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.08em; font-size: var(--fs-12); color: var(--muted); }
.series-tile-go { margin-left: auto; font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.1em; font-size: var(--fs-12); font-weight: var(--fw-semibold); }

/* the newsstand rack: covers stand face-out, leaning back a little, on a ledge behind a clear rail that covers only their bottom edge.
   Each cover keeps its own shape (2:3 or 3:4, never cropped) and stands on the ledge. A narrow screen scrolls the rack, not the page. */
.series-rack { border-radius: var(--r-12) var(--r-12) var(--r-6) var(--r-6); background: var(--rack-back); padding: 26px 22px 0; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: 22px; }
.series-rack-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(112px, 1fr)); gap: 18px; position: relative; min-width: min-content; perspective: 900px; }
.series-rack-row::after { content: ""; position: absolute; left: -22px; right: -22px; bottom: 0; height: 9%; min-height: 14px; background: var(--rack-rail); border-top: 1px solid var(--rack-rail-edge); pointer-events: none; }
.series-rack-slot { aspect-ratio: 2 / 3; display: flex; align-items: flex-end; scroll-snap-align: start; }
.series-rack-slot a { display: block; width: 100%; transform-origin: 50% 100%; transform: rotateX(5deg); transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.series-rack-slot img { display: block; width: 100%; height: auto; border-radius: var(--r-3) var(--r-8) var(--r-8) var(--r-3); box-shadow: var(--rack-shadow); transition: box-shadow 0.35s; }
.series-rack-slot a:hover, .series-rack-slot a:focus-visible { transform: rotateX(0deg) translateY(-14px); }
.series-rack-slot a:hover img, .series-rack-slot a:focus-visible img { box-shadow: var(--rack-shadow-lift); }
.series-rack-ledge { height: 16px; margin: 0 -22px; background: linear-gradient(var(--rack-ledge-top), var(--rack-ledge)); border-radius: 0 0 var(--r-6) var(--r-6); box-shadow: var(--rack-ledge-shadow); }
@media (max-width: 700px) {
  .series-tile-go { margin-left: 0; flex-basis: 100%; }
  .series-rack { padding: 20px 16px 0; scroll-padding-inline: 16px; }
  .series-rack-row { grid-template-columns: repeat(8, 118px); gap: 14px; }
  .series-rack-row::after { left: -16px; right: -16px; }
  .series-rack-ledge { margin: 0 -16px; }
}
@media (prefers-reduced-motion: reduce) {
  .series-rack-slot a, .series-rack-slot img { transition: none; }
}

/* series introduction (series page, page 1): blurb with a More button that opens the full text; native <details>, no JS */
.series-intro { margin: 0 0 22px; max-width: 70ch; }
.series-intro summary { list-style: none; cursor: pointer; }
.series-intro summary::-webkit-details-marker { display: none; }
.series-blurb { display: block; font-family: var(--serif); font-size: var(--fs-20); line-height: 1.35; color: var(--text); }
.series-more, .series-less { display: inline-block; margin-top: 8px; text-transform: uppercase; letter-spacing: 0.1em; font-size: var(--fs-12); font-weight: var(--fw-semibold); color: var(--text); border-bottom: 1px solid var(--text); }
.series-more::after { content: " ›"; }
.series-less::after { content: " ‹"; }
.series-less, .series-intro details[open] .series-more, .series-intro details[open] .series-blurb { display: none; }
.series-intro details[open] .series-less { display: inline-block; margin: 0 0 10px; }
.series-intro summary:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.series-full p { margin: 0 0 12px; font-size: var(--fs-18); line-height: 1.55; }

/* cover-art gallery filters (public/gallery-filter.js) and the Browse page's "View as cover art" link */
.art-link { display: inline-block; margin-top: 6px; font-size: var(--fs-13, 0.85rem); }
#art-filter { margin: 12px 0; }
.art-chip { text-decoration: none; }
.art-clear { margin-left: 8px; font-size: var(--fs-13, 0.85rem); }

/* Immediate feedback on a click that waits for the server (Buy regions, Notify me): the control shows at once that it is working,
   so nobody clicks again. A small ring spins after the label; reduced-motion visitors get the static ring. */
@keyframes tc-spin { to { transform: rotate(360deg); } }
.buy-chip.loading,
.notify-form .notify-btn.loading {
  cursor: progress;
  pointer-events: none;
  opacity: 0.85;
}
.buy-chip.loading::after,
.notify-form .notify-btn.loading::after {
  content: "";
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin-left: 0.55em;
  vertical-align: -0.1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: tc-spin 0.7s linear infinite;
}
.buy-chip.loading { color: var(--chip-on-fg, inherit); background: var(--chip-on-bg, var(--tan)); border-color: var(--chip-on-bg, var(--tan)); }
@media (prefers-reduced-motion: reduce) {
  .buy-chip.loading::after,
  .notify-form .notify-btn.loading::after { animation: none; }
}

/* theme: textcafe */
/* latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/InstrumentSerif-italic-400-latin-ext-59d106.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;
}
/* latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/InstrumentSerif-italic-400-latin-416828.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;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/InstrumentSerif-normal-400-latin-ext-7cd6b8.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;
}
/* latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/InstrumentSerif-normal-400-latin-03435c.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;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/InstrumentSans-normal-400-latin-ext-a53201.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;
}
/* latin */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/InstrumentSans-normal-400-latin-11aa49.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;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/InstrumentSans-normal-600-latin-ext-a53201.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;
}
/* latin */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/InstrumentSans-normal-600-latin-11aa49.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;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/InstrumentSans-normal-700-latin-ext-a53201.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;
}
/* latin */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/InstrumentSans-normal-700-latin-11aa49.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;
}

/* TextCafe, Version A (Christoph's design, approved 15 Nov 2026): warm cream page, Instrument Serif + Instrument Sans, rounded cards,
   Deep Teal accent (Andreas), espresso footer. Light and dark. The tokens below override the :root block of globals.css; the rules under
   them restyle the shared components. Fonts come from textcafe.fonts.css (self-hosted in /fonts). */
:root {
  --paper: #f8f3ea;
  --surface: #ffffff;
  --surface-sunk: #f1e8d8;
  --surface-mute: #efe8dc;
  --cream: #fffaf2;
  --cream2: #fffaf2;
  --text: #24170f;
  --brown: #24170f;
  --muted: #5d4a3c;
  --faint: #76644f;
  --line: rgba(69, 41, 20, 0.13);
  --line-soft: rgba(69, 41, 20, 0.08);
  --tan: rgba(69, 41, 20, 0.2);
  --yellow: #ffe19a;
  --orange: #1f6a6a; /* the old orange accent slot now carries the Deep Teal accent */
  --blue: #1f6a6a;
  --blue-dark: #1a5a5a;
  --accent2: #2f8f8f;
  --espresso: #2b1a10;
  --green: #4a7c59;
  --cover-placeholder: #e7ddc8;
  --cover-edge: rgba(0, 0, 0, 0.06);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --shadow-sm: 0 1px 2px rgba(43, 26, 16, 0.06), 0 4px 12px rgba(43, 26, 16, 0.07);
  --shadow-md: 0 1px 2px rgba(43, 26, 16, 0.06), 0 8px 24px rgba(43, 26, 16, 0.09);
  --shadow-lg: 0 2px 6px rgba(43, 26, 16, 0.08), 0 24px 60px rgba(43, 26, 16, 0.18);
  --r-3: 4px;
  --r-4: 6px;
  --r-6: 10px;
  --r-8: 12px;
  --r-10: 14px;
  --r-12: 16px;
  --r-16: 18px;
  --r-20: 22px;
  --r-pill: 999px;
  --dim-1: brightness(0.96);
  --dim-2: brightness(0.94);
}
html[data-theme="dark"] {
  --paper: #17100b;
  --surface: #261b13;
  --surface-sunk: #1f160f;
  --surface-mute: #2d2118;
  --cream: #1f160f;
  --cream2: #1f160f;
  --text: #f6ece0;
  --brown: #f6ece0;
  --muted: #d5c3b1;
  --faint: #a8947f;
  --line: rgba(255, 225, 154, 0.14);
  --line-soft: rgba(255, 225, 154, 0.08);
  --tan: rgba(255, 225, 154, 0.22);
  --orange: #6fb0b0;
  --blue: #6fb0b0;
  --blue-dark: #8cc4c4;
  --cover-placeholder: #35271c;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

body { font-family: var(--serif); font-size: 18px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .hero-title, .book-title { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; color: var(--text); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, label:focus-visible { outline: 3px solid var(--accent2); outline-offset: 2px; border-radius: 8px; }
/* controls, labels and small print are sans */
.site-header, .navlink, .nav-search input, .locale-menu, .locale-switch, .topic-chip, .topics-label, .pill, .chip, .clearall, .crumbbar, .crumb, .sort-wrap,
.facet-sidebar, #facets, .pagination, .more-btn, .badge-soon, .series-tag, .buy-group, .buy-chip, .notify-form, .isbn-line, .catalog-count, .collection-all,
.daily-kicker, .daily-link, .cover-author, .footer-links, .footer-disclosure, .site-footer, .author-box, .discover-box, .translations, .jump-filters,
.tc-theme, .tc-eyebrow, .tc-stats, .tc-btn, .tc-link { font-family: var(--sans); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; gap: 18px; padding: 0 var(--side-pad); min-height: 68px;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
/* a phone on its side is only about 390px tall: the header scrolls away with the page instead of staying pinned over it */
@media (max-height: 520px) { .site-header { position: static; } }
.site-header .brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.6rem; font-weight: 400; color: var(--text); letter-spacing: 0; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand b { color: var(--blue); font-weight: 400; }
.nav-search { max-width: 360px; margin: 0 0 0 auto; }
.nav-search input { border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); padding: 9px 16px; font-size: 0.92rem; }
.nav-search input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent); }
.nav-right { gap: 4px; }
.navlink { text-transform: none; letter-spacing: 0; font-size: 0.95rem; font-weight: 600; color: var(--muted); padding: 8px 14px; border-radius: var(--r-pill); }
.navlink:hover, .navlink.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.locale-menu summary, .locale-switch { border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); padding: 8px 13px; font-weight: 600; font-size: 0.9rem; color: var(--text); }
.locale-switch a { background: transparent; color: var(--text); }
.locale-switch a.active { background: var(--yellow); color: #452914; border-radius: var(--r-pill); }
.tc-theme { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: inline-grid; place-items: center; cursor: pointer; margin-left: 4px; padding: 0; }
.tc-theme svg { width: 18px; height: 18px; }

/* ---------- hero (home) ---------- */
.hero { position: relative; overflow: hidden; padding: 72px var(--side-pad) 28px; max-width: 1240px; margin: 0 auto; width: 100%; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto auto; width: 720px; height: 720px; border-radius: 50%; pointer-events: none; opacity: 0.7;
  background: radial-gradient(circle, color-mix(in srgb, var(--yellow) 70%, transparent), transparent 65%); }
.hero > * { position: relative; }
.hero-title { font-size: clamp(2.6rem, 5.6vw, 4.8rem); line-height: 1; margin: 0 0 18px; max-width: 14em; color: var(--text); }
.hero-title em { font-style: normal; color: var(--blue); }
.hero-sub { font-family: var(--serif); font-size: 1.15rem; color: var(--muted); max-width: 31em; margin: 0 0 8px; font-weight: 400; }

/* ---------- topic chips / cards ---------- */
.topics-label { color: var(--blue); font-size: 0.78rem; letter-spacing: 0.14em; }
.topic-chip { border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); color: var(--text); font-size: 0.88rem; font-weight: 600; text-transform: none; letter-spacing: 0; padding: 7px 14px; transition: 0.2s; }
.topic-chip:hover { background: var(--espresso); border-color: var(--espresso); color: #fff; }
html[data-theme="dark"] .topic-chip:hover { background: var(--blue); border-color: var(--blue); color: #17100b; }
.topic-count { color: var(--faint); }
.topic-chip:hover .topic-count { color: inherit; opacity: 0.8; }
.topic-shuffle { background: linear-gradient(135deg, var(--blue), #144b4b); border-color: transparent; color: #fff; }
.topic-shuffle:hover { background: #144b4b; color: #fff; }
html[data-theme="dark"] .topic-shuffle { background: linear-gradient(135deg, #1f6a6a, #144b4b); color: #fff; }

/* ---------- title of the day (the Feature panel) ---------- */
.daily { position: relative; overflow: hidden; border: 0; border-radius: 28px; background: var(--espresso); color: #fbefe0; grid-template-columns: 220px 1fr; gap: 40px; padding: 40px; align-items: center; }
.daily-cover .cover { border: 0; border-radius: 6px 14px 14px 6px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); transform: rotate(-3deg); transition: transform 0.4s; }
.daily-cover:hover .cover { transform: rotate(0) scale(1.02); }
.daily-cover img.cover { object-fit: cover; background: var(--cover-placeholder); }
.daily-kicker { color: var(--yellow); letter-spacing: 0.14em; }
.daily-title { font-size: clamp(2rem, 3.6vw, 3rem); color: #fff; line-height: 1.05; margin: 10px 0 6px; }
.daily-title a:hover { color: var(--yellow); }
.daily-author { color: #fbefe0; opacity: 0.85; font-size: 1.1rem; font-family: var(--serif); }
.daily-excerpt { color: #fbefe0; opacity: 0.9; font-size: 1.05rem; max-width: 40em; }
.daily-link { display: inline-flex; padding: 13px 22px; border-radius: var(--r-pill); background: var(--blue); color: #fff; font-weight: 650; font-size: 0.95rem; }
.daily-link:hover { background: #144b4b; color: #fff; }
html[data-theme="dark"] .daily-link { background: #1f6a6a; }

/* ---------- cover cards ---------- */
.cover-card .cover { border: 0; border-radius: 4px 10px 10px 4px; box-shadow: var(--shadow-md); transition: transform 0.3s, box-shadow 0.3s; }
.cover-card:hover .cover, .cover-card-link:hover .cover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cover-card .cover-title { font-family: var(--serif); font-size: 1.12rem; font-weight: 400; line-height: 1.2; color: var(--text); }
.cover-card .cover-subtitle { font-family: var(--sans); font-style: normal; font-size: 0.82rem; color: var(--faint); }
.cover-card .cover-author { text-transform: none; letter-spacing: 0; font-size: 0.86rem; color: var(--muted); }
.badge-soon, .series-tag { border-radius: var(--r-pill); }
.badge-soon { background: var(--yellow); color: #452914; }
.shelf-title, .catalog-title, .collection-head .shelf-title { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 400; color: var(--text); }
.collection-all { color: var(--blue); font-weight: 650; }
.collection-intro { color: var(--muted); }
.shelf-rule { border: 0; border-top: 1px solid var(--line); }
.catalog-count { color: var(--faint); }

/* ---------- browse: filters, sort, pages ---------- */
.browse-layout { max-width: 1240px; margin-left: auto; margin-right: auto; width: 100%; }
.sort-opt { border-radius: var(--r-pill); }
.sort-opt.active { background: var(--surface); box-shadow: var(--shadow-sm); color: var(--text); }
.chip, .pill { border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); color: var(--muted); text-transform: none; letter-spacing: 0; font-size: 0.85rem; }
a.pill:hover { background: var(--espresso); color: #fff; border-color: var(--espresso); }
.more-btn, .pagination a, .pagination span { border-radius: var(--r-pill); }
.more-btn { background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.more-btn:hover { background: var(--espresso); color: #fff; }

/* ---------- legal pages: same readable body as the book descriptions (sans 17px, full-contrast text); headings stay serif ---------- */
.legal-body { font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; color: var(--text); max-width: var(--w-reading); }
.legal-body h2 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.25; margin: 32px 0 10px; }
.legal-body p { margin: 0 0 14px; }
.legal-body ul, .legal-body ol { margin: 0 0 14px; padding-left: 1.4em; }
.legal-body li { margin: 0 0 6px; }
.draft-banner { font-family: var(--sans); }
.legal-nav, .legal-nav .tab { font-family: var(--sans); font-size: 0.9375rem; }

/* ---------- small text: navigation, lists, tabs, counts and labels are sans (the narrow serif is for headings and large text); counts are 13px ---------- */
.authors-see-all, .authors-see-all .rowlabel, .titles-list, .titles-list a, .titles-list .titles-author, .titles-list .titles-count,
.subjects-directory li, .subjects-directory li a, .subjects-directory summary, .subjects-directory summary a, .subjects-directory .count,
.crumbs, .crumbs a, .tabs .tab, .genre-tab, .art-link, .collection-intro,
.related-card .cover-title, .gallery-card .cover-title, .download-btn, .cover-art-panel .panel-title, .cover-art-note, .ai-notice, .credit-line { font-family: var(--sans); }
.titles-list .titles-count, .subjects-directory .count { font-size: 0.8125rem; }

/* ---------- title page ---------- */
.book-title { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.02; }
/* description: the opening sentence is a larger serif line, the rest is the sans body face in full-contrast text (the narrow serif was hard to read at length) */
.book-desc { font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; color: var(--text); }
.book-desc .desc-lede { font-family: var(--serif); font-size: 1.3125rem; line-height: 1.4; }
.book-desc > p:first-of-type::first-letter { float: none; font-size: inherit; padding: 0; line-height: inherit; }
.isbn-line { border: 0; padding: 0; text-transform: none; letter-spacing: 0; color: var(--faint); font-size: 0.85rem; }
.panel, .author-box, .discover-box, .buy-group { border-radius: var(--r-16); }
.buy-group, .author-box, .discover-box { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.buy-chip { border-radius: var(--r-pill); }
.title-aside .cover { border-radius: 6px 14px 14px 6px; box-shadow: var(--shadow-lg); border: 0; }
.crumbbar, .crumb { color: var(--faint); font-size: 0.85rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--espresso); color: #e9dccd; border-top: 0; margin-top: 80px; padding: 56px var(--side-pad) 34px; display: block; font-size: 0.9rem; }
.site-footer a, a.footer-heading { color: #e9dccd; opacity: 0.85; }
.site-footer a:hover { opacity: 1; color: #fff; }
.foot-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; max-width: 1240px; margin: 0 auto; }
.foot-cols h4 { margin: 0 0 12px; font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--yellow); font-weight: 700; }
.foot-cols a { display: block; padding: 4px 0; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.6rem; color: #fff; margin-bottom: 12px; opacity: 1; }
.foot-brand b { color: #6fb0b0; font-weight: 400; }
.foot-blurb { margin: 0; opacity: 0.75; max-width: 28em; font-size: 1rem; }
.foot-small { max-width: 1240px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-family: var(--sans); font-size: 0.82rem; opacity: 0.7; }
.foot-small .footer-disclosure { margin: 4px 0; }

@media (max-width: 900px) {
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .daily { grid-template-columns: 1fr; padding: 28px; }
  .daily-cover { max-width: 200px; }
  .site-header { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .nav-search { order: 3; max-width: none; flex: 1 1 100%; margin: 0; }
}
@media (max-width: 560px) {
  .foot-cols { grid-template-columns: 1fr; }
  /* On a phone the header menu (Browse, Series, Cover art, Suggest) and the language menu are already on screen: do not repeat them */
  .foot-cols .dup-nav, .foot-cols .foot-langs { display: none; }
  .hero { padding-top: 40px; }
}

/* ---------- Version A home: hero with search, stats and the fanned cover stack ---------- */
.hero-a { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero-a .hero-title { margin-top: 0; }
.hero-search { position: relative; max-width: 560px; margin: 26px 0 0; }
.hero-search svg { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.hero-search input { width: 100%; font: 500 1.05rem var(--sans); padding: 18px 130px 18px 54px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); color: var(--text); box-shadow: var(--shadow-md); outline: none; }
.hero-search input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent), var(--shadow-md); }
.hero-search .go { position: absolute; right: 6px; top: 6px; bottom: 6px; padding: 0 22px; border: 0; border-radius: var(--r-pill); background: var(--espresso); color: #fff; font: 650 0.95rem var(--sans); cursor: pointer; }
html[data-theme="dark"] .hero-search .go { background: #1f6a6a; }
.tc-stats { display: flex; gap: 34px; margin-top: 34px; flex-wrap: wrap; }
.tc-stats div { font-size: 0.85rem; color: var(--faint); }
.tc-stats strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.9rem; color: var(--text); line-height: 1.1; }
/* The fan scales with its column so the opened fan stays inside the hero (which clips, for the glow): --w is the cover width, at most
   --cap, and small enough that the outermost cover (half-width of the open fan = 1.9 x --w) ends inside the hero's edge (--room: the page's side padding less 8px for the shadow). Every
   offset is a share of --w, so the fan keeps its shape at any size. Touch screens never open it, so they only need the closed fan (1.63 x --w). */
.hero-stack { position: relative; height: 440px; container-type: inline-size; --cap: 180px; --room: calc(var(--side-pad, 48px) - 8px); --fit: 1.9; }
.stack-cover { --w: min(var(--cap), calc((50cqi + var(--room)) / var(--fit))); position: absolute; left: 50%; top: 50%; width: var(--w); aspect-ratio: 2 / 3; margin: calc(var(--w) * -0.75) 0 0 calc(var(--w) * -0.5); border-radius: 6px 12px 12px 6px; overflow: hidden; box-shadow: var(--shadow-lg);
  transform-origin: 50% 120%; transform: translateX(calc(var(--o) * var(--w) * 0.356)) rotate(calc(var(--o) * 7deg)) translateY(calc(var(--o) * var(--o) * var(--w) * 0.039)); z-index: calc(10 - var(--o) * var(--o)); transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.stack-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stack-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0.25), transparent 8%, transparent 92%, rgba(255, 255, 255, 0.15)); }
@media (hover: hover) { .hero-stack:hover .stack-cover { transform: translateX(calc(var(--o) * var(--w) * 0.433)) rotate(calc(var(--o) * 9deg)) translateY(calc(var(--o) * var(--o) * var(--w) * 0.039)); } }
@media (hover: none) { .hero-stack { --fit: 1.63; } }

/* ---------- Version A topic cards ---------- */
.topic-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.topic-card { position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 132px; padding: 20px 18px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: transform 0.25s, box-shadow 0.25s; font-family: var(--sans); }
.topic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--text); }
.topic-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--tint, #ece6dc); color: var(--tintInk, #5d4a3c); margin-bottom: 18px; }
.topic-ic svg { width: 22px; height: 22px; }
.topic-name { font-family: var(--serif); font-size: 1.15rem; line-height: 1.2; }
.topic-card .topic-count { font-size: 0.85rem; color: var(--faint); }
.topic-mystery { --tint: #e8e1f7; --tintInk: #4b3a8c; } .topic-horror { --tint: #e4e4e4; --tintInk: #2b2b2b; } .topic-scifi { --tint: #dceefd; --tintInk: #1d5f99; }
.topic-fantasy { --tint: #f3e1f3; --tintInk: #86307f; } .topic-romance { --tint: #fde3e3; --tintInk: #a12d3b; } .topic-adventure { --tint: #e2f2e6; --tintInk: #2f6b41; }
.topic-children { --tint: #fff1c9; --tintInk: #8a5a00; } .topic-poetry { --tint: #ffe7d6; --tintInk: #a4480a; } .topic-drama { --tint: #e0f1f1; --tintInk: #1f6a6a; }
.topic-philosophy { --tint: #ece6dc; --tintInk: #5d4a3c; } .topic-history { --tint: #f6e6cf; --tintInk: #7a4b12; } .topic-biography { --tint: #dfe8f6; --tintInk: #2d4f86; }
html[data-theme="dark"] .topic-ic { background: color-mix(in srgb, var(--tintInk, #a08c79) 28%, var(--surface)); color: #f6ece0; }
.topic-surprise { background: linear-gradient(135deg, var(--blue), #144b4b); color: #fff; border: 0; }
.topic-surprise:hover { color: #fff; }
.topic-surprise .topic-ic { background: rgba(255, 255, 255, 0.18); color: #fff; }
html[data-theme="dark"] .topic-surprise { background: linear-gradient(135deg, #1f6a6a, #144b4b); }
@media (max-width: 900px) {
  .hero-a { grid-template-columns: 1fr; }
  .hero-stack { height: 340px; --cap: 140px; }
}

/* ---------- phones: the header scrolls away instead of filling a third of the screen ---------- */
@media (max-width: 700px) {
  .site-header { position: static; gap: 6px; }
  .nav-right { flex-wrap: wrap; gap: 2px; }
  .navlink { padding: 6px 10px; font-size: 0.9rem; }
  .hero-search input { padding: 16px 104px 16px 46px; font-size: 0.95rem; }
  .hero-search svg { left: 16px; }
  .hero-search .go { padding: 0 16px; }
  .tc-stats { gap: 26px; margin-top: 24px; }
}

/* ---------- Version A fixes (Martin, 17 Nov 2026) ---------- */
/* 2. Buy box: readable region and store chips in light and dark. The old rule drew cream text on the pale yellow fill in dark mode (about 1.2 : 1)
   and white text on a cream hover fill. Every state below keeps text and fill at 7 : 1 or more. */
:root {
  --chip-bg: #ffe19a; --chip-fg: #24170f; --chip-edge: #24170f;
  --chip-on-bg: #24170f; --chip-on-fg: #fffaf2;
  --cta-bg: #1f6a6a; --cta-fg: #ffffff; --field-edge: rgba(36, 23, 15, 0.42);
}
html[data-theme="dark"] {
  --chip-bg: #2d2118; --chip-fg: #f6ece0; --chip-edge: rgba(246, 236, 224, 0.6);
  --chip-on-bg: #ffe19a; --chip-on-fg: #24170f;
  --cta-bg: #8cc4c4; --cta-fg: #10201f; --field-edge: rgba(246, 236, 224, 0.45);
}
.buy-chip { font-size: var(--fs-13); padding: 6px 14px; color: var(--chip-fg); background: var(--chip-bg); border: 1px solid var(--chip-edge); }
.buy-chip:hover, .buy-chip:focus-visible, .buy-chip.active, .buy-chip[aria-expanded="true"] { color: var(--chip-on-fg); background: var(--chip-on-bg); border-color: var(--chip-on-bg); }
.buy-chip.muted { color: var(--muted); background: transparent; border-style: dashed; }
.buy-panel a.retailer, .buy-panel a.store { font-size: var(--fs-13); padding: 5px 12px; color: var(--chip-fg); background: transparent; border-color: var(--chip-edge); border-radius: var(--r-pill); }
.buy-panel a.retailer:hover, .buy-panel a.retailer:focus-visible, .buy-panel a.store:hover, .buy-panel a.store:focus-visible { color: var(--chip-on-fg); background: var(--chip-on-bg); border-color: var(--chip-on-bg); }
.buy-panel .parent { font-size: var(--fs-14); color: var(--text); }

/* 3. Notify me: the code opens inside the Print or Audiobook box, in the same look as the box. */
.notify-form { display: block; margin-top: 6px; }
.notify-form .notify-btn { color: var(--cta-fg); background: var(--cta-bg); border: 0; border-radius: var(--r-pill); padding: 8px 18px; font-size: var(--fs-13); font-weight: var(--fw-bold); font-family: var(--sans); cursor: pointer; }
.notify-form .notify-btn:hover { filter: brightness(1.08); }
.notify-note { margin: 8px 0 0; font-size: var(--fs-13); color: var(--muted); }
.notify-result { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); font-family: var(--sans); }
.notify-result:focus { outline: none; }
.notify-thanks { margin: 0 0 10px; font-size: var(--fs-14); font-weight: var(--fw-semibold); color: var(--text); }
.notify-code { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 10px; }
.notify-code-value { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: var(--fs-18); font-weight: var(--fw-bold); letter-spacing: 0.06em; color: var(--text); background: var(--surface-sunk); border: 1px solid var(--chip-edge); border-radius: var(--r-6); padding: 6px 12px; user-select: all; }
.notify-form .notify-copy { font-family: var(--sans); font-size: var(--fs-13); font-weight: var(--fw-bold); color: var(--chip-fg); background: transparent; border: 1px solid var(--chip-edge); border-radius: var(--r-pill); padding: 6px 14px; cursor: pointer; }
.notify-form .notify-copy:hover, .notify-form .notify-copy:focus-visible { color: var(--chip-on-fg); background: var(--chip-on-bg); border-color: var(--chip-on-bg); }
.notify-instr { margin: 0; font-size: var(--fs-14); line-height: 1.5; color: var(--muted); }
.notify-instr a { color: var(--blue-dark); font-weight: var(--fw-semibold); }

/* 4. Suggest page: the same type scale as the rest of the site (sans for controls, 16 px and up), not 13 px serif. */
.suggest-intro { padding-top: 44px; max-width: 840px; }
.suggest-title { font-size: clamp(38px, 5vw, 54px); font-weight: 400; line-height: 1.05; }
.suggest-lede { font-size: 21px; line-height: 1.5; max-width: 64ch; color: var(--muted); margin-top: 14px; }
.suggest-form { max-width: 680px; gap: 26px; font-family: var(--sans); }
.field-label { font-family: var(--sans); font-size: var(--fs-14); letter-spacing: 0.07em; color: var(--text); margin-bottom: 10px; }
.optlabel { padding: 16px 18px; gap: 14px; border-radius: var(--r-12); }
.optlabel input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); flex-shrink: 0; }
.optlabel:has(input:checked) { border-color: var(--blue); background: var(--surface-mute); }
.opttitle { font-family: var(--sans); font-size: var(--fs-18); font-weight: var(--fw-semibold); color: var(--text); }
.optdesc { font-family: var(--sans); font-size: var(--fs-16); color: var(--muted); margin-top: 3px; line-height: 1.4; }
.suboptions { margin-left: 34px; }
.suboptions-label { font-family: var(--sans); font-size: var(--fs-15); color: var(--text); }
.subopt { font-family: var(--sans); font-size: var(--fs-16); gap: 10px; }
.subopt input { width: 18px; height: 18px; accent-color: var(--blue); }
.field-input { font-size: var(--fs-16); padding: 13px 16px; border-radius: var(--r-8); border-color: var(--field-edge); }
.btn-primary { font-size: var(--fs-16); padding: 14px 30px; border-radius: var(--r-pill); color: var(--cta-fg); background: var(--cta-bg); }
.btn-primary:hover { filter: brightness(1.08); }
.form-note { font-family: var(--sans); font-size: var(--fs-14); color: var(--muted); margin-top: 12px; }
.suggest-aside { width: 340px; font-family: var(--sans); }
.suggest-aside .panel h3 { font-family: var(--serif); font-size: 26px; font-weight: 400; margin-bottom: 10px; }
.suggest-why { font-size: var(--fs-16); line-height: 1.55; color: var(--muted); }

/* ---------- Language menu (Martin, 17 Nov 2026) ---------- */
/* On phones the header is static, and a static header with backdrop-filter paints in page order, so the hero text and search box
   were drawn over the open menu. Keep it positioned above the page. */
@media (max-width: 700px) {
  .site-header { position: relative; z-index: 50; }
}
/* The current language and the hovered one were cream text on the yellow fill in dark mode. Same chip tokens as the Buy box. */
.locale-menu-list { background: var(--surface); }
.locale-menu-list a { color: var(--text); }
.locale-menu-list a:hover, .locale-menu-list a:focus-visible, .locale-menu-list a.active { color: var(--chip-on-fg); background: var(--chip-on-bg); }

/* Series overview newsstand rack (21 Nov 2026): the shelf in the espresso of the footer, a clear rail in front. */
:root {
  --rack-back: #efe6d6; --rack-ledge: #2b1a10; --rack-ledge-top: #4a3121;
  --rack-rail: rgba(255, 255, 255, 0.42); --rack-rail-edge: rgba(255, 255, 255, 0.85);
}
html[data-theme="dark"] {
  --rack-back: #1f160f; --rack-ledge: #0c0805; --rack-ledge-top: #3a2719;
  --rack-rail: rgba(255, 245, 230, 0.16); --rack-rail-edge: rgba(255, 245, 230, 0.4);
  --rack-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 18px rgba(0, 0, 0, 0.45);
  --rack-shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.4), 0 22px 34px rgba(0, 0, 0, 0.55);
  --rack-ledge-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

