/* Adapted from the established InviteToFood cinematic Guide: warm paper, visual stage,
   numbered guidance, chapter navigation and a deliberate reading rhythm. */
:root {
  color-scheme: light;
  --itfm-paper: #f8f1e5;
  --itfm-ink: #302217;
  --itfm-muted: #6d5947;
  --itfm-line: #c7ae8c;
  --itfm-accent: #794621;
  --itfm-focus: #176273;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body.itf-guide-page {
  margin: 0;
  min-width: 320px;
  color: var(--itfm-ink);
  background:
    radial-gradient(ellipse 62% 48% at 48% -8%, #fffaf0 0%, transparent 74%),
    radial-gradient(ellipse 40% 78% at -9% 58%, #b4936f80 0%, transparent 72%),
    radial-gradient(ellipse 45% 82% at 110% 45%, #af866477 0%, transparent 71%),
    repeating-linear-gradient(130deg, #ffffff08 0 2px, transparent 2px 8px),
    linear-gradient(150deg, #d2b58e, #f1e6d3 36%, #e8d3b5 70%, #b9956f);
  background-attachment: fixed;
  font: 400 16px/1.56 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button:disabled { opacity: .42; cursor: default; }
a { color: inherit; text-underline-offset: 4px; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--itfm-focus); outline-offset: 4px; }
.itfm-skip { position: fixed; z-index: 100; left: 16px; top: -100px; padding: 12px 18px; background: #fff8ec; color: #21160e; }
.itfm-skip:focus { top: 12px; }
.itfm-header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 15px clamp(20px, 3vw, 54px); min-height: 83px;
  border-bottom: 1px solid #bda484;
  background: linear-gradient(100deg, #f1e4d0f5, #fff8edf5 52%, #e9d8bff5);
  box-shadow: 0 3px 18px #35271a0d;
}
.itfm-brand { display: grid; gap: 3px; color: #302217; text-decoration: none; }
.itfm-brand span { font: 400 clamp(26px, 2.2vw, 32px)/1.04 Georgia, "Times New Roman", serif; letter-spacing: -.04em; }
.itfm-brand small { font-size: 12px; color: #69523d; }
.itfm-header__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 20px; }
.itfm-header-link { font-size: 14px; text-decoration-thickness: 1px; }
.itfm-header-link:hover { color: #96582a; }
.itfm-private-badge { font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.itf-logo { max-width: 120px; max-height: 52px; object-fit: contain; }
.itf-guide-shell { max-width: 1680px; margin: 0 auto; padding: clamp(20px, 3vw, 48px) clamp(16px, 3vw, 54px) 42px; }
.itf-guide-hero { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 0 3px 27px; }
.itf-guide-eyebrow { margin: 0 0 9px; color: #80532f; font-size: 11px; line-height: 1.45; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
.itf-guide-hero h1 {
  max-width: 24ch; margin: 0 0 10px;
  font: 400 clamp(35px, 4.1vw, 64px)/1.04 Georgia, "Times New Roman", serif;
  letter-spacing: -.045em; text-wrap: balance;
}
.itf-guide-hero p:last-child { max-width: 60ch; margin: 0; color: #664f3e; font-size: clamp(15px, 1.1vw, 18px); }
.itf-guide-return {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  min-height: 46px; padding: 10px 16px; border: 1px solid #805736; border-radius: 4px;
  background: #fff8e7c9; text-decoration: none; font-size: 13px; font-weight: 700;
  box-shadow: 0 4px 14px #4b301416;
}
.itf-guide-return:hover { background: #fffaf0; transform: translateY(-1px); }
.itf-guide-return span { font-size: 19px; font-weight: 400; }
.itf-guide-chapters {
  display: flex; overflow-x: auto; gap: 4px; padding: 7px;
  border: 1px solid #b79d7b; border-radius: 7px 7px 0 0;
  background: #f6ebd9d9; scrollbar-width: thin;
}
.itf-guide-chapters a {
  display: flex; align-items: center; gap: 9px; flex: 0 0 auto;
  min-height: 47px; padding: 8px 15px; border-bottom: 2px solid transparent;
  text-decoration: none; font-size: 14px; white-space: nowrap;
}
.itf-guide-chapters a:hover { background: #e8d5b9; }
.itf-guide-chapters a[aria-current] { background: #e9d4b3; border-bottom-color: #744223; color: #4b2812; }
.itf-guide-chapters span {
  display: grid; place-items: center; width: 28px; height: 28px; flex: none;
  border: 1px solid #ad8d66; border-radius: 50%; font-size: 11px; font-variant-numeric: tabular-nums;
}
.itf-guide-chapters a[aria-current] span { background: #4d311e; color: #fff5e6; border-color: #4d311e; }
.itf-guide-body { padding: 14px 0 0; }
.itf-guide-chapter-head {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 56px; margin-bottom: 13px; padding: 6px 15px;
  border: 1px solid #bea483; border-radius: 5px;
  background: linear-gradient(110deg, #fff8eced, #f2e1c9ed);
}
.itf-guide-chapter-head p {
  flex: none; margin: 0; color: #74553c; font-size: 12px; font-weight: 700;
  letter-spacing: .11em; text-transform: uppercase;
}
.itf-guide-chapter-head nav { display: flex; overflow-x: auto; gap: 4px; scrollbar-width: thin; }
.itf-guide-chapter-head a {
  display: inline-flex; align-items: center; min-height: 38px; padding: 7px 11px;
  border-radius: 3px; text-decoration: none; white-space: nowrap; font-size: 13px;
}
.itf-guide-chapter-head a:hover { background: #ecd9bd; }
.itf-guide-chapter-head a[aria-current] { background: #4d311e; color: #fff5e6; }
.itf-guide-step { display: grid; grid-template-columns: minmax(0, 1.48fr) minmax(360px, 1fr); gap: 14px; align-items: stretch; margin-bottom: 18px; }
.itf-guide-step:focus { outline: none; }
.itf-guide-stage, .itf-guide-copy { min-width: 0; border: 1px solid #9f8261; border-radius: 7px; overflow: hidden; box-shadow: 0 5px 10px #3b291816, 0 17px 42px #3b291825; }
.itf-guide-stage { display: flex; flex-direction: column; background: linear-gradient(140deg, #4b392b, #251e19); color: #fff2dc; }
.itf-guide-stage-top { display: flex; justify-content: space-between; gap: 15px; padding: 12px 17px; border-bottom: 1px solid #ffffff2b; font-size: 12px; letter-spacing: .045em; }
.itf-guide-stage-top span:last-child { color: #d2b997; }
.itf-guide-scene {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  flex: 1; min-height: 420px; padding: clamp(25px, 4vw, 63px);
  background:
    radial-gradient(ellipse at 54% 14%, #b78b5450, transparent 63%),
    radial-gradient(ellipse at 0% 100%, #6f482c73, transparent 56%),
    repeating-linear-gradient(35deg, #ffffff06 0 1px, transparent 1px 14px);
}
.itf-guide-scene::before {
  content: ""; position: absolute; inset: 16px; pointer-events: none;
  border: 1px solid #d0ad7a54; border-radius: 2px;
}
.itf-guide-scene-brand { position: relative; margin: 0 0 16px; color: #d9b480; font: 400 20px/1 Georgia, serif; letter-spacing: -.03em; }
.itf-guide-scene h3 {
  position: relative; margin: 0 0 clamp(22px, 3vw, 38px); max-width: 23ch;
  font: 400 clamp(28px, 3vw, 47px)/1.08 Georgia, serif; letter-spacing: -.035em;
  text-wrap: balance;
}
.itf-guide-scene-panels { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.itf-guide-scene-panel {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 134px; padding: 25px 16px 17px;
  border: 1px solid #e1bf8f78; border-radius: 4px;
  background: linear-gradient(153deg, #815c39cc, #503820b8 55%, #372719e0);
  box-shadow: inset 0 1px #fff4df28, 0 10px 25px #1a120b3d;
}
.itf-guide-scene-panel::before { content: ""; position: absolute; inset: 6px; border: 1px solid #e1bf8f2e; pointer-events: none; }
.itf-guide-scene-panel strong { position: relative; font: 400 clamp(19px, 1.7vw, 28px)/1.1 Georgia, serif; letter-spacing: -.03em; overflow-wrap: anywhere; }
.itf-guide-scene-panel small { position: relative; display: block; margin-top: 8px; color: #e0cba8; font-size: 12px; }
.itf-guide-scene-panel button {
  position: absolute; z-index: 1; top: 10px; right: 10px; display: grid; place-items: center;
  width: 33px; height: 33px; padding: 0; border: 2px solid #f7e8cf; border-radius: 50%;
  background: #6f401c; color: #fff5e6; font-size: 11px; font-weight: 750;
  box-shadow: 0 0 0 3px #f5e5c955, 0 3px 10px #1a120b88;
}
.itf-guide-scene-panel button:hover, .itf-guide-scene-panel button[aria-pressed="true"] { background: #176273; box-shadow: 0 0 0 4px #f5e5c9a8, 0 3px 10px #1a120b88; }
.itf-guide-stage-caption { margin: 0; padding: 12px 17px; border-top: 1px solid #ffffff24; color: #ddcab0; font-size: 12px; }
.itf-guide-copy {
  padding: clamp(23px, 2.5vw, 39px);
  background:
    repeating-linear-gradient(110deg, #ffffff08 0 2px, transparent 2px 9px),
    linear-gradient(150deg, #fff9ef, #f5e8d5 73%, #ead5b7);
}
.itf-guide-copy h2 {
  max-width: 20ch; margin: 0 0 16px;
  font: 400 clamp(28px, 2.9vw, 44px)/1.09 Georgia, serif;
  letter-spacing: -.038em; text-wrap: balance;
}
.itf-guide-intro { margin: 0 0 22px; color: #5b4637; font-size: clamp(15px, 1.1vw, 17px); line-height: 1.63; }
.itf-guide-callouts { border-top: 1px solid #baa17e; border-bottom: 1px solid #baa17e; }
.itf-guide-callout + .itf-guide-callout { border-top: 1px solid #baa17e80; }
.itf-guide-callout button {
  display: flex; align-items: center; gap: 11px; width: 100%; min-height: 49px; padding: 10px 0;
  border: 0; background: transparent; text-align: left; color: #3a281c; font-size: 14px; font-weight: 700;
}
.itf-guide-callout button:hover { color: #8b4d20; }
.itf-guide-callout button span {
  display: grid; place-items: center; flex: none; width: 28px; height: 28px;
  border: 1px solid #aa8d6b; border-radius: 50%; font-size: 11px;
}
.itf-guide-callout.is-active button span { background: #176273; color: #fff; border-color: #176273; }
.itf-guide-callout button b { margin-left: auto; font-size: 22px; font-weight: 400; line-height: 1; }
.itf-guide-callout button[aria-expanded="true"] b { transform: rotate(45deg); }
.itf-guide-callout p { margin: 0 0 15px 39px; color: #5d493a; font-size: 14px; line-height: 1.62; }
.itf-guide-notes { display: grid; gap: 15px; margin: 19px 0; }
.itf-guide-notes div { margin: 0; }
.itf-guide-notes dt { margin-bottom: 3px; color: #7b4e2c; font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.itf-guide-notes dd { margin: 0; color: #594638; font-size: 14px; line-height: 1.58; }
.itf-guide-meaning { display: flex; align-items: start; gap: 9px; margin: 0; padding-top: 16px; border-top: 1px solid #bda484; color: #503b2a; font-size: 14px; line-height: 1.58; }
.itf-guide-meaning span { color: #80532f; font-size: 25px; line-height: 1; }
.itf-guide-pager { display: none; align-items: center; justify-content: flex-end; gap: 16px; padding: 16px 1px 10px; }
[data-itf-guide-ready="1"] .itf-guide-pager { display: flex; }
.itf-guide-pager button { min-height: 45px; padding: 9px 18px; border: 1px solid #7c5b3f; border-radius: 4px; background: #fff7e8; color: #3f2b1d; font-size: 14px; }
.itf-guide-pager button:last-child { background: #483020; color: #fff6e9; }
.itf-guide-pager button:not(:disabled):hover { filter: brightness(1.11); transform: translateY(-1px); }
.itf-guide-pager span { min-width: 65px; text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; letter-spacing: .14em; }
@media (max-width: 1040px) {
  .itf-guide-step { grid-template-columns: minmax(0, 1fr) minmax(330px, .9fr); }
  .itf-guide-scene { padding: 25px; }
}
@media (max-width: 800px) {
  .itfm-header { align-items: flex-start; flex-direction: column; gap: 10px; padding: 15px 20px; }
  .itfm-header-link { display: inline-flex; align-items: center; min-height: 40px; }
  .itf-guide-hero { align-items: flex-start; flex-direction: column; gap: 18px; }
  .itf-guide-step { grid-template-columns: 1fr; }
  .itf-guide-scene { min-height: 330px; }
  .itf-guide-chapter-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .itf-guide-chapter-head nav { width: 100%; }
}
@media (max-width: 520px) {
  .itf-guide-shell { padding: 20px 10px 28px; }
  .itf-guide-hero { padding: 0 8px 22px; }
  .itf-guide-return { width: 100%; justify-content: space-between; }
  .itf-guide-chapters { margin: 0 -10px; border-radius: 0; padding: 4px 9px; }
  .itf-guide-chapters a { min-height: 46px; padding: 8px 10px; }
  .itf-guide-chapter-head { padding: 9px; }
  .itf-guide-scene { padding: 23px 18px; min-height: 320px; }
  .itf-guide-scene::before { inset: 8px; }
  .itf-guide-scene-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .itf-guide-scene-panel { min-height: 122px; padding: 45px 12px 11px; }
  .itf-guide-scene-panel strong { font-size: 18px; }
  .itf-guide-copy { padding: 24px 20px; }
  .itf-guide-copy h2 { font-size: 31px; }
  .itf-guide-pager { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
  .itf-guide-pager span { justify-self: end; }
  .itf-guide-pager button:last-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: no-preference) {
  .itf-guide-return, .itf-guide-pager button, .itf-guide-chapters a, .itf-guide-chapter-head a,
  .itf-guide-scene-panel button, .itf-guide-callout button { transition: background-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease; }
  [data-itf-guide-ready="1"] .itf-guide-step:not([hidden]) { animation: guide-enter .25s ease-out; }
  @keyframes guide-enter { from { opacity: .55; transform: translateY(5px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
