  :root {
    --ink:     #1a1410;
    --parch:   #fdf0f4;
    --copper:  #c2547a;
    --bone:    #fdf6f8;
    --smoke:   #8a7d72;
    --divider: #e8cdd6;
    --tag-bg:  #f5e0e8;
    --surface: #ffffff;
    --warm-glow: #fff0f4;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    background: var(--bone);
    color: var(--ink);
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    padding: 0 0 80px;
  }

  .page { max-width: 560px; margin: 0 auto; padding: 0 18px; }

  /* ─── TITLE PAGE ─── */
  .title-page {
    background: var(--ink);
    padding: 56px 28px 48px;
    margin-bottom: 44px;
    position: relative;
    overflow: hidden;
  }

  .title-page::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 30% 60%, rgba(194,84,122,0.18) 0%, transparent 65%);
    pointer-events: none;
  }

  .title-eyebrow {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--copper);
    margin-bottom: 18px;
  }

  .title-main {
    font-family: 'Cormorant Garant', serif;
    font-size: clamp(48px, 13vw, 72px);
    font-weight: 300;
    line-height: 0.95;
    color: var(--parch);
    margin-bottom: 6px;
  }

  .title-main em {
    font-style: italic;
    color: var(--copper);
  }

  .title-sub {
    font-family: 'Cormorant Garant', serif;
    font-size: 15px;
    font-style: italic;
    color: var(--smoke);
    margin-top: 20px;
    line-height: 1.6;
  }

  .title-rule {
    width: 48px;
    height: 1px;
    background: var(--copper);
    margin: 22px 0;
    opacity: 0.7;
  }

  .title-meta {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--smoke);
    opacity: 0.7;
  }

  /* ─── CHAPTER NAV ─── */
  .chapter-nav {
    background: var(--surface);
    border-bottom: 1px solid var(--divider);
    padding: 12px 18px;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    max-width: 560px;
    margin: 0 auto;
  }

  .nav-tab {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 4px;
    background: var(--tag-bg);
    color: var(--smoke);
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s;
    white-space: nowrap;
  }

  .nav-tab:hover {
    background: var(--parch);
    color: var(--copper);
    border-color: var(--copper);
  }

  /* ─── CHAPTER HEADER ─── */
  .chapter {
    margin-bottom: 44px;
  }

  .chapter-header {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 6px;
  }

  .chapter-title {
    font-family: 'Cormorant Garant', serif;
    font-size: 28px;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.1;
  }

  .chapter-title em { font-style: italic; color: var(--copper); }

  .chapter-count {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--smoke);
  }

  .chapter-rule {
    height: 1px;
    background: var(--divider);
    margin-bottom: 18px;
  }

  /* ─── RECIPE CARD ─── */
  .recipe-card {
    background: var(--surface);
    border: 1px solid var(--divider);
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
  }

  .recipe-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
  }

  .recipe-header:hover { background: var(--warm-glow); }

  .recipe-emoji { font-size: 22px; flex-shrink: 0; }

  .recipe-info { flex: 1; }

  .recipe-name {
    font-family: 'Cormorant Garant', serif;
    font-size: 19px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 3px;
  }

  .recipe-meta {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    color: var(--smoke);
    letter-spacing: 0.3px;
  }

  .recipe-badge {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 3px;
    flex-shrink: 0;
  }

  .badge-locked   { background: #eaf4ec; color: #3a6b48; }
  .badge-testing  { background: #fce8ef; color: #c2547a; }
  .badge-coming   { background: var(--tag-bg); color: var(--smoke); }
  .badge-oz       { background: #e8f0f8; color: #3d6b8f; }

  .toggle-icon {
    font-family: 'DM Mono', monospace;
    font-size: 16px;
    color: var(--smoke);
    flex-shrink: 0;
    transition: transform 0.2s;
  }

  .recipe-header.open .toggle-icon { transform: rotate(90deg); }

  .recipe-body {
    padding: 0 18px 18px;
    display: none;
    border-top: 1px solid var(--tag-bg);
  }

  .recipe-body.open { display: block; }

  /* ─── COPY BUTTON ─── */
  .copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 8px 14px;
    background: var(--parch);
    border: 1px solid var(--divider);
    border-radius: 6px;
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--copper);
    cursor: pointer;
    transition: all 0.15s;
    width: 100%;
    justify-content: center;
  }

  .copy-btn:hover {
    background: var(--copper);
    color: white;
    border-color: var(--copper);
  }

  .copy-btn.copied {
    background: #eaf4ec;
    color: #3a6b48;
    border-color: #3a6b48;
  }

  /* ─── INGREDIENTS CHECKLIST ─── */
  .ingredients-list {
    list-style: none;
    margin-bottom: 16px;
  }

  .ingredient-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid var(--tag-bg);
    font-size: 15px;
    color: var(--ink);
    cursor: pointer;
    user-select: none;
  }

  .ingredient-item:last-child { border-bottom: none; }

  .ingredient-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--divider);
    border-radius: 3px;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    background: white;
    transition: all 0.15s;
  }

  .ingredient-item input[type="checkbox"]:checked {
    background: #c2547a;
    border-color: #c2547a;
  }

  .ingredient-item input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: -1px;
    left: 2px;
    font-size: 11px;
    color: white;
    font-weight: 700;
  }

  .ingredient-item.checked .ingredient-text {
    text-decoration: line-through;
    color: var(--smoke);
  }

  .ingredient-text { flex: 1; line-height: 1.5; font-size: 15px; }

  .ingredients-label {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--copper);
    margin: 14px 0 8px;
  }

  /* ─── STEPS ─── */
  .steps-label {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--copper);
    margin-bottom: 8px;
  }

  .step-list { list-style: none; }

  .step-item {
    display: flex;
    gap: 14px;
    padding: 8px 0;
    border-bottom: 1px solid var(--tag-bg);
    font-size: 15px;
    line-height: 1.65;
  }

  .step-item:last-child { border-bottom: none; }

  .step-num {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    color: var(--copper);
    font-weight: 500;
    min-width: 22px;
    padding-top: 2px;
    flex-shrink: 0;
  }

  .step-text { flex: 1; color: var(--ink); font-size: 15px; }

  .step-note {
    font-size: 13px;
    color: var(--smoke);
    margin-top: 4px;
    font-style: italic;
  }

  /* ─── NOTES ─── */
  .recipe-notes {
    background: var(--warm-glow);
    border-left: 2px solid var(--copper);
    border-radius: 0 4px 4px 0;
    padding: 10px 14px;
    margin-top: 14px;
    font-size: 14px;
    color: var(--smoke);
    font-style: italic;
    line-height: 1.7;
  }

  /* ─── EMPTY CHAPTER ─── */
  .empty-card {
    border: 1px dashed var(--divider);
    border-radius: 6px;
    padding: 24px 18px;
    text-align: center;
    margin-bottom: 10px;
  }

  .empty-card-icon {
    font-size: 28px;
    margin-bottom: 8px;
    opacity: 0.5;
  }

  .empty-card-text {
    font-family: 'Cormorant Garant', serif;
    font-size: 16px;
    font-style: italic;
    color: var(--smoke);
  }

  /* ─── FOOTER ─── */
  .book-footer {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    color: var(--smoke);
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--divider);
    letter-spacing: 0.5px;
    line-height: 1.9;
    opacity: 0.7;
  }

