/* ============================================================
   HOME OF THE HEART 31 — design tokens
   Cream + plum + lavender, editorial devotional aesthetic
   ============================================================ */

:root{
  --cream:        #FBF7F1;
  --cream-deep:    #F3EBDF;
  --ink:          #3D2A4A;
  --ink-soft:      #5B4A6B;
  --lavender:      #9B85B8;
  --lavender-light: #D9CBE8;
  --lavender-pale:  #EEE6F4;
  --gold:          #B99B5C;
  --rose:          #C4A0A8;
  --line:          rgba(61,42,74,0.16);

  --serif: 'Playfair Display', Georgia, serif;
  --body:  'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --script: 'Petit Formal Script', 'Brush Script MT', cursive;
  --label: 'EB Garamond', Georgia, serif;

  --container: 1120px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:var(--body);
  font-size:19px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}

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

a{ color:inherit; text-decoration:none; }

.wrap{
  max-width:var(--container);
  margin:0 auto;
  padding:0 32px;
}

h1,h2,h3{
  font-family:var(--serif);
  font-weight:600;
  margin:0;
  color:var(--ink);
}

.eyebrow{
  font-family:var(--label);
  font-size:13px;
  letter-spacing:.28em;
  text-transform:uppercase;
  color:var(--lavender);
  font-weight:600;
}

.script{
  font-family:var(--script);
  font-weight:400;
  color:var(--ink);
  line-height:1;
}

/* ---------- divider sprig ---------- */
.sprig{
  width:120px;
  height:28px;
  margin:22px auto;
  opacity:.75;
}
.sprig.left{ margin:22px 0; }

/* ---------- header ---------- */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(251,247,241,0.92);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--line);
}
.site-header .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-top:14px;
  padding-bottom:14px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.brand img{ width:44px; height:44px; object-fit:contain; }
.brand-name{
  font-family:var(--serif);
  font-size:19px;
  letter-spacing:.03em;
  color:var(--ink);
}
.brand-name span{
  display:block;
  font-family:var(--label);
  font-size:11px;
  letter-spacing:.22em;
  color:var(--lavender);
  text-transform:uppercase;
  margin-top:2px;
}
/* nav rendered as a clothesline of hanging tags, not a standard link row */
nav{
  display:flex;
  align-items:flex-start;
  gap:14px 10px;
  flex-wrap:wrap;
  justify-content:flex-end;
  position:relative;
  padding-top:11px;
}
nav::before{
  content:"";
  position:absolute;
  top:5px; left:0; right:0; height:1px;
  background-image:repeating-linear-gradient(to right, var(--ink) 0 5px, transparent 5px 9px);
  opacity:.32;
}
nav a{
  font-family:var(--label);
  font-size:13.5px;
  letter-spacing:.05em;
  color:var(--ink-soft);
  background:var(--cream-deep);
  border:1px solid var(--line);
  padding:8px 15px 7px;
  position:relative;
  transform:rotate(var(--tilt,0deg));
  transition:transform .25s ease, box-shadow .25s ease, color .25s ease;
  white-space:nowrap;
}
nav a:nth-child(1){ --tilt:-1.5deg; }
nav a:nth-child(2){ --tilt:1.5deg; }
nav a:nth-child(3){ --tilt:-2deg; }
nav a:nth-child(4){ --tilt:2deg; }
nav a:nth-child(5){ --tilt:-1.5deg; }
nav a:nth-child(6){ --tilt:1.5deg; }
nav a:nth-child(7){ --tilt:-1.5deg; }
nav a::before{
  content:"";
  position:absolute;
  top:-5px; left:50%;
  transform:translateX(-50%);
  width:6px; height:6px;
  border-radius:50%;
  background:var(--gold);
  box-shadow:0 0 0 3px var(--cream);
}
nav a:hover{
  transform:rotate(0deg) translateY(-3px);
  color:var(--ink);
  box-shadow:0 8px 14px -8px rgba(61,42,74,.4);
}

@media (max-width:1180px) and (min-width:901px){
  nav a{ font-size:12.5px; padding:7px 12px 6px; }
  nav{ gap:10px 8px; }
}

.nav-toggle{ display:none; }

/* ---------- hero ---------- */
.hero{
  position:relative;
  padding:96px 0 84px;
  text-align:center;
  overflow:hidden;
  background:
    radial-gradient(ellipse at 50% -10%, var(--lavender-pale) 0%, transparent 60%),
    var(--cream);
}
.hero::before, .hero::after{
  content:"";
  position:absolute;
  width:340px; height:340px;
  border-radius:50%;
  background:var(--lavender-light);
  opacity:.35;
  filter:blur(60px);
}
.hero::before{ top:-140px; left:-120px; }
.hero::after{ bottom:-160px; right:-120px; }

.hero-emblem{
  width:220px; height:auto;
  margin:0 auto 20px;
  position:relative;
  z-index:1;
}
.hero .eyebrow{ position:relative; z-index:1; }
.hero h1{
  position:relative; z-index:1;
  font-size:clamp(40px,6vw,66px);
  margin-top:14px;
  line-height:1.1;
}
.hero h1 em{
  font-family:var(--script);
  font-style:normal;
  font-size:1.25em;
  color:var(--lavender);
  display:block;
}
.hero .lede{
  position:relative; z-index:1;
  max-width:560px;
  margin:22px auto 0;
  font-size:22px;
  color:var(--ink-soft);
}
.hero .verse{
  position:relative; z-index:1;
  margin-top:30px;
  font-family:var(--label);
  font-style:italic;
  font-size:16px;
  color:var(--gold);
  letter-spacing:.02em;
}
.hero-actions{
  position:relative; z-index:1;
  margin-top:38px;
  display:flex;
  gap:18px;
  justify-content:center;
  flex-wrap:wrap;
}

/* ---------- buttons ---------- */
.btn{
  display:inline-block;
  font-family:var(--label);
  font-size:15px;
  letter-spacing:.08em;
  text-transform:uppercase;
  padding:15px 34px;
  border-radius:2px;
  transition:all .3s ease;
}
.btn-primary{
  background:var(--ink);
  color:var(--cream);
  border:1px solid var(--ink);
}
.btn-primary:hover{ background:transparent; color:var(--ink); }
.btn-ghost{
  background:transparent;
  color:var(--ink);
  border:1px solid var(--ink);
}
.btn-ghost:hover{ background:var(--ink); color:var(--cream); }

/* ---------- section shell ---------- */
section{ padding:100px 0; }
section.tint{ background:var(--lavender-pale); }
.section-head{
  text-align:center;
  max-width:640px;
  margin:0 auto 56px;
}
.section-head h2{
  font-size:clamp(30px,4vw,44px);
  margin-top:14px;
}
.section-head p{
  margin-top:16px;
  font-size:20px;
  color:var(--ink-soft);
}

/* ---------- welcome / about ---------- */
.about{
  display:grid;
  grid-template-columns:0.9fr 1.1fr;
  gap:70px;
  align-items:center;
}
.about-frame{
  background:var(--cream-deep);
  border:1px solid var(--line);
  padding:46px 40px;
  position:relative;
}
.about-frame::before{
  content:"";
  position:absolute; inset:10px;
  border:1px solid var(--gold);
  opacity:.45;
  pointer-events:none;
}
.about-frame .script{ font-size:30px; color:var(--lavender); margin-bottom:10px; }
.about-frame p{ margin:0 0 16px; }
.about-frame p:last-child{ margin-bottom:0; }
.about-list{
  list-style:none;
  margin:26px 0 0;
  padding:0;
  display:grid;
  gap:14px;
}
.about-list li{
  display:flex;
  gap:12px;
  font-size:19px;
  color:var(--ink-soft);
}
.about-list li::before{
  content:"♥";
  color:var(--gold);
  flex-shrink:0;
}

/* ---------- gallery / words for your heart ---------- */
.gallery{
  columns:3 260px;
  column-gap:26px;
}
.gallery figure{
  margin:0 0 26px;
  break-inside:avoid;
  border:1px solid var(--line);
  background:var(--cream);
  overflow:hidden;
  transition:transform .4s ease, box-shadow .4s ease;
}
.gallery figure:hover{
  transform:translateY(-6px);
  box-shadow:0 22px 40px -18px rgba(61,42,74,.35);
}
.gallery img{ width:100%; }

/* ---------- explore the home / room cards ---------- */
.room-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:26px;
}
.room-card{
  display:block;
  background:var(--cream-deep);
  border:1px solid var(--line);
  padding:34px 30px;
  position:relative;
  transition:transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.room-card:hover{
  transform:translateY(-6px);
  box-shadow:0 22px 40px -22px rgba(61,42,74,.35);
  border-color:var(--gold);
}
.room-tag{
  display:inline-block;
  font-family:var(--label);
  font-size:11px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--gold);
  margin-bottom:14px;
}
.room-card h3{
  font-size:24px;
  margin-bottom:10px;
}
.room-card p{
  color:var(--ink-soft);
  font-size:17px;
  margin:0;
}

@media (max-width:900px){
  .room-grid{ grid-template-columns:1fr; }
}

/* ---------- product / journal ---------- */
.product{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:64px;
  align-items:center;
}
.product-visual{
  position:relative;
  padding:34px;
}
.product-visual img{
  border:1px solid var(--line);
  box-shadow:0 30px 60px -30px rgba(61,42,74,.45);
}
.product-visual .stamp{
  position:absolute;
  bottom:-6px; right:0;
  width:96px; height:96px;
  background:var(--cream);
  border-radius:50%;
  border:1px solid var(--line);
  padding:10px;
  object-fit:contain;
}
.badge{
  display:inline-block;
  font-family:var(--label);
  font-size:12px;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--gold);
  border:1px solid var(--gold);
  padding:6px 16px;
  border-radius:20px;
  margin-bottom:18px;
}
.product-copy h2{ font-size:clamp(28px,3.6vw,40px); margin-top:10px; }
.product-copy p{ color:var(--ink-soft); margin-top:16px; }
.feature-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px 28px;
  margin:28px 0 32px;
  padding:0;
  list-style:none;
}
.feature-grid li{
  font-size:17px;
  color:var(--ink-soft);
  padding-left:22px;
  position:relative;
}
.feature-grid li::before{
  content:"";
  position:absolute; left:0; top:9px;
  width:8px; height:8px;
  background:var(--lavender);
  transform:rotate(45deg);
}

/* ---------- newsletter / wear your purple ---------- */
.newsletter{
  text-align:center;
  background:var(--ink);
  color:var(--cream);
  border-radius:2px;
  padding:70px 40px;
  position:relative;
  overflow:hidden;
}
.newsletter::before{
  content:"";
  position:absolute; inset:0;
  background:radial-gradient(ellipse at 50% 0%, rgba(155,133,184,.35), transparent 65%);
}
.newsletter > *{ position:relative; z-index:1; }
.newsletter .script{ color:var(--lavender-light); font-size:38px; }
.newsletter h2{ color:var(--cream); font-size:clamp(28px,3.6vw,40px); margin-top:6px;}
.newsletter p{ color:#D9CBE8; max-width:520px; margin:16px auto 0; }
.newsletter-form{
  margin-top:34px;
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
}
.newsletter-form input[type="email"]{
  font-family:var(--body);
  font-size:17px;
  padding:14px 18px;
  width:300px;
  max-width:80vw;
  border:1px solid rgba(251,247,241,.4);
  background:transparent;
  color:var(--cream);
}
.newsletter-form input[type="email"]::placeholder{ color:rgba(251,247,241,.6); }
.newsletter-form .btn-primary{
  background:var(--gold);
  border-color:var(--gold);
  color:var(--ink);
}
.newsletter-form .btn-primary:hover{
  background:transparent;
  color:var(--gold);
}
.newsletter-note{
  margin-top:16px;
  font-size:13px;
  color:rgba(251,247,241,.55);
  letter-spacing:.04em;
}
.verse-pair{
  display:flex;
  gap:24px;
  justify-content:center;
  margin-top:38px;
  flex-wrap:wrap;
}
.verse-pill{
  border:1px solid rgba(251,247,241,.3);
  padding:14px 22px;
  font-family:var(--label);
  font-style:italic;
  font-size:15px;
  max-width:300px;
  color:rgba(251,247,241,.85);
}
.verse-pill b{
  display:block;
  font-style:normal;
  color:var(--gold);
  margin-top:8px;
  letter-spacing:.1em;
  font-size:12px;
}

/* ---------- footer ---------- */
footer{
  padding:60px 0 40px;
  text-align:center;
  border-top:1px solid var(--line);
}
.footer-emblem{ width:190px; height:auto; margin:0 auto 22px; }
footer .script{ font-size:26px; color:var(--lavender); }
.footer-links{
  display:flex;
  gap:30px;
  justify-content:center;
  margin:22px 0;
  font-family:var(--label);
  font-size:14px;
  letter-spacing:.06em;
  color:var(--ink-soft);
}
.footer-links a:hover{ color:var(--ink); }
.footer-fine{
  font-family:var(--label);
  font-size:13px;
  color:var(--ink-soft);
  opacity:.75;
}

/* ---------- reveal on scroll ---------- */
.reveal{
  opacity:0;
  transform:translateY(24px);
  transition:opacity .8s ease, transform .8s ease;
}
.reveal.is-visible{
  opacity:1;
  transform:none;
}

/* ---------- responsive ---------- */
@media (max-width:900px){
  .about, .product{ grid-template-columns:1fr; }
  .product-visual{ order:2; }
  nav{
    position:fixed; inset:64px 0 0 0;
    background:var(--cream);
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    padding-top:40px;
    gap:26px;
    transform:translateX(100%);
    transition:transform .35s ease;
  }
  nav.open{ transform:translateX(0); }
  nav::before{ display:none; }
  nav a{ transform:none !important; }
  nav a:hover{ transform:translateY(-2px) !important; }
  .nav-toggle{
    display:flex;
    flex-direction:column;
    gap:5px;
    background:none;
    border:none;
    cursor:pointer;
    padding:6px;
  }
  .nav-toggle span{
    width:24px; height:1.5px; background:var(--ink);
  }
  .gallery{ columns:1 260px; }
  .feature-grid{ grid-template-columns:1fr; }
}

@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  html{ scroll-behavior:auto; }
}
