/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:      #2C3E35;
  --deep-green: #1e2e27;
  --terra:      #C4622D;
  --parchment:  #F5F0E8;
  --muted:      #8aaa97;
  --border-sub: #3d5a4d;
  --card-border:#ddd8ce;
  --white:      #ffffff;
  --sidebar-w:  210px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--parchment);
  color: #2a2a2a;
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--terra); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Topbar ===== */
.topbar {
  background: var(--green);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--parchment);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo span { color: var(--terra); }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  padding: 6px 12px;
  gap: 8px;
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--parchment);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  width: 180px;
}

.search-box input::placeholder { color: var(--muted); }

.search-box .ti { color: var(--muted); font-size: 16px; }

.btn-subscribe {
  background: var(--terra);
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .15s;
}

.btn-subscribe:hover { opacity: .85; }

/* ===== Sidebar ===== */
.page-body {
  display: flex;
  align-items: flex-start;
  position: relative;
  background: var(--green);
}

.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--green);
  padding-top: 24px;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  align-self: flex-start;
}

.sidebar-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 20px 18px 8px;
}

.sidebar nav ul { list-style: none; }

.sidebar nav ul li a {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 12px 18px;
  border-left: 3px solid transparent;
  transition: color .15s, background .15s, border-color .15s;
  white-space: nowrap;
  text-decoration: none;
}

.sidebar nav ul li a:hover {
  color: var(--parchment);
  background: rgba(0,0,0,0.12);
  border-left-color: var(--terra);
  text-decoration: none;
}

.sidebar nav ul li a.active {
  color: var(--parchment);
  background: var(--deep-green);
  border-left-color: var(--terra);
  text-decoration: none;
}

.sidebar nav ul li a .ti { font-size: 16px; flex-shrink: 0; }
.sidebar nav ul li a svg { width: 16px; height: 16px; flex-shrink: 0; }

.sidebar-divider {
  margin: 8px 18px;
  border: none;
  border-top: 1px solid var(--border-sub);
}

.page-content {
  flex: 1;
  min-width: 0;
  background: var(--parchment);
  border-top-left-radius: 32px;
  position: relative;
  z-index: 3;
}

/* ===== Hero ===== */
.hero {
  background: var(--green);
  padding: 80px 24px 100px;
  position: relative;
}

.hero-img-wrap {
  position: absolute;
  top: 0; right: 0;
  width: 52%;
  height: 100%;
  pointer-events: none;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: .28;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.5) 25%, rgba(0,0,0,1) 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.5) 25%, rgba(0,0,0,1) 100%);
}

.hero-inner {
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  position: absolute;
  top: -8px;
  right: 0;
  background: var(--terra);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  text-align: center;
  line-height: 1.4;
}

.hero-badge strong { display: block; font-size: 22px; font-weight: 700; }

.hero-eyebrow {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--terra);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(28px, 5vw, 38px);
  color: var(--parchment);
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero h1 em {
  font-style: italic;
  color: var(--terra);
}

.hero-kicker {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.hero p {
  color: #b8cec3;
  font-size: 15px;
  max-width: 540px;
  margin-bottom: 28px;
  line-height: 1.7;
}

.btn-cta {
  display: inline-block;
  background: var(--terra);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 7px;
  text-decoration: none;
  transition: opacity .15s, transform .1s;
}

.btn-cta:hover { opacity: .88; transform: translateY(-1px); text-decoration: none; }

/* ===== Dad Intro Section ===== */
.dad-intro {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px 56px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.dad-intro.visible {
  opacity: 1;
  transform: translateY(0);
}

.dad-intro-inner {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 40px 44px;
  box-shadow: 0 2px 12px rgba(44,62,53,.07);
}

.dad-intro-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--card-border);
}

.dad-intro-avatar {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  background: var(--terra);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--white);
}

.dad-intro-title {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(20px, 3vw, 26px);
  color: var(--green);
  line-height: 1.2;
}

.dad-intro-title em {
  font-style: italic;
  color: var(--terra);
}

.dad-intro-body {
  font-size: 16px;
  line-height: 1.8;
  color: #3a3a3a;
}

.dad-intro-body p {
  margin-bottom: 18px;
}

.dad-intro-body p:last-child {
  margin-bottom: 0;
}

.dad-intro-body em {
  font-style: italic;
  color: var(--terra);
}

.dad-intro-footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--card-border);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
}

/* ===== Article Grid ===== */
.section-main {
  padding: 48px 32px 56px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--green);
}

.section-header a {
  font-size: 13px;
  font-weight: 600;
  color: var(--terra);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .15s;
}

.card:hover {
  box-shadow: 0 6px 24px rgba(44,62,53,.12);
  transform: translateY(-2px);
}

.card-accent {
  height: 4px;
}

.card-accent.green   { background: var(--green); }
.card-accent.terra   { background: var(--terra); }
.card-accent.forest  { background: #3a5a48; }

.card-body {
  padding: 20px 20px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-category {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 8px;
}

.card h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 18px;
  color: #1a2a22;
  line-height: 1.3;
  margin-bottom: 6px;
}

.card-kicker {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--terra);
  font-size: 12px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.card p {
  font-size: 14px;
  color: #555;
  line-height: 1.65;
  flex: 1;
}

.card-footer {
  padding: 12px 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--card-border);
}

.card-date {
  font-size: 11px;
  color: #999;
  font-family: 'Inter', sans-serif;
}

.card-read {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--terra);
}

.card-read:hover { text-decoration: underline; }

/* ===== Dad Note Strip ===== */
.dad-strip {
  background: var(--green);
  padding: 40px 24px;
}

.dad-strip-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.dad-avatar {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  background: var(--terra);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--white);
}

.dad-text blockquote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 17px;
  color: var(--parchment);
  line-height: 1.65;
  margin-bottom: 10px;
}

.dad-signoff {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--terra);
  font-size: 13px;
  font-weight: 600;
}

/* ===== Footer ===== */
footer {
  background: var(--deep-green);
  border-top: 1px solid var(--border-sub);
  padding: 28px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 13px;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
}

.footer-links a:hover { color: var(--parchment); }

.footer-copy {
  font-size: 12px;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
}

/* ===== AdSense units ===== */
.ad-unit {
  overflow: hidden;
  text-align: center;
}

.ad-unit--leaderboard {
  margin: 40px 0 0;
  min-height: 90px;
}

.ad-unit--footer {
  background: var(--parchment);
  padding: 24px;
  min-height: 100px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .page-body { flex-direction: column; }
  .sidebar {
    width: 100%; min-width: unset; height: auto; position: static;
    border-bottom: 3px solid var(--terra);
    padding-top: 0;
  }
  .sidebar nav ul { display: flex; flex-wrap: wrap; padding: 4px 8px; }
  .sidebar nav ul li a { border-left: none; border-bottom: 3px solid transparent; padding: 10px 14px; }
  .sidebar nav ul li a.active { border-left-color: transparent; border-bottom-color: var(--terra); }
  .sidebar-label { display: none; }
  .sidebar-divider { display: none; }
  .page-content { border-top-left-radius: 0; }
}

@media (max-width: 768px) {
  .hero-badge { display: none; }
  .hero-img-wrap { display: none; }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .topbar { flex-wrap: wrap; gap: 10px; }

  .search-box input { width: 120px; }
}

@media (max-width: 480px) {
  .search-box { display: none; }
  .hero { padding: 44px 16px 52px; }
  .section-main { padding: 32px 16px 40px; }
  .dad-strip-inner { flex-direction: column; }
  .dad-intro-inner { padding: 28px 20px; }
  .dad-intro-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}
