:root {
  --story-bg: #f5f3ee;
  --story-paper: #f9f7f3;
  --story-ink: #1c1814;
  --story-muted: #4a423c;
  --story-line: #e6e1d9;
  --story-blue: #7eb5e8;
  --story-green: #00704a;
  --story-yellow: #f4dc59;
}

html {
  scroll-behavior: smooth;
}

body.story-body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(126, 181, 232, 0.14), transparent 28rem),
    radial-gradient(circle at 90% 14%, rgba(0, 112, 74, 0.08), transparent 24rem),
    var(--story-bg);
  color: var(--story-ink);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  line-height: 1.7;
}

.story-site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, 1040px);
  margin: 0 auto;
  padding: 1.25rem 0;
}

.story-brand {
  color: var(--story-ink);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.story-site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
}

.story-site-header nav a {
  color: var(--story-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-underline-offset: 0.25em;
}

.story-shell {
  width: min(100% - 2rem, 880px);
  margin: 0 auto;
  padding: 1rem 0 5rem;
}

.story-article {
  overflow: hidden;
  border: 1px solid var(--story-line);
  border-radius: 22px;
  background: var(--story-paper);
  box-shadow: 0 24px 70px rgba(35, 27, 21, 0.09);
}

.story-heading {
  padding: clamp(2rem, 7vw, 4.8rem) clamp(1.35rem, 7vw, 4.8rem) clamp(1.8rem, 5vw, 3.4rem);
  border-bottom: 1px solid var(--story-line);
  background:
    linear-gradient(145deg, rgba(126, 181, 232, 0.11), transparent 43%),
    linear-gradient(315deg, rgba(244, 220, 89, 0.11), transparent 35%);
}

.story-kicker {
  margin: 0 0 1.1rem;
  color: var(--story-green);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.story-heading h1 {
  max-width: 14ch;
  margin: 0;
  color: var(--story-ink);
  font-size: clamp(2.15rem, 7vw, 4.35rem);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 1.05;
  text-wrap: balance;
}

.story-dek {
  max-width: 38rem;
  margin: 1.5rem 0 0;
  color: var(--story-muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.75;
}

.story-date {
  margin: 1.6rem 0 0;
  color: var(--story-muted);
  font-size: 0.75rem;
}

.story-note {
  margin: clamp(1.35rem, 5vw, 3rem) clamp(1.35rem, 7vw, 4.8rem) 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(126, 181, 232, 0.45);
  border-radius: 14px;
  background: rgba(126, 181, 232, 0.08);
  color: var(--story-muted);
}

.story-note strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--story-ink);
  font-size: 0.74rem;
}

.story-note p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.65;
}

.story-prose {
  padding: clamp(2.2rem, 7vw, 5rem) clamp(1.35rem, 9vw, 6.5rem) clamp(3rem, 8vw, 6rem);
}

.story-prose > p {
  margin: 0 0 1.3em;
  color: var(--story-ink);
  font-size: clamp(1rem, 1.8vw, 1.08rem);
  letter-spacing: -0.012em;
  line-height: 1.92;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.story-prose .short-line {
  margin-bottom: 0.55em;
}

.story-prose .dialogue {
  color: #2d2722;
  font-weight: 640;
}

.story-prose .sound {
  margin: 2.2rem 0;
  color: var(--story-ink);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.story-prose hr {
  width: 3.5rem;
  height: 1px;
  margin: clamp(3.6rem, 9vw, 6rem) auto;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--story-blue), transparent);
}

.story-prose blockquote {
  margin: 2.5rem 0;
  padding: 1.35rem 1.4rem;
  border-left: 4px solid var(--story-blue);
  border-radius: 0 14px 14px 0;
  background: rgba(126, 181, 232, 0.08);
}

.story-prose blockquote p {
  margin: 0;
  color: var(--story-ink);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 700;
  line-height: 1.7;
}

.story-prose blockquote p + p {
  margin-top: 0.5rem;
}

.story-prose .key-quote {
  border-left-color: var(--story-green);
  background: rgba(0, 112, 74, 0.07);
}

.story-prose .closing-line {
  margin-bottom: 0.5rem;
  font-size: clamp(1.12rem, 2.4vw, 1.35rem);
  font-weight: 800;
}

.story-end-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.story-end-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--story-line);
  border-radius: 999px;
  background: var(--story-paper);
  color: var(--story-ink);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.story-end-nav a.primary {
  border-color: var(--story-green);
  background: var(--story-green);
  color: #fff;
}

.story-end-nav a:focus-visible,
.story-site-header a:focus-visible,
.story-footer a:focus-visible {
  outline: 3px solid var(--story-yellow);
  outline-offset: 3px;
}

.story-footer {
  padding: 0 1rem 3rem;
  text-align: center;
}

.story-footer a {
  color: var(--story-muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-decoration: none;
}

@media (max-width: 620px) {
  .story-site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .story-heading h1 {
    max-width: none;
  }

  .story-end-nav {
    grid-template-columns: 1fr;
  }
}

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