@import url('https://fonts.googleapis.com/css2?family=Lora:wght@600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap');
body.page-index .site-header,
body.page-booking .site-header,
body.page-ebooks .site-header,
body.page-story .site-header{
  display:flex;
  justify-content:center;
  align-items:center;
  position:relative;
  margin-bottom:8px;
}

body.page-index .site-brand,
body.page-booking .site-brand,
body.page-ebooks .site-brand,
body.page-story .site-brand{
  display:inline-flex;
  align-items:center;
  flex-direction:column;
  gap:8px;
  text-decoration:none;
  color:inherit;
}

body.page-index .logo-slot,
body.page-booking .logo-slot,
body.page-ebooks .logo-slot,
body.page-story .logo-slot{
  width:300px;
  height:300px;
  border-radius:0;
  border:0;
  overflow:visible;
  background:transparent;
  box-shadow:none;
  display:grid;
  place-items:center;
}

body.page-index .site-logo,
body.page-booking .site-logo,
body.page-ebooks .site-logo,
body.page-story .site-logo{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

body.page-index .logo-fallback,
body.page-booking .logo-fallback,
body.page-ebooks .logo-fallback,
body.page-story .logo-fallback{
  font-family:"Lora", Georgia, serif;
  font-size:40px;
  font-weight:700;
  color:#9a4d2d;
  letter-spacing:.3px;
}

body.page-index .brand-text,
body.page-booking .brand-text,
body.page-ebooks .brand-text,
body.page-story .brand-text{
  display:flex;
  flex-direction:column;
  align-items:center;
  line-height:1.05;
  text-align:center;
}

body.page-index .brand-top,
body.page-booking .brand-top,
body.page-ebooks .brand-top,
body.page-story .brand-top{
  font-size:15px;
  letter-spacing:.5px;
  font-weight:700;
  color:#8a4728;
  text-transform:uppercase;
}

body.page-index .brand-main,
body.page-booking .brand-main,
body.page-ebooks .brand-main,
body.page-story .brand-main{
  font-family:"Lora", Georgia, serif;
  font-size:32px;
  color:#1e2b34;
}

body.page-index .site-credit,
body.page-booking .site-credit,
body.page-ebooks .site-credit,
body.page-story .site-credit{
  margin: 18px 0 6px;
  text-align: center;
  font-size: 12px;
  letter-spacing: .35px;
  color: #7f6a59;
}

body.page-story .site-header .back{
  position:absolute;
  right:0;
  top:50%;
  transform:translateY(-50%);
}

/* Flush look: remove visible borders across pages */
body.page-index .hero,
body.page-index .card,
body.page-index .frame,
body.page-index .note,
body.page-index .quote,
body.page-index .mid-cta,
body.page-index .btn,
body.page-story .hero,
body.page-story .card,
body.page-story .frame,
body.page-story .quote,
body.page-story .note,
body.page-story .btn {
  border: 0 !important;
}

/* index.html */
body.page-index{
      --bg: #f8efe3;
      --ink: #1e2b34;
      --muted: #556774;
      --paper: #fffdf9;
      --line: #dec9b2;
      --accent: #dd6d3d;
      --accent-dark: #aa4e2a;
      --lift: 0 16px 34px rgba(66, 38, 20, 0.12);
      --radius: 16px;
    }

    body.page-index *{ box-sizing: border-box; }

    body.page-index{
      margin: 0;
      font-family: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
      color: var(--ink);
      background:
        radial-gradient(900px 420px at 90% 0%, #ffd7c1 0%, transparent 62%),
        radial-gradient(700px 380px at 8% 100%, #f0e4ff 0%, transparent 68%),
        linear-gradient(180deg, #fff8f1 0%, var(--bg) 100%);
    }

    body.page-index .wrap{
      max-width: 1100px;
      margin: 0 auto;
      padding: 24px;
    }

    body.page-index .hero{
      position: relative;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 24px;
      background: linear-gradient(130deg, #fffefb, #fff4eb);
      box-shadow: var(--lift);
      padding: 26px;
    }
    body.page-index .hero::before{
      content: "";
      position: absolute;
      width: 420px;
      height: 420px;
      right: -120px;
      top: -160px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(221,109,61,.18) 0%, rgba(221,109,61,0) 70%);
      pointer-events: none;
    }

    body.page-index .tag{
      display: inline-block;
      border-radius: 999px;
      border: 1px solid #efc7b0;
      background: #fce7dc;
      color: #8a492b;
      padding: 6px 10px;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: .2px;
    }

    body.page-index h1{
      margin: 12px 0 8px;
      font-family: "Lora", Georgia, serif;
      font-style: italic;
      font-size: clamp(30px, 4vw, 48px);
      line-height: 1.05;
      letter-spacing: -.4px;
    }

    body.page-index .lead{
      margin: 0;
      max-width: 65ch;
      color: var(--muted);
    }

    body.page-index .grid{
      margin-top: 18px;
      display: grid;
      grid-template-columns: 1fr;
      gap: 16px;
      align-items: start;
    }

    body.page-index .card{
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: linear-gradient(180deg, #fffefc 0%, var(--paper) 100%);
      box-shadow: var(--lift);
      padding: 16px;
    }

    body.page-index .card h2{
      margin: 0 0 10px;
      font-size: 24px;
      font-family: "Lora", Georgia, serif;
    }

    body.page-index .headshot{
      width: 45%;
      max-width: 45%;
      aspect-ratio: 3 / 4;
      border-radius: 0;
      object-fit: cover;
      border: 0;
      display: block;
      margin: 0 auto 12px;
    }

    body.page-index .muted{
      color: var(--muted);
      margin: 0;
    }

    body.page-index .encourage{
      margin-top: 16px;
      display: grid;
      grid-template-columns: 1fr;
      gap: 10px;
    }

    body.page-index .encourage .note{
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 12px;
      font-size: 14px;
      color: #30424f;
    }
    body.page-index .encourage-card{
      max-width: 520px;
      justify-self: start;
    }
    body.page-index .encourage-quote{
      margin-top: 12px;
      border: 1px dashed #efc4ae;
      background: #fff8f2;
      color: #8a4728;
      border-radius: 12px;
      padding: 10px 12px;
      font-weight: 600;
      font-size: 14px;
    }

    body.page-index .carousel{
      margin-top: 16px;
    }
    body.page-index .carousel h2{
      text-align: center;
    }

    body.page-index .frame{
      position: relative;
      overflow: hidden;
      border-radius: 14px;
      border: 1px solid var(--line);
      background: #f4ece3;
      height: clamp(360px, 58vw, 560px);
    }

    body.page-index .track{
      display: flex;
      transition: transform .35s ease;
      width: 100%;
      height: 100%;
    }

    body.page-index .slide{
      min-width: 100%;
      position: relative;
      height: 100%;
    }

    body.page-index .slide img{
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
    }

    body.page-index .caption{
      position: absolute;
      left: 12px;
      right: 12px;
      bottom: 12px;
      background: rgba(19, 30, 36, 0.72);
      color: #fff;
      border-radius: 10px;
      padding: 8px 10px;
      font-size: 13px;
    }

    body.page-index .car-controls{
      margin-top: 10px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
    }

    body.page-index .btn{
      border: 1px solid var(--line);
      background: #fff;
      color: var(--ink);
      border-radius: 10px;
      padding: 8px 12px;
      font-weight: 600;
      cursor: pointer;
    }
    body.page-index .btn.cta{
      display: inline-block;
      text-decoration: none;
      border-color: #c3562e;
      color: #fff;
      background: linear-gradient(180deg, var(--accent), var(--accent-dark));
      padding: 12px 20px;
      font-weight: 700;
    }
    body.page-index .btn.ghost{
      display:inline-block;
      text-decoration:none;
      border-color:#c3562e;
      color:#fff;
      background:linear-gradient(180deg, var(--accent), var(--accent-dark));
      padding:12px 20px;
      font-weight:700;
    }
    body.page-index .cta-row{
      display:flex;
      gap:10px;
      justify-content:center;
      flex-wrap:wrap;
    }

    body.page-index .dots{
      display: flex;
      gap: 6px;
      align-items: center;
      justify-content: center;
      flex: 1;
    }

    body.page-index .dot{
      width: 9px;
      height: 9px;
      border-radius: 50%;
      border: 0;
      background: #c8b6a3;
      cursor: pointer;
      padding: 0;
    }

    body.page-index .dot.active{
      background: var(--accent-dark);
    }

    body.page-index .testimonials{
      margin-top: 16px;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
    }
    body.page-index .mid-cta{
      margin-top: 16px;
      text-align: center;
      border: 1px solid #efc4ae;
      border-radius: 14px;
      background: linear-gradient(180deg, #fff2e8 0%, #ffe8d9 100%);
      padding: 18px 14px;
    }
    body.page-index .mid-cta h3{
      margin: 0 0 6px;
      font-family: "Lora", Georgia, serif;
      font-size: 26px;
      color: #7a3e23;
    }
    body.page-index .mid-cta p{
      margin: 0 0 12px;
      color: #7d4f37;
      font-size: 14px;
    }

    body.page-index .quote{
      border: 1px solid var(--line);
      border-radius: 12px;
      background: #fff;
      padding: 12px;
      font-size: 14px;
      color: #2f404b;
    }

    body.page-index .quote strong{
      display: block;
      margin-top: 8px;
      font-size: 12px;
      color: #6b7a83;
    }

    @media (max-width: 960px) {
      body.page-index .grid{ grid-template-columns: 1fr; }
      body.page-index .encourage{ grid-template-columns: 1fr; }
      body.page-index .testimonials{ grid-template-columns: 1fr; }
    }

/* booking.html */
body.page-booking{
      --bg:#f8efe3;
      --panel:#fffefb;
      --text:#1e2b34;
      --muted:#556774;
      --accent:#dd6d3d;
      --accent-strong:#aa4e2a;
      --accent-soft:#fce5d7;
      --border:#dec9b2;
      --ok:#2d8f62;
      --danger:#a63737;
      --radius:16px;
      --shadow:0 16px 34px rgba(66, 38, 20, .12);
    }
    body.page-booking *{box-sizing:border-box}
    body.page-booking{
      margin:0;
      font-family:"Source Sans 3","Segoe UI",Tahoma,Verdana,sans-serif;
      color:var(--text);
      background:
        radial-gradient(1400px 700px at 85% 5%, #ffd7c1 0%, transparent 50%),
        radial-gradient(1000px 600px at 10% 95%, #f0e4ff 0%, transparent 60%),
        linear-gradient(180deg, #fff8f1 0%, var(--bg) 100%);
      min-height:100vh;
    }
    body.page-booking .container{max-width:1120px; margin:0 auto; padding:24px}
    body.page-booking .hero{
      position:relative;
      overflow:hidden;
      padding:24px;
      border:1px solid var(--border);
      border-radius:24px;
      background:linear-gradient(120deg, #fffefc, #fff4eb);
      box-shadow:var(--shadow);
    }
    body.page-booking .hero::before{
      content:"";
      position:absolute;
      width:420px;
      height:420px;
      right:-120px;
      top:-160px;
      border-radius:50%;
      background:radial-gradient(circle, rgba(221,109,61,.18) 0%, rgba(221,109,61,0) 70%);
      pointer-events:none;
    }
    body.page-booking .eyebrow{
      display:inline-block;
      background:var(--accent-soft);
      color:#8f4d2d;
      border:1px solid #efc5ad;
      padding:6px 10px;
      border-radius:999px;
      font-size:12px;
      font-weight:700;
      letter-spacing:.2px;
    }
    body.page-booking h1{
      margin:12px 0 10px;
      font-family:"Lora", Georgia, serif;
      font-size:clamp(30px, 4.6vw, 52px);
      line-height:1.04;
      letter-spacing:-.4px;
    }
    body.page-booking .lead{margin:0; max-width:65ch; color:var(--muted); font-size:16px}
    body.page-booking .services{display:grid; grid-template-columns:repeat(5, minmax(140px, 1fr)); gap:10px; margin-top:18px}
    body.page-booking .service-pill{padding:10px 12px; border:1px solid var(--border); border-radius:12px; background:#ffffffc9; font-size:13px; text-align:center; font-weight:600}
    body.page-booking .booking-grid{margin-top:22px; display:grid; grid-template-columns:1.1fr .9fr; gap:18px}
    body.page-booking .card{border:1px solid var(--border); border-radius:var(--radius); background:linear-gradient(180deg,#fffefc 0%,var(--panel) 100%); box-shadow:var(--shadow); padding:16px}
    body.page-booking .card h2{margin:0 0 10px; font-size:22px; font-family:"Lora", Georgia, serif}
    body.page-booking .calendar-head{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px}
    body.page-booking .month-title{font-size:18px; font-weight:700; text-align:center; min-width:220px}
    body.page-booking .btn{border:1px solid var(--border); background:white; color:var(--text); border-radius:10px; padding:9px 12px; font-weight:600; cursor:pointer; transition:.15s ease; text-decoration:none}
    body.page-booking .btn:hover{transform:translateY(-1px); border-color:#bea28f}
    body.page-booking .btn.primary{background:linear-gradient(180deg, var(--accent), var(--accent-strong)); color:white; border-color:#b7592d}
    body.page-booking .btn.outline{background:#fff8f2; border-color:#efc4ae; color:#8a4728}
    body.page-booking .btn.danger{background:#fff4f4; color:#8b2d2d; border-color:#e5b8b8}
    body.page-booking .btn.subtle{background:#f8f6f2}
    body.page-booking .hero-links{
      margin-top:14px;
      display:flex;
      flex-wrap:wrap;
      gap:10px;
    }
    body.page-booking .hero-links .btn{
      flex:1 1 260px;
      text-align:center;
    }
    body.page-booking .link-gap{margin-left:0;}
    body.page-booking .slots-title{margin-top:14px;}
    body.page-booking .hidden-btn{display:none;}
    body.page-booking .hidden-panel{display:none;}
    body.page-booking .admin-card{margin-top:16px;}
    body.page-booking .admin-pin-input{max-width:240px;}
    body.page-booking .weekday-row, body.page-booking .days-grid{display:grid; grid-template-columns:repeat(7, 1fr); gap:8px}
    body.page-booking .weekday-row{margin-bottom:8px; color:var(--muted); font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.3px}
    body.page-booking .day{min-height:44px; border:1px solid var(--border); border-radius:10px; background:white; font-weight:600; cursor:pointer}
    body.page-booking .day:disabled{color:#a7a5a3; background:#f2efeb; cursor:not-allowed}
    body.page-booking .day.active{background:var(--accent-soft); border-color:#d79b7a; color:#803f22}
    body.page-booking .times{margin-top:12px; display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; min-height:88px}
    body.page-booking .time-slot{border:1px solid var(--border); background:white; border-radius:10px; padding:9px 8px; font-size:13px; font-weight:600; cursor:pointer}
    body.page-booking .time-slot.active{border-color:#d79b7a; background:var(--accent-soft); color:#803f22}
    body.page-booking .time-slot:disabled{opacity:.45; text-decoration:line-through; cursor:not-allowed}
    body.page-booking .form-grid{display:grid; gap:10px}
    body.page-booking label{font-size:13px; font-weight:700; color:#405159; display:block; margin-bottom:4px}
    body.page-booking input, body.page-booking select, body.page-booking textarea{width:100%; border:1px solid var(--border); border-radius:10px; padding:10px 11px; font:inherit; background:white; color:var(--text); outline:none}
    body.page-booking input:focus, body.page-booking select:focus, body.page-booking textarea:focus{border-color:#c98c6b; box-shadow:0 0 0 3px #f7dfd0}
    body.page-booking textarea{min-height:78px; resize:vertical}
    body.page-booking .selection-note{margin:10px 0 0; color:var(--muted); font-size:13px}
    body.page-booking .status{
      display:none;
      margin-top:12px;
      min-height:24px;
      font-size:14px;
      font-weight:600;
      border-radius:10px;
      border:1px solid transparent;
      padding:10px 12px;
      align-items:center;
      gap:8px;
      line-height:1.35;
    }
    body.page-booking .status.show{display:flex}
    body.page-booking .status::before{
      font-weight:800;
      width:16px;
      text-align:center;
      flex:0 0 16px;
    }
    body.page-booking .status.ok{
      color:#165d3f;
      background:#e9f7f0;
      border-color:#b8e5ce;
    }
    body.page-booking .status.ok::before{content:"?"}
    body.page-booking .status.error{
      color:#8d2f2f;
      background:#fff1f1;
      border-color:#efc2c2;
    }
    body.page-booking .status.error::before{content:"!"}
    body.page-booking .status.warn{
      color:#7a5700;
      background:#fff7e5;
      border-color:#efd9a1;
    }
    body.page-booking .status.warn::before{content:"!"}
    body.page-booking .status.info{
      color:#2a4f66;
      background:#edf6fb;
      border-color:#bfdcec;
    }
    body.page-booking .status.info::before{content:"i"}
    body.page-booking .bookings{margin-top:14px; border-top:1px dashed var(--border); padding-top:12px}
    body.page-booking .booking-item{border:1px solid var(--border); border-radius:10px; background:white; padding:10px; margin-top:8px; font-size:13px}
    body.page-booking .booking-item strong{display:block; margin-bottom:4px}
    body.page-booking .muted{color:var(--muted); font-size:13px; margin-top:10px}
    body.page-booking .inline{display:flex; gap:8px; align-items:center}
    body.page-booking .admin-actions{margin-top:8px; display:flex; gap:8px; flex-wrap:wrap}
    body.page-booking .admin-only{display:none}
    body.page-booking .admin-only.open{display:block}
    body.page-booking .availability-box{
      margin-top:12px;
      border:1px dashed var(--border);
      border-radius:12px;
      background:#fffdf9;
      padding:12px;
    }
    body.page-booking .availability-box h3{
      margin:0 0 6px;
      font-family:"Lora", Georgia, serif;
      font-size:20px;
    }
    body.page-booking .availability-times{
      margin:10px 0;
      display:grid;
      grid-template-columns:repeat(2, 1fr);
      gap:8px;
    }
    body.page-booking .rule-btn{
      text-align:left;
      font-size:12.5px;
      padding:8px 9px;
    }
    body.page-booking .rule-default{
      background:#f8f6f2;
      border-color:#e0d2c4;
      color:#4f616f;
    }
    body.page-booking .rule-open{
      background:#e9f7f0;
      border-color:#b8e5ce;
      color:#1e6a47;
    }
    body.page-booking .rule-closed{
      background:#fff1f1;
      border-color:#efc2c2;
      color:#8d2f2f;
    }
    body.page-booking .edit-banner{display:none; margin-bottom:10px; padding:8px 10px; border:1px solid #f1cbb3; background:#fff2e9; border-radius:10px; font-size:13px; font-weight:600; color:#7b421f}
    body.page-booking .edit-banner.open{display:block}
    body.page-booking .config{margin-top:16px; border-top:1px dashed var(--border); padding-top:10px}
    body.page-booking .config code{font-size:12px}
    body.page-booking .modal-backdrop{
      position:fixed;
      inset:0;
      background:rgba(20,29,34,.45);
      display:none;
      align-items:center;
      justify-content:center;
      padding:16px;
      z-index:1000;
    }
    body.page-booking .modal-backdrop.open{display:flex}
    body.page-booking .modal{
      width:min(460px, 100%);
      border:1px solid var(--border);
      border-radius:14px;
      background:linear-gradient(180deg,#fffefc 0%,#fff8f3 100%);
      box-shadow:0 20px 45px rgba(27, 16, 8, .2);
      padding:16px;
    }
    body.page-booking .modal.warning{
      border-color:#efc2c2;
      background:linear-gradient(180deg,#fff8f8 0%,#fff1f1 100%);
    }
    body.page-booking .modal h3{
      margin:0 0 8px;
      font-family:"Lora", Georgia, serif;
      font-size:24px;
      color:#7a2f2f;
    }
    body.page-booking .modal p{
      margin:0;
      color:var(--muted);
      font-size:14px;
    }
    body.page-booking .modal-note{
      margin-top:8px;
      font-size:12px;
      color:#7d3e3e;
      font-weight:600;
    }
    body.page-booking .modal-actions{
      display:flex;
      justify-content:flex-end;
      gap:8px;
      margin-top:14px;
    }
    @media (max-width: 1040px){
      body.page-booking .services{grid-template-columns:repeat(2, 1fr)}
      body.page-booking .booking-grid{grid-template-columns:1fr}
      body.page-booking .times{grid-template-columns:repeat(2, 1fr)}
    }
    @media (max-width: 560px){
      body.page-booking .container{padding:14px}
      body.page-booking .hero{padding:16px}
      body.page-booking .month-title{min-width:140px; font-size:15px}
      body.page-booking .times{grid-template-columns:1fr}
      body.page-booking .availability-times{grid-template-columns:1fr}
      body.page-booking .hero-links .btn{flex:1 1 100%}
    }

/* ebooks.html */
body.page-ebooks{
      --bg:#f8efe3;
      --ink:#1e2b34;
      --muted:#556774;
      --line:#dec9b2;
      --paper:#fffefb;
      --accent:#dd6d3d;
      --accent-dark:#aa4e2a;
      --shadow:0 16px 34px rgba(66, 38, 20, .12);
      --radius:16px;
    }

    body.page-ebooks *{ box-sizing: border-box; }

    body.page-ebooks{
      margin: 0;
      font-family: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
      color: var(--ink);
      background:
        radial-gradient(900px 420px at 90% 0%, #ffd7c1 0%, transparent 62%),
        radial-gradient(700px 380px at 8% 100%, #f0e4ff 0%, transparent 68%),
        linear-gradient(180deg, #fff8f1 0%, var(--bg) 100%);
      min-height: 100vh;
    }

    body.page-ebooks .wrap{
      max-width: 1120px;
      margin: 0 auto;
      padding: 24px;
    }

    body.page-ebooks .hero{
      border: 1px solid var(--line);
      border-radius: 24px;
      background: linear-gradient(130deg, #fffefb, #fff4eb);
      box-shadow: var(--shadow);
      padding: 24px;
      position: relative;
      overflow: hidden;
    }

    body.page-ebooks .hero::before{
      content: "";
      position: absolute;
      width: 420px;
      height: 420px;
      right: -120px;
      top: -160px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(221,109,61,.18) 0%, rgba(221,109,61,0) 70%);
      pointer-events: none;
    }

    body.page-ebooks .pill{
      display: inline-block;
      border-radius: 999px;
      border: 1px solid #efc7b0;
      background: #fce7dc;
      color: #8a492b;
      padding: 6px 10px;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: .2px;
    }

    body.page-ebooks h1{
      margin: 12px 0 8px;
      font-family: "Lora", Georgia, serif;
      font-size: clamp(30px, 4.2vw, 48px);
      line-height: 1.04;
      letter-spacing: -.4px;
    }

    body.page-ebooks .lead{ margin: 0; color: var(--muted); max-width: 70ch; }

    body.page-ebooks .hero-actions{
      margin-top: 14px;
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    body.page-ebooks .btn{
      border: 1px solid var(--line);
      background: #fff;
      color: var(--ink);
      border-radius: 10px;
      padding: 10px 13px;
      font-weight: 600;
      cursor: pointer;
      text-decoration: none;
      display: inline-block;
    }

    body.page-ebooks .btn.primary{
      border-color: #c3562e;
      color: #fff;
      background: linear-gradient(180deg, var(--accent), var(--accent-dark));
    }

    body.page-ebooks .catalog{
      margin-top: 20px;
      display: grid;
      grid-template-columns: repeat(2, minmax(280px, 360px));
      justify-content: center;
      gap: 14px;
    }

    body.page-ebooks .book{
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: linear-gradient(180deg, #fffefc 0%, var(--paper) 100%);
      box-shadow: var(--shadow);
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    body.page-ebooks .cover{
      min-height: 180px;
      padding: 14px;
      color: #fff;
      display: flex;
      align-items: end;
      font-family: "Lora", Georgia, serif;
      font-size: 22px;
      line-height: 1.08;
    }

    body.page-ebooks .cover.one{ background: linear-gradient(135deg, #d85d2f, #9a3e23); }
    body.page-ebooks .cover.two{ background: linear-gradient(135deg, #4a6a87, #2f4358); }
    body.page-ebooks .book-body{
      padding: 14px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      flex: 1;
    }

    body.page-ebooks .book h2{
      margin: 0;
      font-family: "Lora", Georgia, serif;
      font-size: 25px;
    }

    body.page-ebooks .price{
      font-weight: 800;
      color: #ff0000;
      font-size: 22px;
    }

    body.page-ebooks .notice{
      margin-top: 16px;
      border: 1px dashed var(--line);
      border-radius: 12px;
      padding: 12px;
      background: #fffdf9;
      color: #5e6e78;
      font-size: 13px;
    }

    @media (max-width: 980px) {
      body.page-ebooks .catalog{ grid-template-columns: minmax(260px, 420px); }
    }

/* story.html */
body.page-story{
      --bg: #f9f2e8;
      --ink: #1d2d39;
      --muted: #5f6f78;
      --paper: #fffdf9;
      --line: #dbcbb9;
      --accent: #e07f4f;
      --accent-dark: #ba5f33;
      --lift: 0 14px 32px rgba(66, 38, 20, 0.12);
      --radius: 16px;
    }

    body.page-story *{ box-sizing: border-box; }

    body.page-story{
      margin: 0;
      font-family: "Segoe UI", Tahoma, sans-serif;
      color: var(--ink);
      background:
        radial-gradient(900px 420px at 90% 0%, #ffe3d3 0%, transparent 62%),
        radial-gradient(700px 380px at 8% 100%, #ece4ff 0%, transparent 68%),
        linear-gradient(180deg, #fffaf4 0%, var(--bg) 100%);
    }

    body.page-story .wrap{
      max-width: 1100px;
      margin: 0 auto;
      padding: 24px;
    }

    body.page-story .topbar{
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      margin-bottom: 16px;
    }

    body.page-story .back{
      text-decoration: none;
      color: var(--ink);
      border: 1px solid var(--line);
      background: #fff;
      padding: 9px 12px;
      border-radius: 10px;
      font-weight: 600;
    }

    body.page-story .hero{
      border: 1px solid var(--line);
      border-radius: 24px;
      background: linear-gradient(130deg, #fffefb, #fff5ee);
      box-shadow: var(--lift);
      padding: 26px;
    }

    body.page-story .tag{
      display: inline-block;
      border-radius: 999px;
      border: 1px solid #efc7b0;
      background: #fce7dc;
      color: #8a492b;
      padding: 6px 10px;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: .2px;
    }

    body.page-story h1{
      margin: 12px 0 8px;
      font-size: clamp(30px, 4vw, 48px);
      line-height: 1.05;
    }

    body.page-story .lead{
      margin: 0;
      max-width: 65ch;
      color: var(--muted);
    }

    body.page-story .grid{
      margin-top: 18px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }

    body.page-story .card{
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--paper);
      box-shadow: var(--lift);
      padding: 16px;
    }

    body.page-story .card h2{
      margin: 0 0 10px;
      font-size: 24px;
    }

    body.page-story .headshot{
      width: 100%;
      max-width: 340px;
      aspect-ratio: 3 / 4;
      border-radius: 14px;
      object-fit: cover;
      border: 1px solid var(--line);
      display: block;
      margin: 0 auto 12px;
    }

    body.page-story .muted{
      color: var(--muted);
      margin: 0;
    }

    body.page-story .encourage{
      margin-top: 16px;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
    }

    body.page-story .encourage .note{
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 12px;
      font-size: 14px;
      color: #30424f;
    }

    body.page-story .carousel{
      margin-top: 16px;
    }

    body.page-story .frame{
      position: relative;
      overflow: hidden;
      border-radius: 14px;
      border: 1px solid var(--line);
      background: #fff;
      min-height: 320px;
    }

    body.page-story .track{
      display: flex;
      transition: transform .35s ease;
      width: 100%;
    }

    body.page-story .slide{
      min-width: 100%;
      position: relative;
    }

    body.page-story .slide img{
      width: 100%;
      height: 320px;
      object-fit: cover;
      display: block;
    }

    body.page-story .caption{
      position: absolute;
      left: 12px;
      right: 12px;
      bottom: 12px;
      background: rgba(19, 30, 36, 0.72);
      color: #fff;
      border-radius: 10px;
      padding: 8px 10px;
      font-size: 13px;
    }

    body.page-story .car-controls{
      margin-top: 10px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
    }

    body.page-story .btn{
      border: 1px solid var(--line);
      background: #fff;
      color: var(--ink);
      border-radius: 10px;
      padding: 8px 12px;
      font-weight: 600;
      cursor: pointer;
    }

    body.page-story .dots{
      display: flex;
      gap: 6px;
      align-items: center;
      justify-content: center;
      flex: 1;
    }

    body.page-story .dot{
      width: 9px;
      height: 9px;
      border-radius: 50%;
      border: 0;
      background: #c8b6a3;
      cursor: pointer;
      padding: 0;
    }

    body.page-story .dot.active{
      background: var(--accent-dark);
    }

    body.page-story .testimonials{
      margin-top: 16px;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
    }

    body.page-story .quote{
      border: 1px solid var(--line);
      border-radius: 12px;
      background: #fff;
      padding: 12px;
      font-size: 14px;
      color: #2f404b;
    }

    body.page-story .quote strong{
      display: block;
      margin-top: 8px;
      font-size: 12px;
      color: #6b7a83;
    }

    @media (max-width: 960px) {
      body.page-story .grid{ grid-template-columns: 1fr; }
      body.page-story .encourage{ grid-template-columns: 1fr; }
      body.page-story .testimonials{ grid-template-columns: 1fr; }
    }



