/* Book Suggestion brand (Brand Identity Guide, edition one, 2026).
   Loaded after styles.css: it re-points the old palette variables and font names to the brand,
   so the existing page CSS keeps working. Fonts are self-hosted from assets/fonts/brand. */

/* Brand faces */
@font-face { font-family: "IM Fell DW Pica SC"; src: url("./assets/fonts/brand/IMFellDWPicaSC-400.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "IM Fell DW Pica"; src: url("./assets/fonts/brand/IMFellDWPica-400.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "IM Fell DW Pica"; font-style: italic; src: url("./assets/fonts/brand/IMFellDWPica-400i.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "EB Garamond"; font-weight: 400 700; src: url("./assets/fonts/brand/EBGaramond.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "EB Garamond"; font-weight: 400 700; font-style: italic; src: url("./assets/fonts/brand/EBGaramond-Italic.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "La Belle Aurore"; src: url("./assets/fonts/brand/LaBelleAurore-400.woff2") format("woff2"); font-display: swap; }

/* The old names, aliased to the brand faces: headlines = IM Fell, body = Garamond, script = La Belle Aurore. */
@font-face { font-family: "Anton"; src: url("./assets/fonts/brand/IMFellDWPicaSC-400.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Abril Fatface"; src: url("./assets/fonts/brand/IMFellDWPicaSC-400.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("./assets/fonts/brand/IMFellDWPica-400.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("./assets/fonts/brand/IMFellDWPica-400.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Instrument Serif"; font-style: italic; src: url("./assets/fonts/brand/IMFellDWPica-400i.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Space Grotesk"; font-weight: 400 700; src: url("./assets/fonts/brand/EBGaramond.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Space Grotesk"; font-weight: 400 700; font-style: italic; src: url("./assets/fonts/brand/EBGaramond-Italic.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Palmore"; src: url("./assets/fonts/brand/LaBelleAurore-400.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Tokyo Dreams"; src: url("./assets/fonts/brand/LaBelleAurore-400.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Bavista Soulare"; src: url("./assets/fonts/brand/LaBelleAurore-400.woff2") format("woff2"); font-display: swap; }

:root {
  /* Brand palette */
  --bs-cream: #FAF6EF;
  --bs-canvas: #E9E1D2;
  --bs-ink: #110F0D;
  --bs-olive: #8E8A1C;
  --bs-olive-dark: #5E5B10; /* olive for small text on cream, so it stays readable */
  --bs-persimmon: #F0612D;
  --bs-fountain-pen: #2D5DA1;
  --bs-marginalia-red: #D9502E;
  --bs-rust: #B5562A;
  --bs-bubblegum: #F2A7C3;
  --bs-cloud-blush: #F2C9BC;
  --bs-lilac: #AC9ECB;
  --bs-pistachio: #CFE3C4;
  --bs-mustard: #D9A520;
  --bs-butter: #F6DD8A;

  /* Old variables, re-pointed */
  --paper: var(--bs-cream);
  --paper-strong: var(--bs-canvas);
  --olive: var(--bs-olive);
  --olive-deep: var(--bs-olive-dark);
  --rust: var(--bs-marginalia-red);
  --rust-deep: var(--bs-rust);
  --ink: var(--bs-ink);
  --plum: var(--bs-lilac);
  --plum-text: var(--bs-lilac);
  --plum-soft: #E4DEF0;
  --line: rgba(17, 15, 13, 0.12);
  --title-font: "IM Fell DW Pica SC", Georgia, serif;
  --body-font: "EB Garamond", Georgia, serif;
}

body {
  background: var(--bs-cream);
  color: var(--bs-ink);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.0625rem;
}

/* Headlines: IM Fell small caps, tracked out (guide: never long sentences in IM Fell). */
h1, h2, .section-title, .hero-title {
  font-family: "IM Fell DW Pica SC", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0.06em;
}
h3, h4 { font-family: "IM Fell DW Pica", Georgia, serif; font-weight: 400; }

/* Buttons and links pick up olive; one ground, one ink. */
a { color: inherit; }
button, .button, .btn, input[type="submit"] {
  font-family: "EB Garamond", Georgia, serif;
  letter-spacing: 0.02em;
}

/* Header logo: the new logo is wider (2.7:1), keep it about as tall as before. */
img[src*="assets/brand/logo-"] { height: auto; width: auto; max-height: 64px; max-width: 220px; }
.footer-logo[src*="assets/brand/logo-"] { max-height: 88px; max-width: 280px; }

/* Home hero: the logo artwork instead of typed letters (guide: the logo is artwork, never retype it).
   Cream on the photos; on phones the title sits on white above the photo, so olive there. */
.page-home .hero-overlay h1.hero-brand { text-shadow: none; padding-top: 0; }
.hero-logo { display: block; width: min(560px, 62vw); height: auto; filter: drop-shadow(0 4px 14px rgba(17, 15, 13, 0.45)); }
.hero-logo-olive { display: none; }
.page-home .hero-script { font-family: "La Belle Aurore", cursive; font-style: normal; letter-spacing: 0.01em; }
@media (max-width: 640px) {
  .hero-logo { width: min(320px, 78vw); filter: none; }
  .hero-logo-cream { display: none; }
  .hero-logo-olive { display: block; }
}

/* Genre cards on their genre colors (guide, page 9). Literary Fiction is not in the guide: butter. */
.blind-date-carousel-card-gold a { background: var(--bs-bubblegum); }   /* Romance */
.blind-date-carousel-card-sky a { background: var(--bs-cloud-blush); }  /* Mystery */
.blind-date-carousel-card-mint a { background: var(--bs-lilac); }       /* Fantasy */
.blind-date-carousel-card-lilac a { background: var(--bs-pistachio); }  /* Young Adult */
.blind-date-carousel-card-sage a { background: var(--bs-mustard); }     /* Thriller */
.blind-date-carousel-card-rust a { background: var(--bs-butter); }      /* Literary Fiction */
.page-home .hero-overlay h1.hero-brand { display: flex; justify-content: center; width: 100%; height: auto; font-size: 0; line-height: 0; }
.page-home .hero-overlay h1.hero-brand .hero-logo { max-width: none; max-height: none; flex: 0 0 auto; width: min(560px, 62vw); height: auto; }
@media (max-width: 640px) { .page-home .hero-overlay h1.hero-brand .hero-logo { width: min(320px, 78vw); } }
