/* ============================================================
   VINO AND VIBES — Ghost Theme Stylesheet
   Painterly wine blog: burgundy, blush, cream, dusty rose
   Fonts: Playfair Display · Cormorant Garamond · Dancing Script
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Dancing+Script:wght@500;600&display=swap');

/* ── TOKENS ── */
:root {
  --burgundy:   #7B1A3E;
  --deep-wine:  #5A1228;
  --blush:      #F2D8DF;
  --cream:      #FAF5F0;
  --warm-white: #FEF9F4;
  --ink:        #2D1A1F;
  --dusty-rose: #C4748A;
  --sage:       #8FA68B;
  --gold:       #B8874A;
  --serif:      'Cormorant Garamond', Georgia, serif;
  --display:    'Playfair Display', Georgia, serif;
  --script:     'Dancing Script', cursive;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--burgundy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--deep-wine); }

/* ── VINEYARD SVG BACKGROUND UTIL ── */
.vineyard-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .065;
  z-index: 0;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250,245,240,.93);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(123,26,62,.12);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: .75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: var(--script);
  font-size: 1.7rem;
  color: var(--burgundy);
  letter-spacing: .02em;
}
.site-logo img { height: 52px; width: auto; }

.nav-menu { display: flex; gap: 2.2rem; list-style: none; }
.nav-menu a {
  font-family: var(--serif);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink);
}
.nav-menu a:hover { color: var(--burgundy); }

/* ── hamburger (mobile) ── */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .4rem; }
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--burgundy); margin: 5px 0;
  transition: .3s;
}

/* ============================================================
   HERO  (home page)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 9rem 2rem 5rem;
  background: var(--warm-white);
  overflow: hidden;
}

.hero-watercolor {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 15% 20%, rgba(196,116,138,.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 85% 75%, rgba(123,26,62,.12) 0%, transparent 65%),
    radial-gradient(ellipse 55% 35% at 50% 90%, rgba(143,166,139,.10) 0%, transparent 60%);
}

.hero-logo {
  width: min(260px, 52vw);
  margin: 0 auto 2.2rem;
  filter: drop-shadow(0 4px 16px rgba(90,18,40,.12));
  position: relative; z-index: 2;
  animation: fadeUp .9s ease both;
}

.hero-tagline {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4.5vw, 3.4rem);
  font-weight: 400;
  color: var(--burgundy);
  line-height: 1.22;
  max-width: 680px;
  position: relative; z-index: 2;
  animation: fadeUp .9s ease .18s both;
}
.hero-tagline em { font-style: italic; color: var(--dusty-rose); }

.hero-sub {
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: .03em;
  color: var(--ink);
  margin-top: 1.1rem;
  max-width: 520px;
  line-height: 1.85;
  position: relative; z-index: 2;
  animation: fadeUp .9s ease .32s both;
}

.btn-primary {
  display: inline-block;
  margin-top: 2.2rem;
  padding: .85rem 2.5rem;
  background: var(--burgundy);
  color: #fff;
  font-family: var(--serif);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  border: 2px solid var(--burgundy);
  transition: background .25s, color .25s;
  position: relative; z-index: 2;
  animation: fadeUp .9s ease .46s both;
}
.btn-primary:hover { background: transparent; color: var(--burgundy); }

.scroll-hint {
  position: absolute; bottom: 2.2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  color: var(--dusty-rose);
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  z-index: 2;
  animation: bounceDown 2.2s ease infinite;
}
.scroll-hint svg { width: 16px; }

/* ============================================================
   WELCOME STRIP  (home page)
   ============================================================ */
.welcome-section {
  position: relative;
  background: var(--cream);
  overflow: hidden;
}
.welcome-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative; z-index: 1;
}
.welcome-label {
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--dusty-rose); display: block; margin-bottom: .7rem;
}
.welcome-title {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--burgundy);
  line-height: 1.25;
  margin-bottom: 1.2rem;
}
.welcome-divider {
  width: 55px; height: 2px;
  background: var(--dusty-rose); opacity: .6;
  display: block; margin-bottom: 2rem;
}
.welcome-text p {
  font-size: 1.1rem; line-height: 2;
  color: #3a2028; font-weight: 300;
  margin-bottom: 1.1rem;
}
.welcome-text p em { font-style: italic; color: var(--burgundy); }
.wine-glass-sketch { width: 100%; max-width: 300px; margin: 0 auto; opacity: .75; }

/* ============================================================
   BLOG GRID  (home featured + blog index)
   ============================================================ */
.blog-section {
  position: relative;
  background: var(--blush);
  overflow: hidden;
}
.blog-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2rem;
  position: relative; z-index: 1;
}
.section-header { text-align: center; max-width: 580px; margin: 0 auto 3.5rem; }
.section-label {
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--dusty-rose); display: block; margin-bottom: .7rem;
}
.section-title {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 600; color: var(--burgundy); line-height: 1.25;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2.4rem;
}

.post-card {
  background: var(--warm-white);
  border: 1px solid rgba(123,26,62,.10);
  position: relative;
  transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.post-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 4px; height: 0;
  background: var(--burgundy);
  transition: height .3s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(90,18,40,.10); }
.post-card:hover::before { height: 100%; }

.post-card-image { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.post-card-image-placeholder {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--blush) 0%, rgba(196,116,138,.25) 100%);
  display: flex; align-items: center; justify-content: center;
}
.post-card-image-placeholder svg { width: 48px; opacity: .35; }

.post-card-body { padding: 1.8rem; flex: 1; display: flex; flex-direction: column; }
.post-card-meta {
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--dusty-rose); margin-bottom: .7rem;
}
.post-card-title {
  font-family: var(--display);
  font-size: 1.2rem; font-weight: 600;
  color: var(--burgundy); line-height: 1.3;
  margin-bottom: .85rem;
}
.post-card-excerpt {
  font-size: .95rem; line-height: 1.8;
  color: #4a2a32; font-weight: 300;
  margin-bottom: 1.4rem; flex: 1;
}
.read-more {
  font-size: .76rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--burgundy); font-weight: 500;
  border-bottom: 1px solid var(--dusty-rose); padding-bottom: 2px;
  align-self: flex-start;
  transition: color .2s, border-color .2s;
}
.read-more:hover { color: var(--deep-wine); border-color: var(--deep-wine); }

/* pagination */
.pagination {
  display: flex; justify-content: center; gap: 1.5rem;
  margin-top: 3.5rem;
}
.pagination a, .pagination span {
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .65rem 1.8rem; border: 1.5px solid var(--burgundy);
  color: var(--burgundy); font-weight: 500;
  transition: background .2s, color .2s;
}
.pagination a:hover { background: var(--burgundy); color: #fff; }
.pagination .page-number { border-color: transparent; color: var(--dusty-rose); cursor: default; }

/* ============================================================
   ABOUT SNIPPET  (home page)
   ============================================================ */
.about-section {
  position: relative;
  background: var(--ink);
  overflow: hidden;
}
.about-inner {
  max-width: 1100px; margin: 0 auto; padding: 6rem 2rem;
  display: grid; grid-template-columns: 5fr 4fr;
  gap: 5rem; align-items: center;
  position: relative; z-index: 1;
}
.about-section .section-label { color: var(--dusty-rose); }
.about-section .section-title { color: var(--blush); }
.about-divider { width: 55px; height: 2px; background: var(--dusty-rose); display: block; margin: 1rem 0 2rem; }
.about-text p {
  font-size: 1.05rem; line-height: 2;
  color: rgba(242,216,223,.82); font-weight: 300; margin-bottom: 1.1rem;
}
.about-text p em { color: var(--dusty-rose); font-style: italic; }
.about-signature { font-family: var(--script); font-size: 1.7rem; color: var(--dusty-rose); margin-top: 1.4rem; }
.btn-outline {
  display: inline-block; margin-top: 1.8rem;
  padding: .8rem 2.2rem;
  border: 1.5px solid var(--dusty-rose); color: var(--dusty-rose);
  font-family: var(--serif); font-size: .88rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  transition: background .25s, color .25s;
}
.btn-outline:hover { background: var(--dusty-rose); color: var(--ink); }
.grape-sketch { width: 100%; max-width: 260px; margin: 0 auto; opacity: .3; filter: invert(1) sepia(.4) brightness(1.5); }

/* ============================================================
   SINGLE POST PAGE
   ============================================================ */
.post-header {
  position: relative;
  background: var(--warm-white);
  padding: 9rem 2rem 4rem;
  text-align: center;
  overflow: hidden;
}
.post-header-watercolor {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 20% 30%, rgba(196,116,138,.14) 0%, transparent 65%),
    radial-gradient(ellipse 40% 55% at 80% 70%, rgba(123,26,62,.09) 0%, transparent 60%);
}
.post-meta-top {
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--dusty-rose); margin-bottom: 1rem;
  position: relative; z-index: 1;
}
.post-title {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600; color: var(--burgundy); line-height: 1.2;
  max-width: 760px; margin: 0 auto 1.2rem;
  position: relative; z-index: 1;
}
.post-excerpt-lede {
  font-size: 1.15rem; font-style: italic; font-weight: 300;
  color: #5a3040; max-width: 620px; margin: 0 auto;
  position: relative; z-index: 1;
}

.post-feature-image {
  width: 100%; max-height: 520px; object-fit: cover;
  display: block;
}

.post-content-wrap {
  max-width: 720px; margin: 0 auto; padding: 4rem 2rem 6rem;
}
.post-content-wrap .kg-width-wide  { margin-left: -120px; margin-right: -120px; }
.post-content-wrap .kg-width-full  { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

/* Ghost card styles */
.kg-image-card img  { width: 100%; border-radius: 2px; }
.kg-gallery-card    { display: flex; flex-wrap: wrap; gap: .5rem; }
.kg-gallery-image   { flex: 1 0 200px; overflow: hidden; }
.kg-gallery-image img { width: 100%; object-fit: cover; }
.kg-bookmark-card   { border: 1px solid var(--blush); padding: 1.2rem; display: flex; gap: 1rem; }
.kg-bookmark-content { flex: 1; }
.kg-bookmark-title  { font-family: var(--display); font-weight: 600; color: var(--burgundy); }
.kg-bookmark-thumbnail img { width: 120px; object-fit: cover; }

/* prose */
.post-content-wrap h1,
.post-content-wrap h2,
.post-content-wrap h3,
.post-content-wrap h4 {
  font-family: var(--display);
  color: var(--burgundy); margin: 2.2rem 0 .9rem; line-height: 1.25;
}
.post-content-wrap h2 { font-size: 1.8rem; }
.post-content-wrap h3 { font-size: 1.4rem; }
.post-content-wrap p  { margin-bottom: 1.4rem; font-size: 1.08rem; line-height: 1.95; }
.post-content-wrap ul,
.post-content-wrap ol { margin: 0 0 1.4rem 1.6rem; }
.post-content-wrap li { margin-bottom: .5rem; font-size: 1.05rem; line-height: 1.8; }
.post-content-wrap blockquote {
  border-left: 3px solid var(--dusty-rose);
  padding: .8rem 1.4rem;
  margin: 2rem 0;
  font-style: italic; font-size: 1.15rem;
  color: var(--burgundy); background: rgba(242,216,223,.2);
}
.post-content-wrap hr {
  border: none; border-top: 1px solid rgba(196,116,138,.3);
  margin: 3rem 0;
}
.post-content-wrap a { border-bottom: 1px solid var(--dusty-rose); }
.post-content-wrap a:hover { color: var(--deep-wine); border-color: var(--deep-wine); }

/* author box */
.post-author-box {
  max-width: 720px; margin: 0 auto 5rem; padding: 2rem;
  border-top: 1px solid var(--blush); border-bottom: 1px solid var(--blush);
  display: flex; gap: 1.5rem; align-items: center;
}
.post-author-avatar {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--blush); flex-shrink: 0;
}
.post-author-name {
  font-family: var(--display); font-weight: 600; color: var(--burgundy); margin-bottom: .3rem;
}
.post-author-bio { font-size: .95rem; color: #5a3040; font-weight: 300; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.page-header {
  position: relative; background: var(--warm-white);
  padding: 9rem 2rem 4rem; text-align: center; overflow: hidden;
}
.page-title {
  font-family: var(--display); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600; color: var(--burgundy); position: relative; z-index: 1;
}
.page-content-wrap {
  max-width: 720px; margin: 0 auto; padding: 4rem 2rem 6rem;
}
.page-content-wrap h2 { font-family: var(--display); color: var(--burgundy); font-size: 1.6rem; margin: 2rem 0 .8rem; }
.page-content-wrap p  { font-size: 1.08rem; line-height: 1.95; margin-bottom: 1.4rem; }
.page-content-wrap blockquote {
  border-left: 3px solid var(--dusty-rose); padding: .8rem 1.4rem;
  margin: 2rem 0; font-style: italic; font-size: 1.12rem;
  color: var(--burgundy); background: rgba(242,216,223,.2);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--deep-wine);
  text-align: center;
  padding: 3.5rem 2rem;
}
.footer-logo {
  font-family: var(--script); font-size: 1.9rem;
  color: var(--blush); margin-bottom: .4rem;
}
.footer-tagline {
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(242,216,223,.5); margin-bottom: 1.8rem;
}
.footer-nav { display: flex; justify-content: center; gap: 1.8rem; list-style: none; margin-bottom: 1.8rem; }
.footer-nav a {
  font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(242,216,223,.5); transition: color .2s;
}
.footer-nav a:hover { color: var(--blush); }
.footer-copy { font-size: .76rem; color: rgba(242,216,223,.28); font-style: italic; }

/* ============================================================
   TAGS  / ARCHIVE
   ============================================================ */
.archive-header {
  background: var(--warm-white); padding: 9rem 2rem 3rem; text-align: center;
}
.archive-title {
  font-family: var(--display); font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600; color: var(--burgundy);
}
.archive-description { font-size: 1.05rem; color: #5a3040; margin-top: .8rem; font-weight: 300; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--warm-white); border-bottom: 1px solid var(--blush); padding: 1rem 2rem; gap: 1rem; }
  .nav-menu.is-open { display: flex; }
  .nav-toggle { display: block; }
  .welcome-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .wine-glass-sketch { display: none; }
  .about-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .grape-sketch { display: none; }
  .post-content-wrap .kg-width-wide { margin-left: 0; margin-right: 0; }
}
