@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Merriweather:wght@300;400;700&display=swap');

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: #f5f5f5;
  color: #1f1f1f;
}

body {
  font-family: 'Merriweather', 'Noto Serif SC', 'Songti SC', Georgia, serif;
  font-weight: 400;
  line-height: 1.7;
  min-height: 100vh;
  background: #f5f5f5;
  color: #1f1f1f;
  padding-bottom: 80px;
}

/* ===== SCROLL MARGIN for fixed nav ===== */
section[id] {
  scroll-margin-top: 88px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
  font-family: 'Abril Fatface', 'Noto Serif SC', serif;
  font-weight: 400;
  line-height: 1.2;
  color: #1f1f1f;
}

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

p { margin-bottom: 1rem; font-size: 1rem; line-height: 1.75; }
a { color: #1f1f1f; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

small {
  display: block;
  font-family: 'Merriweather', serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 0.35rem;
}

/* ===== SITE WRAPPER ===== */
.site-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== HERO ===== */
.hero-section {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0 32px;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.hero-badge {
  display: inline-block;
  background: #1f1f1f;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 14px;
  border-radius: 999px;
  font-family: 'Merriweather', serif;
}

.hero-title {
  font-family: 'Abril Fatface', serif;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.1;
  color: #1f1f1f;
}

.hero-sub {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.7;
  max-width: 480px;
  margin: 0;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1f1f1f;
  color: #fff;
  padding: 14px 36px;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  font-family: 'Merriweather', serif;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-cta:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(31,31,31,0.18);
  text-decoration: none;
}

.hero-media {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  min-height: 320px;
  background: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-media--empty {
  background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
}
.hero-media .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}

.hero-deco {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.deco-tag {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(31,31,31,0.10);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #1f1f1f;
  font-family: 'Merriweather', serif;
}

/* ===== MAIN / WRAP ===== */
main { padding: 32px 0 48px; }

.wrap { width: 100%; }

/* ===== CONTENT SECTION ===== */
.content-section { width: 100%; }

/* ===== BENTO ARTICLE (4-layer: main > article.wrap > section > div) ===== */
.bento-article {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: start;
}

/* ===== ASIDE ===== */
.content-aside {
  position: sticky;
  top: 96px;
  order: 2;
}

.aside-inner {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(31,31,31,0.08);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.aside-eyebrow {
  color: #888;
  margin-bottom: 4px;
}

.aside-title {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.aside-nav-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aside-nav-list li a {
  display: block;
  padding: 10px 12px;
  min-height: 40px;
  border-radius: 10px;
  font-size: 0.88rem;
  color: #1f1f1f;
  transition: background 0.18s;
  font-family: 'Merriweather', serif;
  line-height: 1.4;
}
.aside-nav-list li a:hover {
  background: #f5f5f5;
  text-decoration: none;
}

.aside-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  border-top: 1px solid rgba(31,31,31,0.08);
  padding-top: 16px;
}
.stat-num {
  font-family: 'Abril Fatface', serif;
  font-size: 2.4rem;
  line-height: 1;
  color: #1f1f1f;
}
.stat-label {
  font-size: 0.8rem;
  color: #666;
  font-family: 'Merriweather', serif;
}

/* ===== BENTO CONTENT (page.content goes here) ===== */
.bento-content {
  order: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* --- Bento sections inside page.content --- */
.bento-content section {
  background: #ffffff;
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  position: relative;
}
.bento-content section:hover {
  transform: scale(1.01);
  box-shadow: 0 8px 28px rgba(0,0,0,0.09);
}

.bento-content section h2 {
  font-family: 'Abril Fatface', serif;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  margin-bottom: 16px;
  border-bottom: 2px solid #f5f5f5;
  padding-bottom: 10px;
}

.bento-content section h3 {
  font-size: 1.1rem;
  margin: 20px 0 8px;
  font-family: 'Merriweather', serif;
  font-weight: 700;
}

.bento-content section p {
  color: #333;
  font-size: 1rem;
}

.bento-content section ul,
.bento-content section ol {
  padding-left: 1.4em;
  margin-bottom: 1rem;
}

.bento-content section li {
  margin-bottom: 0.45rem;
  font-size: 1rem;
  line-height: 1.7;
}

.bento-content section strong {
  font-weight: 700;
  color: #1f1f1f;
}

/* Glass variant for alternating cards */
.bento-content section:nth-child(even) {
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(31,31,31,0.07);
}

/* ===== FOOTER ===== */
.site-footer {
  background: #1f1f1f;
  color: #fff;
  border-radius: 24px 24px 0 0;
  margin-top: 48px;
  overflow: hidden;
}

.footer-cta-block {
  background: #1f1f1f;
  padding: 48px 32px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.footer-cta-text {
  font-family: 'Abril Fatface', serif;
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: #fff;
  margin: 0;
}

.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #1f1f1f;
  padding: 14px 40px;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  font-family: 'Merriweather', serif;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.footer-cta-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(255,255,255,0.20);
  text-decoration: none;
}

.footer-bottom {
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-dl {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-dt {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  font-family: 'Merriweather', serif;
}

.footer-dd {
  font-size: 0.88rem;
  color: #ccc;
  font-family: 'Merriweather', serif;
}

.footer-dd a {
  color: #ccc;
  transition: color 0.15s;
}
.footer-dd a:hover { color: #fff; }

.footer-logo { filter: brightness(0) invert(1); }

.footer-brand-text {
  font-family: 'Abril Fatface', serif;
  font-size: 1.1rem;
  color: #fff;
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(31,31,31,0.08);
  padding: 8px 12px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

.bottom-nav-ol {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  max-width: 1280px;
  margin: 0 auto;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.bottom-nav-ol::-webkit-scrollbar { display: none; }

.bottom-nav-li {
  flex-shrink: 0;
}

.bottom-nav-a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 10px;
  min-height: 44px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-family: 'Merriweather', serif;
  font-weight: 700;
  color: #1f1f1f;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
}
.bottom-nav-a:hover {
  background: #1f1f1f;
  color: #fff;
  text-decoration: none;
}

.bottom-nav-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

.brand-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1f1f1f;
  color: #fff;
  padding: 10px 14px;
  min-height: 44px;
  border-radius: 999px;
  font-family: 'Abril Fatface', serif;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: transform 0.18s;
}
.brand-pill:hover { transform: scale(1.05); text-decoration: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .bento-article {
    grid-template-columns: 1fr;
  }
  .content-aside {
    position: static;
    order: -1;
  }
  .aside-inner {
    border-radius: 16px;
  }
}

@media (max-width: 700px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero-media {
    min-height: 220px;
    order: -1;
  }
  .hero-text { align-items: center; text-align: center; }
  .hero-sub { text-align: center; }
  .hero-section { min-height: auto; padding: 32px 0 24px; }
  .bento-content section { padding: 24px 18px; border-radius: 16px; }
  .site-footer { border-radius: 16px 16px 0 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-cta-block { padding: 32px 20px 28px; }
  .site-wrapper { padding: 0 12px; }
}

@media (max-width: 480px) {
  .bottom-nav-a { padding: 10px 7px; font-size: 0.68rem; min-height: 44px; }
  .brand-pill { font-size: 0.78rem; padding: 10px 10px; min-height: 44px; }
  h1 { font-size: 1.9rem; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .bento-content section:hover { transform: none; }
  .hero-cta:hover, .footer-cta-btn:hover, .brand-pill:hover { transform: none; }
}

/* ===== UTILITIES ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
