/* ============================================================
   CeeAnnSoul — styles.css
   Warm cream + charcoal ink + one confident red.
   Fraunces (display) / Karla (body).
   ============================================================ */

:root {
  --cream: #fbf7ef;
  --cream-2: #f4ecdd;
  --paper: #fffdf9;
  --ink: #332b26;
  --ink-soft: #6e6157;
  --red: #ce2b26;
  --red-dark: #a81f1b;
  --red-tint: #fbe9e4;
  --sage: #7c8a6e;
  --line: #e7dcc9;
  --shadow-sm: 0 1px 3px rgba(51, 43, 38, 0.08);
  --shadow-md: 0 6px 24px rgba(51, 43, 38, 0.10);
  --radius: 14px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Karla", Verdana, Geneva, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { max-width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; }

a { color: var(--red-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -3.5rem;
  z-index: 100;
  background: var(--ink);
  color: var(--cream);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

/* ---------- layout helpers ---------- */

.container { width: min(1120px, 92%); margin-inline: auto; }
.container.narrow { max-width: 760px; }
.center { text-align: center; }

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-tight { padding-top: 1.5rem; }

.band { background: var(--cream-2); border-block: 1px solid var(--line); padding: clamp(3rem, 6vw, 4.5rem) 0; }
.band-sand { background: #f7efe2; }

.section-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.head-chibi { width: 52px; height: 52px; mix-blend-mode: multiply; flex-shrink: 0; }
.section-head h2 { margin-bottom: 0.1em; }
.section-sub { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }
.section-link { margin-left: auto; white-space: nowrap; font-weight: 700; }

.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- type helpers ---------- */

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 0.6rem;
}

.chip {
  display: inline-block;
  padding: 0.28em 0.85em;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.chip-category { background: var(--red-tint); color: var(--red-dark); }
.chip-tag { background: #eef1e6; color: #5c6a4f; }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }
.chip-filter {
  text-decoration: none;
  background: var(--paper);
  border: 1.5px solid var(--line);
  color: var(--ink-soft);
  transition: all 0.18s ease;
}
.chip-filter:hover { border-color: var(--red); color: var(--red-dark); transform: translateY(-1px); }
.chip-filter.is-on { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72em 1.5em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  touch-action: manipulation;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--red); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--red-dark); color: #fff; box-shadow: var(--shadow-md); }

.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { border-color: var(--red); color: var(--red-dark); }

.btn-danger { background: transparent; border-color: #d9b3ae; color: #a0453f; }
.btn-danger:hover { background: #fbe9e4; border-color: var(--red); color: var(--red-dark); }

.btn-sm { min-height: 40px; padding: 0.4em 1em; font-size: 0.86rem; }
.btn-block { width: 100%; text-align: center; }

/* ---------- header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-row { display: flex; align-items: center; gap: 1.5rem; padding: 0.65rem 0; }

.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-chibi { width: 42px; height: 42px; mix-blend-mode: multiply; border-radius: 50%; }
.brand-word { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; }
.brand-word em { color: var(--red); font-style: normal; }

.site-nav { display: flex; gap: 1.4rem; }
.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.35em 0.1em;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.site-nav a:hover { color: var(--red-dark); }
.site-nav a.is-active { color: var(--ink); border-bottom-color: var(--red); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle-bar { width: 24px; height: 3px; background: var(--ink); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }

/* ---------- hero ---------- */

.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: center; }

.hero h1 em { color: var(--red); font-style: italic; }
.lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 34em; margin-bottom: 1.6rem; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.hero-art { position: relative; justify-self: center; width: min(420px, 85%); }
.hero-plate {
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fffdf9 0%, var(--cream-2) 70%);
  border: 2px dashed rgba(206, 43, 38, 0.45);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
}
.hero-plate img { width: 78%; mix-blend-mode: multiply; animation: floaty 6s ease-in-out infinite; }

.sticker {
  position: absolute;
  top: -0.5rem; right: -1rem;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  padding: 0.4em 1em;
  border-radius: 999px;
  transform: rotate(6deg);
  box-shadow: var(--shadow-sm);
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-9px) rotate(1deg); }
}

/* ---------- cards ---------- */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.card:hover .card-media img { transform: scale(1.045); }
.card-media .chip-category { position: absolute; left: 0.8rem; top: 0.8rem; box-shadow: var(--shadow-sm); }

.card-body { padding: 1.1rem 1.2rem 1.3rem; }
.card-title { margin-bottom: 0.35em; font-size: 1.28rem; }
.card-title a { text-decoration: none; color: var(--ink); transition: color 0.15s ease; }
.card-title a:hover { color: var(--red-dark); }
.card-desc { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0.8em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.card-meta { display: flex; gap: 1rem; color: var(--ink-soft); font-size: 0.85rem; margin: 0; }
.card-meta span { white-space: nowrap; }

.post-thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-2); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.post-card:hover .post-thumb img { transform: scale(1.045); }

.post-meta-line { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.6rem; font-size: 0.82rem; color: var(--ink-soft); }
.post-meta-line time { white-space: nowrap; }

/* ---------- menu card (what I'm eating) ---------- */

.menu-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  box-shadow: var(--shadow-sm);
}
.menu-title { font-size: 1.6rem; margin-bottom: 0.4em; }
.menu-title a { text-decoration: none; color: var(--ink); }
.menu-title a:hover { color: var(--red-dark); }
.menu-body ul { padding-left: 1.2em; }
.menu-more { margin-top: 1rem; }

.menu-card-full .menu-head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; border-bottom: 2px solid var(--line); padding-bottom: 0.8rem; margin-bottom: 1.2rem; }
.menu-card-full .menu-head h2 { margin: 0; }
.menu-card-full time { color: var(--ink-soft); font-size: 0.9rem; }
.menu-image { border-radius: 10px; max-height: 340px; width: 100%; object-fit: cover; margin-bottom: 1.2rem; background: var(--cream-2); }

.sub-heading { margin: 2.5rem 0 1.2rem; font-size: 1.5rem; }

/* ---------- page heads (list pages) ---------- */

.page-head { padding: clamp(2.8rem, 6vw, 4.5rem) 0 1.8rem; }
.page-intro { color: var(--ink-soft); max-width: 46em; font-size: 1.08rem; }
.page-head-center h1 { text-align: center; }

.recipe-filters { margin-top: 1.6rem; display: grid; gap: 1rem; }
.filter-search input {
  width: min(420px, 100%);
  padding: 0.7em 1.1em;
  font-size: 1rem;
  font-family: var(--font-body);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
}
.filter-search input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(206, 43, 38, 0.15); }

.result-count { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 1.2rem; }

/* ---------- recipe detail ---------- */

.recipe-page { padding: 2rem 0 4rem; }
.crumb { font-size: 0.92rem; margin-bottom: 1.6rem; }

.recipe-head .chip-category { margin-bottom: 0.8rem; }
.recipe-intro { color: var(--ink-soft); font-size: 1.15rem; max-width: 44em; margin-top: 0.9rem; }

.recipe-meta {
  display: flex;
  gap: 2.2rem;
  flex-wrap: wrap;
  margin: 1.6rem 0 0;
  padding: 1rem 0;
  border-block: 1px solid var(--line);
}
.recipe-meta div { display: grid; gap: 0.15em; }
.recipe-meta dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-soft); font-weight: 700; }
.recipe-meta dd { margin: 0; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }

.recipe-figure { margin: 2rem 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background: var(--cream-2); }
.recipe-figure img { width: 100%; max-height: 520px; object-fit: cover; }

.recipe-columns { display: grid; grid-template-columns: 340px 1fr; gap: 2.5rem; align-items: start; }

.ingredients-card {
  position: sticky;
  top: 86px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.ingredients-card h2 { font-size: 1.35rem; margin-bottom: 0.8em; }

.ingredient-list { list-style: none; margin: 0; padding: 0; }
.ingredient-list li + li { border-top: 1px dashed var(--line); }
.ingredient-list label {
  display: flex;
  gap: 0.65rem;
  align-items: baseline;
  padding: 0.5em 0;
  cursor: pointer;
}
.ingredient-list input[type="checkbox"] { accent-color: var(--red); width: 1.05em; height: 1.05em; flex-shrink: 0; transform: translateY(2px); }
.ingredient-list li.is-checked span { text-decoration: line-through; color: var(--ink-soft); opacity: 0.75; }

.steps h2 { margin-bottom: 1rem; }
.step-list { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.step-list li {
  counter-increment: step;
  position: relative;
  padding-left: 3.2rem;
}
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -0.15em;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  background: var(--red-tint);
  color: var(--red-dark);
  font-family: var(--font-display);
  font-weight: 700;
  display: grid;
  place-items: center;
}

.notes-card {
  margin-top: 2.5rem;
  background: #fdf6e3;
  border: 1px solid #ecd9a8;
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
}
.notes-card h3 { margin-bottom: 0.4em; font-size: 1.1rem; }

.recipe-date { color: var(--ink-soft); font-size: 0.88rem; margin-top: 2rem; }

/* ---------- journal / prose ---------- */

.post-page { padding: 2rem 0 4rem; max-width: 760px; }
.post-head .chip-tag { margin-bottom: 0.8rem; display: inline-block; }
.post-head time { color: var(--ink-soft); font-size: 0.95rem; }
.post-figure { margin: 1.8rem 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background: var(--cream-2); }
.post-figure img { width: 100%; max-height: 460px; object-fit: cover; }

.prose { font-size: 1.08rem; line-height: 1.75; }
.prose p { margin-bottom: 1.2em; }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 1.2em; }
.prose li { margin-bottom: 0.35em; }

.post-related { margin-top: 3rem; border-top: 2px solid var(--line); padding-top: 2rem; }

/* ---------- gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
.gallery-item {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption {
  padding: 0.7rem 0.85rem 0.9rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
  display: grid;
  gap: 0.1em;
}
.gallery-item figcaption strong { color: var(--ink); }
.gallery-desc { font-style: italic; }

.teaser-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.teaser-photo img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.teaser-photo figcaption {
  padding: 0.6rem 0.8rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* lightbox */
.lightbox {
  border: none;
  background: rgba(30, 24, 20, 0.92);
  width: min(92vw, 1000px);
  height: min(85vh, 760px);
  padding: 0;
  border-radius: var(--radius);
}
.lightbox::backdrop { background: rgba(30, 24, 20, 0.7); }
.lightbox figure {
  height: 100%;
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
}
.lightbox img { width: 100%; height: 100%; object-fit: contain; }
.lightbox figcaption {
  color: #f3ece2;
  padding: 0.9rem 1.2rem;
  font-size: 0.95rem;
}
.lightbox-close {
  position: absolute;
  top: 0.6rem; right: 0.8rem;
  background: rgba(255, 253, 249, 0.15);
  color: #fff;
  border: none;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: var(--red); }

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2.5rem;
  align-items: start;
}
.about-portrait { margin: 0; position: relative; }
.about-portrait img {
  width: 100%;
  border-radius: var(--radius);
  background: var(--paper);
  border: 2px dashed rgba(206, 43, 38, 0.45);
}
.about-portrait figcaption {
  position: absolute;
  bottom: -1rem; right: 0.5rem;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-style: italic;
  padding: 0.3em 0.9em;
  border-radius: 999px;
  transform: rotate(-2deg);
}
.about-text p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.4em;
  float: left;
  line-height: 0.85;
  padding-right: 0.12em;
  color: var(--red);
}

.about-facts {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.about-facts > div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  display: grid;
  gap: 0.2em;
}
.about-facts strong { font-family: var(--font-display); color: var(--red-dark); }
.about-facts span { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- empty states & 404 ---------- */

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--paper);
  border: 2px dashed var(--line);
  border-radius: var(--radius);
}
.empty-chibi { width: 140px; height: 140px; margin: 0 auto 1rem; mix-blend-mode: multiply; }
.empty-state h1, .empty-state h2 { color: var(--ink); }
.empty-note { text-align: center; color: var(--ink-soft); font-style: italic; }
.center-row { justify-content: center; margin-top: 1.4rem; }

/* ---------- footer ---------- */

.site-footer {
  background: #2e2723;
  color: #d8cfc4;
  padding: 3.5rem 0 2.5rem;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2.5rem;
  align-items: start;
}
.footer-chibi-wrap {
  width: 64px; height: 64px;
  background: var(--cream);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 0.8rem;
}
.footer-chibi-wrap img { width: 72%; }
.footer-wordmark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #f3ece2;
  margin: 0 0 0.3em;
}
.footer-wordmark em { color: #e8645c; font-style: normal; }
.footer-tagline { margin: 0; font-size: 0.9rem; max-width: 16em; }

.footer-links {
  display: flex;
  gap: 1.3rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a { color: #d8cfc4; text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

.footer-note { text-align: right; font-size: 0.88rem; max-width: 20em; }
.footer-fine { margin-top: 1rem; opacity: 0.75; font-size: 0.8rem; }
.footer-admin { color: #b3a89c; text-decoration: none; border-bottom: 1px dotted #6e6157; }
.footer-admin:hover { color: #fff; }

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
.gallery-item.reveal { transition-delay: calc(var(--i, 0) * 40ms); }

/* ---------- admin: topbar & tabs ---------- */

.page-admin { background: #f6f1e7; min-height: 100vh; }

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem clamp(1rem, 4vw, 2rem);
  background: #2e2723;
  color: #f3ece2;
}
.brand-mini {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #f3ece2;
  text-decoration: none;
  font-size: 0.98rem;
}
.brand-mini img { border-radius: 50%; background: var(--cream); }
.topbar-right { display: flex; align-items: center; gap: 1rem; }
.admin-email { color: #b3a89c; font-size: 0.85rem; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-right .btn-ghost { border-color: #6e6157; color: #f3ece2; }
.topbar-right .btn-ghost:hover { border-color: var(--red); color: #fff; }

.admin-main { padding: 1.8rem 0 4rem; width: min(980px, 94%); }

.tabs {
  display: flex;
  gap: 0.4rem;
  border-bottom: 2px solid var(--line);
  margin-bottom: 1.6rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
.tab {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.7em 1.2em;
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  scroll-snap-align: start;
}
.tab:hover { color: var(--red-dark); }
.tab.is-active { color: var(--ink); border-bottom-color: var(--red); }

.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadein 0.25s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- admin: forms & items ---------- */

.admin-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.2rem;
}
.admin-form h2 { font-size: 1.3rem; margin-bottom: 0.6em; }
.hint { color: var(--ink-soft); font-size: 0.88rem; margin-top: -0.4em; margin-bottom: 1em; }

.field-grid { display: grid; gap: 1rem 1.2rem; grid-template-columns: repeat(6, 1fr); }
.field { display: grid; gap: 0.35em; align-content: start; }
.field-wide { grid-column: span 6; }
.field-small { grid-column: span 2; }
.field-check { grid-column: span 6; font-weight: 700; font-size: 0.95rem; display: flex; gap: 0.5em; align-items: center; }
.field-check input { accent-color: var(--red); width: 1.1em; height: 1.1em; }

.field label { font-weight: 700; font-size: 0.86rem; color: var(--ink-soft); }
.field small { font-weight: 400; opacity: 0.8; }

.field input:not([type]), .field input[type="text"], .field input[type="email"], .field input[type="password"],
.field input[type="date"], .field input[type="number"], .field select, .field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.6em 0.85em;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 9px;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(206, 43, 38, 0.15);
}

.image-field input[type="file"] { font-size: 0.9rem; }
.image-preview {
  width: 130px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--cream-2);
}

.form-actions { display: flex; align-items: center; gap: 0.8rem; margin-top: 1.2rem; }
.form-error {
  color: #a0453f;
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0;
}

.admin-item { position: relative; }
.item-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
}
.item-thumb {
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--cream-2);
  flex-shrink: 0;
}
.item-info { min-width: 0; flex: 1 1 auto; }
.item-info h3 {
  margin: 0;
  font-size: 1.08rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.item-meta { margin: 0.15em 0 0; color: var(--ink-soft); font-size: 0.82rem; }
.item-row .btn { flex-shrink: 0; }

.item-form {
  display: none;
  border-top: 1px dashed var(--line);
  margin: 0;
  padding-top: 1.2rem;
}
.admin-item.is-editing .item-form { display: block; animation: fadein 0.25s ease; }

/* ---------- admin: login / setup ---------- */

.page-admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(206, 43, 38, 0.07), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(206, 43, 38, 0.07), transparent 40%),
    var(--cream);
}
.login-card {
  width: min(420px, 92vw);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  padding: 2.4rem 2.2rem;
}
.login-chibi { display: block; text-align: center; margin-bottom: 0.6rem; }
.login-card h1 {
  font-size: 1.7rem;
  text-align: center;
  margin-bottom: 0.3em;
}
.login-sub {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
}
.login-card label { display: block; font-weight: 700; font-size: 0.86rem; color: var(--ink-soft); margin-top: 1rem; }
.login-card input {
  width: 100%;
  margin-top: 0.35em;
  padding: 0.65em 0.9em;
  font-size: 1rem;
  font-family: var(--font-body);
  border: 1.5px solid var(--line);
  border-radius: 9px;
  background: #fff;
}
.login-card input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(206, 43, 38, 0.15); }
.login-card .btn-block { margin-top: 1.6rem; }
.login-back { text-align: center; margin: 1.2rem 0 0; font-size: 0.9rem; }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .recipe-columns { grid-template-columns: 1fr; gap: 2rem; }
  .ingredients-card { position: static; }
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 300px; } 
  .about-facts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-art { order: -1; width: min(300px, 75%); }
  .section-head { flex-wrap: wrap; }
  .section-link { margin-left: 0; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 1.8rem; }
  .footer-links { justify-content: center; }
  .footer-note { text-align: center; }

  /* mobile nav */
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.8rem 1.4rem; border-bottom: none; width: 100%; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .field-grid { grid-template-columns: repeat(2, 1fr); }
  .field-wide { grid-column: span 2; }
  .field-small { grid-column: span 1; }
  .item-row { flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 1.5rem, 1120px); }
  .section { padding: 2.4rem 0; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .recipe-meta { gap: 1.2rem; }
  .recipe-meta dd { font-size: 1.15rem; }
  .step-list li { padding-left: 2.75rem; }
  .step-list li::before { width: 2.1rem; height: 2.1rem; }
  .menu-card { padding: 1.25rem; }
  .hero-actions .btn { width: 100%; }
  .filter-search input { border-radius: 12px; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }

  .admin-topbar {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 0.55rem 0.75rem;
  }
  .brand-mini { max-width: calc(100% - 112px); line-height: 1.25; }
  .brand-mini strong { display: block; }
  .topbar-right {
    width: 100%;
    justify-content: space-between;
    gap: 0.6rem;
  }
  .admin-email { max-width: calc(100vw - 150px); }
  .admin-main {
    width: 100%;
    padding: 0.75rem 0.75rem 2.5rem;
  }
  .tabs {
    position: sticky;
    top: 93px;
    z-index: 40;
    margin-inline: -0.75rem;
    margin-bottom: 1rem;
    padding: 0 0.75rem;
    background: #f6f1e7;
  }
  .tab { padding-inline: 0.95em; font-size: 0.92rem; }

  .admin-form {
    padding: 1rem;
    border-radius: 12px;
  }
  .admin-form h2 { font-size: 1.2rem; }
  .field-grid { grid-template-columns: 1fr; gap: 0.9rem; }
  .field, .field-wide, .field-small, .field-check { grid-column: 1 / -1; }
  .field label { font-size: 0.9rem; }
  .field textarea[rows="8"], .field textarea[rows="10"], .field textarea[rows="12"] { min-height: 12rem; }
  .image-field input[type="file"] { width: 100%; }
  .image-preview { width: 100%; height: auto; max-height: 180px; }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 0.6rem;
  }
  .form-actions .btn { width: 100%; }
  .form-error { min-height: 1.2em; }

  .item-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.85rem;
  }
  .item-thumb { width: 56px; height: 56px; }
  .item-info h3 { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .item-row .btn {
    grid-column: span 1;
    width: 100%;
  }
  .item-form { padding: 1rem; }
  .inquiry-row { overflow-wrap: anywhere; }
  .inquiry-row .item-meta { display: grid; gap: 0.2rem; }
  .login-card { width: min(100% - 1.5rem, 420px); padding: 1.6rem 1.2rem; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- print (nice recipe printing) ---------- */

@media print {
  .site-header, .site-footer, .crumb, .hero-actions, .skip-link, .notes-card + p { display: none !important; }
  body { background: #fff; color: #000; }
  .recipe-columns { grid-template-columns: 1fr; }
  .card, .ingredients-card { box-shadow: none; border-color: #ccc; }
}


/* ---------- ordering / professional offerings ---------- */
.order-hero { padding: clamp(3.5rem, 7vw, 6rem) 0; background: radial-gradient(circle at 85% 15%, var(--red-tint), transparent 34%), var(--cream); border-bottom: 1px solid var(--line); }
.order-hero-grid { display: grid; grid-template-columns: 1fr 260px; gap: 2rem; align-items: center; }
.order-chibi { width: min(260px, 55vw); justify-self: center; mix-blend-mode: multiply; filter: drop-shadow(0 12px 20px rgba(51,43,38,.12)); }
.offerings-grid { align-items: stretch; }
.offering-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.offering-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.offering-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-2); }
.offering-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.offering-card:hover .offering-media img { transform: scale(1.035); }
.offering-body { padding: 1.15rem; display: flex; flex-direction: column; gap: .65rem; flex: 1; }
.offering-body h3, .offering-body p { margin: 0; }
.offering-body .btn { margin-top: auto; align-self: flex-start; }
.offering-meta { display: flex; flex-wrap: wrap; gap: .6rem 1rem; color: var(--ink-soft); font-size: .95rem; }
.offering-meta strong { color: var(--red-dark); }
.date-night-band { background: linear-gradient(135deg, #fff7f0 0%, #f9e6df 58%, #f3d6cc 100%); border-block: 1px solid #e7c7bd; }
.offering-detail-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.carousel { position: relative; border-radius: calc(var(--radius) + 8px); overflow: hidden; background: var(--cream-2); box-shadow: var(--shadow-md); }
.carousel-frame { aspect-ratio: 4 / 3; position: relative; }
.carousel-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s ease; }
.carousel-slide.is-active { opacity: 1; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 0; background: rgba(255,253,249,.92); color: var(--red-dark); font-size: 2rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow-sm); }
.carousel-prev { left: .75rem; }
.carousel-next { right: .75rem; }
.carousel-dots { position: absolute; left: 0; right: 0; bottom: .75rem; display: flex; justify-content: center; gap: .45rem; }
.carousel-dot { width: .7rem; height: .7rem; border-radius: 50%; border: 1px solid rgba(51,43,38,.35); background: rgba(255,255,255,.75); cursor: pointer; }
.carousel-dot.is-active { background: var(--red); border-color: var(--red); }
.detail-facts { display: grid; gap: .65rem; margin: 1.25rem 0; }
.detail-facts p { margin: 0; display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.detail-facts strong { color: var(--ink); }
.detail-facts span { color: var(--ink-soft); text-align: right; }
.note-box, .success-note { background: var(--red-tint); border: 1px solid #efc9c0; border-radius: var(--radius); padding: 1rem; }
.inquiry-card { margin-top: clamp(2rem, 5vw, 4rem); padding: clamp(1.25rem, 3vw, 2rem); }
.public-form .btn { margin-top: 1rem; }
.admin-image-list { display: grid; gap: .75rem; }
.admin-image-row { display: grid; grid-template-columns: 76px 1fr 1fr 90px 100px; gap: .65rem; align-items: end; padding: .65rem; border: 1px solid var(--line); border-radius: 10px; background: var(--cream); }
.admin-image-row img { width: 76px; height: 64px; object-fit: cover; border-radius: 8px; }
.admin-image-row label { font-size: .85rem; font-weight: 700; }
.admin-image-row input { width: 100%; }
.remove-check { align-self: center; }
@media (max-width: 820px) {
  .order-hero-grid, .offering-detail-grid { grid-template-columns: 1fr; }
  .order-chibi { order: -1; }
  .admin-image-row { grid-template-columns: 70px 1fr; }
}
@media (max-width: 560px) {
  .order-hero { padding: 2.5rem 0; }
  .offering-body .btn { width: 100%; }
  .detail-facts p { display: grid; gap: 0.25rem; }
  .detail-facts span { text-align: left; }
  .carousel-btn { width: 3rem; height: 3rem; }
  .admin-image-row { grid-template-columns: 1fr; align-items: stretch; }
  .admin-image-row img { width: 100%; height: auto; max-height: 180px; }
  .remove-check { min-height: 44px; display: flex; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  .carousel-slide, .offering-card, .offering-media img { transition: none; }
}

.inquiry-row { padding: 1rem 0; border-top: 1px solid var(--line); }
.inquiry-row h3 small { font-family: var(--font-body); font-size: .9rem; color: var(--ink-soft); font-weight: 500; }

/* ---------- digital card ---------- */
.digital-card-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(206, 43, 38, 0.12), transparent 28rem),
    radial-gradient(circle at 82% 92%, rgba(124, 138, 110, 0.18), transparent 24rem),
    var(--cream);
}

.digital-card-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 4vw, 3rem);
}

.digital-card-shell {
  width: min(100%, 460px);
}

.digital-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: rgba(255, 253, 249, 0.94);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(51, 43, 38, 0.14);
  padding: clamp(1.5rem, 5vw, 2.25rem);
}

.digital-card::before {
  content: "";
  position: absolute;
  width: 11rem;
  height: 11rem;
  right: -5rem;
  top: -5.5rem;
  border-radius: 50%;
  background: rgba(206, 43, 38, 0.10);
}

.digital-card-avatar {
  position: relative;
  width: 118px;
  height: 118px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: var(--cream-2);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-md);
}

.digital-card h1 {
  font-size: clamp(2.4rem, 10vw, 3.5rem);
  margin-bottom: 0.35rem;
}

.digital-card-intro {
  color: var(--ink-soft);
  max-width: 28rem;
  margin-inline: auto;
}

.digital-card-actions {
  display: grid;
  gap: 0.75rem;
  margin: 1.4rem 0;
}

.digital-card-actions .btn {
  width: 100%;
}

.digital-card-details {
  display: grid;
  gap: 0.75rem;
  text-align: left;
  margin: 1.25rem 0 0;
}

.digital-card-details div {
  display: grid;
  grid-template-columns: 5.2rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.digital-card-details dt {
  color: var(--red-dark);
  font-weight: 700;
}

.digital-card-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}
