/* =====================================================================
   Classique — the theme's own look, loaded after base.css by the Classique theme ONLY
   (base.css is shared by every theme; the other themes never load this file).
   Colours and fonts still come from the estate's settings (the CSS variables of base.css).

   1. Readable text everywhere: dark text on light backgrounds (the newsletter band, text on photos…)
   2. The home page presentation, laid out like Noël's (sections/presentation.php)
   3. The wines, laid out like Garrigue's
   ===================================================================== */
:root {
  --cl-ink: #232929;      /* dark text on the light panels and bands */
  --cl-ink-soft: #555b5b; /* secondary text on light */
  --cl-plinth: #ECECEA;   /* the light grey plinth under each bottle, and the buy box (Garrigue's limestone, in neutral grey) */
}

/* ---------- 1. Readable text: dark text on light backgrounds ---------- */
/* The newsletter band (light grey): dark text and dark outlined buttons, instead of white. */
.newsletter-band { color: var(--cl-ink); }
.newsletter-band .btn--light, .newsletter-band .btn--outline { color: var(--cl-ink); border-color: var(--cl-ink); }
.newsletter-band .btn--light:hover, .newsletter-band .btn--outline:hover { background: var(--cl-ink); color: #fff; }

/* Inner pages with a photo band (Contact, Images, pages…): the title sits on a light plate, in dark letters,
   so it stays readable whatever the photo (light sky, white wall…). */
.page-head--photo::after { display: none; }   /* no dark shade over the photo any more */
.page-head--photo .page-head__inner { width: auto; max-width: min(100% - 2 * var(--gutter), 900px); padding: 18px 34px; background: rgba(255, 255, 255, .92); box-shadow: 0 12px 30px -18px rgba(0, 0, 0, .5); }
.page-head--photo .page-head__title { color: var(--cl-ink); text-shadow: none; }
.page-head--photo .page-head__kicker { color: var(--cl-ink-soft); }

/* Wine pages on a background photo: the photo stays at the top and around, but every text sits on a light panel
   in dark letters (classic wrote them in white on the photo, unreadable on a light photo). */
.has-bg { --color-text: var(--cl-ink); --muted: var(--cl-ink-soft); --line: rgba(0, 0, 0, .12); color: var(--cl-ink); text-shadow: none; }
.has-bg a, .has-bg .wine-card__price, .has-bg .wine-card__stock, .has-bg .wine-detail__appellation, .has-bg .breadcrumb { color: inherit; }
.has-bg .btn--outline { color: var(--cl-ink); border-color: var(--cl-ink); }
.has-bg .btn--outline:hover { background: var(--cl-ink); color: #fff; }
.has-bg .share__link:hover, .has-bg .share__link:focus-visible { background: var(--cl-ink); color: #fff; }
.wines-page.has-bg > .container, .wine-detail.has-bg > .container {
  background: rgba(255, 255, 255, .94); padding: clamp(26px, 4vw, 50px) clamp(18px, 4vw, 50px); box-shadow: 0 20px 50px -30px rgba(0, 0, 0, .55);
}
.wine-detail.has-bg, .wines-page.has-bg { padding-bottom: clamp(40px, 6vw, 80px); }
.has-bg .buy-box { background: var(--cl-plinth); }
.has-bg .wine-card__media { background: var(--cl-plinth); }

/* ---------- 2. The home page presentation (like Noël's, in a plain standard style) ---------- */
.cl-pres { padding: clamp(60px, 8vw, 110px) 0; text-align: left; }
.cl-pres__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 100px); align-items: center; }
.cl-pres--no-picture .cl-pres__grid { grid-template-columns: minmax(0, 720px); justify-content: center; }
.cl-pres__kicker { margin: 0 0 10px; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cl-pres__title { margin: 0; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.1; text-align: left; }
.cl-pres__rule { display: block; width: 70px; height: 2px; margin: 24px 0 26px; background: var(--color-text); opacity: .35; }
.cl-pres__text { max-width: 56ch; margin: 0; font-size: 16px; line-height: 1.85; }
.cl-pres__text, .cl-pres__text :is(p, div, span) { text-align: left !important; }   /* the admin's text is often centred line by line */
.cl-pres__invite { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; margin-top: 32px; }
.cl-pres__button { padding: 15px 28px; }
.cl-pres__note { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.cl-pres__note a { color: var(--color-text); font-weight: 600; text-decoration: none; }
.cl-pres__note a:hover { text-decoration: underline; }
/* Without a photo: everything centred. */
.cl-pres--no-picture :is(.cl-pres__words, .cl-pres__title, .cl-pres__text, .cl-pres__text p) { text-align: center !important; }
.cl-pres--no-picture .cl-pres__rule, .cl-pres--no-picture .cl-pres__text { margin-inline: auto; }
.cl-pres--no-picture .cl-pres__invite { justify-content: center; }
/* The photo: a white mat and a fine frame set slightly off. */
.cl-pres__picture { position: relative; isolation: isolate; margin: 0 18px 18px 0; padding: 12px; background: #fff; box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .5); }
.cl-pres__picture::after { content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: -1; border: 1px solid var(--color-text); opacity: .35; }
.cl-pres__picture img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 900px) {
  .cl-pres__grid { grid-template-columns: minmax(0, 1fr); }
  .cl-pres__picture { order: -1; max-width: 520px; width: calc(100% - 10px); margin: 0 10px 10px 0; padding: 10px; }
  .cl-pres__picture::after { inset: 10px -10px -10px 10px; }
  .cl-pres__picture img { aspect-ratio: 4 / 3; }
}

/* ---------- 3. The wines, laid out like Garrigue's ----------
   Left-aligned titles in sentence case, a fine line under each range, bottles on plinths, the names in the
   heading font; on each wine's page the bottle stands on the page and the texts are set out in columns. */
.wines-page:not(.has-bg), .wine-detail:not(.has-bg) { background: var(--surface); }   /* white, like the other content of the theme */
.wines-page__title { text-align: left; text-transform: none; letter-spacing: 0; font-weight: 300; font-size: clamp(34px, 4.6vw, 56px); }
.range-tabs { justify-content: flex-start; text-transform: none; letter-spacing: 0; font-size: 15px; gap: 6px 26px; }
.range__title { text-align: left; text-transform: none; letter-spacing: 0; font-size: 34px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.range__intro { margin-left: 0; text-align: left; }
.wine-grid { gap: 48px 32px; }
.wine-card { text-align: left; }
.wine-card__media { display: block; background: var(--cl-plinth); padding: 26px 0 0; margin-bottom: 16px; }
.wine-card__media img { height: 300px; margin-bottom: 0; }
.wine-card__name { font-family: var(--font-heading); font-size: 21px; text-transform: none; letter-spacing: 0; font-weight: 400; }
.wine-card__price { font-weight: 600; }
.wine-detail__image { background: transparent; padding: 40px 0; }   /* the bottle stands on the page, no box behind it */
.wine-detail__name { text-transform: none; letter-spacing: 0; font-weight: 300; font-size: clamp(34px, 4.6vw, 56px); }
.wine-detail__appellation { text-transform: none; letter-spacing: 0; font-size: 16px; }
.wine-detail__meta span + span::before { content: "/"; }
.wine-detail__punchline { font-weight: 500; }
.buy-box { background: var(--cl-plinth); }
.buy-box__price { font-family: var(--font-heading); }
.wine-text h2 { text-transform: none; letter-spacing: 0; font-family: var(--font-heading); font-size: 22px; }
.related .section-title { text-align: left; text-transform: none; letter-spacing: 0; }
@media (max-width: 900px) { .wine-card__media img { height: 230px; } }
