/* Lupang Pinagpala concept tour: one stylesheet for the slide show and the printed binder.
   Every slide is a US Letter landscape page (11 x 8.5 in = 1056 x 816 CSS px). */

@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; }

:root {
  --paper: #f5efe2;
  --paper-2: #ece3cf;
  --ink: #1d2a22;
  --ink-soft: #46524a;
  --forest: #1f3b2c;
  --forest-2: #2e5a41;
  --gold: #b0802f;
  --gold-soft: #d9b874;
  --jade: #3fa597;
  --rose: #b4485a;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", "Segoe UI", Arial, sans-serif;
  --w: 1056px;
  --h: 816px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: #111712; }
body { font-family: var(--sans); color: var(--ink); -webkit-print-color-adjust: exact; print-color-adjust: exact; }

/* ---------- page frame ---------- */
.slide {
  position: relative;
  width: var(--w);
  height: var(--h);
  overflow: hidden;
  background: var(--paper);
  page-break-after: always;
  break-after: page;
}
.slide img { display: block; }
.fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* running footer */
.folio {
  position: absolute; left: 44px; right: 44px; bottom: 20px;
  display: flex; justify-content: space-between; align-items: center;
  font: 600 9.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-soft); opacity: .85; z-index: 5;
}
.folio .pg { font-family: var(--serif); font-size: 12px; letter-spacing: 0; font-weight: 500; }
.on-dark .folio, .folio.light { color: #f5efe2; opacity: .92; text-shadow: 0 1px 3px rgba(0,0,0,.75), 0 0 10px rgba(0,0,0,.45); }
/* on split pages the footer lives in the text column, clear of the photo */
.split .folio { left: 602px; right: 46px; }
.split.wide .folio { left: 662px; }
.split.rev .folio { left: 46px; right: 600px; }
.split.rev.wide .folio { right: 660px; }

/* ---------- type ---------- */
.kicker {
  font: 700 10.5px/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 10px;
}
.kicker .num { font-family: var(--serif); font-size: 13px; letter-spacing: .04em; color: var(--forest-2); font-weight: 600; }
.on-dark .kicker .num { color: var(--gold-soft); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; color: var(--forest); }
h1 { font-size: 64px; line-height: 1.02; }
h2 { font-size: 38px; line-height: 1.08; margin: 10px 0 14px; }
h2 em, h1 em { font-style: italic; color: var(--forest-2); }
h3 { font-size: 19px; line-height: 1.2; margin-bottom: 6px; }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fbf7ee; }
.on-dark h2 em, .on-dark h1 em { color: var(--gold-soft); }
p { font-size: 13.6px; line-height: 1.6; color: var(--ink); margin-bottom: 10px; }
.lede { font-family: var(--serif); font-size: 17px; line-height: 1.5; color: var(--forest); font-style: italic; margin-bottom: 12px; }
.on-dark p { color: #f3eee2; }
.on-dark .lede { color: #f6e7c4; }
.sci { font-style: italic; }
.small { font-size: 11.5px; line-height: 1.5; }

/* sense strip: see / hear / smell / taste */
.senses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.senses div { border-top: 1.5px solid var(--gold); padding-top: 7px; font-size: 11.2px; line-height: 1.45; color: var(--ink-soft); }
.senses b { display: block; font: 700 9.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--forest-2); margin-bottom: 4px; }
.on-dark .senses div { color: #ece4d2; border-color: var(--gold-soft); }
.on-dark .senses b { color: var(--gold-soft); }

/* conservation / story note */
.note {
  background: var(--forest); color: #f3eee2; padding: 14px 16px 12px; border-radius: 2px; margin-top: 12px;
}
.note .tag { font: 700 9.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 6px; display: block; }
.note p { color: #f3eee2; font-size: 12.2px; line-height: 1.55; margin-bottom: 6px; }
.note p:last-child { margin-bottom: 0; }
.status {
  display: inline-block; font: 700 9.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 8px; border-radius: 2px; background: var(--rose); color: #fff; margin: 0 6px 6px 0;
}
.status.amber { background: #b9772a; }
.status.green { background: var(--forest-2); }
.status.jade { background: #2f877b; }
.note.light { background: var(--paper-2); color: var(--ink); }
.note.light p { color: var(--ink); }
.note.light .tag { color: var(--gold); }

/* ---------- layouts ---------- */

/* full-bleed photograph with a text panel */
.full .shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,24,18,.86) 0%, rgba(14,24,18,.62) 34%, rgba(14,24,18,0) 62%); }
.full .shade.bottom { background: linear-gradient(0deg, rgba(14,24,18,.9) 0%, rgba(14,24,18,.55) 36%, rgba(14,24,18,0) 64%); }
.full .shade.right { background: linear-gradient(270deg, rgba(14,24,18,.88) 0%, rgba(14,24,18,.6) 36%, rgba(14,24,18,0) 64%); }
.full .panel { position: absolute; z-index: 2; }
.full .panel.left { left: 52px; top: 60px; width: 400px; }
.full .panel.right { right: 52px; top: 60px; width: 400px; }
.full .panel.bottom { left: 52px; right: 52px; bottom: 52px; }

/* split: image one side, narration the other */
.split { display: grid; grid-template-columns: 560px 1fr; }
.split.rev { grid-template-columns: 1fr 560px; }
.split.wide { grid-template-columns: 620px 1fr; }
.split.rev.wide { grid-template-columns: 1fr 620px; }
.split .pic { position: relative; height: var(--h); overflow: hidden; }
.split .pic img { width: 100%; height: 100%; object-fit: cover; }
.split .txt { padding: 50px 46px 56px 42px; display: flex; flex-direction: column; }
.split.rev .txt { padding: 50px 40px 56px 46px; }
.split .pic .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 22px 18px; font-size: 11.5px; line-height: 1.4; font-weight: 500; color: #fbf6ea; background: linear-gradient(0deg, rgba(10,18,13,.92) 0%, rgba(10,18,13,.7) 45%, rgba(10,18,13,0) 100%); letter-spacing: .02em; text-shadow: 0 1px 2px rgba(0,0,0,.6); }

/* photo across the top, text below */
.top .band { position: absolute; left: 0; right: 0; top: 0; height: 470px; overflow: hidden; }
.top .band img { width: 100%; height: 100%; object-fit: cover; }
.top .below { position: absolute; left: 52px; right: 52px; top: 492px; bottom: 44px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 34px; }
.top .below h2 { font-size: 30px; margin-top: 6px; }

/* plate: a botanical illustration framed on paper */
.plate { display: grid; grid-template-columns: 1fr 330px; gap: 0; }
.plate .frame { padding: 44px 30px 50px 44px; display: flex; align-items: center; justify-content: center; }
.plate .frame img { width: 100%; height: auto; max-height: 100%; object-fit: contain; box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 14px 30px -18px rgba(30,40,30,.45); border: 8px solid #fffdf7; }
.plate .txt { padding: 52px 44px 56px 6px; display: flex; flex-direction: column; justify-content: center; }

/* two pictures with captions */
.duo .head { position: absolute; left: 52px; right: 52px; top: 44px; }
.duo .pair { position: absolute; left: 52px; right: 52px; top: 136px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.duo figure img { width: 100%; height: 372px; object-fit: cover; }
.duo figcaption { padding-top: 14px; }
.duo figcaption h3 { font-size: 21px; }
.duo figcaption .k { font: 700 9.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 7px; display: block; }
.duo figcaption p { font-size: 13px; line-height: 1.55; }
.duo figcaption .pair-note { font-size: 11.4px; color: var(--ink-soft); font-style: italic; }

/* ingredient grid */
.grid-page .head { position: absolute; left: 52px; right: 52px; top: 42px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.grid-page .head p { font-size: 12.6px; margin: 0; }
.cards { position: absolute; left: 52px; right: 52px; top: 182px; display: grid; gap: 16px 18px; }
.cards.c4 { grid-template-columns: repeat(4, 1fr); }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card h4 { font-family: var(--serif); font-weight: 500; font-size: 15px; color: var(--forest); margin: 7px 0 2px; }
.card h4 i { font-weight: 400; font-size: 11.5px; color: var(--ink-soft); }
.card p { font-size: 10.6px; line-height: 1.45; color: var(--ink-soft); margin: 0; }

/* typographic page */
.paper .inner { position: absolute; left: 96px; right: 96px; top: 76px; bottom: 76px; }
.cols2 { columns: 2; column-gap: 38px; }
.cols2 p { break-inside: avoid-column; }

/* chapter opener */
.chapter .shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,20,15,.82) 0%, rgba(12,20,15,.25) 48%, rgba(12,20,15,.1) 100%); }
.chapter .panel { position: absolute; left: 60px; right: 60px; bottom: 64px; z-index: 2; }
.chapter .ch-num { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--gold-soft); margin-bottom: 4px; }
.chapter h1 { font-size: 72px; color: #fbf7ee; }
.chapter .time { font: 700 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: #f0e3c2; margin-top: 16px; }
.chapter p { color: #efe8d8; max-width: 640px; font-size: 14.5px; margin-top: 12px; }

/* itinerary */
.timeline { position: absolute; left: 52px; right: 52px; top: 186px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px 16px; }
.timeline .step img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.timeline .step .t { font: 700 9.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 8px 0 3px; }
.timeline .step h4 { font-family: var(--serif); font-weight: 500; font-size: 14px; line-height: 1.2; color: var(--forest); }
.timeline .step p { font-size: 10.4px; line-height: 1.4; color: var(--ink-soft); margin: 3px 0 0; }

/* map figure with pins */
.inset, .split .pic img.inset { position: absolute; height: auto; border: 6px solid #fffdf7; box-shadow: 0 16px 34px -16px rgba(0,0,0,.6); }

/* quote */
.pull { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.32; color: var(--forest); border-left: 3px solid var(--gold); padding-left: 18px; margin: 6px 0 14px; }
.on-dark .pull { color: #fbf3df; border-color: var(--gold-soft); }

/* zone legend list */
.zones { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; margin-top: 8px; }
.zones li { font-size: 11.6px; line-height: 1.35; color: var(--ink-soft); display: grid; grid-template-columns: 26px 1fr; }
.zones li b { font-family: var(--serif); color: var(--gold); font-weight: 600; }
.zones li strong { color: var(--forest); font-weight: 600; }

/* sources */
.refs { columns: 2; column-gap: 40px; font-size: 11.4px; line-height: 1.5; color: var(--ink-soft); }
.refs li { margin: 0 0 5px 14px; break-inside: avoid; }
.refs h4 { font: 700 10.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--forest-2); margin: 8px 0 5px; break-after: avoid; }
.refs a { color: inherit; text-decoration: none; }

/* ---------- screen: slide show ---------- */
@media screen {
  body.show { overflow: hidden; height: 100vh; }
  body.show .deck { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; }
  body.show .slide { position: absolute; left: 50%; top: 50%; transform-origin: center center; opacity: 0; pointer-events: none; transition: opacity .55s ease; box-shadow: 0 30px 80px -30px rgba(0,0,0,.8); }
  body.show .slide.active { opacity: 1; pointer-events: auto; }
  body.scroll .deck { display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 28px 0 80px; }
  .hud { position: fixed; right: 18px; bottom: 14px; z-index: 50; display: flex; gap: 8px; align-items: center; font: 600 12px/1 var(--sans); color: #e6dfcc; background: rgba(14,22,17,.82); padding: 6px 8px 6px 12px; border-radius: 999px; opacity: .35; transition: opacity .3s ease; }
  .hud:hover, body.scroll .hud { opacity: 1; }
  .hud button { background: rgba(255,255,255,.08); color: #efe8d6; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 8px 12px; font: inherit; cursor: pointer; }
  .hud button:hover { background: rgba(255,255,255,.18); }
  .progress { position: fixed; left: 0; top: 0; height: 3px; background: var(--gold); z-index: 50; transition: width .4s ease; }
}

/* ---------- print: one slide per Letter landscape page ---------- */
@page { size: 11in 8.5in; margin: 0; }
@media print {
  html, body { background: none; }
  .hud, .progress { display: none !important; }
  .slide { opacity: 1 !important; transform: none !important; position: relative !important; left: auto !important; top: auto !important; box-shadow: none !important; }
}
