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

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

:root {
  --green: #00ff80;
  --blue: #0000ff;
  --black: #000000;
  --white: #ffffff;
  --border: 3px solid var(--green);
  --border-blue: 3px solid var(--blue);
  --border-white: 2px solid var(--white);
  --radius: 28px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'Inter', ui-monospace, monospace;
}

html {
  font-size: 16px;
  scroll-behavior: auto;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: none;
}
a:hover {
  color: var(--blue);
  text-decoration: underline;
  background: var(--green);
  color: var(--black);
}
a:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

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

/* ── Typography ── */
h1 {
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--green);
  margin-bottom: 1.2rem;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
  margin-bottom: 0.4rem;
}

p {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.8rem;
}

small {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

time {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

/* ── Eyebrow / eyebrow label ── */
.eyebrow {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: 0.2em 0.7em;
  border-radius: 4px;
  margin-bottom: 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  font-weight: 700;
}

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  border-bottom: var(--border);
}

.brand-row {
  padding: 0.9rem 1.5rem 0.7rem;
  border-bottom: 2px solid rgba(0,255,128,0.18);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--green);
  letter-spacing: 0.02em;
  min-height: 40px;
}
.brand-link:hover {
  background: transparent;
  text-decoration: none;
  color: var(--white);
}

.brand-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.brand-icon-fallback {
  font-size: 1.4rem;
  color: var(--green);
  line-height: 1;
}
.brand-name {
  max-width: 70vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* nav > p > a pattern */
.main-nav {
  padding: 0 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.main-nav p {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  color: inherit;
}

.main-nav p a {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  border-right: 1px solid rgba(0,255,128,0.2);
  letter-spacing: 0.04em;
  white-space: nowrap;
  min-height: 44px;
  text-decoration: none;
}
.main-nav p a:first-child {
  padding-left: 0;
}
.main-nav p a:last-child {
  border-right: none;
}
.main-nav p a:hover {
  background: var(--green);
  color: var(--black);
  text-decoration: none;
}
.main-nav p a[aria-current="page"] {
  color: var(--green);
  border-bottom: 3px solid var(--green);
}

/* ── SECTION COMMON ── */
.section-marker {
  margin: 0;
  padding: 0;
}

.section-marker span {
  display: block;
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 900;
  color: rgba(0,255,128,0.06);
  line-height: 1;
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
}

/* main > div > figure/aside pattern */
.content-section,
.topic-body,
.topic-children,
.topic-related,
.article-body,
.article-footer-section,
.about-content-section,
.about-nav-section,
.privacy-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  position: relative;
  padding: 3rem 1.5rem;
  border-bottom: 1px solid rgba(0,255,128,0.12);
}

.section-aside {
  position: relative;
}

/* ── HOME ── */
.home-main {}

/* Hero */
.hero-section {
  min-height: 45vh;
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
  padding: 3rem 1.5rem 2rem;
  border-bottom: var(--border);
  overflow: hidden;
}

.hero-figure {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  pointer-events: none;
  margin: 0;
}

.hero-bg-num {
  font-size: clamp(8rem, 28vw, 22rem);
  font-weight: 900;
  color: rgba(0,255,128,0.05);
  line-height: 1;
  letter-spacing: -0.06em;
  user-select: none;
}

.hero-aside {
  position: relative;
  z-index: 1;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  min-height: 40vh;
  max-width: 900px;
  margin-left: auto;
}

.hero-aside h1 {
  margin: 0.5rem 0 1rem;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  text-align: right;
}

/* Topic grid */
.topic-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.topic-grid li article {
  border: var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  background: var(--black);
  position: relative;
  overflow: hidden;
}

.topic-grid li article::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--green);
  opacity: 0;
  border-radius: var(--radius);
  transition: none;
}

.topic-grid li article:hover::before {
  opacity: 0.04;
}

.topic-grid li article h3 a {
  color: var(--green);
  font-size: 1rem;
  font-weight: 700;
}
.topic-grid li article h3 a:hover {
  background: var(--green);
  color: var(--black);
  text-decoration: none;
}

.topic-grid li article p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  margin: 0;
}

/* Article list */
.article-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 1.2rem;
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.article-list li article {
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid rgba(0,255,128,0.15);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.article-list li:last-child article {
  border-bottom: none;
}
.article-list li article h3 {
  font-size: 0.95rem;
}
.article-list li article h3 a {
  color: var(--white);
}
.article-list li article h3 a:hover {
  background: var(--green);
  color: var(--black);
}
.article-list li article p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
}
.article-list li article time {
  font-size: 0.75rem;
}

/* page content wrap */
.page-content-wrap {
  max-width: 800px;
}

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

.page-content-wrap h3,
.article-content h3 {
  margin-top: 1.5rem;
  color: var(--white);
}

.page-content-wrap ul,
.article-content ul,
.privacy-content ul {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.page-content-wrap li,
.article-content li,
.privacy-content li {
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

.page-content-wrap a,
.article-content a,
.privacy-content a {
  color: var(--green);
  text-decoration: underline;
}

/* content-section alt */
.content-section--alt {
  background: rgba(0,0,255,0.04);
}

/* ── TOPIC PAGE ── */
.topic-main {}

.topic-hero {
  min-height: 45vh;
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
  padding: 3rem 1.5rem 2rem;
  border-bottom: var(--border-blue);
  overflow: hidden;
}

.topic-hero-fig {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
  margin: 0;
  padding: 1rem;
}

.topic-bg-text {
  font-size: clamp(6rem, 22vw, 18rem);
  font-weight: 900;
  color: rgba(0,0,255,0.08);
  line-height: 1;
  letter-spacing: -0.06em;
  user-select: none;
}

.topic-hero-aside {
  position: relative;
  z-index: 1;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 38vh;
}

.topic-hero-aside h1 {
  margin: 0.5rem 0 0.8rem;
}

.pub-date {
  display: inline-block;
  margin-top: 0.4rem;
}

/* child list */
.child-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.2rem;
}

.child-card {
  border: var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 1rem;
}

.card-num {
  grid-column: 1;
  grid-row: 1 / 4;
  font-size: 2.4rem;
  font-weight: 900;
  color: rgba(0,255,128,0.18);
  line-height: 1;
  align-self: center;
  font-variant-numeric: tabular-nums;
}

.child-card h3 {
  grid-column: 2;
  grid-row: 1;
}
.child-card h3 a {
  color: var(--green);
  font-size: 1rem;
}
.child-card h3 a:hover {
  background: var(--green);
  color: var(--black);
  text-decoration: none;
}
.child-card p {
  grid-column: 2;
  grid-row: 2;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.55);
  margin: 0;
}
.child-card time {
  grid-column: 2;
  grid-row: 3;
  font-size: 0.75rem;
  margin-top: 0.3rem;
}

/* related links */
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.related-link {
  display: inline-flex;
  align-items: center;
  border: var(--border-blue);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--white);
  min-height: 40px;
  text-decoration: none;
  transition: none;
}
.related-link:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  text-decoration: none;
}

/* ── ARTICLE PAGE ── */
.article-main {}

.article-hero {
  min-height: 45vh;
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
  padding: 3rem 1.5rem 2rem;
  border-bottom: var(--border);
  overflow: hidden;
}

.article-hero-fig {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  pointer-events: none;
  margin: 0;
  padding: 1.5rem;
}

.article-fig-placeholder {
  font-size: clamp(6rem, 20vw, 16rem);
  font-weight: 900;
  color: rgba(0,255,128,0.05);
  line-height: 1;
  user-select: none;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  border-radius: var(--radius);
}

.article-hero-aside {
  position: relative;
  z-index: 1;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 38vh;
}

.article-hero-aside h1 {
  margin: 0.5rem 0 0.8rem;
}

.article-meta {
  display: flex;
  gap: 1.2rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* article body: two column with sidebar */
.article-body {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  gap: 2rem;
  padding: 3rem 1.5rem;
  border-bottom: 1px solid rgba(0,255,128,0.12);
}

.article-sidebar {
  border: var(--border-blue);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  order: 2;
}

.sidebar-title {
  font-size: 1rem;
  color: var(--blue);
  margin-bottom: 0.8rem;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sidebar-links a {
  font-size: 0.84rem;
  color: var(--white);
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(0,0,255,0.2);
  text-decoration: none;
}
.sidebar-links a:hover {
  background: transparent;
  color: var(--green);
  text-decoration: underline;
}

.article-content {
  order: 1;
  max-width: 720px;
}

.article-content h2 {
  margin-top: 2rem;
}
.article-content h3 {
  margin-top: 1.4rem;
  color: var(--white);
}
.article-content p {
  margin-bottom: 1rem;
}
.article-content ul,
.article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.article-content li {
  margin-bottom: 0.4rem;
}
.article-content a {
  color: var(--green);
  text-decoration: underline;
}
.article-content time {
  display: inline-block;
  margin: 0.5rem 0;
}

/* ── ABOUT PAGE ── */
.about-main {}

.about-hero {
  min-height: 45vh;
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
  padding: 3rem 1.5rem 2rem;
  border-bottom: var(--border);
  overflow: hidden;
}

.about-hero-fig {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
  margin: 0;
  padding: 2rem;
}

.about-bg-text {
  font-size: clamp(5rem, 18vw, 15rem);
  font-weight: 900;
  color: rgba(0,255,128,0.05);
  line-height: 1;
  letter-spacing: -0.05em;
  user-select: none;
}

.about-hero-aside {
  position: relative;
  z-index: 1;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 38vh;
}

.about-hero-aside h1 {
  margin: 0.5rem 0 0.8rem;
}

/* ── PRIVACY PAGE ── */
.privacy-main {}

.privacy-hero {
  min-height: 40vh;
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
  padding: 3rem 1.5rem 2rem;
  border-bottom: var(--border-blue);
  overflow: hidden;
}

.privacy-hero-fig {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  pointer-events: none;
  margin: 0;
  padding: 1rem;
}

.privacy-bg-text {
  font-size: clamp(5rem, 18vw, 14rem);
  font-weight: 900;
  color: rgba(0,0,255,0.06);
  line-height: 1;
  letter-spacing: -0.05em;
  user-select: none;
}

.privacy-hero-aside {
  position: relative;
  z-index: 1;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 34vh;
}

.privacy-hero-aside h1 {
  margin: 0.5rem 0 0.8rem;
}

.privacy-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3rem 1.5rem;
  border-bottom: 1px solid rgba(0,255,128,0.12);
}

.privacy-sidebar {
  border: var(--border-blue);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  order: 2;
}

.privacy-content {
  order: 1;
  max-width: 720px;
}
.privacy-content h2 {
  margin-top: 2rem;
}
.privacy-content h3 {
  margin-top: 1.4rem;
  color: var(--white);
}
.privacy-content p {
  margin-bottom: 1rem;
}
.privacy-content a {
  color: var(--green);
  text-decoration: underline;
}

/* ── FOOTER ── */
.site-footer {
  padding: 2rem 1.5rem;
  border-top: var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--black);
}

.footer-brand {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}
.footer-brand a {
  color: var(--green);
  margin: 0 0.2rem;
}
.footer-brand a:hover {
  background: var(--green);
  color: var(--black);
  text-decoration: none;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.5;
}

/* ── Hover Micro-interactions & Stagger ── */
@media (prefers-reduced-motion: no-preference) {
  .topic-grid li {
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 0.35s forwards;
  }
  .topic-grid li:nth-child(1) { animation-delay: 0.05s; }
  .topic-grid li:nth-child(2) { animation-delay: 0.12s; }
  .topic-grid li:nth-child(3) { animation-delay: 0.19s; }
  .topic-grid li:nth-child(4) { animation-delay: 0.26s; }

  .child-list li {
    opacity: 0;
    transform: translateX(-10px);
    animation: fadeRight 0.3s forwards;
  }
  .child-list li:nth-child(1) { animation-delay: 0.04s; }
  .child-list li:nth-child(2) { animation-delay: 0.1s; }
  .child-list li:nth-child(3) { animation-delay: 0.16s; }
  .child-list li:nth-child(4) { animation-delay: 0.22s; }
  .child-list li:nth-child(5) { animation-delay: 0.28s; }

  .article-list li {
    opacity: 0;
    animation: fadeUp 0.28s forwards;
  }
  .article-list li:nth-child(1) { animation-delay: 0.05s; }
  .article-list li:nth-child(2) { animation-delay: 0.1s; }
  .article-list li:nth-child(3) { animation-delay: 0.15s; }
  .article-list li:nth-child(4) { animation-delay: 0.2s; }
  .article-list li:nth-child(5) { animation-delay: 0.25s; }
  .article-list li:nth-child(6) { animation-delay: 0.3s; }

  .topic-grid li article:hover {
    transform: translateY(-3px);
    border-color: var(--green);
  }

  .related-link:hover {
    transform: scale(1.03);
  }

  @keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes fadeRight {
    to { opacity: 1; transform: translateX(0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .topic-grid li,
  .child-list li,
  .article-list li {
    opacity: 1;
    transform: none;
  }
}

/* ── Tablet 768px ── */
@media (min-width: 768px) {
  .brand-row {
    padding: 1rem 2.5rem 0.8rem;
  }

  .main-nav {
    padding: 0 2.5rem;
  }

  .hero-section,
  .topic-hero,
  .about-hero,
  .privacy-hero,
  .article-hero {
    padding: 4rem 2.5rem 3rem;
  }

  .content-section,
  .topic-body,
  .topic-children,
  .topic-related,
  .article-body,
  .article-footer-section,
  .about-content-section,
  .about-nav-section,
  .privacy-body {
    padding: 3.5rem 2.5rem;
  }

  .topic-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-body {
    grid-template-columns: 1fr 260px;
    align-items: start;
    gap: 2.5rem;
  }

  .article-sidebar {
    order: 2;
    position: sticky;
    top: 120px;
  }

  .article-content {
    order: 1;
  }

  .privacy-body {
    grid-template-columns: 1fr 240px;
    align-items: start;
    gap: 2.5rem;
  }

  .privacy-sidebar {
    order: 2;
    position: sticky;
    top: 120px;
  }

  .privacy-content {
    order: 1;
  }

  .site-footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1.8rem 2.5rem;
  }
}

/* ── Desktop 1100px ── */
@media (min-width: 1100px) {
  .brand-row {
    padding: 1.1rem 4rem 0.9rem;
  }

  .main-nav {
    padding: 0 4rem;
  }

  .hero-section,
  .topic-hero,
  .about-hero,
  .privacy-hero,
  .article-hero {
    padding: 5rem 4rem 3.5rem;
  }

  .content-section,
  .topic-body,
  .topic-children,
  .topic-related,
  .article-footer-section,
  .about-content-section,
  .about-nav-section {
    padding: 4rem 4rem;
  }

  .article-body,
  .privacy-body {
    padding: 4rem 4rem;
  }

  .topic-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-aside,
  .topic-hero-aside,
  .about-hero-aside,
  .privacy-hero-aside,
  .article-hero-aside {
    max-width: 1100px;
    margin-left: auto;
  }

  .site-footer {
    padding: 2rem 4rem;
  }
}

/* ── Max content width ── */
@media (min-width: 1400px) {
  .brand-row,
  .main-nav,
  .hero-section,
  .topic-hero,
  .about-hero,
  .privacy-hero,
  .article-hero,
  .content-section,
  .topic-body,
  .topic-children,
  .topic-related,
  .article-body,
  .article-footer-section,
  .about-content-section,
  .about-nav-section,
  .privacy-body,
  .site-footer {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
  }
}
