/* ====== Base ====== */
:root{
  --text:#1f1d1a;
  --muted:rgba(31,29,26,.70);
  --radius:22px;

  /* palette */
  --sageDeep: rgba(88,110,92,.65);
  --sageMid: rgba(123,143,122,.45);
  --lav: rgba(185,167,255,.30);
  --rose: rgba(200,154,154,.25);

  --line: rgba(31,29,26,.10);
  --shadow: 0 22px 50px rgba(0,0,0,.10);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);

  /* deeper sage top/bottom, lighter middle */
  background:
    linear-gradient(
      to bottom,
      var(--sageDeep) 0%,
      var(--sageMid) 12%,
      rgba(238,243,239,.95) 30%,
      rgba(238,243,239,.95) 70%,
      var(--sageMid) 88%,
      var(--sageDeep) 100%
    ),
    radial-gradient(circle at 15% 20%, var(--lav), transparent 60%),
    radial-gradient(circle at 85% 75%, var(--rose), transparent 60%);
  background-attachment: fixed;
}

a{ color: inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
ul{ list-style:none; padding:0; margin:0; }

/* ====== Layout ====== */
.wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 34px 20px 60px;
}

.divider{
  height:1px;
  background: rgba(31,29,26,.10);
  margin: 18px 0;
}

/* ====== Header / Nav ====== */
header{
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(238,243,239,.68);
  border-bottom: 1px solid rgba(31,29,26,.08);
}

header::after{
  content:"";
  display:block;
  height:3px;
  background: linear-gradient(
    90deg,
    rgba(123,143,122,.85),
    rgba(185,167,255,.75),
    rgba(200,154,154,.85)
  );
}

.nav{
  max-width:1100px;
  margin:0 auto;
  padding: 14px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.brand .script{
  font-family: "Allura", cursive;
  font-size: 42px;
  line-height: 1;
  letter-spacing: .5px;
  color: rgba(59,33,66,.85);
}

.brand .sub{
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

nav ul{
  display:flex;
  gap:18px;
  align-items:center;
}

nav a{
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 500;
  color: rgba(31,29,26,.82);
}

nav a:hover{
  background: rgba(200,154,154,.14);
}

/* ====== Buttons ====== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(31,29,26,.10);
  background: rgba(255,255,255,.75);
  font-weight: 600;
  gap:8px;
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,0,0,.10);
}

.btn.primary{
  border: none;
  color: white;
  background: linear-gradient(
    135deg,
    rgba(127,107,255,.85),
    rgba(90,60,120,.90)
  );
}

.btn.primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(90,60,120,.25);
}

/* ====== Cards ====== */
.card{
  border-radius: var(--radius);
  border: 1px solid rgba(123,143,122,.25);
  background:
    radial-gradient(circle at top left, rgba(185,167,255,.34), transparent 55%),
    radial-gradient(circle at bottom right, rgba(200,154,154,.30), transparent 55%),
    rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card:hover{
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(0,0,0,.15);
}
.card.soft{ padding: 28px; }
.card.block{ padding: 28px; }

/* ====== Hero ====== */
.hero{
  display: flex;
  justify-content: center; 
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  align-items:start;
}

.eyebrow{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-size: 13px;
  color: rgba(31,29,26,.70);
  margin-bottom: 14px;
  text-align:center;
}

.dot{
  width:10px; height:10px;
  border-radius:999px;
  background: linear-gradient(135deg, rgba(185,167,255,.9), rgba(123,143,122,.85));
}

h1{
  font-family: "Fraunces", serif;
  font-size: 44px;
  margin: 0 auto;
  letter-spacing: -.6px;
  text-align:center;
}

.lead{
  font-size: 16px;
  color: rgba(31,29,26,.75);
  line-height: 1.6;
  margin: 0 0 18px;
}

.cta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin: 12px 0 8px;
}

.mini{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.chip{
  border-radius: 16px;
  border: 1px solid rgba(31,29,26,.10);
  background: rgba(255,255,255,.70);
  padding: 14px;
  font-size: 13px;
  color: rgba(31,29,26,.75);
}

/* ====== Featured cover ====== */
.cover{
  position: relative;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(31,29,26,.10);
}

.cover img{
  width:100%;
  height:auto;
  display:block;
}

.tag{
  position:absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(31,29,26,.10);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: rgba(31,29,26,.72);
}

/* ====== Two-column sections ====== */
.grid2{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  align-items:start;
}

.section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap: 16px;
  margin: 18px 0 14px;
}

.section-head h3{
  font-family: "Fraunces", serif;
  font-size: 26px;
  margin:0;
}

.section-head p{
  margin: 6px 0 0;
  color: rgba(31,29,26,.70);
}

/* ====== Photo card ====== */
.photoCard{
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid rgba(31,29,26,.10);
  box-shadow: var(--shadow);
}

.photoCard img{
  width:100%;
  height:auto;
  display:block;
}

/* ====== Forms ====== */
form input, form textarea{
  width:100%;
  padding: 12px 14px;
  margin-top: 10px;
  border-radius: 14px;
  border: 1px solid rgba(31,29,26,.12);
  background: rgba(255,255,255,.85);
  font-size: 14px;
  outline: none;
}

form textarea{
  min-height: 140px;
  resize: vertical;
}

.meta{
  color: rgba(31,29,26,.65);
  font-size: 13px;
}

/* social pills */
.links.social{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:flex-start;
}

.links.social a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(127,107,255,.22);
  background: linear-gradient(135deg, rgba(185,167,255,.22), rgba(123,143,122,.18));
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
  transition: transform .15s ease, box-shadow .15s ease;
}

.links.social a:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,0,0,.10);
}

/* tiny newsletter */
.newsletter{
  display:flex;
  gap:8px;
  margin-top: 6px;
}

.newsletter input{
  flex:1;
  border-radius: 999px;
}

.newsletter button{
  border:none;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  color:white;
  cursor:pointer;
  background: linear-gradient(135deg, rgba(127,107,255,.75), rgba(123,143,122,.85));
}

/* ====== Footer ====== */
footer{
  padding: 22px 0;
  border-top: 1px solid rgba(31,29,26,.08);
  background: rgba(238,243,239,.55);
}

.foot{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
  color: rgba(31,29,26,.70);
  font-size: 13px;
}

/* ====== Responsive ====== */
@media (max-width: 900px){
  .hero, .grid2{ grid-template-columns: 1fr; }
  h1{ font-size: 38px; }
  .nav{ flex-wrap:wrap; }
}
/* ===== ROOT COLORS ===== */
:root{
  --radius: 22px;
  --text: #1f1d1a;
}

/* ===== BODY BACKGROUND ===== */
body{
  margin:0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    linear-gradient(
      to bottom,
      rgba(88,110,92,.65) 0%,
      rgba(123,143,122,.45) 12%,
      rgba(238,243,239,.95) 30%,
      rgba(238,243,239,.95) 70%,
      rgba(123,143,122,.45) 88%,
      rgba(88,110,92,.65) 100%
    ),
    radial-gradient(circle at 15% 20%, rgba(185,167,255,.30), transparent 60%),
    radial-gradient(circle at 85% 75%, rgba(200,154,154,.25), transparent 60%);
  background-attachment: fixed;
}

/* ===== WRAP ===== */
.wrap{
  max-width:1100px;
  margin:0 auto;
  padding:40px 20px;
}

/* ===== CARD ===== */
.card{
  border-radius: var(--radius);
  border: 1px solid rgba(123,143,122,.25);
  background:
    radial-gradient(circle at top left, rgba(185,167,255,.30), transparent 55%),
    radial-gradient(circle at bottom right, rgba(200,154,154,.28), transparent 55%),
    rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  box-shadow: 0 22px 50px rgba(0,0,0,.10);
  overflow:hidden;
  padding:30px;
}

/* ===== BUTTONS ===== */
.btn{
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration:none;
  font-weight:600;
  display:inline-block;
}

.btn.primary{
  border: none;
  color: white;
  background: linear-gradient(
    135deg,
    rgba(127,107,255,.85),
    rgba(90,60,120,.90)
  );
}

.btn.rose{
  border: none;
  color: white;
  background: linear-gradient(
    135deg,
    rgba(200,154,154,.95),
    rgba(165,115,125,.95)
  );
}

.miniTitle{
  font-family: "Fraunces", serif;
  font-size: 18px;
  margin: 0 0 6px;
}
.pdfPreview{
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(31,29,26,.10);
}

.pdfPreview iframe{
  width: 100%;
  height: 520px;
  border: 0;
  display: block;
  background: rgba(255,255,255,.7);
}

/* ===== SIMPLE NAV ===== */
header{
  padding:20px 40px;
}

/* ===== COVER ===== */
.book-cover {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.book-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.buy-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.38);
  color: white;
  text-decoration: none;
  font-family: Inter, sans-serif;
  font-weight: 600;
  font-size: 18px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  border-radius: 12px;
}

.book-cover:hover .buy-overlay {
  opacity: 1;
}

/* Giscus container styling */
.giscus {
  margin-top: 40px;
  filter: contrast(0.95);
}
}

/* Optional: soft background feel */
.giscus-frame {
  border-radius: 12px;
  background: #f7f5f2; /* your soft beige */
}

:root {
  --bg: #f7f5f2;
  --text: #5f5f5f;
  --rose: #d8b4a0;
}

/* Giscus text fix */
.giscus-frame {
  color: #5f5f5f;
}

/* Force readable text inside iframe */
.giscus-frame iframe {
  filter: none;
}