/* ═══════════════════════════════════════════════════════════
   KERRY PASTINE — PUBLII THEME
   Fonts:  Unbounded (headlines) / Poppins (body)
   Colors: Black #000 · Abyss #061F28 · Teal #70A2AE
           Gold #DFB62B · Parchment #F2E8DF · White #fff
   ═══════════════════════════════════════════════════════════ */

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

/* ── DESIGN TOKENS ── */
:root {
  --black:       #000000;
  --abyss:       #061F28;
  --teal:        #70A2AE;
  --gold:        #DFB62B;
  --gold-dark:   #b89220;
  --parchment:   #F2E8DF;
  --white:       #ffffff;
  --gold-muted:  rgba(223,182,43,0.15);
  --white-70:    rgba(255,255,255,0.70);
  --white-50:    rgba(255,255,255,0.50);
  --white-35:    rgba(255,255,255,0.35);
  --abyss-text:  #3a5a65;
}

html { scroll-behavior: smooth; }

/* ── BODY ── */
body {
  background: var(--parchment);
  color: var(--abyss);
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  font-size: 15px;
}


/* ══════════════════════════════════
   NAVIGATION
   ══════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--black);
  padding: 0 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
}
.nav-logo {
  font-family: 'Unbounded', sans-serif;
  font-size: 1rem; font-weight: 900;
  color: var(--gold); text-decoration: none;
  letter-spacing: 0.01em; line-height: 1.1;
}
.nav-logo span {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.57rem; font-weight: 400;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--white-50); margin-top: 1px;
}
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.82); text-decoration: none; transition: color 0.18s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-cta {
  background: var(--gold) !important;
  color: var(--black) !important;
  padding: 0.6rem 1.4rem !important;
  border-radius: 0 !important;
  font-family: 'Unbounded', sans-serif !important;
  font-size: 0.62rem !important; font-weight: 700 !important;
  letter-spacing: 0.1em !important; text-transform: uppercase !important;
  transition: background 0.18s !important;
}
.nav-cta:hover { background: var(--gold-dark) !important; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: all 0.2s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
    position: fixed; top: 62px; left: 0; right: 0;
    background: var(--black); flex-direction: column;
    padding: 2rem; gap: 1.2rem; align-items: flex-start;
    border-top: 1px solid rgba(255,255,255,0.08);
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
}


/* ══════════════════════════════════
   BUTTONS (shared)
   ══════════════════════════════════ */
.btn-primary {
  display: inline-block; background: var(--gold); color: var(--black);
  padding: 0.9rem 2rem; font-family: 'Unbounded', sans-serif;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none; border-radius: 0;
  transition: background 0.18s; white-space: nowrap; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--gold-dark); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.4rem; color: var(--gold);
  font-family: 'Poppins', sans-serif; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  border-bottom: 1.5px solid var(--gold); padding-bottom: 2px; transition: gap 0.18s;
}
.btn-ghost:hover { gap: 0.7rem; }


/* ══════════════════════════════════
   SHARED UTILITIES
   ══════════════════════════════════ */
.section-eyebrow {
  font-family: 'Poppins', sans-serif; font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem;
}

/* Fade-up animation (triggered by JS) */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ══════════════════════════════════
   PAGE HERO
   ══════════════════════════════════ */
.page-hero {
  padding: 110px 8rem 5rem;
  background: var(--abyss);
  border-bottom: 1px solid rgba(223,182,43,0.15);
}
.page-hero .eyebrow {
  font-family: 'Poppins', sans-serif; font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.2rem;
}
.page-hero h1 {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 900; line-height: 1.05; color: var(--white);
}
.page-hero h1 em { font-style: normal; color: var(--gold); }
.page-hero > p,
.page-hero .post-meta-hero {
  font-family: 'Poppins', sans-serif; font-style: italic;
  font-size: 1rem; color: var(--white-70);
  margin-top: 1.2rem; max-width: 520px; line-height: 1.85;
}
/* Post hero: title can be longer — allow more width */
.post-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  max-width: 820px;
}
.post-hero .post-meta-hero {
  font-style: normal;
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--white-50); margin-top: 1.5rem;
}


/* ══════════════════════════════════
   BLOG LAYOUT (2-col: main + sidebar)
   ══════════════════════════════════ */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 5rem;
  padding: 6rem 8rem;
  align-items: start;
}


/* ══════════════════════════════════
   FEATURED POST
   ══════════════════════════════════ */
.featured-post {
  margin-bottom: 5rem; padding-bottom: 5rem;
  border-bottom: 1px solid rgba(6,31,40,0.1);
}
.post-label {
  font-family: 'Poppins', sans-serif; font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 1rem;
}
.featured-post h2 {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 700; color: var(--abyss); line-height: 1.15; margin-bottom: 1rem;
}
.featured-post h2 a { color: inherit; text-decoration: none; transition: color 0.2s; }
.featured-post h2 a:hover { color: var(--gold-dark); }

.post-meta {
  font-family: 'Poppins', sans-serif; font-size: 0.62rem;
  color: var(--abyss-text); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 1.5rem;
}
.post-excerpt {
  font-family: 'Poppins', sans-serif; font-size: 1rem; font-style: italic;
  color: var(--abyss-text); line-height: 1.9; margin-bottom: 1.8rem;
}
.read-more {
  font-family: 'Poppins', sans-serif; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); text-decoration: none;
  border-bottom: 1.5px solid var(--gold); padding-bottom: 0.15rem;
  display: inline-flex; align-items: center; gap: 0.3rem; transition: gap 0.18s;
}
.read-more:hover { gap: 0.6rem; }


/* ══════════════════════════════════
   POST LIST ITEMS
   ══════════════════════════════════ */
.post-item {
  padding: 2.8rem 0;
  border-bottom: 1px solid rgba(6,31,40,0.08);
}
.post-item:last-child { border-bottom: none; }
.post-item h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 700; color: var(--abyss); margin-bottom: 0.5rem; line-height: 1.2;
}
.post-item h3 a { color: inherit; text-decoration: none; transition: color 0.2s; }
.post-item h3 a:hover { color: var(--gold-dark); }
.post-item .post-meta { margin-bottom: 0.8rem; }
.post-item > p {
  font-family: 'Poppins', sans-serif; font-size: 0.93rem;
  color: var(--abyss-text); line-height: 1.85; font-style: italic;
}

.no-posts {
  font-family: 'Poppins', sans-serif; font-style: italic;
  color: var(--abyss-text); padding: 3rem 0;
}


/* ══════════════════════════════════
   INDIVIDUAL POST CONTENT
   ══════════════════════════════════ */
.post-featured-image {
  margin-bottom: 3rem;
}
.post-featured-image img {
  width: 100%; height: auto; display: block;
}

.post-content {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem; line-height: 1.9;
  color: var(--abyss);
  max-width: 720px;
}
.post-content h2 {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 700; color: var(--abyss);
  margin: 2.5rem 0 1rem; line-height: 1.2;
}
.post-content h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 700; color: var(--abyss);
  margin: 2rem 0 0.75rem; line-height: 1.25;
}
.post-content p { margin-bottom: 1.5rem; }
.post-content p:last-child { margin-bottom: 0; }
.post-content em { font-style: italic; }
.post-content strong { font-weight: 600; }
.post-content a {
  color: var(--gold-dark); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 2px;
  transition: color 0.18s;
}
.post-content a:hover { color: var(--gold); }
.post-content blockquote {
  border-left: 3px solid var(--gold);
  margin: 2rem 0;
  padding: 1rem 2rem;
  background: rgba(223,182,43,0.04);
  font-style: italic; color: var(--abyss-text);
}
.post-content ul,
.post-content ol {
  margin: 1.2rem 0 1.5rem 1.5rem;
}
.post-content li { margin-bottom: 0.4rem; }
.post-content img {
  max-width: 100%; height: auto; display: block;
  margin: 2rem 0;
}
.post-content hr {
  border: none; border-top: 1px solid rgba(6,31,40,0.12);
  margin: 3rem 0;
}

/* Post bottom elements */
.post-tags-bottom {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.6rem; margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid rgba(6,31,40,0.08);
}
.tags-label {
  font-family: 'Poppins', sans-serif; font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--abyss-text);
}
.post-back {
  margin-top: 2.5rem;
}
.post-nav {
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 1.5rem; margin-top: 3rem; padding-top: 2.5rem;
  border-top: 1px solid rgba(6,31,40,0.08);
}
.post-nav-prev,
.post-nav-next {
  display: flex; flex-direction: column; gap: 0.3rem; max-width: 46%;
}
.post-nav-next { text-align: right; }
.post-nav-label {
  font-family: 'Poppins', sans-serif; font-size: 0.58rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
}
.post-nav a {
  font-family: 'Unbounded', sans-serif; font-size: 0.82rem; font-weight: 700;
  color: var(--abyss); text-decoration: none; line-height: 1.3; transition: color 0.18s;
}
.post-nav a:hover { color: var(--gold-dark); }


/* ══════════════════════════════════
   SIDEBAR
   ══════════════════════════════════ */
.blog-sidebar { position: sticky; top: 80px; }
.sidebar-section { margin-bottom: 3.5rem; }
.sidebar-section h3 {
  font-family: 'Unbounded', sans-serif; font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--abyss);
  margin-bottom: 1.5rem; padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(6,31,40,0.12);
}

/* Email subscribe box */
.sidebar-email {
  background: white; padding: 2.5rem;
  border: 1px solid rgba(223,182,43,0.15);
}
.sidebar-email p {
  font-family: 'Poppins', sans-serif; font-size: 0.93rem; font-style: italic;
  color: var(--abyss-text); line-height: 1.7; margin-bottom: 1.5rem;
}
.sidebar-email input {
  width: 100%; background: var(--parchment);
  border: 1px solid rgba(6,31,40,0.15); color: var(--abyss);
  font-family: 'Poppins', sans-serif; font-size: 0.82rem;
  padding: 0.8rem 1rem; outline: none; margin-bottom: 0.8rem;
  transition: border-color 0.2s; display: block; border-radius: 0;
}
.sidebar-email input:focus { border-color: var(--gold); }
.sidebar-email button {
  width: 100%; background: var(--gold); color: var(--black); border: none;
  font-family: 'Unbounded', sans-serif; font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.9rem; cursor: pointer; transition: background 0.18s;
}
.sidebar-email button:hover { background: var(--gold-dark); }

/* Book promo */
.sidebar-book {
  background: var(--abyss); padding: 2.5rem;
  color: var(--white); text-decoration: none; display: block; transition: background 0.2s;
}
.sidebar-book:hover { background: #04141C; }
.sidebar-book .sb-label {
  font-family: 'Poppins', sans-serif; font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 0.8rem;
}
.sidebar-book h4 {
  font-family: 'Unbounded', sans-serif; font-size: 1.1rem; font-weight: 700;
  color: var(--white); margin-bottom: 0.6rem; line-height: 1.3;
}
.sidebar-book p {
  font-family: 'Poppins', sans-serif; font-size: 0.78rem;
  color: var(--white-50); line-height: 1.65;
}

/* Tag cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tag {
  font-family: 'Poppins', sans-serif; font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--abyss-text);
  padding: 0.4rem 0.9rem; border: 1px solid rgba(6,31,40,0.15);
  text-decoration: none; transition: all 0.2s;
}
.tag:hover { border-color: var(--gold); color: var(--gold); }


/* ══════════════════════════════════
   FOOTER
   ══════════════════════════════════ */
footer {
  background: var(--black); color: var(--white-70);
  padding: 4rem 6rem 2.5rem;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 2rem;
}
.footer-brand .brand-name {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.2rem; font-weight: 900; color: var(--gold); margin-bottom: 0.4rem;
}
.footer-brand .brand-tag {
  font-family: 'Poppins', sans-serif; font-size: 0.65rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--white-50); margin-bottom: 1rem;
}
.footer-brand p {
  font-family: 'Poppins', sans-serif; font-size: 0.85rem;
  color: var(--white-50); line-height: 1.7;
}
.footer-col h4 {
  font-family: 'Unbounded', sans-serif; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--white);
  margin-bottom: 1.2rem;
}
.footer-col a {
  display: block; font-family: 'Poppins', sans-serif; font-size: 0.82rem;
  color: var(--white-50); text-decoration: none; margin-bottom: 0.6rem;
  transition: color 0.18s;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom span {
  font-family: 'Poppins', sans-serif; font-size: 0.72rem; color: var(--white-35);
}
.footer-bottom a {
  font-family: 'Poppins', sans-serif; font-size: 0.72rem; color: var(--white-35);
  text-decoration: none; transition: color 0.18s;
}
.footer-bottom a:hover { color: var(--gold); }


/* ══════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════ */

/* Tablet: stack blog columns, footer 2-col */
@media (max-width: 1100px) {
  .blog-layout {
    grid-template-columns: 1fr;
    padding: 5rem 4rem;
    gap: 4rem;
  }
  .blog-sidebar { position: static; }
  footer { padding: 3rem 3rem 2rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

/* Mobile: tighten hero + blog padding */
@media (max-width: 768px) {
  .page-hero { padding: 90px 2.5rem 4rem; }
  .blog-layout { padding: 4rem 2.5rem; gap: 3rem; }
  .post-content { font-size: 0.97rem; }
  .post-nav-prev,
  .post-nav-next { max-width: 100%; }
}

/* Small mobile: single-col footer */
@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr; }
}
