/* app/static/css/themes/orbitoftaste.css */
/* Orbit of Taste: "Eat the World", warm and appetizing.
   A soft serif for headings, cream and espresso, terracotta with olive as the second colour.
   Scaffolded with `merc scaffold theme orbitoftaste --layout magazine`, then filled in. */

.theme-orbitoftaste {
  /* --- orbitoftaste Color Palette --- */
  --orbitoftaste-primary: #b9472a;
  --orbitoftaste-secondary: #5f6b2e;
  --orbitoftaste-accent: #b9472a;
  --orbitoftaste-dark: #2b1d14;
  --orbitoftaste-light: #fbf6ee;
  --orbitoftaste-surface: #fffdf9;
  --orbitoftaste-surface-alt: #efe5d6;

  /* --- Override Base Semantic Colors --- */
  --color-primary: var(--orbitoftaste-primary);
  --color-secondary: var(--orbitoftaste-secondary);
  --color-accent: var(--orbitoftaste-accent);
  --color-link: var(--orbitoftaste-primary);
  --color-link-hover: #8f3218;
  --color-text-primary: var(--orbitoftaste-dark);
  --color-background: var(--orbitoftaste-light);
  --color-surface-1: var(--orbitoftaste-surface);
  --color-surface-2: var(--orbitoftaste-surface-alt);
  --color-border: #efe5d6;

  /* --- Typography --- */
  --font-family-base: "Source Sans 3", var(--font-family-sans);
  --font-family-heading: "Fraunces", var(--font-family-serif);

  /* --- Footer --- */
  --footer-background: var(--orbitoftaste-dark);
  --footer-color: rgba(255, 255, 255, 0.85);
  --footer-border-color: var(--orbitoftaste-accent);
}

/* --- Dark mode (the brand's default) ---
   modes/dark.css loads after the theme and resets the accent and link colours;
   .theme-orbitoftaste.dark-mode outranks it. */
.theme-orbitoftaste.dark-mode {
  --orbitoftaste-primary: #e0784f;
  --orbitoftaste-accent: #e0784f;
  --color-primary: var(--orbitoftaste-primary);
  --color-secondary: #a3b061;
  --color-accent: var(--orbitoftaste-accent);
  --color-background: #17110d;
  --color-surface-1: #221a14;
  --color-surface-2: #2e241c;
  --color-text-primary: #f4ebdf;
  --color-text-secondary: #d2c3b1;
  --color-text-muted: #9c8b7a;
  --color-link: #e0784f;
  --color-link-hover: var(--orbitoftaste-accent);
  --color-border: #3a2e25;
  --footer-background: #000000;
  color-scheme: dark;
}

/* --- Section Headings --- */
.theme-orbitoftaste .content-section__heading {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-xl, 1.25rem);
  font-weight: 600;
  color: var(--color-text-primary);
  padding-bottom: var(--spacing-xs);
  margin-bottom: var(--spacing-md);
  background-image: linear-gradient(var(--color-accent), var(--color-accent));
  background-size: 3rem 3px;
  background-repeat: no-repeat;
  background-position: left bottom;
}

/* --- Card Titles --- */
.theme-orbitoftaste .card__title {
  font-family: var(--font-family-heading);
  font-weight: 600;
  line-height: 1.25;
}

.theme-orbitoftaste .card__title a {
  color: var(--color-text-primary);
}

.theme-orbitoftaste .card__title a:hover {
  color: var(--color-accent);
}

/* --- Card Category --- */
.theme-orbitoftaste .card__category {
  color: var(--color-secondary);
  font-weight: 700;
  font-size: var(--font-size-xs, 0.75rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- orbitoftaste theme within Magazine layout --- */

/* Masthead (the magazine layout's header brand) */
.layout-magazine.theme-orbitoftaste .header__title {
  font-family: var(--font-family-heading);
  font-weight: 700;
  font-style: italic;
}

.layout-magazine.theme-orbitoftaste .header__link:hover {
  color: var(--color-accent);
}
