/* Kai's Atelier – theme "Bordeaux bakehouse" (Brand Bible v1.2 trial)
   Warm cream, oak and Bordeaux: European restraint + cosy Korean-café warmth.

   This file only OVERRIDES css/style.css. Remove its <link> in index.html and care.html
   (or open the site with ?theme=classic) and the site returns to the classic look. */

:root {
  --cream: #F6F1E8;      /* page background */
  --oat: #ECE3D4;        /* panels */
  --oxblood: #4A1416;    /* footer, feature bands */
  --oak: #B39A7C;        /* wood details, decorative only */
  --sage: #8C977E;       /* rare accent */

  /* re-map the classic tokens */
  --crimson: #8E1B1E;        /* Bordeaux */
  --crimson-dark: #6B1518;
  --crimson-tint: #F3E4DE;
  --ink: #2B1E18;            /* espresso */
  --muted: #6E6158;          /* taupe */
  --panel: #ECE3D4;
  --paper: #EFE7DA;
  --line: #DDD2C1;           /* parchment */
  --white: #FFFDF9;          /* warm white for cards and inputs */
  --radius: 4px;
  --radius-sm: 4px;
}

body { background: var(--cream); color: var(--ink); }

/* Very light paper grain over the whole page */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Header ---------- */
.site-header { background: rgba(246, 241, 232, .94); border-bottom-color: var(--line); }
.brand-mark { display: block; width: 34px; height: 34px; object-fit: contain; }
nav .nav-cta { border-color: var(--crimson); color: var(--crimson); border-radius: 999px; padding: .6rem 1.3rem; }
nav .nav-cta:hover { background: var(--crimson); color: var(--white); }

/* ---------- Buttons: soft pill, Bordeaux ---------- */
.btn { border-radius: 999px; padding: 1.05rem 2.6rem; box-shadow: 0 6px 18px -10px rgba(74, 20, 22, .55); }
.btn-ghost { box-shadow: none; }

/* ---------- Hero: warm glow + arch window ---------- */
.hero {
  border-bottom: 0;
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, rgba(255, 236, 205, .75), transparent 70%),
    var(--cream);
}
.hero .eyebrow { color: var(--crimson); }
.hero h1 em { font-weight: 500; }
.hero.has-media .hero-media { border-radius: 999px 999px var(--radius) var(--radius); box-shadow: 0 30px 60px -40px rgba(43, 30, 24, .6); }

/* Cream + espresso checkerboard strip (like the café floor) */
.checker {
  display: block; height: 12px;
  background: repeating-conic-gradient(var(--ink) 0 25%, var(--cream) 0 50%) 0 0 / 12px 12px;
  opacity: .9;
}

/* ---------- Sections ---------- */
.section-panel { background: var(--oat); border-color: var(--line); }
.section-head h2::after {
  content: ""; display: block; width: 44px; height: 2px; margin-top: .9rem; background: var(--crimson);
}
.section-head h2 { margin-bottom: .9rem; }

/* ---------- Menu: arch-topped photos ---------- */
.gallery-stage { border-radius: 999px 999px var(--radius) var(--radius); background: var(--oat); }
.gallery-thumb { border-radius: 6px; }
.gallery-thumb.active { border-color: var(--crimson); }
.card h3 { font-size: 1.6rem; }
.card .price { color: var(--crimson); font-family: var(--font-head); font-size: 1.35rem; }
.tag { border-radius: 999px; }

/* ---------- Order ---------- */
.calendar, .summary, .notice, .confirm { background: var(--white); border-color: var(--line); border-radius: 10px; }
.summary { box-shadow: 0 24px 50px -40px rgba(43, 30, 24, .5); }
.day.open { background: var(--white); border-color: var(--oak); }
/* keep the picked Saturday filled (this file loads after style.css, so .day.open would otherwise paint it white and hide the white text) */
.day.selected, .day.selected:hover { background: var(--crimson); border-color: var(--crimson); color: var(--white); }
.day.full, .day.closed { background: var(--oat); }
.dot-full, .dot-closed { background: var(--oat); }
input, select, textarea { background: var(--white); border-radius: 6px; }
.stepper button, .cal-nav { border-radius: 999px; }
.qty-row.has-qty .name { color: var(--crimson); }
.paynow img { border-radius: 8px; }
.confirm { text-align: center; margin: 0 auto; }
.confirm-mascot { display: block; width: 120px; height: 120px; object-fit: contain; margin: 0 auto 12px; }

/* ---------- How it works ---------- */
.steps-list li { border-top-color: var(--oak); }
.steps-list span { font-style: italic; font-size: 1.4rem; }

/* ---------- Care page ---------- */
.care-hero {
  border-bottom: 0;
  background: radial-gradient(ellipse 60% 80% at 20% 0%, rgba(255, 236, 205, .7), transparent 70%), var(--cream);
}
.care-item figure { border-radius: 999px 999px var(--radius) var(--radius); background: var(--cream); }
.care-table-wrap, .care-facts div, .care-tips li { border-top-color: var(--oak); }
.care-table tbody tr:hover { background: rgba(236, 227, 212, .5); }

/* ---------- Footer: oxblood ---------- */
.site-footer { background: var(--oxblood); color: var(--cream); }
.site-footer .brand { color: var(--cream); }
.site-footer .muted { color: #D9C9BF; }
.footer-links a { color: var(--cream); border-bottom-color: rgba(246, 241, 232, .4); }
.footer-base { color: #C4ADA4; border-top-color: rgba(246, 241, 232, .18); }

.banner { background: var(--oxblood); color: var(--cream); }

@media (max-width: 560px) {
  .gallery-stage { border-radius: 999px 999px var(--radius) var(--radius); }
  .care-item figure { max-width: 240px; }
}

/* =====================================================================
   v2 (18 Oct): menu-board serif + alternating wine-red / cream bands
   ===================================================================== */
:root {
  --font-head: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --wine: #7E1A1D;        /* red band background */
  --wine-muted: #E6CFC4;  /* secondary text on red */
}

/* ---------- Type: condensed café-menu serif ---------- */
h1, h2, h3, .brand, .cal-title, .qty-row .name, .steps-list strong,
.summary-total .pay-amount, .care-table tbody th { font-family: var(--font-head); font-weight: 400; letter-spacing: -.005em; }
h1 { font-size: clamp(3.2rem, 8vw, 5.8rem); line-height: 1; }
h2 { font-size: clamp(2.5rem, 5vw, 3.6rem); line-height: 1.02; }
h3 { font-size: 1.75rem; }
.brand { font-style: italic; font-size: 1.85rem; }
.site-footer .brand { font-size: 2.3rem; }
.card h3 { font-size: 1.9rem; line-height: 1.05; }
.card .price { font-size: 1.55rem; font-style: italic; }
.step-no { font-family: var(--font-head); font-style: italic; font-size: 1.4rem; }
.step h3 { font-size: 1.85rem; }
.steps-list strong { font-size: 2rem; }
.steps-list span { font-family: var(--font-head); font-size: 1.6rem; }
.qty-row .name { font-size: 1.45rem; }
.summary-total .pay-amount { font-size: 2.2rem; }
.confirm h3 { font-size: 2.8rem; }
.care-item h2 { font-size: clamp(2.2rem, 4vw, 2.9rem); }
.care-table tbody th { font-size: 1.4rem; }
.cal-title { font-size: 1.7rem; }

/* ---------- Red bands (alternate with cream) ---------- */
.band-red { background: var(--wine); color: var(--cream); }
.band-red h2, .band-red h3, .band-red strong, .band-red .care-table tbody th,
.band-red .care-table tbody th a { color: var(--cream); }
.band-red .muted, .band-red .desc, .band-red .unit, .band-red .allergens,
.band-red .steps-list li, .band-red .care-tips li, .band-red .care-note,
.band-red .care-table thead th, .band-red .eyebrow { color: var(--wine-muted); }
.band-red .section-head h2::after { background: var(--cream); }
.band-red a { color: var(--cream); }

/* menu cards on red */
.band-red .card .price { color: var(--cream); }
.band-red .gallery-stage { background: #6A1518; box-shadow: 0 24px 40px -30px rgba(0, 0, 0, .55); }
.band-red .gallery-thumb { background: #6A1518; }
.band-red .gallery-thumb.active { border-color: var(--cream); }
.band-red .tag { background: var(--cream); color: var(--wine); }
.band-red .care-link { color: var(--cream); border-bottom-color: rgba(246, 241, 232, .45); }
.band-red .care-link:hover { color: var(--white); border-color: var(--white); }

/* how it works / care tips on red */
.band-red .steps-list li, .band-red .care-tips li,
.band-red .care-table-wrap { border-top-color: rgba(246, 241, 232, .55); }
.band-red .steps-list span { color: var(--cream); }
.band-red .care-table th, .band-red .care-table td { border-bottom-color: rgba(246, 241, 232, .2); }
.band-red .care-table tbody tr:hover { background: rgba(0, 0, 0, .12); }

/* cream sections that follow a red band stay cream/oat */
.section-panel { background: var(--cream); }
.care-items.wrap { background: transparent; }
.band-red .gallery-thumb { opacity: .8; }
.band-red .gallery-thumb:hover, .band-red .gallery-thumb.active { opacity: 1; }

/* Payment box */
.pay-box { border-radius: 10px; background: var(--white); }
.pay-qr canvas, .pay-qr-static { border-radius: 8px; }
.pay-details dd { font-family: var(--font-body); }
.pay-thanks { border-radius: 10px; background: #E4EDE0; color: #2F5A27; }

/* Feedback */
.fb-card { border-top-color: var(--oak); }
.fb-card blockquote { font-family: var(--font-head); font-size: 1.45rem; line-height: 1.25; }
.fb-form { border-radius: 10px; box-shadow: 0 24px 50px -40px rgba(43, 30, 24, .5); }
.fb-chip { border-radius: 999px; }
.fb-reply { border-radius: 8px; background: var(--oat); }
.fb-promises li { border-top-color: var(--oak); }
.fb-hero .lede { max-width: 600px; }
.band-red .fb-card { border-top-color: rgba(246, 241, 232, .55); }
.band-red .fb-name, .band-red .fb-card blockquote { color: var(--cream); }
.band-red .fb-meta, .band-red .fb-ordered { color: var(--wine-muted); }
.band-red .fb-reply { background: rgba(0, 0, 0, .16); color: var(--cream); }
.band-red .fb-reply-label { color: var(--wine-muted); }
.band-red .fb-chip { border-color: rgba(246, 241, 232, .45); color: var(--cream); }
.band-red .fb-chip[aria-pressed="true"] { background: var(--cream); color: var(--wine); border-color: var(--cream); }

/* =====================================================================
   v3 (21 Nov): order buttons you can find with your eyes half-closed
   ===================================================================== */
/* Header "Order": solid Bordeaux pill (was an outline) */
nav .nav-cta {
  background: var(--crimson); color: var(--white); border-color: var(--crimson);
  box-shadow: 0 6px 16px -8px rgba(74, 20, 22, .7); font-weight: 600;
}
nav .nav-cta:hover, nav .nav-cta:focus-visible { background: var(--crimson-dark); border-color: var(--crimson-dark); color: var(--white); }

/* "Place order": bigger, heavier, with a soft glow */
#submit-btn {
  padding: 1.25rem 2rem; font-size: .84rem; font-weight: 600; letter-spacing: .18em;
  box-shadow: 0 14px 28px -12px var(--cta-glow, rgba(74, 20, 22, .8));
}
#submit-btn:hover { transform: translateY(-1px); }

/* Phone: bottom bar once bakes are chosen and "Place order" is off-screen */
.order-bar { display: none; }
@media (max-width: 760px) {
  .order-bar:not([hidden]) {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--white); border-top: 1px solid var(--line);
    box-shadow: 0 -10px 24px -14px rgba(43, 30, 24, .45);
  }
  .order-bar-text { font-weight: 600; color: var(--ink); font-size: .95rem; }
  .order-bar-btn { padding: .9rem 1.4rem; font-size: .74rem; font-weight: 600; box-shadow: none; }
}

/* =====================================================================
   v4 (22 Nov): "Kai's Atelier" name in Cedarville Cursive (header + footer)
   The font is a thin handwriting, so it is set larger and without italic.
   ===================================================================== */
.brand { font-family: "Cedarville Cursive", var(--font-head); font-style: normal; font-weight: 400;
  font-size: 2rem; letter-spacing: 0; line-height: 1; }
.brand span { padding-top: .2em; } /* the script sits high; nudge it level with the badge */
.site-footer .brand { font-size: 2.5rem; }
@media (max-width: 560px) { .brand { font-size: 1.75rem; } }
