:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #5c6978;
  --paper: #fffefb;
  --wash: #f5f8f6;
  --line: #dfe7e2;
  --green: #075e4b;
  --green-2: #0b7a61;
  --mint: #dff4eb;
  --orange: #ef6c35;
  --navy: #16324a;
  --shadow: 0 18px 50px rgba(12, 49, 39, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 0%, rgba(223, 244, 235, .9), transparent 34rem),
    var(--paper);
  color: var(--ink);
  font-family: Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--orange); }

.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(223, 231, 226, .88);
  background: rgba(255, 254, 251, .92);
  backdrop-filter: blur(14px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--green);
  color: white;
  font-size: 13px;
  box-shadow: 0 8px 20px rgba(7, 94, 75, .2);
}

.brand small { color: var(--green); font-size: 11px; letter-spacing: .12em; }

.nav-links { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 700; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links .primary { color: white; background: var(--green); border-radius: 999px; padding: 9px 15px; }

.hero { padding: clamp(64px, 9vw, 118px) 0 58px; }
.eyebrow { color: var(--green); font-size: 12px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }

h1, h2, h3 { color: var(--navy); line-height: 1.2; letter-spacing: -.035em; }
h1 { max-width: 850px; margin: 14px 0 20px; font-size: clamp(40px, 7vw, 76px); }
h2 { margin: 0 0 12px; font-size: clamp(26px, 4vw, 38px); }
h3 { margin: 0 0 8px; font-size: 19px; }

.lede { max-width: 760px; margin: 0; color: var(--muted); font-size: clamp(17px, 2vw, 21px); }

.status {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  width: fit-content;
  padding: 12px 16px;
  border: 1px solid #b9dfd0;
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
  color: var(--muted);
  font-size: 13px;
}

.status strong { color: var(--green); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #20a879; box-shadow: 0 0 0 5px rgba(32, 168, 121, .13); }

.section { padding: 54px 0; }
.section-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 24px; }
.section-head p { max-width: 610px; margin: 0; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--shadow);
}
.card p { margin: 0 0 15px; color: var(--muted); font-size: 14px; }
.card code, .endpoint {
  display: block;
  overflow-wrap: anywhere;
  color: var(--green);
  font: 600 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.articles { display: grid; gap: 12px; }
.article-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 21px 23px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  text-decoration: none;
  color: var(--ink);
}
.article-row:hover { border-color: #a7cdbf; color: var(--ink); transform: translateY(-1px); }
.article-row strong { display: block; color: var(--navy); font-size: 17px; }
.article-row span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.article-row time { color: var(--muted); font-size: 12px; white-space: nowrap; }

.empty { padding: 28px; border: 1px dashed #afc8be; border-radius: 16px; color: var(--muted); background: var(--wash); }

.principles { counter-reset: principle; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.principle { position: relative; padding: 22px 22px 22px 64px; border-top: 1px solid var(--line); }
.principle::before {
  counter-increment: principle;
  content: "0" counter(principle);
  position: absolute;
  left: 0;
  top: 18px;
  color: var(--orange);
  font-weight: 900;
  font-size: 21px;
}
.principle p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }

.content-page { width: min(820px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0 100px; }
.content-page h1 { font-size: clamp(36px, 6vw, 58px); }
.content-page h2 { margin-top: 48px; font-size: 27px; }
.content-page p, .content-page li { color: #43505e; }
.meta-box { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--wash); }
.meta-list { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 18px; margin: 0; }
.meta-list dt { color: var(--muted); font-size: 13px; }
.meta-list dd { margin: 0; overflow-wrap: anywhere; font-weight: 650; }

.format-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.format-links a { padding: 10px 14px; border: 1px solid #b9d8cc; border-radius: 10px; background: white; font-size: 13px; font-weight: 750; text-decoration: none; }

.site-footer { margin-top: 64px; border-top: 1px solid var(--line); padding: 30px 0 48px; color: var(--muted); font-size: 13px; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

@media (max-width: 780px) {
  .grid { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .nav-links a:not(.primary) { display: none; }
  .section-head { display: block; }
  .section-head p { margin-top: 10px; }
  .article-row { grid-template-columns: 1fr; gap: 8px; }
  .meta-list { grid-template-columns: 1fr; gap: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
