@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&family=Crimson+Pro:wght@400;500;600;700&display=swap');

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

:root {
  --black: #000000;
  --white: #ffffff;
  --gray-100: #f5f5f5;
  --gray-200: #e8e8e8;
  --gray-400: #999999;
  --gray-600: #555555;
  --accent: #c00000;
  --font-display: 'Crimson Pro', Georgia, 'Times New Roman', serif;
  --font-body: 'Atkinson Hyperlegible', 'Helvetica Neue', Arial, sans-serif;
  --nav-h: 64px;
  --max-w: 1200px;
  --prose-w: 720px;
}

html {
  font-size: 18px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  min-height: 100vh;
  padding-bottom: var(--nav-h);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }

/* ─── Bottom Navigation ─── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: var(--black);
  color: var(--white);
  z-index: 100;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.bottom-nav::-webkit-scrollbar { display: none; }

.bottom-nav ol {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 0;
  min-width: max-content;
  padding: 0 1rem;
}

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

.bottom-nav ol li a {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  padding: 0 0.85rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  white-space: nowrap;
  transition: color 0.15s;
  min-height: 40px;
}
.bottom-nav ol li a:hover { color: var(--accent); text-decoration: none; }

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

main { flex: 1; }

.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── Content + Aside Layout ─── */
.page-content-with-aside,
.topic-content-with-aside,
.article-content-with-aside,
.about-content-with-aside,
.privacy-content-with-aside {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4rem;
  align-items: start;
}

/* ─── Aside ─── */
.page-aside {
  position: sticky;
  top: 2rem;
  padding: 2rem;
  border-left: 3px solid var(--black);
}

.page-aside small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.aside-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.page-aside ul li {
  border-bottom: 1px solid var(--gray-200);
}

.page-aside ul li a {
  display: block;
  padding: 0.6rem 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--gray-600);
  transition: color 0.15s;
}
.page-aside ul li a:hover { color: var(--black); text-decoration: none; }

.aside-more {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.02em;
}
.aside-more:hover { color: var(--accent); text-decoration: none; }

/* ─── Hero (Home) ─── */
.hero-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: var(--black);
  padding: 0;
  margin-bottom: 0;
}

.hero-article {
  width: 100%;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 8rem 2rem 6rem;
  text-align: left;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 2rem;
  max-width: 900px;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: var(--gray-400);
  max-width: 560px;
  margin-bottom: 3rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 2rem;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}
.btn-primary:hover { background: var(--accent); color: var(--white); text-decoration: none; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 2rem;
  border: 2px solid rgba(255,255,255,0.4);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 4px;
  transition: border-color 0.15s;
}
.btn-ghost:hover { border-color: var(--white); text-decoration: none; }

/* ─── Home Content Section ─── */
.home-content-section {
  padding: 5rem 0 2rem;
}

.home-content-article {
  width: 100%;
}

.home-content-main {
  max-width: var(--prose-w);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ─── Topics Grid ─── */
.topics-section {
  padding: 4rem 0;
  border-top: 2px solid var(--black);
}

.topics-section > small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.topics-section > h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 3rem;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
}

.topic-card {
  border-top: 2px solid var(--black);
  background: var(--white);
  border-radius: 4px;
  transition: background 0.15s;
}
.topic-card:hover { background: var(--gray-100); }

.topic-card a {
  display: block;
  padding: 2rem;
  height: 100%;
}
.topic-card a:hover { text-decoration: none; }

.card-eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.topic-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.card-count {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gray-400);
}

/* ─── Recent List ─── */
.recent-section {
  padding: 4rem 0;
  border-top: 2px solid var(--black);
}

.recent-section > small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.recent-section > h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 2rem;
}

.recent-list { display: flex; flex-direction: column; }

.recent-item {
  border-bottom: 1px solid var(--gray-200);
}

.recent-item a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem 0;
  transition: color 0.15s;
}
.recent-item a:hover { color: var(--accent); text-decoration: none; }

.recent-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  flex: 1;
}

.recent-item time {
  font-size: 0.78rem;
  color: var(--gray-400);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─── Page Section (default layout) ─── */
.page-section {
  padding: 6rem 0 4rem;
}

.page-article {
  width: 100%;
}

.page-header {
  margin-bottom: 3rem;
  border-bottom: 2px solid var(--black);
  padding-bottom: 2rem;
}

.page-meta {
  font-size: 0.8rem;
  color: var(--gray-400);
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
}

.page-content-main {
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ─── Topic Layout ─── */
.topic-hero {
  background: var(--black);
  padding: 0;
}

.topic-hero-article {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 7rem 2rem 5rem;
}

.topic-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.topic-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.topic-desc {
  font-size: 1.1rem;
  color: var(--gray-400);
  max-width: 600px;
  line-height: 1.6;
}

.topic-body-section {
  padding: 4rem 0;
}

.topic-body-article { width: 100%; }

.topic-content-with-aside { margin-bottom: 0; }

.topic-content-main { min-width: 0; }

.topic-prose {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--gray-200);
}

/* ─── Child Cards ─── */
.child-list {
  margin-top: 3rem;
}

.child-list > small {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.child-list > h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 2rem;
}

.child-card {
  border-bottom: 1px solid var(--gray-200);
  transition: background 0.15s;
  border-radius: 4px 4px 0 0;
}
.child-card:hover { background: var(--gray-100); }

.child-card a {
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.5rem 0.5rem;
}
.child-card a:hover { text-decoration: none; }

.child-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--gray-200);
  line-height: 1;
  flex-shrink: 0;
  min-width: 3rem;
}

.child-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.4rem;
}

.child-body p {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: 0.4rem;
}

.child-body time {
  font-size: 0.75rem;
  color: var(--gray-400);
}

/* ─── Article Layout ─── */
.article-section {
  padding: 4rem 0;
}

.article-body { width: 100%; }

.breadcrumb {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--gray-600); }
.breadcrumb a:hover { color: var(--black); text-decoration: none; }
.breadcrumb span[aria-hidden] { color: var(--gray-400); }

.article-header {
  margin-bottom: 3rem;
  border-bottom: 2px solid var(--black);
  padding-bottom: 2rem;
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-bottom: 1.25rem;
  letter-spacing: 0.03em;
}

.article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.article-lead {
  font-size: 1.15rem;
  color: var(--gray-600);
  line-height: 1.6;
  max-width: 620px;
}

.article-content-with-aside { align-items: start; }

.article-prose {
  min-width: 0;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ─── About Layout ─── */
.about-section { padding: 6rem 0 4rem; }
.about-article { width: 100%; }

.about-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--black);
}

.about-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.about-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
}

.about-prose {
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ─── Privacy Layout ─── */
.privacy-section { padding: 6rem 0 4rem; }
.privacy-article { width: 100%; }

.privacy-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--black);
}

.privacy-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.privacy-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.privacy-date {
  font-size: 0.82rem;
  color: var(--gray-400);
}

.privacy-prose {
  font-size: 1rem;
  line-height: 1.8;
}

/* ─── Prose Content Styling ─── */
.page-content-main h2,
.topic-prose h2,
.article-prose h2,
.about-prose h2,
.privacy-prose h2,
.home-content-main h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 2.5rem 0 1rem;
  line-height: 1.15;
}

.page-content-main h3,
.topic-prose h3,
.article-prose h3,
.about-prose h3,
.privacy-prose h3,
.home-content-main h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  line-height: 1.2;
}

.page-content-main p,
.topic-prose p,
.article-prose p,
.about-prose p,
.privacy-prose p,
.home-content-main p {
  margin-bottom: 1.25rem;
}

.page-content-main ul,
.page-content-main ol,
.topic-prose ul,
.topic-prose ol,
.article-prose ul,
.article-prose ol,
.about-prose ul,
.about-prose ol,
.privacy-prose ul,
.privacy-prose ol {
  margin: 1rem 0 1.5rem 1.5rem;
  list-style: disc;
}

.page-content-main ol,
.topic-prose ol,
.article-prose ol,
.about-prose ol,
.privacy-prose ol { list-style: decimal; }

.page-content-main li,
.topic-prose li,
.article-prose li,
.about-prose li,
.privacy-prose li { margin-bottom: 0.4rem; }

.page-content-main a,
.topic-prose a,
.article-prose a,
.about-prose a,
.privacy-prose a {
  color: var(--accent);
  text-decoration: underline;
}

.page-content-main strong,
.topic-prose strong,
.article-prose strong,
.about-prose strong,
.privacy-prose strong { font-weight: 700; }

.page-content-main blockquote,
.topic-prose blockquote,
.article-prose blockquote {
  border-left: 4px solid var(--black);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 1.5rem 0;
  color: var(--gray-600);
  font-style: italic;
}

/* ─── Footer ─── */
footer {
  background: var(--black);
  color: var(--white);
  padding-bottom: var(--nav-h);
}

.footer-brand {
  padding: 5rem 2rem 3rem;
  max-width: var(--max-w);
  margin: 0 auto;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--white);
}

.footer-nav {
  display: flex;
  gap: 3rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1;
}

.footer-col a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.4;
  transition: color 0.15s;
  min-height: 40px;
  display: flex;
  align-items: center;
}
.footer-col a:hover { color: var(--white); text-decoration: none; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5rem 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.03em;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  transition: color 0.15s;
  min-height: 40px;
  display: flex;
  align-items: center;
}
.footer-links a:hover { color: var(--white); text-decoration: none; }

/* ─── Scroll Reveal ─── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .page-content-with-aside,
  .topic-content-with-aside,
  .article-content-with-aside,
  .about-content-with-aside,
  .privacy-content-with-aside {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .page-aside {
    position: static;
    border-left: none;
    border-top: 2px solid var(--black);
    padding: 2rem 0;
  }

  .footer-nav {
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  :root { --nav-h: 56px; }

  .wrap { padding: 0 1.25rem; }

  .hero-inner { padding: 5rem 1.25rem 4rem; }

  .hero-h1 { font-size: clamp(2.5rem, 13vw, 5rem); }

  .topic-hero-article { padding: 4rem 1.25rem 3rem; }

  .page-section,
  .about-section,
  .privacy-section { padding: 4rem 0 3rem; }

  .article-section { padding: 3rem 0; }

  .topics-section,
  .recent-section { padding: 3rem 0; }

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

  .footer-brand { padding: 3rem 1.25rem 2rem; }
  .footer-nav { padding: 2rem 1.25rem; }
  .footer-bottom { padding: 1.25rem; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .child-card a { flex-direction: column; gap: 0.25rem; }
  .child-num { font-size: 1.25rem; min-width: auto; }

  .recent-item a { flex-direction: column; align-items: flex-start; gap: 0.25rem; }

  .bottom-nav ol { justify-content: flex-start; }
}
