:root {
  --ink: #15202b;
  --muted: #4a5a6a;
  --paper: #f3f6f8;
  --panel: #ffffff;
  --line: #c9d4de;
  --accent: #1f6f5b;
  --accent-ink: #0f3d33;
  --focus: #0b6bcb;
  --max: 44rem;
  --wide: 52rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(31, 111, 91, 0.08), transparent 40%),
    linear-gradient(180deg, #e8eef3 0%, var(--paper) 28%, var(--paper) 100%);
  line-height: 1.7;
  min-height: 100vh;
}

h1,
h2,
h3,
.brand {
  font-family: "Noto Serif KR", "Apple SD Gothic Neo", serif;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 0.75rem;
  z-index: 10;
  border-radius: 0.25rem;
}

.skip-link:focus {
  top: 1rem;
}

.site-header,
.site-footer,
main,
.search-bar {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  animation: rise 0.6s ease-out both;
}

.brand {
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

nav a:hover,
nav a:focus-visible {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.search-bar {
  padding-top: 0.75rem;
  padding-bottom: 0;
  animation: rise 0.7s ease-out both;
}

.home-hero {
  max-width: var(--max);
  padding: 3.5rem 0 2rem;
  animation: rise 0.75s ease-out both;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: none;
}

.home-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--accent-ink);
}

.lede {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 34rem;
}

.cta-row {
  margin: 0;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 0.7rem 1.1rem;
  border-radius: 0.2rem;
  font-weight: 500;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
  background: var(--accent-ink);
  transform: translateY(-1px);
}

.home-body,
.section-page,
.single-page {
  max-width: var(--max);
  padding: 1rem 0 3rem;
  animation: rise 0.8s ease-out both;
}

.section-header h1,
.single-header h1 {
  margin: 0 0 0.75rem;
}

.section-intro,
.single-body,
.home-body {
  color: var(--ink);
}

.meta,
.list-count,
.empty-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.content-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.content-list li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.content-list time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
}

.content-list a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.content-list a:hover,
.content-list a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.video-embed {
  margin: 1.25rem 0 0.75rem;
  background: #0b1218;
  border-radius: 0.35rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.video-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-link a {
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.6rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .content-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .home-hero {
    padding-top: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-header,
  .search-bar,
  .home-hero,
  .home-body,
  .section-page,
  .single-page,
  .button {
    animation: none;
    transition: none;
  }
}
