@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  background: #fff;
  color: #000;
  padding-bottom: 80px; /* room for fixed nav */
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.8rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.2rem, 3vw, 1.8rem); margin-bottom: 0.4rem; }
h3 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a { color: #000; text-decoration: underline; text-underline-offset: 3px; }
a:hover { opacity: 0.6; }

strong { font-weight: 700; }

time { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.05em; }

blockquote {
  border-left: 4px solid #000;
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: #f5f5f5;
}

blockquote p { font-size: 1.1rem; font-weight: 500; font-style: italic; margin: 0; }

/* ── Drop Caps ── */
.drop-caps > .content-body > p:first-of-type::first-letter,
.drop-caps p:first-of-type::first-letter {
  float: left;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 0.85;
  margin: 0.1em 0.1em 0 0;
  padding: 0.05em 0.1em;
  background: #000;
  color: #fff;
}

/* ── Subtitle ── */
p.subtitle, p.subhead, p.desc, p.lead {
  font-size: 0.9rem;
  font-weight: 400;
  color: #555;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

/* ── Site Wrap ── */
.site-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Capsule Nav (fixed bottom) ── */
.capsule-nav {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: #000;
  border-radius: 999px;
  padding: 6px 12px;
  max-width: calc(100vw - 32px);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  white-space: nowrap;
}

.capsule-nav::-webkit-scrollbar { display: none; }

.capsule-nav ol {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.capsule-nav li { display: flex; }

.capsule-nav a {
  display: inline-flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 8px 14px;
  border-radius: 999px;
  min-height: 40px;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.capsule-nav a:hover {
  background: #fff;
  color: #000;
  opacity: 1;
}

/* ── Hero ── */
.hero {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 360px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.65) 100%);
}

.hero-body {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  max-width: 800px;
}

.hero-h1 {
  color: #fff;
  font-size: clamp(2rem, 6vw, 4rem);
  margin-bottom: 1rem;
}

.hero-desc {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  margin: 0;
}

/* ── Main Layout (content + aside) ── */
main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 280px;
  grid-template-areas: "content aside";
  gap: 0;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  padding: 0 24px;
}

main > .wrap {
  grid-area: content;
  min-width: 0;
  padding: 3rem 2rem 3rem 0;
}

main > aside {
  grid-area: aside;
  padding: 3rem 0 3rem 2rem;
  border-left: 1px solid #e8e8e8;
}

/* ── Sections ── */
section {
  margin-bottom: 3rem;
}

/* ── Content Body ── */
.content-body {
  max-width: 72ch;
  font-size: 1rem;
  line-height: 1.8;
}

.content-body h2 { margin: 2rem 0 0.5rem; }
.content-body h3 { margin: 1.5rem 0 0.4rem; }
.content-body ul, .content-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.content-body li { margin-bottom: 0.4rem; }
.content-body a { font-weight: 600; }

/* ── Category Header ── */
.cat-header, .tag-header, .about-header, .privacy-header {
  background: #000;
  color: #fff;
  padding: 4rem 24px 3rem;
}

.cat-header-inner,
.tag-header-inner,
.about-header-inner,
.privacy-header-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.cat-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.cat-eyebrow a, .cat-eyebrow a:hover {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  opacity: 1;
}

.cat-h1, .tag-h1, .about-h1, .privacy-h1 {
  color: #fff;
  margin-bottom: 0.8rem;
}

.cat-lead, .tag-lead, .about-lead, .privacy-lead {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  max-width: 60ch;
  margin: 0;
}

/* ── Entry Header ── */
.entry-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #000;
}

.entry-breadcrumb {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem;
  color: #555;
}

.entry-breadcrumb a { color: #555; }
.entry-breadcrumb span { margin: 0 0.4rem; color: #aaa; }

.entry-h1 { margin-bottom: 0.8rem; }

.entry-intro {
  font-size: 1.05rem;
  color: #333;
  max-width: 65ch;
  margin-bottom: 0.8rem;
}

.entry-meta {
  font-size: 0.78rem;
  color: #888;
  margin-bottom: 0.8rem;
}

.entry-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0.8rem; }

.tag-pill {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid #000;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.tag-pill:hover { background: #000; color: #fff; opacity: 1; }

/* ── Entry Hero Figure ── */
.entry-hero-fig {
  margin: 0 0 2.5rem;
  overflow: hidden;
  border-radius: 4px;
}

.entry-hero-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* ── Entry Footer ── */
.entry-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e8e8e8;
}

.back-link {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: 2px solid #000;
  padding: 8px 18px;
  border-radius: 4px;
  margin-top: 1rem;
  transition: background 0.2s, color 0.2s;
}

.back-link:hover { background: #000; color: #fff; opacity: 1; }

/* ── Feat Cards Grid (home) ── */
.feat-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 1.5rem;
}

.feat-card {
  display: flex;
  flex-direction: column;
  background: #000;
  color: #fff;
  border-radius: 4px;
  padding: 1.5rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.feat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.18); opacity: 1; }

.feat-card strong {
  font-size: 1rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
  color: #fff;
}

.feat-card .card-media { margin: 0.8rem 0; }
.feat-card .card-media img { width: 100%; height: auto; border-radius: 2px; }

.feat-card .card-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
  margin-top: auto;
}

/* ── Entry List (home) ── */
.entry-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 2px solid #000;
  margin-top: 1.5rem;
}

.entry-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #e8e8e8;
  text-decoration: none;
  transition: background 0.15s;
}

.entry-row:hover { background: #f7f7f7; padding-left: 8px; padding-right: 8px; margin: 0 -8px; opacity: 1; }

.entry-row strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: #000;
}

.entry-row .entry-date { font-size: 0.72rem; color: #888; white-space: nowrap; }
.entry-row .entry-desc { font-size: 0.78rem; color: #555; display: none; }

/* ── Child Cards Grid (category) ── */
.child-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 1.5rem;
}

.child-card {
  display: flex;
  flex-direction: column;
  border: 2px solid #000;
  border-radius: 4px;
  padding: 1.4rem;
  text-decoration: none;
  background: #fff;
  transition: background 0.2s, color 0.2s;
}

.child-card:hover { background: #000; color: #fff; opacity: 1; }
.child-card:hover strong, .child-card:hover .card-desc, .child-card:hover .card-date { color: #fff; }
.child-card:hover .card-date time { color: rgba(255,255,255,0.6); }

.child-card strong {
  font-size: 1rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
  color: #000;
}

.child-card .card-media { margin: 0.6rem 0; }
.child-card .card-media img { width: 100%; height: auto; border-radius: 2px; }
.child-card .card-desc { font-size: 0.82rem; color: #444; margin-top: auto; padding-top: 0.5rem; }
.child-card .card-date { font-size: 0.72rem; color: #888; margin-top: 0.6rem; }

/* ── Tag Entry List ── */
.tag-entry-list {
  border-top: 2px solid #000;
  margin-top: 1.5rem;
}

.tag-entry-row {
  display: flex;
  flex-direction: column;
  padding: 1.1rem 0;
  border-bottom: 1px solid #e8e8e8;
  text-decoration: none;
  transition: padding-left 0.15s;
}

.tag-entry-row:hover { padding-left: 10px; opacity: 1; }
.tag-entry-row strong { font-size: 0.95rem; font-weight: 700; color: #000; margin-bottom: 0.2rem; }
.tag-entry-row .entry-desc { font-size: 0.8rem; color: #555; }
.tag-entry-row .entry-date { font-size: 0.72rem; color: #888; margin-top: 0.3rem; }

/* ── Aside ── */
aside h2 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.3rem; }
aside p.subtitle { font-size: 0.78rem; color: #777; margin-bottom: 1.2rem; }

.aside-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.aside-links li { border-bottom: 1px solid #ebebeb; }

.aside-links a {
  display: flex;
  align-items: center;
  padding: 10px 0;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: #000;
  min-height: 44px;
  transition: padding-left 0.15s;
}

.aside-links a:hover { padding-left: 8px; opacity: 1; }

.aside-cats { margin-top: 2rem; }

/* ── Pull Quote (about) ── */
.about-pull-quote {
  margin: 3rem 0;
}

.about-pull-quote blockquote {
  border-left: 6px solid #000;
  background: #000;
  color: #fff;
  padding: 2rem;
  border-radius: 4px;
}

.about-pull-quote blockquote h2 { color: #fff; margin-bottom: 0.5rem; }
.about-pull-quote blockquote p.subtitle { color: rgba(255,255,255,0.7); margin: 0; }

/* ── Privacy ── */
.privacy-meta-bar {
  padding: 0.8rem 0;
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 2rem;
  font-size: 0.8rem;
  color: #888;
}

.privacy-note {
  margin-top: 3rem;
  padding: 1.5rem;
  background: #f5f5f5;
  border-radius: 4px;
}

.privacy-note h2 { margin-bottom: 0.4rem; }

/* ── Footer ── */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 24px;
  border-top: 2px solid #000;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  flex-wrap: wrap;
  gap: 0.8rem;
}

footer section { display: flex; align-items: center; gap: 1.2rem; }

.footer-copy span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.footer-links a {
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  color: #000;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover { text-decoration: underline; opacity: 1; }

/* ── Empty Note ── */
.empty-note { color: #888; font-size: 0.88rem; padding: 1.5rem 0; }

/* ── Scroll Reveal ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  main {
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "aside";
    padding: 0 16px;
  }

  main > .wrap {
    padding: 2rem 0;
  }

  main > aside {
    padding: 2rem 0;
    border-left: none;
    border-top: 1px solid #e8e8e8;
  }

  .feat-cards-grid, .child-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

@media (max-width: 600px) {
  body { font-size: 1rem; padding-bottom: 88px; }

  .hero { height: 60vh; }
  .hero-h1 { font-size: 1.8rem; }

  .cat-header, .tag-header, .about-header, .privacy-header {
    padding: 3rem 16px 2.5rem;
  }

  .entry-row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .entry-row .entry-date { display: block; }

  .feat-cards-grid, .child-cards-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 16px;
  }

  .capsule-nav {
    bottom: 12px;
    padding: 4px 10px;
  }

  .capsule-nav a {
    padding: 8px 10px;
    font-size: 0.68rem;
  }
}

@media (max-width: 375px) {
  .feat-cards-grid, .child-cards-grid {
    grid-template-columns: 1fr;
  }
}
