/* ==========================================================================
   demo-cafe.css — "Ember & Oat"
   Warm, hand-made, unhurried. Cream paper, terracotta, a readable serif.
   Soft corners and generous leading; nothing shouts.
   ========================================================================== */

:root {
  --d-bg:         #FBF7F0;
  --d-ink:        #2B241C;
  --d-muted:      #7A6A57;
  --d-accent:     #BC5B33;
  --d-accent-ink: #FFF8F0;
  --d-surface:    #F4EBDC;
  --d-line:       rgba(43, 36, 28, .13);
  --d-line-strong:rgba(43, 36, 28, .28);

  --d-sans:    "Work Sans", system-ui, sans-serif;
  --d-display: "Newsreader", Georgia, serif;
  --d-radius:  16px;
  --d-max:     1080px;
}

body { letter-spacing: .002em; }

.dnav__brand { font-weight: 600; letter-spacing: -.02em; }
.dh2, .dhero__title { font-weight: 600; }

/* A serif this soft wants a touch more air than the kit default. */
.dhero__title { line-height: 1.06; letter-spacing: -.022em; }
.dlede { font-size: 18px; line-height: 1.65; }

/* Hand-drawn feel: the accent rule under section kickers. */
.dkicker { display: inline-block; padding-bottom: 6px; border-bottom: 2px solid var(--d-accent); }

.dcard { box-shadow: 0 1px 0 rgba(43, 36, 28, .04); }

/* Menu prices sit in the ink colour here — terracotta on cream at small
   sizes reads as an error state rather than a price. */
.dmenu__price { color: var(--d-ink); }
.dmenu__name  { font-family: var(--d-display); font-size: 18px; font-weight: 600; }

/* Opening-hours block, used on Home and Visit. */
.dhours {
  display: grid;
  gap: 9px;
  font-size: 15.5px;
  font-variant-numeric: tabular-nums;
}
.dhours__row { display: flex; justify-content: space-between; gap: 18px; padding-bottom: 8px; border-bottom: 1px dotted var(--d-line-strong); }
.dhours__row:last-child { border-bottom: 0; }
.dhours__d { color: var(--d-muted); }

/* Stamp — the one decorative flourish. */
.dstamp {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--d-accent);
  border: 1.5px solid var(--d-accent);
  border-radius: 999px;
  padding: 8px 16px;
}

.dband { background: var(--d-ink); color: var(--d-bg); }
.dband .dbtn { background: var(--d-accent); color: var(--d-accent-ink); }

/* ==========================================================================
   Appetite-driven layout for Ember & Oat — bespoke sections that make the
   café unmistakable from the other templates. Food leads, words follow.
   ========================================================================== */

/* Full-bleed hero: the croissant fills the screen; the copy sits in the warm
   shadow at the bottom-left. Should make someone hungry before they read. */
.cafe-hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #FFF8F0;
}
.cafe-hero__media { position: absolute; inset: 0; }
.cafe-hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  animation: cafeZoom 20s ease-out both;   /* one slow, tasteful push-in */
}
.cafe-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,18,12,.92) 0%, rgba(26,18,12,.55) 38%, rgba(26,18,12,.12) 82%);
}
.cafe-hero__body { position: relative; z-index: 1; width: 100%; padding: clamp(30px, 6vw, 60px) 0; }
.cafe-hero__eyebrow {
  font-family: var(--d-sans);
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: #F0B892; margin-bottom: 16px;
  animation: cafeRise .7s ease both .1s;
}
.cafe-hero__title {
  font-family: var(--d-display);
  font-weight: 600;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 1.02; letter-spacing: -.015em;
  margin: 0; max-width: 16ch; text-wrap: balance;
  animation: cafeRise .8s ease both .18s;
}
.cafe-hero__title em { font-style: italic; color: #F3B98F; }
.cafe-hero__lede {
  margin: 18px 0 0; font-size: 17.5px; line-height: 1.6;
  max-width: 34ch; color: rgba(255, 248, 240, .86);
  animation: cafeRise .8s ease both .28s;
}
.cafe-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; animation: cafeRise .8s ease both .36s; }
.cafe-hero__facts {
  display: flex; flex-wrap: wrap; gap: 10px 30px;
  margin-top: clamp(26px, 5vw, 42px); padding-top: 20px;
  border-top: 1px solid rgba(255, 248, 240, .22);
  font-size: 14.5px; animation: cafeRise .8s ease both .46s;
}
.cafe-hero__fact { display: flex; align-items: center; gap: 8px; color: rgba(255, 248, 240, .9); }
.cafe-hero__fact a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.cafe-hero__pulse { width: 8px; height: 8px; border-radius: 50%; background: #8CCB7A; box-shadow: 0 0 0 0 rgba(140, 203, 122, .6); animation: cafePulse 2.4s ease-out infinite; }

/* Smaller hero for the Menu / Visit pages, same language. */
.cafe-hero--sub { min-height: min(52vh, 440px); }

/* Menu-forward "today's board": a big photo beside a few signature items. */
.cafe-board { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
@media (max-width: 820px) { .cafe-board { grid-template-columns: 1fr; gap: 30px; } }
.cafe-board__media { border-radius: var(--d-radius); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 24px 50px rgba(43, 36, 28, .16); }
.cafe-board__media img { width: 100%; height: 100%; object-fit: cover; }

.cafe-item { display: grid; grid-template-columns: 1fr auto; gap: 3px 16px; padding: 18px 0; border-top: 1px solid var(--d-line); }
.cafe-item:first-of-type { border-top: 0; padding-top: 4px; }
.cafe-item__name { font-family: var(--d-display); font-size: 22px; font-weight: 600; }
.cafe-item__price { font-weight: 600; font-variant-numeric: tabular-nums; align-self: baseline; }
.cafe-item__desc { grid-column: 1 / -1; color: var(--d-muted); font-size: 14.5px; line-height: 1.5; }

/* A pair of appetite tiles (photo + label) for the little gallery row. */
.cafe-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 700px) { .cafe-tiles { grid-template-columns: 1fr; } }
.cafe-tile { position: relative; border-radius: var(--d-radius); overflow: hidden; aspect-ratio: 4 / 3; }
.cafe-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
@media (hover: hover) { .cafe-tile:hover img { transform: scale(1.05); } }
.cafe-tile figcaption {
  position: absolute; left: 14px; bottom: 12px; z-index: 1;
  font-family: var(--d-display); font-size: 19px; font-weight: 600; color: #FFF8F0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}
.cafe-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,18,12,.6), transparent 55%); }

@keyframes cafeZoom { from { transform: scale(1.09); } to { transform: scale(1); } }
@keyframes cafeRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes cafePulse { 0% { box-shadow: 0 0 0 0 rgba(140,203,122,.55); } 70% { box-shadow: 0 0 0 7px rgba(140,203,122,0); } 100% { box-shadow: 0 0 0 0 rgba(140,203,122,0); } }
