/* ==========================================================================
   Ezilda — content pages (cognac, cocktails, histoire, 404)
   Loaded after main.css: reuses its tokens, fonts, header, buttons, gate and footer.
   ========================================================================== */

.page-body { background: var(--ivory); }

/* Header: sits on the ivory page, scrolls away with it */
.page-header { position: absolute; }
.page-nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.page-nav a {
  position: relative;
  font: 400 .78rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  padding-block: 8px;
}
.page-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .6s var(--ease);
}
.page-nav a:not(.nav-cta):hover::after, .page-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

/* Hero */
.page-main { color: var(--text-dark); }
.page-hero { padding: calc(var(--header-h) + clamp(48px, 9vh, 110px)) 0 clamp(36px, 6vh, 64px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(28px, 5vh, 48px); font: 400 .72rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted-dark); }
.crumbs a { border-bottom: 1px solid var(--line-dark); }
.crumbs a:hover { color: var(--gold-deep); border-color: currentColor; }
.page-hero h1 { max-width: 14ch; }
.page-hero .lede { margin-top: clamp(24px, 4vh, 40px); max-width: 58ch; }

.page-wide { margin: 0 auto; width: min(1600px, 100% - 2 * var(--gutter)); }
.page-wide img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 4px; }
.page-wide figcaption, .page-figure figcaption { margin-top: 12px; font-size: .82rem; color: var(--muted-dark); }

/* Hero of the cognac and cocktail pages: the home page's scene (main.css: .cognac-stage, .ck-stage and their
   arrival), with the breadcrumb, the page title and its introduction over the decor (on the left on a computer,
   at the top on a phone) and the rest of the page below. Unlike the home page it grows with its text. */
.page-stage .crumbs { margin-bottom: 22px; }
.page-stage.cocktail .crumbs { color: rgba(247, 240, 228, .74); }
.page-stage.cocktail .crumbs a { border-color: rgba(247, 240, 228, .4); }
.page-stage.cocktail .crumbs a:hover { color: #f4d0b4; }
.page-stage .cognac-title em { display: block; }
@media (min-width: 900px) {
  /* A light shade under the menu, which lies over the peach tree's leaves. */
  .page-stage .ck-glow { background: linear-gradient(180deg, rgba(15, 27, 22, .5), rgba(15, 27, 22, 0) 20%), linear-gradient(90deg, rgba(15, 27, 22, .62), rgba(15, 27, 22, .32) 28%, rgba(15, 27, 22, 0) 54%); }
  .page-stage :is(.cognac-stage, .ck-stage) { height: auto; min-height: clamp(600px, 100vh, 64vw); min-height: clamp(600px, 100svh, 64vw); }
  .page-stage :is(.cognac-head, .ck-copy) { width: 40%; max-width: 520px; }
  .page-stage .cognac-head .lede, .page-stage .ck-lede { max-width: 46ch; }
}
/* Phone: the text at the top, the products standing on the stone at the bottom of the decor. */
@media (max-width: 899px) {
  .page-stage :is(.cognac-stage, .ck-stage) { height: auto; min-height: max(600px, 100vh); min-height: max(600px, 100svh); }
  .page-stage .crumbs { margin: 0; }
  .page-stage :is(.cognac-visual, .ck-visual) { flex: 1 0 300px; }
  .page-stage .cognac-stage { padding-bottom: max(18px, 9svh); }
  .page-stage .ck-stage { padding-bottom: max(18px, 16svh); }
  .page-stage .ck-glow { background: linear-gradient(180deg, rgba(15, 27, 22, .88), rgba(15, 27, 22, .72) 30%, rgba(15, 27, 22, .15) 55%, rgba(15, 27, 22, 0) 80%); }
}

/* Long-form text with a facts column */
.page-section { display: grid; gap: clamp(36px, 6vw, 96px); padding-block: clamp(56px, 10vh, 120px); border-bottom: 1px solid var(--line-dark); }
.page-section:last-of-type { border-bottom: 0; }
@media (min-width: 900px) {
  .page-section { grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); align-items: start; }
  .page-section.is-flipped { grid-template-columns: minmax(280px, 440px) minmax(0, 1fr); }
  .page-section.is-flipped > .page-figure { order: -1; }
  .page-aside { position: sticky; top: 40px; }
}
.prose { max-width: 66ch; }
.prose h2 { font: 300 clamp(2rem, 3.6vw, 3.1rem)/1.05 var(--serif); letter-spacing: -.01em; margin: 0 0 22px; }
.prose h2 em { font-style: italic; color: var(--gold-deep); }
.prose h3 { font: 400 clamp(1.5rem, 2.2vw, 1.9rem)/1.15 var(--serif); margin: 40px 0 12px; }
.prose p, .prose li { color: var(--muted-dark); font-weight: 300; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 16px; }
.prose ul { display: grid; gap: 6px; padding-left: 1.1em; list-style: disc; }
.prose a { color: var(--text-dark); border-bottom: 1px solid var(--gold); }
.prose a:hover { color: var(--gold-deep); }
.prose strong { font-weight: 500; color: var(--text-dark); }

.facts { border-top: 1px solid var(--text-dark); }
.facts div { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
.facts dt { font: 500 .7rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); }
.facts dd { margin: 0; font: 400 1.25rem/1.3 var(--serif); }
.page-note { margin-top: 18px; font-size: .82rem; color: var(--muted-dark); }

.page-figure { margin: 0; }
.page-figure img { width: 100%; height: auto; }
.page-figure.on-stone { background: radial-gradient(ellipse 70% 60% at 50% 45%, #fbf8f2, var(--stone)); border-radius: 4px; padding: clamp(20px, 4vw, 48px); }

/* The three recipes */
.recipes { display: grid; gap: clamp(28px, 4vw, 56px); padding-block: clamp(56px, 10vh, 120px); border-bottom: 1px solid var(--line-dark); }
@media (min-width: 900px) { .recipes { grid-template-columns: repeat(3, 1fr); } }
.recipe { display: grid; align-content: start; gap: 18px; scroll-margin-top: 30px; }
.recipe-visual { position: relative; aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; }
.recipe-visual img { position: absolute; left: 50%; bottom: 7%; width: auto; height: 84%; translate: -50% 0; filter: drop-shadow(0 18px 18px rgba(40, 28, 12, .22)); }
.recipe-citrus .recipe-visual { background: radial-gradient(ellipse 80% 70% at 50% 40%, #fbf3d8, #eadfbf); }
.recipe-peach .recipe-visual { background: radial-gradient(ellipse 80% 70% at 50% 40%, #fbeadf, #ecd3c3); }
.recipe-berry .recipe-visual { background: radial-gradient(ellipse 80% 70% at 50% 40%, #f8e3e6, #e5c9cf); }
/* Each bottle breathes over its card; the recipe a home-page bottle links to (:target) is set down first. */
.recipe-visual img { transform-origin: 50% 100%; animation: ck-breathe 4.8s ease-in-out infinite; }
.recipe-peach .recipe-visual img { animation-delay: -1.6s; }
.recipe-berry .recipe-visual img { animation-delay: -3.2s; }
.js:is(.age-ok, .entered) .recipe:target .recipe-visual img { animation: recipe-set 1.6s var(--ease) .2s both, ck-breathe 4.8s ease-in-out 1.8s infinite; }
@keyframes recipe-set { from { opacity: 0; translate: -50% -3%; } 28% { opacity: 1; } to { opacity: 1; translate: -50% 0; } }
@media (prefers-reduced-motion: reduce) { .recipe-visual img { animation: none !important; } }
.recipe h2 { font: 300 clamp(1.9rem, 2.8vw, 2.5rem)/1.05 var(--serif); }
.recipe h2 em { display: block; font-style: italic; color: var(--gold-deep); }
.recipe p { color: var(--muted-dark); font-weight: 300; }

/* History page. Hero: the vines at dusk across the full width, the title and introduction over their dark
   rows. Then the six generations: the home page's timeline (main.css, .family-journey), run by story.js. */
.history-hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: clamp(560px, 92vh, 62vw); min-height: clamp(560px, 92svh, 62vw);
  padding: calc(var(--header-h) + 48px) 0 clamp(56px, 10vh, 120px);
  background: #15110d; color: var(--text-light);
}
.history-hero-media { position: absolute; inset: 0; z-index: -2; }
.history-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 65% 50%; }
.history-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(16, 13, 10, .55), rgba(16, 13, 10, 0) 24%),
              linear-gradient(90deg, rgba(16, 13, 10, .8), rgba(16, 13, 10, .42) 48%, rgba(16, 13, 10, .08) 78%),
              linear-gradient(0deg, rgba(16, 13, 10, .62), rgba(16, 13, 10, 0) 50%);
}
.history-hero h1 { max-width: 13ch; }
.history-hero .lede { margin-top: clamp(22px, 3.5vh, 36px); max-width: 52ch; color: rgba(244, 239, 230, .84); }
.history-hero .crumbs { color: rgba(244, 239, 230, .74); }
.history-hero .crumbs a { border-color: rgba(244, 239, 230, .4); }
.history-hero .crumbs a:hover { color: var(--gold-light); }
@media (max-width: 899px) {
  .history-hero { min-height: max(600px, 92vh); min-height: max(600px, 92svh); padding-bottom: max(40px, env(safe-area-inset-bottom)); }
  .history-hero::after { background: linear-gradient(180deg, rgba(16, 13, 10, .62), rgba(16, 13, 10, .42) 24%, rgba(16, 13, 10, .58) 50%, rgba(16, 13, 10, .9)); }
  .history-hero-media img { object-position: 50% 50%; }
}
/* The cards rise in once as they arrive (story.js arms them; nothing hides without JS or with reduced motion). */
.cards-armed .story-card { opacity: .3; translate: 0 26px; transition: opacity .85s var(--ease), translate .85s var(--ease), border-color .5s, box-shadow .5s; }
.cards-armed .story-card.is-in { opacity: 1; translate: none; }

/* Questions */
.faq { padding-block: clamp(56px, 10vh, 120px); }
.faq h2 { font: 300 clamp(2rem, 3.6vw, 3.1rem)/1.05 var(--serif); margin-bottom: clamp(24px, 4vh, 40px); }
.faq details { border-top: 1px solid var(--line-dark); max-width: 900px; }
.faq details:last-of-type { border-bottom: 1px solid var(--line-dark); }
.faq summary {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font: 400 clamp(1.25rem, 1.8vw, 1.5rem)/1.25 var(--serif);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 1.6rem/1 var(--sans); color: var(--gold-deep); transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; max-width: 70ch; color: var(--muted-dark); font-weight: 300; }
.faq details a { border-bottom: 1px solid var(--gold); color: var(--text-dark); }

/* Call to action band */
.page-cta { background: var(--ink); color: var(--text-light); padding-block: clamp(70px, 12vh, 130px); text-align: center; }
.page-cta h2 { font: 300 clamp(2.2rem, 4.6vw, 4rem)/1.02 var(--serif); margin-bottom: 18px; }
.page-cta h2 em { font-style: italic; color: var(--gold-light); }
.page-cta p { color: var(--muted-light); font-weight: 300; max-width: 52ch; margin: 0 auto 32px; }

/* Other pages */
.more { padding-block: clamp(56px, 10vh, 110px); }
.more > h2 { font: 500 .75rem/1.4 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 24px; }
.more-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .more-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.more-card { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; color: var(--text-light); isolation: isolate; }
.more-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease); }
.more-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(18, 16, 13, .78), rgba(18, 16, 13, .05) 65%); }
.more-card:hover img { scale: 1.05; }
.more-card span { position: absolute; left: 22px; right: 22px; bottom: 20px; font: 300 clamp(1.6rem, 2.4vw, 2.1rem)/1.05 var(--serif); }
.more-card small { display: block; margin-bottom: 8px; font: 500 .68rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-light); }

/* 404 */
.lost { min-height: 100svh; display: grid; align-content: center; padding-block: calc(var(--header-h) + 40px) 80px; }
.lost h1 { max-width: 12ch; }
.lost .lede { margin: 28px 0 36px; }
.lost-links { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 899px) {
  .page-nav a:not(.nav-cta) { display: none; }
  .page-nav .nav-cta { padding: 10px 14px !important; font-size: .68rem; letter-spacing: .14em; }
  .page-aside { order: 2; }
  .page-wide img { aspect-ratio: 4 / 3; }
  .recipe-visual { aspect-ratio: 1; }
}
