:root {
  --burnt: #B54E03;
  --orange: #E68B48;
  --paper: #F3D9BE;
  --ink: #130801;
  --brown: #863A06;
  --white: #fffefc;
  --line: rgba(134, 58, 6, 0.18);
  --surface-warm: linear-gradient(135deg, #f3d9be, #edd0b0);
  --shadow: 0 20px 45px rgba(19, 8, 1, 0.12);
  --radius: 28px;
  --font-display: "Kalam", cursive;
  --font-body: "Outfit", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.28)),
    repeating-linear-gradient(
      to bottom,
      #f9ecd9 0px,
      #f9ecd9 31px,
      rgba(182, 100, 25, 0.14) 31px,
      rgba(182, 100, 25, 0.14) 33px
    );
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
  cursor: pointer;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 26px;
}

/* Header */
.header {
  position: relative;
  z-index: 2;
  width: 100%;
  background: var(--burnt);
  color: var(--white);
  border-bottom: 3px solid var(--brown);
  box-shadow: 0 10px 26px rgba(19, 8, 1, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 254, 252, 0.35);
  background: rgba(19, 8, 1, 0.14);
  color: var(--white);
  place-items: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.menu-toggle:hover {
  background: rgba(19, 8, 1, 0.24);
  border-color: rgba(255, 254, 252, 0.6);
}

.header a:focus-visible,
.header button:focus-visible,
.footer a:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
  border-radius: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  height: 76px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(19, 8, 1, 0.22));
}

.brand h1,
.brand .brand-title {
  display: block;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: 0;
}

.brand p {
  margin: 4px 0 0;
  color: rgba(255, 254, 252, 0.94);
  font-size: 14px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav a {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 4px;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--paper);
}

.nav-search {
  position: relative;
  width: min(250px, 100%);
}

.nav-search-field {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-search-icon {
  position: absolute;
  left: 12px;
  color: rgba(255, 254, 252, 0.82);
  pointer-events: none;
}

.nav-search-input {
  width: 100%;
  min-height: 38px;
  padding: 7px 12px 7px 36px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 254, 252, 0.34);
  background: rgba(19, 8, 1, 0.16);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-search-input::placeholder {
  color: rgba(255, 254, 252, 0.78);
}

.nav-search-input:focus {
  outline: none;
  border-color: var(--paper);
  background: rgba(19, 8, 1, 0.28);
}

.nav-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(340px, 88vw);
  max-height: 360px;
  overflow-y: auto;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid rgba(134, 58, 6, 0.22);
  background: #fffaf1;
  color: var(--ink);
  box-shadow: 0 18px 36px rgba(19, 8, 1, 0.22);
  z-index: 60;
}

.nav .nav-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none;
  transition: background 0.15s ease;
}

.nav .nav-search-item:hover,
.nav .nav-search-item.is-active {
  background: #f9ecd9;
  color: var(--ink);
}

.nav-search-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f3d9be;
}

.nav-search-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.nav-search-title {
  font-size: 14px;
  font-weight: 600;
  color: #130801;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-search-sub {
  font-size: 12px;
  color: #863A06;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-search-empty {
  padding: 12px 14px;
  font-size: 13px;
  color: rgba(19, 8, 1, 0.72);
  text-align: center;
}

/* Buttons */
.btn {
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  min-height: 44px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--burnt);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(181, 78, 3, 0.25);
}

.btn.secondary {
  background: transparent;
  color: var(--ink);
  border: 2px solid rgba(19, 8, 1, 0.22);
}

/* Hero Section — Warm Mesh Gradient & Editorial Minimalism */
.hero {
  width: 100%;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 24px;
  text-align: center;
  font-family: var(--font-body);
  background-color: #FCF7F4;
  background-image: url("../images/design-assets/banner-bg.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: scroll;
  border-bottom: 1px solid rgba(40, 29, 27, 0.08);
}

/* Decorative Side Leaves */
.page-body {
  position: relative;
  overflow: hidden;
}

.page-body > .container {
  position: relative;
  z-index: 1;
}

.decor-ingredient {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  opacity: 0.5;
  width: clamp(180px, 22vw, 320px);
  height: auto;
  object-fit: contain;
}

.decor-ingredient--1 { left: 0; top: 2%; transform: translateX(-30%) rotate(-24deg); }
.decor-ingredient--2 { right: 0; top: 7%; transform: translateX(30%) rotate(22deg); }
.decor-ingredient--3 { left: 0; top: 13%; transform: translateX(-30%) rotate(18deg); }
.decor-ingredient--4 { right: 0; top: 19%; transform: translateX(30%) rotate(-27deg); }
.decor-ingredient--5 { left: 0; top: 25%; transform: translateX(-30%) rotate(-19deg); }
.decor-ingredient--6 { right: 0; top: 31%; transform: translateX(30%) rotate(25deg); }
.decor-ingredient--7 { left: 0; top: 37%; transform: translateX(-30%) rotate(15deg); }
.decor-ingredient--8 { right: 0; top: 43%; transform: translateX(30%) rotate(-22deg); }
.decor-ingredient--9 { left: 0; top: 49%; transform: translateX(-30%) rotate(-26deg); }
.decor-ingredient--10 { right: 0; top: 55%; transform: translateX(30%) rotate(28deg); }
.decor-ingredient--11 { left: 0; top: 61%; transform: translateX(-30%) rotate(14deg); }
.decor-ingredient--12 { right: 0; top: 67%; transform: translateX(30%) rotate(-20deg); }
.decor-ingredient--13 { left: 0; top: 73%; transform: translateX(-30%) rotate(-16deg); }
.decor-ingredient--14 { right: 0; top: 79%; transform: translateX(30%) rotate(23deg); }
.decor-ingredient--15 { left: 0; top: 85%; transform: translateX(-30%) rotate(17deg); }
.decor-ingredient--16 { right: 0; top: 91%; transform: translateX(30%) rotate(-25deg); }

.hero-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: clamp(160px, 20vw, 230px);
  height: auto;
  margin-bottom: 24px;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(40, 29, 27, 0.14));
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(140, 59, 52, 0.15);
  color: #8C3B34;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.hero-title {
  margin: 28px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(46px, 6.2vw, 80px);
  line-height: 1.04;
  letter-spacing: 0;
  color: #281D1B;
}

.hero-title span {
  font-style: normal;
  color: #B85014;
}

.hero-desc {
  margin: 24px auto 0;
  max-width: 540px;
  font-size: 17px;
  line-height: 1.7;
  color: #2F2320;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 16px 34px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-btn:focus-visible {
  outline: 2px solid #B85014;
  outline-offset: 3px;
}

.hero-btn-primary {
  background: #281D1B;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(40, 29, 27, 0.14);
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(40, 29, 27, 0.2);
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.7);
  color: #281D1B;
  border: 1px solid rgba(40, 29, 27, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.92);
}

/* Sections */
.section {
  padding: 20px;
}

.page-body .section:not(.bookshelf-section):not(#dunya-mutfagi),
.page-body .reviews-strip {
  background: linear-gradient(145deg, rgba(255, 251, 244, 0.96), rgba(249, 238, 224, 0.94));
  border: 1px solid rgba(134, 58, 6, 0.16);
  border-radius: 26px;
  box-shadow: 0 16px 36px rgba(63, 36, 18, 0.08);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 0;
}

.section-head small {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 900;
  color: var(--burnt);
}

.section-head h2,
.section-head h3 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: 0;
}

.section-head p {
  margin: 8px 0 0;
  max-width: 630px;
  color: rgba(19, 8, 1, 0.72);
  line-height: 1.75;
}

/* Beğenilen Tarifler */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.bookshelf-section .bookshelf {
  margin: 18px 0 0;
  padding: 4px 0 0;
  gap: 4px;
}

.bookshelf-section .card-photo {
  aspect-ratio: 1.5 / 1;
  overflow: visible;
}

.bookshelf-section .card-photo img {
  padding: 0;
  object-fit: contain;
}

.bookshelf-section .taped-card {
  align-self: end;
}

.taped-card {
  position: relative;
  padding: 2px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.taped-card:hover {
  transform: translateY(-5px);
}

.card-photo {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1.04 / 1;
  display: grid;
  place-items: center;
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.book-title {
  margin: 4px 4px 0;
  color: #4e2610;
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.2;
  text-align: center;
}

.book-title a {
  display: inline-block;
  padding: 3px 8px 5px;
  border-radius: 8px;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.book-title a:hover,
.book-title a:focus-visible {
  color: var(--burnt);
  background: rgba(255, 251, 244, 0.8);
}

.recipe-grid.world-books-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 18px 0 0;
}

.world-books-grid .card-photo {
  aspect-ratio: 1.5 / 1;
  overflow: visible;
}

.world-books-grid .card-photo img {
  padding: 0;
  object-fit: contain;
}

.world-books-grid .book-title {
  margin-top: 0;
}

.kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--burnt);
  font-weight: 900;
}

.recipe h4 {
  margin: 8px 0 8px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.recipe p {
  margin: 0;
  color: rgba(19, 8, 1, 0.72);
  line-height: 1.7;
  font-size: 14px;
}

.recipe .topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.fav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(19, 8, 1, 0.14);
  background: #ffffff;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--burnt);
  transition: 0.2s ease;
}

.fav.active {
  background: var(--burnt);
  color: #ffffff;
}

.recipe .content {
  padding: 14px 4px 0;
}

.recipe-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.recipe-footer .facts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(19, 8, 1, 0.72);
  font-weight: 700;
}

/* Deneyenler Ne Düşünüyor */
.reviews-strip {
  margin-top: 84px;
  color: var(--ink);
  padding: 36px;
}

.reviews-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.reviews-head small {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 900;
  color: var(--burnt);
}

.reviews-head h2,
.reviews-head h3 {
  margin: 8px 0 0;
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -0.04em;
}

.reviews-head p {
  margin: 8px 0 0;
  max-width: 560px;
  color: rgba(19, 8, 1, 0.74);
  line-height: 1.7;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.review-card {
  background: #fffdf9;
  color: var(--ink);
  border: 1px solid rgba(134, 58, 6, 0.12);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 14px 28px rgba(19, 8, 1, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.review-stars {
  color: var(--burnt);
  font-size: 16px;
  letter-spacing: 2px;
  font-weight: 900;
}

.review-quote {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(19, 8, 1, 0.84);
}

.review-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px dashed rgba(134, 58, 6, 0.2);
  font-size: 13px;
}

.review-author strong {
  display: block;
  color: var(--ink);
}

.review-author span {
  color: var(--brown);
  font-weight: 700;
  font-size: 12px;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 100;
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Footer */
.footer {
  width: 100%;
  margin-top: 56px;
  background: var(--burnt);
  color: rgba(255, 254, 252, 0.94);
  border-top: 3px solid var(--brown);
  font-size: 14px;
}

.footer-inner {
  padding-top: 26px;
  padding-bottom: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand strong {
  color: var(--white);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--paper);
}

/* Desktop header keeps navigation and search together on one row. */
@media (min-width: 1081px) {
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 24px;
  }

  .header-bar {
    justify-content: flex-start;
    min-width: 0;
  }

  .nav {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .nav-search {
    flex: 0 0 250px;
  }
}

/* Tablet */
@media (max-width: 1080px) {
  .recipe-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */
@media (max-width: 700px) {
  .container {
    padding: 16px;
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .header-bar {
    width: 100%;
  }

  .brand {
    gap: 12px;
    min-width: 0;
  }

  .brand-logo {
    height: 56px;
  }

  .brand h1,
  .brand .brand-title {
    font-size: 26px;
    line-height: 1.15;
  }

  .brand p {
    font-size: 12.5px;
    line-height: 1.4;
  }

  .menu-toggle {
    display: grid;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 254, 252, 0.22);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    background: rgba(19, 8, 1, 0.12);
  }

  .nav a:hover {
    background: rgba(19, 8, 1, 0.22);
  }

  .nav-search {
    width: 100%;
    margin-top: 4px;
  }

  .nav-search-input {
    min-height: 44px;
    border-radius: 10px;
  }

  .nav-search-dropdown {
    position: static;
    width: 100%;
    margin-top: 6px;
    max-height: 260px;
  }

  .hero {
    min-height: 76vh;
    padding: 56px 18px;
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
      url("../images/design-assets/banner-bg-mobile.webp");
  }

  .hero-desc {
    font-size: 15.5px;
  }

  .section {
    padding: 20px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .bookshelf-section .bookshelf {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    margin: 14px 0 0;
    padding: 8px 0 0;
    overflow: visible;
  }

  .bookshelf-section .bookshelf > .taped-card {
    width: 100%;
    min-width: 0;
    scroll-snap-align: center;
  }

  .bookshelf-section .card-photo {
    width: 100%;
    overflow: visible;
  }

  .recipe-grid.world-books-grid {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 10px;
  }

  .world-books-grid .card-photo {
    aspect-ratio: 1.5 / 1;
  }

  .book-title {
    margin-top: 0;
    font-size: 18px;
  }

  .bookshelf-section .card-photo img {
    width: 100%;
    height: 100%;
    padding: 0;
    object-fit: contain;
    filter: drop-shadow(0 7px 6px rgba(34, 18, 8, 0.28));
  }

  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .taped-card {
    transform: rotate(0deg);
  }

  .taped-card:hover {
    transform: translateY(-3px);
  }

  .reviews-strip {
    margin-top: 56px;
    padding: 24px 18px;
    border-radius: 22px;
  }

  .reviews-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer {
    margin-top: 40px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-top: 22px;
    padding-bottom: 24px;
  }

  .footer-brand {
    line-height: 1.5;
    order: 2;
    padding-top: 12px;
    width: 100%;
    border-top: 1px solid rgba(255, 254, 252, 0.22);
  }

  .footer-links {
    order: 1;
    width: 100%;
    flex-direction: column;
    gap: 4px;
  }

  .footer-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

@media (max-width: 640px) {
  .hero-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-btn {
    padding: 14px 28px;
  }
}

@media (max-width: 480px) {
  .recipe-footer .btn {
    width: 100%;
  }
}

/* Book Table of Contents (İçindekiler) */
body.toc-open {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
}

body.toc-open > main {
  display: none;
}

.book-toc-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  background: #faf1e2;
  color: #2c211b;
  overflow: hidden;
}

.book-toc-overlay[hidden] {
  display: none;
}

.toc-main {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  padding: 12px 0 16px;
}

.toc-decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.toc-leaf {
  position: absolute;
  width: clamp(150px, 18vw, 270px);
  height: auto;
  opacity: 0.45;
  user-select: none;
}

.toc-leaf--top-left { top: 48px; left: -32px; }
.toc-leaf--top-right { top: 48px; right: -32px; }
.toc-leaf--bot-left { bottom: -18px; left: -28px; }
.toc-leaf--bot-right { bottom: -18px; right: -28px; }

.decor-ingredient--toc-1 { left: 0; top: 28%; transform: translateX(-30%) rotate(-22deg); }
.decor-ingredient--toc-2 { right: 0; top: 32%; transform: translateX(30%) rotate(24deg); }
.decor-ingredient--toc-3 { left: 0; top: 58%; transform: translateX(-30%) rotate(16deg); }
.decor-ingredient--toc-4 { right: 0; top: 62%; transform: translateX(30%) rotate(-20deg); }

.decor-ingredient--reader-1 { left: 0; top: 6%; transform: translateX(-30%) rotate(-24deg); }
.decor-ingredient--reader-2 { right: 0; top: 10%; transform: translateX(30%) rotate(22deg); }
.decor-ingredient--reader-3 { left: 0; top: 40%; transform: translateX(-30%) rotate(18deg); }
.decor-ingredient--reader-4 { right: 0; top: 44%; transform: translateX(30%) rotate(-25deg); }
.decor-ingredient--reader-5 { left: 0; top: 74%; transform: translateX(-30%) rotate(-18deg); }
.decor-ingredient--reader-6 { right: 0; top: 76%; transform: translateX(30%) rotate(20deg); }

.toc-topline,
.toc-notebook-wrap,
.toc-navigation,
.toc-hint {
  position: relative;
  z-index: 1;
}

.toc-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 0 24px;
  margin-bottom: 8px;
}

.toc-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px 0 10px;
  border: 1px solid #d8c3a8;
  border-radius: 999px;
  color: #2c211b;
  background: #fffcf6;
  font-size: 14px;
  font-weight: 600;
}

.toc-back-btn:hover {
  border-color: #8f3910;
}

.toc-back-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toc-book-label {
  margin: 0;
  color: #4e2610;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc-notebook-wrap {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-height: 0;
  width: 100%;
}

.toc-notebook {
  position: relative;
  width: min(100%, max(320px, calc((100dvh - 224px) * 1371 / 937)));
  max-width: 100%;
  aspect-ratio: 1371 / 937;
  margin: auto;
}

.toc-notebook-frame {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
}

.toc-notebook-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(45, 23, 11, 0.2));
}

.toc-stage {
  position: absolute;
  top: 6%;
  right: 10%;
  bottom: 6.5%;
  left: 10%;
  touch-action: pan-y;
}

.toc-spread {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10%;
  height: 100%;
}

.toc-spread.is-changing {
  animation: toc-arrive 240ms cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes toc-arrive {
  from { opacity: .72; transform: translateX(6px); }
  to { opacity: 1; transform: translateX(0); }
}

.toc-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 6px 10px 8px;
  overflow: hidden;
}

.toc-page[hidden] {
  display: none;
}

.toc-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-height: 64px;
  padding-bottom: 10px;
  border-bottom: 1px solid #d8c3a8;
}

.toc-page-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.05;
  color: #2c211b;
}

.toc-page-header p {
  margin: 4px 0 0;
  color: #65564d;
  font-size: 13px;
}

.toc-stamp {
  flex: none;
  margin-top: 4px;
  padding: 5px 9px;
  border: 1px solid #d8c3a8;
  border-radius: 7px;
  color: #8f3910;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc-list {
  display: flex;
  flex-direction: column;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.toc-list li {
  border-bottom: 1px solid rgba(216, 195, 168, 0.72);
}

.toc-item-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: clamp(6px, 1.1dvh, 10px) 6px;
  border-radius: 8px;
  transition: background-color 160ms ease, transform 160ms ease;
}

.toc-item-link:hover,
.toc-item-link:focus-visible {
  background: rgba(143, 57, 16, 0.08);
  transform: translateX(3px);
}

.toc-item-index {
  flex: none;
  color: #8f3910;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.toc-item-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.toc-item-title {
  font-family: var(--font-display);
  font-size: clamp(19px, 1.9vw, 24px);
  font-weight: 700;
  line-height: 1.15;
  color: #2c211b;
}

.toc-item-meta {
  margin-top: 2px;
  color: #65564d;
  font-size: 12px;
}

.toc-item-arrow {
  flex: none;
  color: #8f3910;
  font-size: 18px;
  font-weight: 600;
}

.toc-empty {
  margin: 18px 0 0;
  color: #65564d;
  font-size: 14px;
  line-height: 1.6;
}

.toc-closing-page {
  justify-content: center;
  align-items: center;
}

.toc-closing-note {
  margin: 0;
  color: #65564d;
  font-family: var(--font-display);
  font-size: 26px;
}

.toc-footer-illustrations {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 12px;
  margin-top: auto;
  padding: 6px 4px 2px;
  min-height: 0;
}

.toc-footer-illustrations img {
  width: min(40%, 155px);
  max-height: clamp(68px, 14.5dvh, 140px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.toc-footer-illustrations img:first-child {
  transform: rotate(-8deg);
}

.toc-footer-illustrations img:last-child {
  transform: rotate(9deg);
}

.toc-single-recipe {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding-top: 10px;
}

.toc-single-card {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-height: 0;
  padding: 6px 4px 2px;
  border-radius: 10px;
  border: none;
  background: transparent;
  transition: transform 160ms ease, opacity 160ms ease;
}

.toc-single-card:hover,
.toc-single-card:focus-visible {
  background: rgba(143, 57, 16, 0.04);
  transform: translateY(-2px);
}

.toc-single-media {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 4px;
  overflow: hidden;
}

.toc-single-media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  filter: drop-shadow(0 8px 18px rgba(45, 23, 11, 0.16));
}

.toc-single-body {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.toc-single-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.1vw, 27px);
  font-weight: 700;
  line-height: 1.15;
  color: #2c211b;
}

.toc-single-desc {
  margin: 0;
  color: #54463e;
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.toc-single-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(216, 195, 168, 0.72);
}

.toc-single-cta {
  flex: none;
  color: #8f3910;
  font-size: 13px;
  font-weight: 700;
}

/* Scattered rotated food photo collage on right page */
.toc-collage {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 240px;
  margin-top: 10px;
}

.toc-collage-card {
  position: absolute;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  transition: transform 200ms ease, z-index 0s;
}

.toc-collage-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.toc-collage-card--1 { top: 1%; left: 7%; width: 37%; transform: rotate(14deg); z-index: 1; }
.toc-collage-card--2 { top: 8%; right: 7%; width: 37%; transform: rotate(-12deg); z-index: 2; }
.toc-collage-card--3 { top: 33%; left: 8%; width: 37%; transform: rotate(-6deg); z-index: 3; }
.toc-collage-card--4 { top: 41%; right: 8%; width: 37%; transform: rotate(12deg); z-index: 4; }
.toc-collage-card--5 { top: 65%; left: 7%; width: 37%; transform: rotate(15deg); z-index: 5; }
.toc-collage-card--6 { top: 71%; right: 7%; width: 37%; transform: rotate(0deg); z-index: 6; }

.toc-collage-card:hover {
  z-index: 10;
  transform: scale(1.04) rotate(0deg);
}

.toc-navigation {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 14px;
  width: min(100%, 340px);
  margin: 10px auto 0;
}

.toc-page-arrow {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1.5px solid #d8c3a8;
  border-radius: 50%;
  color: #8f3910;
  background: #fffcf6;
  cursor: pointer;
}

.toc-page-arrow:hover:not(:disabled) {
  border-color: #8f3910;
  background: #fff;
}

.toc-page-arrow:disabled {
  color: rgba(101, 86, 77, 0.35);
  cursor: not-allowed;
}

.toc-page-arrow svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toc-page-position {
  min-width: 0;
}

.toc-page-position p {
  margin: 0 0 6px;
  color: #4e2610;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.toc-progress-track {
  height: 3px;
  overflow: hidden;
  border-radius: 9px;
  background: #d8c3a8;
}

.toc-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #8f3910;
  transition: width 220ms ease;
}

.toc-hint {
  margin: 6px auto 0;
  padding: 0 16px;
  color: #65564d;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 768px) {
  .toc-main {
    display: block;
    padding: 12px 0 28px;
  }

  .toc-topline {
    padding: 0 14px;
    margin-bottom: 10px;
  }

  .toc-notebook {
    width: min(calc(100% - 12px), max(300px, calc((100dvh - 210px) * 615 / 926)));
    aspect-ratio: 615 / 926;
  }

  .toc-stage {
    top: 5.5%;
    right: 7%;
    bottom: 5.5%;
    left: 21.5%;
  }

  .toc-spread {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr);
    gap: 0;
  }

  .toc-page-header {
    min-height: 44px;
    padding-bottom: 6px;
  }

  .toc-page-header h2 {
    font-size: clamp(20px, 5.4vw, 26px);
  }

  .toc-page-header p {
    margin-top: 2px;
    font-size: 11.5px;
  }

  .toc-stamp {
    padding: 3px 7px;
    font-size: 9.5px;
  }

  .toc-single-recipe {
    padding-top: 6px;
  }

  .toc-single-card {
    gap: 6px;
    padding: 4px 2px 2px;
  }

  .toc-single-title {
    font-size: clamp(18px, 4.8vw, 23px);
  }

  .toc-single-desc {
    font-size: 12px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
  }

  .toc-single-footer {
    margin-top: 2px;
    padding-top: 6px;
  }

  .toc-single-cta,
  .toc-single-footer .toc-item-meta {
    font-size: 11.5px;
  }

  .toc-item-link {
    padding: 8px 6px;
  }

  .toc-item-title {
    font-size: clamp(17px, 4.6vw, 22px);
  }

  .toc-navigation {
    grid-template-columns: 46px 1fr 46px;
    gap: 10px;
    width: min(100%, 280px);
    margin-top: 12px;
  }

  .toc-page-arrow {
    width: 44px;
    height: 44px;
  }

  .toc-hint {
    margin-top: 10px;
  }
}
