:root {
  --bg-color: #f5f0e8;
  --text-main: #3d2b1f;
  --gold: #c9a84c;
  --dark-gold: #8b6914;
  --green: #2d5016;
  --brown: #8b4513;
}

body {
  margin: 0;
  padding: 0;
  background-color: #e0d8c8;
  /* Darker backdrop for viewing */
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Lato', sans-serif;
  color: var(--text-main);
}

.page {
  width: 794px;
  height: 1123px;
  background-color: var(--bg-color);
  background-image:
    radial-gradient(circle at center, transparent 0%, rgba(139, 105, 20, 0.03) 100%),
    linear-gradient(to right, rgba(201, 168, 76, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(201, 168, 76, 0.02) 1px, transparent 1px);
  background-size:
    100% 100%,
    20px 20px,
    20px 20px;
  margin: 20px auto;
  position: relative;
  box-sizing: border-box;
  padding: 50px;
  page-break-after: always;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Double Gold Border */
.page::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border: 3px solid var(--gold);
  pointer-events: none;
  z-index: 10;
}

.page::after {
  content: '';
  position: absolute;
  top: 27px;
  left: 27px;
  right: 27px;
  bottom: 27px;
  border: 1px solid var(--dark-gold);
  pointer-events: none;
  z-index: 10;
}

/* Corner Ornaments */
.corner {
  position: absolute;
  width: 40px;
  height: 40px;
  z-index: 11;
}

.corner svg {
  fill: var(--dark-gold);
  width: 100%;
  height: 100%;
}

.corner-tl {
  top: 20px;
  left: 20px;
}

.corner-tr {
  top: 20px;
  right: 20px;
  transform: rotate(90deg);
}

.corner-bl {
  bottom: 20px;
  left: 20px;
  transform: rotate(-90deg);
}

.corner-br {
  bottom: 20px;
  right: 20px;
  transform: rotate(180deg);
}

/* Mountain Silhouette BG */
.mountain-bg {
  position: absolute;
  bottom: 30px;
  left: 30px;
  right: 30px;
  height: 200px;
  opacity: 0.06;
  z-index: 1;
  pointer-events: none;
}

.content-wrapper {
  position: relative;
  z-index: 5;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1 {
  font-family: 'Playfair Display', serif;
  color: var(--dark-gold);
  font-size: 56px;
  text-align: center;
  margin: 0;
  font-weight: 700;
  letter-spacing: 2px;
}

.subtitle {
  font-family: 'Lato', sans-serif;
  color: var(--brown);
  font-size: 18px;
  text-align: center;
  letter-spacing: 4px;
  margin-top: 10px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.tagline {
  font-family: 'Dancing Script', cursive;
  color: var(--green);
  font-size: 32px;
  text-align: center;
  margin: 20px 0;
}

.est-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--text-main);
  text-align: center;
  font-size: 16px;
}

h2.page-title {
  font-family: 'Playfair Display', serif;
  color: var(--dark-gold);
  font-size: 28px;
  text-align: center;
  margin: 10px 0 30px 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h2.page-title::after {
  content: '';
  display: block;
  width: 150px;
  height: 2px;
  background-color: var(--gold);
  margin-top: 10px;
}

.cafe-header {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 14px;
  text-align: center;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

h3.section-title {
  font-family: 'Playfair Display', serif;
  color: var(--dark-gold);
  font-size: 22px;
  text-align: center;
  margin: 20px 0 15px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Menu Items */
.mi {
  margin-bottom: 14px;
  page-break-inside: avoid;
}

.mh {
  display: flex;
  align-items: baseline;
  margin-bottom: 4px;
}

.mn {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.badge {
  font-size: 12px;
  margin-left: 4px;
}

.dl {
  flex-grow: 1;
  border-bottom: 2px dotted var(--gold);
  margin: 0 12px;
  position: relative;
  top: -4px;
  opacity: 0.6;
}

.mp {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--dark-gold);
  white-space: nowrap;
}

.md {
  font-family: 'Lato', sans-serif;
  font-style: italic;
  font-size: 12px;
  color: #5a4a42;
  margin: 0;
  line-height: 1.4;
  padding-right: 40px;
}

/* Layouts */
.col-2 {
  display: flex;
  gap: 40px;
}

.col-2>div {
  flex: 1;
}

.divider-ornament {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.divider-ornament svg {
  width: 120px;
  height: 20px;
  fill: var(--gold);
}

.cover-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.cover-mountain {
  margin-top: auto;
  margin-bottom: 40px;
  width: 80%;
  height: auto;
  fill: var(--green);
  opacity: 0.8;
}

.footer-text {
  text-align: center;
  font-size: 12px;
  color: var(--brown);
  margin-top: auto;
  padding-bottom: 10px;
  letter-spacing: 1px;
}

/* Cover page special background */
.page.cover {
  background-image:
    radial-gradient(ellipse at 50% 40%, rgba(201, 168, 76, 0.08) 0%, transparent 70%),
    radial-gradient(circle at center, transparent 0%, rgba(139, 105, 20, 0.04) 100%);
}

/* Legend key at bottom of content pages */
.legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(201, 168, 76, 0.3);
  font-size: 11px;
  color: var(--brown);
  letter-spacing: 0.5px;
}

/* Section title line decoration */
h3.section-title::before,
h3.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 0 10px;
}

/* Chicken Shipudim note */
.note-tag {
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 3px;
  padding: 6px 12px;
  font-size: 12px;
  font-style: italic;
  color: var(--brown);
  text-align: center;
  margin: 8px 0 15px 0;
}

/* Highlight special item box */
.special-box {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.1), rgba(139, 105, 20, 0.05));
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 4px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

/* Inline page mini header bar */
.page-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.25);
  font-size: 11px;
  color: var(--brown);
  letter-spacing: 1px;
}

/* Print styles */
@page {
  size: 794px 1123px;
  margin: 0;
}

@media print {

  html,
  body {
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 794px !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body>*:not(#app) {
    display: none !important;
  }

  .page {
    width: 794px !important;
    height: 1123px !important;
    min-height: unset !important;
    max-width: unset !important;
    margin: 0 !important;
    padding: 50px !important;
    box-shadow: none !important;
    page-break-after: always !important;
    break-after: page !important;
    position: relative !important;
    overflow: hidden !important;
    zoom: 1;
  }
}

/* ✅ Make layout responsive */
body {
  padding: 10px;
}

/* Replace fixed page size */
.page {
  width: 100%;
  max-width: 794px;
  height: auto;
  min-height: 100vh;
  padding: 40px 25px;
}

/* Responsive typography */
h1 {
  font-size: clamp(28px, 6vw, 56px);
}

.subtitle {
  font-size: clamp(12px, 2.5vw, 18px);
}

.tagline {
  font-size: clamp(18px, 4vw, 32px);
}

h2.page-title {
  font-size: clamp(20px, 4vw, 28px);
}

h3.section-title {
  font-size: clamp(16px, 3vw, 22px);
}

/* Menu text */
.mn {
  font-size: clamp(14px, 2.5vw, 16px);
}

.mp {
  font-size: clamp(12px, 2.5vw, 14px);
}

.md {
  font-size: clamp(11px, 2.2vw, 12px);
}

/* ✅ Columns responsive */
.col-2 {
  display: flex;
  gap: 30px;
  margin: 0 15px;
}

@media (max-width: 768px) {
  .col-2 {
    flex-direction: column;
    gap: 20px;
  }
}

/* ✅ Cover circle responsive */
.cover-content div[style*="340px"] {
  width: 220px !important;
  height: 220px !important;
}

@media (min-width: 768px) {
  .cover-content div[style*="340px"] {
    width: 300px !important;
    height: 300px !important;
  }
}

/* ✅ Image scaling */
img {
  max-width: 100%;
  height: auto;
}

/* ✅ Reduce heavy borders on mobile */
@media (max-width: 600px) {

  .page::before,
  .page::after {
    display: none;
  }

  .corner {
    display: none;
  }
}

/* ✅ Better spacing on small devices */
@media (max-width: 480px) {
  .page {
    padding: 20px 15px;
  }

  .dl {
    margin: 0 6px;
  }
}

.hero-circle {
  position: relative;
  width: 70vw;
  max-width: 320px;
  aspect-ratio: 1/1;
  margin: 0 auto 30px auto;
  /* 👈 increased spacing */
}

/* ensure text stays below */
.cover-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* ── Cover Page ── */
.cover-spacer {
  height: 30px;
}

.cover-h1 {
  font-size: 50px;
  letter-spacing: 3px;
  margin-bottom: 4px;
}

.cover-subtitle {
  margin-bottom: 6px;
}

.cover-divider-top {
  margin-bottom: 8px;
}

.cover-divider-mid {
  margin-top: 4px;
  margin-bottom: 18px;
}

/* Ring SVG overlay inside hero-circle */
.hero-ring-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 300px;
  height: 300px;
  z-index: 3;
  pointer-events: none;
}

/* Circular clipped image wrapper */
.hero-photo {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  overflow: hidden;
  z-index: 2;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Cover bottom text block */
.cover-name-block {
  text-align: center;
  margin-bottom: 10px;
}

.cover-cafe-name {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 700;
  color: #6B2A0A;
  letter-spacing: 1px;
  line-height: 1.2;
}

.cover-cafe-sub {
  font-family: 'Dancing Script', cursive;
  font-size: 20px;
  color: #8B4513;
  margin-top: 4px;
}

.cover-tagline {
  font-size: 22px;
  margin: 8px 0 4px;
}

.cover-est {
  font-size: 14px;
}

.cover-mountain-svg {
  margin-top: auto;
  margin-bottom: 20px;
  width: 85%;
  opacity: 0.65;
}

/* ── Section sub-note (italic helper text under section titles) ── */
.section-note {
  text-align: center;
  font-style: italic;
  color: var(--brown);
  margin-top: -10px;
  margin-bottom: 20px;
  font-size: 13px;
}

/* ── col-2 spacing variants ── */
.col-2.mb-30 {
  margin-bottom: 30px;
}

.col-2.mb-20 {
  margin-bottom: 20px;
}

/* ── Divider ornament spacing variants ── */
.divider-ornament.dm-top-40 {
  margin: 40px 0 20px 0;
}

.divider-ornament.dm-25 {
  margin: 25px 0 15px;
}

.divider-ornament.dm-20 {
  margin: 20px 0 15px;
}

.divider-ornament.dm-bottom-25 {
  margin-bottom: 25px;
}

.divider-ornament.dm-20-sym {
  margin: 20px 0;
}

/* ── Horizontal rule (dashed gold separator in rice/bread section) ── */
.gold-rule {
  border-top: 1px dashed var(--gold);
  margin: 15px 0;
}

/* ── Dancing Script quote line ── */
.ds-quote {
  font-family: 'Dancing Script', cursive;
  font-size: 17px;
  color: var(--green);
  text-align: center;
  margin: 0;
}

/* ── Back cover ── */
.back-cover-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
}

.back-cover-mountain-svg {
  width: 75%;
  margin-bottom: 30px;
  opacity: 0.75;
}

.back-cover-h1 {
  font-size: 42px;
  margin-bottom: 8px;
}

.back-cover-dining {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--brown);
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.back-cover-tagline {
  font-size: 26px;
  margin: 20px 0;
}

.back-cover-cafe-name {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  color: var(--dark-gold);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.back-cover-address {
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 4px;
}

.back-cover-location {
  font-size: 13px;
  color: var(--brown);
  font-style: italic;
  margin-bottom: 20px;
}

.back-cover-gold-box {
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid var(--gold);
  border-radius: 4px;
  padding: 12px 30px;
  margin-bottom: 20px;
}

.back-cover-gold-box p {
  margin: 4px 0;
  font-size: 13px;
  color: var(--text-main);
}

.back-cover-legend {
  display: flex;
  gap: 30px;
  align-items: center;
}

.legend-item {
  text-align: center;
}

.legend-item span {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--brown);
  text-transform: uppercase;
}

.legend-vr {
  width: 1px;
  height: 24px;
  background: var(--gold);
}

.back-cover-footer {
  margin-top: 30px;
}

/* hidden SVG defs container */
svg.svg-defs {
  display: none;
}