/* ============================================================
   pages.css — page-specific layout
   ============================================================ */

/* --- Shared accent helpers --------------------------------- */
.eyebrow {
  font-family: var(--font-hand);
  font-size: var(--fs-eyebrow);
  color: var(--caramel);
  margin: 0 0 14px;
  line-height: 1;
}
.eyebrow--sm { font-size: var(--fs-eyebrow-sm); margin-bottom: 10px; }

.hand-note {
  font-family: var(--font-hand);
  font-size: var(--fs-nav-link);
  color: var(--caramel);
  display: inline-block;
}

em.accent { font-style: italic; color: var(--caramel); font-weight: inherit; }

/* All scene paths/groups start hidden. JS reveals them once the
   scene is in view (gives them their target opacity). */
[data-draw] {
  opacity: 0;
  fill: none;
  stroke: var(--espresso);
  stroke-linecap: round;
  stroke-linejoin: round;
}
[data-reveal] { opacity: 0; }

/* CSS keyframes for the spoon-stir loop in the book scene.
   Vanilla port of the bundle's @keyframes spoon-stir. */
@keyframes spoon-stir {
  0%   { transform: rotate(0deg)   translateY(0); }
  25%  { transform: rotate(90deg)  translateY(-1px); }
  50%  { transform: rotate(180deg) translateY(0); }
  75%  { transform: rotate(270deg) translateY(1px); }
  100% { transform: rotate(360deg) translateY(0); }
}
.spoon-stir { animation: spoon-stir 3.5s ease-in-out infinite; }

/* ============================================================
   HOMEPAGE — hero placeholder, scene blocks, savings,
   today's pour, featured grid.
   ============================================================ */

/* Hero — four-beat dissolve. The GSAP timeline in home.js handles
   all reveal timing. CSS hides the headline up front so JS can
   fade it in at the end of beat 4. */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  max-width: var(--max-hero);
  margin: 0 auto;
  padding: 70px var(--pad-page-x) 90px;
  align-items: center;
  min-height: 720px;
}
.hero__text { padding-right: 16px; }
.hero__title {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: var(--fs-hero);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0;
  opacity: 0; /* GSAP fades it in after beat 4 */
}
.hero__title em { font-style: italic; color: var(--espresso-soft); font-weight: 300; }
.hero__art {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero__art svg {
  width: 100%;
  max-width: 640px;
  height: auto;
  display: block;
  overflow: visible;
}

/* Reduced-motion users get the final state with no animation. */
@media (prefers-reduced-motion: reduce) {
  .hero__title { opacity: 1; }
  #hero-shop { display: none; }
  #hero-pour { opacity: 1 !important; }
  #hero-pour [data-draw] { opacity: 1; }
  #hero-pour-tools { opacity: 0; }
  #hero-pour-steam { opacity: 1 !important; }
  #hero-pour-liquid { opacity: 0.5 !important; }
}

/* Scene blocks */
.scene-block {
  padding: var(--pad-section) var(--pad-page-x);
  border-top: 1px solid var(--cream-deep);
}
.scene-block__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.scene-block--reverse .scene-block__inner {
  grid-template-columns: 1.1fr 1fr;
}
.scene-block__title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: var(--fs-section);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.scene-block__body {
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--espresso-soft);
  max-width: 460px;
}
.scene-block__svg {
  width: 100%;
  aspect-ratio: 56 / 38;
}
.scene-block__svg svg { width: 100%; height: 100%; display: block; }

/* Savings strip */
.savings-strip {
  background: var(--cream-deep);
  padding: 60px var(--pad-page-x);
  border-top: 1px solid var(--cream);
  border-bottom: 1px solid var(--cream);
}
.savings-strip__inner {
  max-width: var(--max-savings);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  text-align: center;
}
.savings-strip__num {
  font-family: var(--font-head);
  font-size: var(--fs-stat);
  line-height: 1;
  font-weight: 300;
  color: var(--espresso);
}
.savings-strip__cap {
  font-family: var(--font-hand);
  font-size: var(--fs-nav-link);
  color: var(--sage);
  margin-top: 6px;
}

/* Today's Pour — daily-rotating recipe section */
.todays-pour {
  padding: 80px var(--pad-page-x) 40px;
  text-align: center;
}
.todays-pour .eyebrow { margin-bottom: 24px; }

.pour-card {
  background: var(--paper);
  border: 1px solid var(--cream-deep);
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 56px 36px;
  text-align: left;
  box-shadow: 0 12px 32px -20px rgba(43, 29, 20, 0.18);
  position: relative;
}

.pour-card__head {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--cream-deep);
}
.pour-card__name {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 40px;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  line-height: 1.05;
}
.pour-card__name a {
  color: var(--espresso);
  transition: color 200ms ease;
}
.pour-card__name a:hover { color: var(--caramel); }
.pour-card__desc {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 18px;
  color: var(--espresso-soft);
  margin: 0;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.pour-card__body {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  margin-bottom: 16px;
}
.pour-card__sub {
  font-family: var(--font-hand);
  font-size: 26px;
  color: var(--caramel);
  margin: 0 0 16px;
  font-weight: 400;
}
.pour-card__col ul,
.pour-card__col ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pour-card__col li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--cream-deep);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--espresso-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}
.pour-card__col li:last-child { border-bottom: 0; }
.pour-card__col ol {
  counter-reset: pourstep;
}
.pour-card__col ol li {
  counter-increment: pourstep;
  padding-left: 38px;
  position: relative;
  display: block;
}
.pour-card__col ol li::before {
  content: counter(pourstep);
  position: absolute;
  left: 0;
  top: 6px;
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--caramel);
  line-height: 1;
}

.pour-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px dashed var(--cream-deep);
}
.pour-card__cta {
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--caramel);
  transition: color 200ms ease;
}
.pour-card__cta:hover { color: var(--espresso); }
.pour-card__sign {
  font-family: var(--font-hand);
  font-style: italic;
  font-size: 19px;
  color: var(--espresso-soft);
  margin: 0;
  text-align: right;
  opacity: 0.85;
}

/* Featured grid */
.featured { padding: 80px var(--pad-page-x) 60px; }
.featured__header {
  text-align: center;
  margin-bottom: 48px;
}
.featured__title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: var(--fs-section);
  letter-spacing: -0.01em;
  margin: 0;
}
.recipe-grid {
  max-width: var(--max-grid);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Recipe card */
.recipe-card {
  background: var(--paper);
  border: 1px solid var(--cream-deep);
  padding: 28px 26px 24px;
  position: relative;
  box-shadow: var(--shadow-card-rest);
  transition: transform 400ms ease, box-shadow 400ms ease, opacity 800ms var(--ease-fade);
  color: inherit;
  display: block;
}
.recipe-card:hover {
  transform: translateY(-4px) rotate(-0.3deg);
  box-shadow: var(--shadow-card-hover);
}
.recipe-card__badge {
  position: absolute;
  top: -14px;
  right: 18px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-hand);
  line-height: 1;
  transform: rotate(8deg);
  box-shadow: var(--shadow-badge);
}
.recipe-card__badge-label { font-size: 11px; opacity: 0.85; }
.recipe-card__badge-amount { font-size: 20px; font-weight: 600; }
.recipe-card__icon { color: var(--espresso); margin-bottom: 14px; }
.recipe-card__name {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: var(--fs-card-h);
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.recipe-card__meta { font-size: 14px; color: var(--espresso-soft); margin-bottom: 14px; }
.recipe-card__note {
  font-family: var(--font-hand);
  font-size: 19px;
  color: var(--espresso-soft);
  line-height: 1.3;
  margin-bottom: 18px;
}
.recipe-card__prices {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 14px;
  border-top: 1px dashed var(--cream-deep);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--espresso-soft);
}
.recipe-card__prices strong { color: var(--espresso); }
.recipe-card__prices .strike { text-decoration: line-through; }

/* ============================================================
   TODAY'S MENU PAGE
   ============================================================ */

.menu-page__header {
  text-align: center;
  padding: 60px var(--pad-page-x) 24px;
}
.menu-page__title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: var(--fs-section);
  letter-spacing: -0.01em;
  margin: 0;
}

/* Sticky toolbar — sits below the chalk nav. */
.menu-toolbar {
  position: sticky;
  top: 56px;             /* roughly the chalk-nav's height */
  z-index: 40;
  background: var(--cream);
  border-top: 1px solid var(--cream-deep);
  border-bottom: 1px solid var(--cream-deep);
}
.menu-toolbar__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 14px var(--pad-page-x);
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Search */
.menu-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border: 1px solid var(--cream-deep);
  border-radius: 2px;
  padding: 0 14px;
  transition: border-color 200ms ease;
}
.menu-search:focus-within { border-color: var(--caramel); }
.menu-search__icon { color: var(--espresso-soft); flex-shrink: 0; }
.menu-search input {
  flex: 1;
  font-family: var(--font-hand);
  font-size: 22px;
  padding: 10px 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--espresso);
  -webkit-appearance: none;
  appearance: none;
}
.menu-search input::placeholder { color: var(--espresso-soft); opacity: 0.55; }

/* Sort dropdown */
.menu-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.menu-sort__label {
  font-family: var(--font-hand);
  color: var(--espresso-soft);
  font-size: 18px;
}
.menu-sort select {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 32px 10px 12px;
  background: var(--paper) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='none' stroke='%234A3528' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round' d='M1 1l4 4 4-4'/></svg>") no-repeat right 10px center;
  border: 1px solid var(--cream-deep);
  border-radius: 2px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  color: var(--espresso);
  transition: border-color 200ms ease;
}
.menu-sort select:focus { outline: none; border-color: var(--caramel); }

/* Filter chips */
.menu-filters {
  max-width: var(--max-content);
  margin: 24px auto 16px;
  padding: 0 var(--pad-page-x);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.menu-chip {
  font-family: var(--font-hand);
  font-size: 18px;
  background: var(--paper);
  border: 1px solid var(--cream-deep);
  /* Padding tuned so the chip is ≥40px tall — fingertip-friendly */
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  color: var(--espresso-soft);
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.menu-chip:hover { border-color: var(--caramel); color: var(--espresso); }
.menu-chip--active {
  background: var(--espresso);
  color: var(--cream);
  border-color: var(--espresso);
}
.menu-chip--active:hover { color: var(--cream); }

/* Count line */
.menu-count {
  text-align: center;
  font-family: var(--font-hand);
  color: var(--espresso-soft);
  font-size: 18px;
  margin: 0 auto 24px;
  min-height: 1.2em;
}

/* Grid */
.menu-grid {
  padding: 0 var(--pad-page-x);
  margin: 0 auto 40px;
}

/* Card flip wrapper — FLIP needs a stable element with data-flip-id. */
.card-flip { display: block; }

/* Empty state */
.menu-empty {
  text-align: center;
  padding: 60px 24px 100px;
  color: var(--espresso-soft);
}
.menu-empty svg { margin: 0 auto 12px; color: var(--espresso-soft); opacity: 0.6; }
.menu-empty .hand-note { color: var(--espresso-soft); }

/* Load more */
.menu-load-more {
  text-align: center;
  padding: 20px 0 60px;
}

/* ============================================================
   RECIPE DETAIL PAGE
   "Hand-written recipe card on a wooden table" — paper card on
   the cream page, dashed-rule section dividers, cost calc band
   bleeds to card edges.
   ============================================================ */

.recipe-page {
  padding: 60px var(--pad-page-x) 100px;
}

.recipe {
  background: var(--paper);
  border: 1px solid var(--cream-deep);
  max-width: 880px;
  margin: 0 auto;
  padding: 60px 60px 80px;
  box-shadow: 0 12px 32px -20px rgba(43, 29, 20, 0.18);
}

.recipe__header {
  text-align: center;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px dashed var(--cream-deep);
}
.recipe__title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: var(--fs-section); /* 52 */
  letter-spacing: -0.02em;
  margin: 8px 0 12px;
  line-height: 1.05;
}
.recipe__desc {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 19px;
  color: var(--espresso-soft);
  margin: 0 0 18px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.recipe__meta {
  font-family: var(--font-hand);
  font-size: 18px;
  color: var(--espresso-soft);
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.recipe__meta .recipe__sep { opacity: 0.4; }

/* Two-column body — ingredients narrower, steps wider. */
.recipe__body {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  margin-bottom: 8px;
}

.recipe__sub {
  font-family: var(--font-hand);
  font-size: 28px;
  color: var(--caramel);
  margin: 0 0 20px;
  font-weight: 400;
}

/* Ingredients — quantity Caveat, name Lora */
.recipe__ingredients ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.recipe__ingredients li {
  padding: 12px 0;
  border-bottom: 1px dashed var(--cream-deep);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}
.recipe__ingredients li:last-child { border-bottom: 0; }
.ingredient-qty {
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--espresso);
  white-space: nowrap;
}
.ingredient-name { color: var(--espresso-soft); }

/* Steps — numbered with handwritten counters */
.recipe__steps ol {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
}
.recipe__steps li {
  counter-increment: step;
  padding: 14px 0 14px 50px;
  position: relative;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--espresso-soft);
  border-bottom: 1px dashed var(--cream-deep);
}
.recipe__steps li:last-child { border-bottom: 0; }
.recipe__steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 10px;
  font-family: var(--font-hand);
  font-size: 30px;
  color: var(--caramel);
  line-height: 1;
}

/* Cost calculator — bleed to card edges with a creamWarm band */
.recipe__cost {
  background: var(--cream-warm);
  margin: 40px -60px 32px;
  padding: 40px 60px 36px;
  border-top: 1px dashed var(--cream-deep);
  border-bottom: 1px dashed var(--cream-deep);
}
.recipe__sub--cost { text-align: center; }

.cost-calc__intro {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.7;
  color: var(--espresso-soft);
  text-align: center;
  margin: 0 0 32px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.cost-calc__intro input {
  font-family: var(--font-hand);
  font-size: 24px;
  width: 60px;
  padding: 4px 8px;
  background: var(--paper);
  border: 1px solid var(--cream-deep);
  border-radius: 2px;
  text-align: center;
  color: var(--espresso);
  outline: none;
  transition: border-color 200ms ease;
  -moz-appearance: textfield;
}
.cost-calc__intro input::-webkit-outer-spin-button,
.cost-calc__intro input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.cost-calc__intro input:focus { border-color: var(--caramel); }
.cost-calc__intro strong {
  font-family: var(--font-head);
  font-weight: 400;
  color: var(--sage);
  font-size: 22px;
}

.cost-calc__breakdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0 0 24px;
}
.cost-calc__breakdown > div { text-align: center; }
.cost-calc__num {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 300;
  color: var(--sage);
  line-height: 1;
}
.cost-calc__lab {
  font-family: var(--font-hand);
  font-size: 18px;
  color: var(--espresso-soft);
  margin-top: 6px;
}

.cost-calc__compare {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--espresso-soft);
  text-align: center;
  margin: 24px 0 8px;
}
.cost-calc__compare strong {
  text-decoration: line-through;
  color: var(--espresso);
  font-weight: 500;
}
.cost-calc__disclaimer {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--espresso-soft);
  font-style: italic;
  text-align: center;
  margin: 0;
  opacity: 0.7;
}

.recipe__back {
  display: block;
  margin-top: 40px;
  text-align: center;
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--caramel);
  transition: color 200ms ease;
}
.recipe__back:hover { color: var(--espresso); }

/* ============================================================
   JOURNAL INDEX PAGE
   Editorial vertical list of post cards. Paper bg, dashed
   creamDeep rule between cards, no per-card border.
   ============================================================ */

.journal-page {
  padding: 60px var(--pad-page-x) 100px;
}
.journal-page__header {
  text-align: center;
  margin-bottom: 48px;
}
.journal-page__title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: var(--fs-section);
  letter-spacing: -0.01em;
  margin: 0;
}

.journal-list {
  background: var(--paper);
  border: 1px solid var(--cream-deep);
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 56px;
  box-shadow: 0 12px 32px -20px rgba(43, 29, 20, 0.15);
}

.post-card {
  display: block;
  padding: 36px 0;
  border-bottom: 1px dashed var(--cream-deep);
  color: inherit;
  transition: opacity 200ms ease;
}
.post-card:last-child { border-bottom: 0; }
.post-card:hover .post-card__title { color: var(--caramel); }
.post-card:hover .post-card__more  { color: var(--espresso); }

.post-card__date {
  font-family: var(--font-hand);
  font-size: 19px;
  color: var(--espresso-soft);
  margin: 0 0 6px;
  opacity: 0.85;
}
.post-card__title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: var(--espresso);
  transition: color 200ms ease;
}
.post-card__excerpt {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--espresso-soft);
  margin: 0 0 14px;
  /* Clamp to 3 lines, per spec */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card__more {
  font-family: var(--font-hand);
  font-size: 20px;
  color: var(--caramel);
  transition: color 200ms ease;
}

.journal-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--espresso-soft);
  opacity: 0.7;
}

/* ============================================================
   POST DETAIL PAGE — long-form reading layout
   Max-width 720, generous line-height, paper bg.
   ============================================================ */

.post-page {
  padding: 60px var(--pad-page-x) 80px;
}

.post {
  background: var(--paper);
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 56px 72px;
  box-shadow: 0 12px 32px -20px rgba(43, 29, 20, 0.15);
}

.post__header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px dashed var(--cream-deep);
}
.post__date {
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--espresso-soft);
  margin: 0 0 12px;
  opacity: 0.85;
}
.post__title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--espresso);
}
.post__excerpt {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 19px;
  color: var(--espresso-soft);
  line-height: 1.55;
  margin: 0 auto;
  max-width: 540px;
}

/* Body — long-form reading. Lora 19/1.7, generous spacing. */
.post__body p {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.7;
  color: var(--espresso-soft);
  margin: 1.2em 0;
}
.post__body h2 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--espresso);
  margin: 2.4em 0 0.6em;
  line-height: 1.2;
}
.post__body blockquote {
  font-family: var(--font-hand);
  font-size: 28px;
  line-height: 1.35;
  color: var(--caramel);
  border-left: 2px solid var(--caramel);
  padding-left: 24px;
  margin: 2em 0;
  font-style: normal;
}
.post__body strong { color: var(--espresso); font-weight: 500; }
.post__body em { font-style: italic; }
.post__body a {
  color: var(--caramel);
  border-bottom: 1px solid var(--cream-deep);
  transition: border-color 200ms ease;
}
.post__body a:hover { border-color: var(--caramel); }

.post__footer {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px dashed var(--cream-deep);
  text-align: center;
}
.post__back {
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--caramel);
  transition: color 200ms ease;
}
.post__back:hover { color: var(--espresso); }

/* Related-posts aside — separate card per post, two-up grid */
.related {
  max-width: 880px;
  margin: 64px auto 0;
  padding: 0 var(--pad-page-x);
  text-align: center;
}
.related__list {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  text-align: left;
}
.related-card {
  display: block;
  padding: 28px 28px 24px;
  background: var(--paper);
  border: 1px solid var(--cream-deep);
  color: inherit;
  transition: transform 300ms ease, box-shadow 300ms ease;
}
.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -16px rgba(43, 29, 20, 0.2);
}
.related-card:hover .related-card__title { color: var(--caramel); }
.related-card__date {
  font-family: var(--font-hand);
  font-size: 18px;
  color: var(--espresso-soft);
  margin: 0 0 6px;
  opacity: 0.85;
}
.related-card__title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 10px;
  color: var(--espresso);
  transition: color 200ms ease;
}
.related-card__excerpt {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--espresso-soft);
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-card__more {
  font-family: var(--font-hand);
  font-size: 18px;
  color: var(--caramel);
}

/* ============================================================
   TECHNIQUES PAGE — six-card how-to grid
   Two-up on desktop, stacked on mobile. Cards sit on paper bg.
   ============================================================ */

.techniques-page {
  padding: 60px var(--pad-page-x) 100px;
  background: var(--cream-warm);
}
.techniques-page__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.techniques-page__title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: var(--fs-section);
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: var(--espresso);
}
.techniques-page__sub {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.55;
  color: var(--espresso-soft);
  margin: 0 auto;
  max-width: 620px;
}

.techniques-grid {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.technique-card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--cream-deep);
  padding: 36px 36px 28px;
  box-shadow: 0 12px 32px -22px rgba(43, 29, 20, 0.18);
  color: inherit;
  transition: transform 280ms ease, box-shadow 280ms ease;
}
.technique-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -20px rgba(43, 29, 20, 0.22);
}
.technique-card:hover .technique-card__title { color: var(--caramel); }
.technique-card:hover .technique-card__more  { color: var(--espresso); }
.technique-card__eyebrow {
  font-family: var(--font-hand);
  font-size: 19px;
  color: var(--caramel);
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}
.technique-card__title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: var(--espresso);
  transition: color 200ms ease;
}
.technique-card__summary {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--espresso-soft);
  margin: 0 0 16px;
}
.technique-card__more {
  font-family: var(--font-hand);
  font-size: 20px;
  color: var(--caramel);
  transition: color 200ms ease;
}

.techniques-page__foot {
  text-align: center;
  margin: 56px auto 0;
  font-size: 22px;
  color: var(--espresso-soft);
}
.techniques-page__foot a {
  color: var(--caramel);
  border-bottom: 1px solid var(--cream-deep);
  transition: border-color 200ms ease;
}
.techniques-page__foot a:hover { border-color: var(--caramel); }

/* ============================================================
   TECHNIQUE DETAIL PAGE — long-form, sectioned, paper card
   Mirrors the post detail layout but with explicit section
   titles. Max-width 720, generous line-height, paper bg.
   ============================================================ */

.technique-page {
  padding: 60px var(--pad-page-x) 80px;
  background: var(--cream-warm);
}

.technique {
  background: var(--paper);
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 56px 56px;
  box-shadow: 0 12px 32px -20px rgba(43, 29, 20, 0.15);
}

.technique__header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px dashed var(--cream-deep);
}
.technique__eyebrow {
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--caramel);
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}
.technique__title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--espresso);
}
.technique__summary {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 19px;
  line-height: 1.55;
  color: var(--espresso-soft);
  margin: 0 auto;
  max-width: 540px;
}

.technique__section { margin: 36px 0; }
.technique__section:first-child { margin-top: 0; }

.technique__section-title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: var(--espresso);
}

.technique__section-body p,
.technique__section-body li {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--espresso-soft);
}
.technique__section-body p { margin: 0 0 14px; }
.technique__section-body p:last-child { margin-bottom: 0; }
.technique__section-body ul {
  margin: 0 0 14px;
  padding-left: 22px;
}
.technique__section-body li { margin-bottom: 8px; }
.technique__section-body strong { color: var(--espresso); font-weight: 500; }
.technique__section-body em { font-style: italic; }

.technique__footer {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px dashed var(--cream-deep);
  text-align: center;
}
.technique__back {
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--caramel);
  transition: color 200ms ease;
}
.technique__back:hover { color: var(--espresso); }

/* ============================================================
   BEANS PAGE — long reference primer with anchor nav
   Single column, paper-card body, sticky-ish toc up top.
   ============================================================ */

.beans-page {
  padding: 60px var(--pad-page-x) 100px;
  background: var(--cream);
}
.beans-page__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 32px;
}
.beans-page__title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: var(--fs-section);
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: var(--espresso);
}
.beans-page__sub {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.55;
  color: var(--espresso-soft);
  margin: 0 auto;
  max-width: 620px;
}

.beans-grid {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.bean-card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--cream-deep);
  padding: 36px 36px 28px;
  box-shadow: 0 12px 32px -22px rgba(43, 29, 20, 0.18);
  color: inherit;
  transition: transform 280ms ease, box-shadow 280ms ease;
}
.bean-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -20px rgba(43, 29, 20, 0.22);
}
.bean-card:hover .bean-card__title { color: var(--caramel); }
.bean-card:hover .bean-card__more  { color: var(--espresso); }
.bean-card__eyebrow {
  font-family: var(--font-hand);
  font-size: 19px;
  color: var(--caramel);
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}
.bean-card__title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: var(--espresso);
  transition: color 200ms ease;
}
.bean-card__summary {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--espresso-soft);
  margin: 0 0 16px;
}
.bean-card__more {
  font-family: var(--font-hand);
  font-size: 20px;
  color: var(--caramel);
  transition: color 200ms ease;
}

.beans-page__foot {
  text-align: center;
  margin: 56px auto 0;
  font-size: 22px;
  color: var(--espresso-soft);
}
.beans-page__foot a {
  color: var(--caramel);
  border-bottom: 1px solid var(--cream-deep);
  transition: border-color 200ms ease;
}
.beans-page__foot a:hover { border-color: var(--caramel); }

/* ============================================================
   BEAN DETAIL PAGE — long-form, sectioned, paper card.
   Mirrors the technique detail layout.
   ============================================================ */

.bean-page {
  padding: 60px var(--pad-page-x) 80px;
  background: var(--cream);
}

.bean {
  background: var(--paper);
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 56px 56px;
  box-shadow: 0 12px 32px -20px rgba(43, 29, 20, 0.15);
}

.bean__header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px dashed var(--cream-deep);
}
.bean__eyebrow {
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--caramel);
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}
.bean__title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--espresso);
}
.bean__summary {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 19px;
  line-height: 1.55;
  color: var(--espresso-soft);
  margin: 0 auto;
  max-width: 540px;
}

.bean__section { margin: 36px 0; }
.bean__section:first-child { margin-top: 0; }

.bean__section-title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: var(--espresso);
}

.bean__section-body p,
.bean__section-body li {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--espresso-soft);
}
.bean__section-body p { margin: 0 0 14px; }
.bean__section-body p:last-child { margin-bottom: 0; }
.bean__section-body ul {
  margin: 0 0 14px;
  padding-left: 22px;
}
.bean__section-body li { margin-bottom: 8px; }
.bean__section-body strong { color: var(--espresso); font-weight: 500; }
.bean__section-body em { font-style: italic; }

.bean__footer {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px dashed var(--cream-deep);
  text-align: center;
}
.bean__back {
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--caramel);
  transition: color 200ms ease;
}
.bean__back:hover { color: var(--espresso); }

/* ============================================================
   OUR STORY PAGE — about. Single column, paper card, long-form.
   ============================================================ */

.story-page {
  padding: 60px var(--pad-page-x) 100px;
  background: var(--cream-warm);
}

.story {
  background: var(--paper);
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 56px 72px;
  box-shadow: 0 12px 32px -20px rgba(43, 29, 20, 0.15);
}

.story__header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px dashed var(--cream-deep);
}
.story__title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 12px 0 18px;
  color: var(--espresso);
}
.story__excerpt {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 19px;
  line-height: 1.55;
  color: var(--espresso-soft);
  margin: 0 auto;
  max-width: 540px;
}

.story__body p {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.7;
  color: var(--espresso-soft);
  margin: 1.2em 0;
}
.story__body h2 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--espresso);
  margin: 2.4em 0 0.6em;
  line-height: 1.2;
}
.story__body blockquote {
  font-family: var(--font-hand);
  font-size: 30px;
  line-height: 1.35;
  color: var(--caramel);
  border-left: 2px solid var(--caramel);
  padding-left: 24px;
  margin: 2em 0;
  font-style: normal;
}
.story__body strong { color: var(--espresso); font-weight: 500; }
.story__body em { font-style: italic; }
.story__body a {
  color: var(--caramel);
  border-bottom: 1px solid var(--cream-deep);
  transition: border-color 200ms ease;
}
.story__body a:hover { border-color: var(--caramel); }

.story__footer {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px dashed var(--cream-deep);
  text-align: center;
}
.story__back {
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--caramel);
  transition: color 200ms ease;
}
.story__back:hover { color: var(--espresso); }

/* ============================================================
   Mobile (refined further in Phase 11)
   ============================================================ */
@media (max-width: 900px) {
  /* --- Homepage sections --- */
  .scene-block__inner,
  .scene-block--reverse .scene-block__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  /* Always render text above the SVG on mobile, even for reverse blocks. */
  .scene-block--reverse .scene-block__inner > .scene-block__svg { order: 2; }
  .scene-block--reverse .scene-block__inner > .scene-block__text { order: 1; }
  .scene-block__title { font-size: 36px; }
  .scene-block { padding: 60px var(--pad-page-x); }

  .savings-strip { padding: 48px var(--pad-page-x); }
  .savings-strip__inner { grid-template-columns: 1fr; gap: 32px; }

  .todays-pour { padding: 56px var(--pad-page-x) 24px; }
  .featured { padding: 56px var(--pad-page-x) 40px; }
  .recipe-grid { grid-template-columns: 1fr; }

  /* Hero: stack svg above headline on mobile (it animates first) */
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 40px var(--pad-page-x) 56px;
    gap: 24px;
  }
  .hero__text { order: 2; padding-right: 0; text-align: center; }
  .hero__art  { order: 1; }
  .hero__title { font-size: 64px; }

  /* --- Menu page --- */
  .menu-toolbar__inner {
    flex-wrap: wrap;
    gap: 10px;
  }
  .menu-search { width: 100%; }
  .menu-sort   { width: 100%; justify-content: flex-end; }

  /* Filter chips become a horizontal scroll strip on mobile */
  .menu-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    margin-bottom: 8px;
    mask-image: linear-gradient(to right, transparent 0, black 16px, black calc(100% - 16px), transparent 100%);
  }
  .menu-grid { grid-template-columns: 1fr; }

  /* --- Recipe detail --- */
  .recipe-page { padding: 32px 0 60px; }
  .recipe { padding: 36px 24px 50px; }
  .recipe__title { font-size: 36px; }
  .recipe__body { grid-template-columns: 1fr; gap: 32px; }
  .recipe__cost { margin: 32px -24px; padding: 32px 24px; }
  .cost-calc__breakdown { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .cost-calc__num { font-size: 28px; }

  /* --- Today's Pour card --- */
  .pour-card { padding: 32px 24px 24px; }
  .pour-card__name { font-size: 32px; }
  .pour-card__body { grid-template-columns: 1fr; gap: 28px; }
  .pour-card__foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .pour-card__sign { text-align: left; }

  /* --- Journal index --- */
  .journal-page { padding: 32px 0 60px; }
  .journal-list { padding: 8px 24px; }
  .post-card { padding: 28px 0; }
  .post-card__title { font-size: 24px; }

  /* --- Techniques page --- */
  .techniques-page { padding: 36px var(--pad-page-x) 64px; }
  .techniques-page__header { margin-bottom: 36px; }
  .techniques-grid { grid-template-columns: 1fr; gap: 22px; }
  .technique-card { padding: 28px 24px 22px; }
  .technique-card__title { font-size: 26px; }
  .technique-card__summary { font-size: 16px; }

  /* --- Technique detail --- */
  .technique-page { padding: 32px 0 60px; }
  .technique { padding: 40px 24px 50px; }
  .technique__title { font-size: 32px; }
  .technique__section-title { font-size: 22px; }
  .technique__section-body p,
  .technique__section-body li { font-size: 17px; line-height: 1.65; }

  /* --- Beans index --- */
  .beans-page { padding: 36px var(--pad-page-x) 64px; }
  .beans-page__header { margin-bottom: 36px; }
  .beans-grid { grid-template-columns: 1fr; gap: 22px; }
  .bean-card { padding: 28px 24px 22px; }
  .bean-card__title { font-size: 26px; }
  .bean-card__summary { font-size: 16px; }

  /* --- Bean detail --- */
  .bean-page { padding: 32px 0 60px; }
  .bean { padding: 40px 24px 50px; }
  .bean__title { font-size: 32px; }
  .bean__section-title { font-size: 22px; }
  .bean__section-body p,
  .bean__section-body li { font-size: 17px; line-height: 1.65; }

  /* --- Our Story page --- */
  .story-page { padding: 32px 0 60px; }
  .story { padding: 40px 24px 50px; }
  .story__title { font-size: 32px; }
  .story__body p { font-size: 17px; }
  .story__body h2 { font-size: 24px; }
  .story__body blockquote { font-size: 24px; padding-left: 18px; }

  /* --- Post detail --- */
  .post-page { padding: 32px 0 60px; }
  .post { padding: 40px 24px 50px; }
  .post__title { font-size: 32px; }
  .post__body p { font-size: 17px; }
  .post__body h2 { font-size: 24px; }
  .post__body blockquote { font-size: 24px; padding-left: 18px; }
  .related { padding: 0 var(--pad-page-x); }
  .related__list { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero__title         { font-size: 52px; }
  .scene-block__title  { font-size: 32px; }
  .recipe__title       { font-size: 30px; }
  .post__title         { font-size: 28px; }
  .story__title        { font-size: 28px; }
  .pour-card__name     { font-size: 28px; }
  .savings-strip__num  { font-size: 52px; }
  .featured__title,
  .menu-page__title,
  .journal-page__title,
  .techniques-page__title,
  .beans-page__title { font-size: 36px; }
  /* Cards inherit a paper-card padding via component CSS;
     pull recipe/post/pour padding in a touch more on tiny screens. */
  .recipe { padding: 28px 18px 40px; }
  .post   { padding: 32px 18px 44px; }
  .story  { padding: 32px 18px 44px; }
  .technique { padding: 32px 18px 44px; }
  .bean   { padding: 32px 18px 44px; }
  .pour-card { padding: 28px 18px 20px; }
  .recipe__cost { margin: 24px -18px; padding: 28px 18px; }
  .journal-list { padding: 4px 18px; }
}
