@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:wght@400;500;600;700&family=Jost: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: 'Jost', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: #000;
  background: #fff;
  min-height: 100vh;
  padding-bottom: 64px;
}

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

a:hover {
  opacity: 0.6;
  transition: opacity 220ms ease;
}

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

ul, ol {
  padding-left: 1.5rem;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Bodoni Moda', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); margin-bottom: 0.75rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }

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

/* h2/h3 span decoration */
h2 > span, h3 > span {
  display: inline-block;
  border-bottom: 2px solid #000;
  padding-bottom: 2px;
}

/* ── Layout Container ── */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Dot Grid Pattern ── */
.dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #000 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

/* ── Hero (Home) ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
  position: relative;
  border-bottom: 2px solid #000;
  overflow: hidden;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3rem 4rem 2rem;
  position: relative;
  z-index: 1;
}

.hero-media {
  position: relative;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: #000;
}

.eyebrow span {
  border: 1px solid #000;
  padding: 2px 8px;
}

.hero-sub {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 1rem 0 2rem;
  max-width: 480px;
  color: #333;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  background: #000;
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.75rem 2rem;
  text-decoration: none;
  border: 2px solid #000;
  transition: background 220ms ease, color 220ms ease;
  align-self: flex-start;
  min-height: 44px;
}

.btn-primary:hover {
  background: #fff;
  color: #000;
  opacity: 1;
}

/* ── Page Grid (inner pages) ── */
.page-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  padding: 3rem 0;
}

.main-col {
  min-width: 0;
}

/* ── Breadcrumb ── */
.breadcrumb {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1.5rem;
  font-family: 'Jost', sans-serif;
}

.breadcrumb a {
  color: #666;
}

/* ── Article Meta ── */
.article-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 2rem;
  font-family: 'Jost', sans-serif;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 0.6rem 0;
}

.about-date, .cat-desc {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1.5rem;
}

.article-hero {
  margin-bottom: 2rem;
}

.article-hero-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

/* ── Content Sections ── */
.content-section {
  margin-top: 2rem;
}

.page-content {
  font-size: 1rem;
  line-height: 1.8;
}

.page-content h2,
.page-content h3 {
  margin-top: 2rem;
}

.page-content ul,
.page-content ol {
  margin-bottom: 1rem;
}

.page-content li {
  margin-bottom: 0.4rem;
}

/* ── Cards (Home) ── */
.cards-section {
  margin: 3rem 0;
}

.cards-section h2 {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #000;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  border: 1px solid #000;
  border-radius: 4px;
  padding: 1.5rem;
  box-shadow: 3px 3px 0 #000;
  transition: transform 220ms ease, box-shadow 220ms ease;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 #000;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0;
}

.card h3 > span {
  border-bottom: none;
}

.card-date {
  font-size: 0.8rem;
  color: #666;
  font-family: 'Jost', sans-serif;
}

.card-desc {
  font-size: 0.9rem;
  color: #444;
  flex: 1;
}

.card-link {
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Jost', sans-serif;
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}

/* ── Child / Tag List (dl > dt > a + dd) ── */
.child-list {
  border-top: 2px solid #000;
}

.child-list dt {
  padding: 1rem 0 0.25rem;
  font-weight: 600;
  font-family: 'Bodoni Moda', serif;
  font-size: 1.05rem;
}

.child-list dt a {
  text-decoration: none;
  color: #000;
  transition: opacity 220ms ease;
}

.child-list dt a:hover {
  opacity: 0.6;
}

.child-list dd {
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
  display: flex;
  gap: 1rem;
  align-items: baseline;
  flex-wrap: wrap;
}

.item-date {
  font-size: 0.8rem;
  color: #888;
  font-family: 'Jost', sans-serif;
  white-space: nowrap;
}

.item-desc {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
}

.child-list-section,
.related-section,
.tag-items-section,
.about-links-section,
.privacy-nav-section {
  margin-top: 3rem;
}

.child-list-section h2,
.related-section h2,
.tag-items-section h2,
.about-links-section h2,
.privacy-nav-section h2 {
  margin-bottom: 1rem;
}

/* ── Tags ── */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.tag {
  display: inline-block;
  border: 1px solid #000;
  border-radius: 4px;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  text-decoration: none;
  color: #000;
  transition: background 220ms ease, color 220ms ease;
  min-height: 32px;
  line-height: 1.6;
}

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

/* ── Aside Sidebar ── */
.aside-bar {
  align-self: start;
  position: sticky;
  top: 1.5rem;
}

.aside-inner {
  border: 1px solid #000;
  border-radius: 4px;
  padding: 1.5rem;
}

.aside-inner h3 {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #000;
  margin-top: 1.5rem;
}

.aside-inner h3:first-child {
  margin-top: 0;
}

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

.aside-nav li {
  border-bottom: 1px solid #eee;
}

.aside-nav a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  text-decoration: none;
  color: #000;
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: opacity 220ms ease;
}

.aside-nav a:hover {
  opacity: 0.5;
}

/* ── Home content div ── */
.content-section > .page-content,
.main-col .content-section {
  margin-top: 2rem;
}

/* ── Footer ── */
.site-footer {
  border-top: 2px solid #000;
  padding: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-brand {
  font-size: 0.9rem;
  font-family: 'Jost', sans-serif;
}

.footer-brand a {
  color: #000;
}

.footer-note {
  font-size: 0.78rem;
  color: #888;
  font-family: 'Jost', sans-serif;
  line-height: 1.5;
  display: block;
}

/* ── Bottom Navigation Bar ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  z-index: 100;
  border-top: 2px solid #000;
}

.bn-brand {
  font-family: 'Bodoni Moda', serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.03em;
  white-space: nowrap;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.bn-brand:hover {
  opacity: 0.7;
}

.bn-cta {
  background: #fff;
  color: #000;
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0 1rem;
  height: 36px;
  min-height: 40px;
  display: flex;
  align-items: center;
  text-decoration: none;
  border-radius: 2px;
  white-space: nowrap;
  transition: background 220ms ease, color 220ms ease;
}

.bn-cta:hover {
  background: #333;
  color: #fff;
  opacity: 1;
}

/* Bottom nav inner nav/dl — visually hidden but DOM present for contract */
.bottom-nav nav {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

/* ── Hero home div fix ── */
.home-content-section {
  padding: 3rem 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  body {
    padding-bottom: 56px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-text {
    padding: 2.5rem 1.25rem;
    min-height: 60vw;
  }

  .hero-media {
    min-height: 200px;
  }

  .page-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
  }

  .aside-bar {
    position: static;
  }

  .aside-sidebar {
    order: -1;
  }

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

  .bottom-nav {
    height: 56px;
  }

  h1 {
    font-size: clamp(1.6rem, 7vw, 2.4rem);
  }

  .wrap {
    padding: 0 1rem;
  }

  .site-footer {
    padding: 1.25rem 1rem;
  }
}

@media (max-width: 480px) {
  .hero-text {
    padding: 2rem 1rem;
  }

  .btn-primary {
    padding: 0.7rem 1.5rem;
  }
}

/* ── Print / Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Parallax placeholder (JS-driven) ── */
.parallax-hero {
  will-change: transform;
}
