:root {
  color-scheme: light;
  --ink: #202722;
  --muted: #5d675f;
  --line: #d7dfd4;
  --paper: #f5f7ef;
  --surface: #fffef9;
  --surface-alt: #eef4ed;
  --accent: #356d63;
  --clay: #b46640;
  --deep: #1d2f2a;
  --warm: #f8efe4;
  --shadow: 0 18px 44px rgba(31, 45, 41, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
  line-height: 1.72;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 254, 249, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.topbar-inner,
.page-hero,
main,
.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand {
  font-weight: 900;
  text-decoration: none;
  color: var(--deep);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.nav a,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 9px 14px;
  color: var(--deep);
  font-weight: 900;
  text-decoration: none;
  line-height: 1.2;
}

.button.primary,
.nav a[aria-current="page"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #fffef9;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(52px, 8vw, 96px) 0 clamp(36px, 6vw, 68px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--deep);
  letter-spacing: 0;
  line-height: 1.24;
}

h1 {
  font-size: clamp(2.25rem, 5.2vw, 4.7rem);
}

h2 {
  font-size: clamp(1.8rem, 3.8vw, 3rem);
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}

.lead {
  margin: 18px 0 0;
  color: #44534b;
  font-size: clamp(1.04rem, 2vw, 1.28rem);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-card,
.note-card,
.article-card,
.proof-card,
.profile-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: clamp(22px, 3vw, 34px);
  background: linear-gradient(150deg, var(--warm), var(--surface) 54%, var(--surface-alt));
}

.hero-stat {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.hero-stat div {
  border: 1px solid rgba(53, 109, 99, 0.18);
  border-radius: 8px;
  background: rgba(255, 254, 249, 0.7);
  padding: 14px;
}

.hero-stat strong {
  display: block;
  color: var(--deep);
  font-size: 1.5rem;
  line-height: 1.1;
}

.hero-stat span,
.note-card p,
.article-card p,
.proof-card p,
.profile-card p,
.section-head p,
.callout p {
  color: var(--muted);
}

.band {
  padding: clamp(42px, 7vw, 82px) 0;
  border-top: 1px solid rgba(53, 109, 99, 0.12);
}

.section-head {
  max-width: 860px;
  margin-bottom: 24px;
  padding-left: 18px;
  border-left: 4px solid var(--accent);
}

.section-head p {
  margin: 14px 0 0;
  font-size: 1.04rem;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 14px;
}

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

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-card,
.proof-card,
.note-card,
.article-card {
  padding: clamp(18px, 2.6vw, 28px);
}

.profile-card small,
.proof-card small,
.article-card small,
.note-card small {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-weight: 900;
  font-size: 0.78rem;
}

.article-list {
  display: grid;
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}

.article-card {
  border-left: 4px solid var(--accent);
  box-shadow: 0 14px 34px rgba(31, 45, 41, 0.07);
}

.article-card p {
  margin: 12px 0 0;
}

.reader-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.reader-split div,
.callout {
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  background: #eef6ee;
  padding: 14px;
}

.reader-split strong {
  color: var(--deep);
}

.timeline {
  display: grid;
  gap: 12px;
  counter-reset: item;
}

.timeline p {
  position: relative;
  margin: 0;
  padding: 16px 18px 16px 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
}

.timeline p::before {
  counter-increment: item;
  content: counter(item);
  position: absolute;
  left: 16px;
  top: 15px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

.footer {
  border-top: 1px solid var(--line);
  background: #edf3ee;
}

.footer-inner {
  padding: 24px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 760px) {
  .topbar-inner,
  .page-hero,
  main,
  .footer-inner {
    width: min(100% - 32px, 1120px);
  }

  .topbar-inner {
    display: grid;
    align-items: stretch;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .nav a,
  .button {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    font-size: 0.84rem;
  }

  .page-hero,
  .grid-2,
  .grid-3,
  .reader-split,
  .hero-stat {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.24rem;
  }

  .hero-actions,
  .button-row {
    display: grid;
  }
}
