:root {
  color: #101a2b;
  background: #f6f4ee;
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
  font-synthesis: none;
  --canvas: #f6f4ee;
  --surface: #fffdf9;
  --ink: #101a2b;
  --copy: #4f5968;
  --muted: #77808c;
  --line: rgba(16, 26, 43, 0.14);
  --blue: #2e62d0;
  --content: min(1180px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--canvas); color: var(--ink); text-rendering: optimizeLegibility; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.story-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(246, 244, 238, 0.94);
  backdrop-filter: blur(18px);
}
.story-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.story-brand img { width: 28px; height: 28px; }
.story-brand strong { font-size: 0.96rem; font-weight: 780; letter-spacing: -0.035em; }
.story-nav nav { display: flex; align-items: center; gap: 26px; }
.story-nav nav a { color: var(--copy); font-size: 0.875rem; font-weight: 650; text-decoration: none; }
.story-nav nav a:hover, .story-nav nav a[aria-current="page"] { color: var(--ink); }
.story-nav nav .story-nav-cta { min-height: 40px; padding: 10px 16px; border-radius: 7px; background: var(--ink); color: var(--surface); }

.story-hero, .story-featured-section, .story-archive, .story-final,
.story-article-page > article, .story-service-bridge, .story-related {
  width: var(--content);
  margin-inline: auto;
}
.story-hero > p, .story-featured-section > p, .story-archive > header > p,
.story-final > p, .story-service-bridge > p, .story-related > header > p {
  margin: 0;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  column-gap: clamp(48px, 8vw, 120px);
  align-items: end;
  min-height: clamp(560px, 72svh, 720px);
  padding: clamp(92px, 11vw, 150px) 0 82px;
}
.story-hero > p { grid-column: 1 / -1; align-self: start; }
.story-hero h1 {
  max-width: 12ch;
  margin: 28px 0 0;
  font-size: clamp(3.4rem, 6vw, 5.8rem);
  font-weight: 690;
  line-height: 1.08;
  letter-spacing: -0.045em;
  word-break: keep-all;
}
.story-hero h1 span { display: block; }
.story-hero > div { align-self: end; padding-top: 22px; border-top: 1px solid rgba(16, 26, 43, 0.24); }
.story-hero > div p { max-width: 34rem; margin: 0; color: var(--copy); font-size: 1.02rem; line-height: 1.78; word-break: keep-all; }
.story-hero > div span { display: block; margin-top: 26px; color: var(--muted); font-size: 0.78rem; }

.story-featured-section, .story-archive, .story-final, .story-service-bridge, .story-related {
  padding: clamp(82px, 9vw, 124px) 0;
  border-top: 1px solid var(--line);
}
.story-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, 0.82fr);
  gap: clamp(40px, 6vw, 78px);
  align-items: center;
  margin-top: 34px;
  text-decoration: none;
}
.story-featured figure, .story-archive figure { overflow: hidden; margin: 0; background: #e8e4da; }
.story-featured figure { aspect-ratio: 1.35 / 1; }
.story-featured figure img, .story-archive figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 550ms cubic-bezier(0.22, 1, 0.36, 1); }
.story-featured:hover figure img, .story-archive a:hover figure img { transform: scale(1.022); }
.story-featured > div > span, .story-archive a > span, .story-related a > span { color: var(--blue); font-size: 0.75rem; font-weight: 720; }
.story-featured h2 {
  max-width: 16ch;
  margin: 16px 0 20px;
  font-size: clamp(2.25rem, 3.7vw, 3.65rem);
  font-weight: 680;
  line-height: 1.16;
  letter-spacing: -0.04em;
  word-break: keep-all;
}
.story-featured p { margin: 0; color: var(--copy); font-size: 1rem; line-height: 1.75; word-break: keep-all; }
.story-featured small, .story-archive small, .story-related small { display: block; margin-top: 24px; color: var(--muted); font-size: 0.76rem; }
.story-featured b { display: inline-flex; gap: 12px; margin-top: 32px; padding-bottom: 5px; border-bottom: 1px solid var(--ink); font-size: 0.9rem; font-weight: 680; }

.story-archive > header { display: grid; grid-template-columns: 0.4fr 1fr; gap: 40px; margin-bottom: 50px; }
.story-archive > header h2, .story-final h2, .story-service-bridge h2, .story-related > header h2 {
  max-width: 17ch;
  margin: 0;
  font-size: clamp(2.15rem, 3.8vw, 3.8rem);
  font-weight: 680;
  line-height: 1.16;
  letter-spacing: -0.04em;
  word-break: keep-all;
}
.story-archive > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 68px 32px; }
.story-archive a { text-decoration: none; }
.story-archive figure { aspect-ratio: 1.55 / 1; margin-bottom: 22px; }
.story-archive h3 { max-width: 19ch; margin: 12px 0; font-size: clamp(1.45rem, 2.2vw, 2rem); font-weight: 680; line-height: 1.26; letter-spacing: -0.03em; word-break: keep-all; }
.story-archive a > p { max-width: 590px; margin: 0; color: var(--copy); line-height: 1.72; word-break: keep-all; }
.story-final { display: grid; grid-template-columns: 0.35fr 1fr auto; gap: 40px; align-items: end; }
.story-final a, .story-service-bridge a, .story-state > a { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 19px; border-radius: 7px; background: var(--blue); color: white; font-size: 0.9rem; font-weight: 720; text-decoration: none; }

.story-footer { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 70px; padding: 68px max(24px, calc((100vw - 1180px) / 2)) 30px; background: var(--ink); color: #bcc4cf; }
.story-footer .story-brand { color: white; }
.story-footer > div p { max-width: 350px; margin: 18px 0 0; font-size: 0.92rem; line-height: 1.72; word-break: keep-all; }
.story-footer > nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.story-footer section { display: grid; align-content: start; gap: 10px; }
.story-footer section strong { margin-bottom: 8px; color: white; font-size: 0.77rem; }
.story-footer section a { font-size: 0.82rem; text-decoration: none; }
.story-footer > small { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.13); font-size: 0.72rem; }

/* Article */
.story-article-hero { max-width: 900px; padding: clamp(86px, 10vw, 128px) 0 64px; }
.story-article-hero > nav { display: flex; gap: 9px; color: var(--muted); font-size: 0.78rem; }
.story-article-hero > nav a { color: var(--blue); text-decoration: none; }
.story-article-hero h1 { max-width: 18ch; margin: 26px 0 24px; font-size: clamp(2.85rem, 5.4vw, 5.15rem); font-weight: 700; line-height: 1.13; letter-spacing: -0.045em; word-break: keep-all; }
.story-article-hero > p { max-width: 680px; margin: 0; color: var(--copy); font-size: clamp(1.05rem, 1.55vw, 1.2rem); line-height: 1.78; word-break: keep-all; }
.story-article-hero dl { display: flex; flex-wrap: wrap; gap: 30px; margin: 38px 0 0; }
.story-article-hero dl div { display: grid; grid-template-columns: auto auto; gap: 8px; align-items: baseline; }
.story-article-hero dt { color: var(--muted); font-size: 0.74rem; }
.story-article-hero dd { margin: 0; font-size: 0.8rem; font-weight: 650; }
.story-article-cover { margin: 0; }
.story-article-cover > img { width: 100%; max-height: 700px; object-fit: cover; }
.story-article-cover figcaption { margin-top: 10px; color: var(--muted); font-size: 0.72rem; }
.story-article-layout { display: grid; grid-template-columns: 180px minmax(0, 680px); gap: clamp(54px, 9vw, 118px); justify-content: center; padding: clamp(74px, 9vw, 118px) 0; }
.story-article-layout > aside { position: sticky; top: 100px; align-self: start; padding-top: 15px; border-top: 1px solid var(--ink); }
.story-article-layout > aside span { color: var(--blue); font-size: 0.75rem; font-weight: 720; }
.story-article-layout > aside p { color: var(--muted); font-size: 0.8rem; line-height: 1.72; word-break: keep-all; }
.story-article-layout > aside a { font-size: 0.8rem; font-weight: 680; text-underline-offset: 4px; }
.story-prose { color: #283447; font-size: 1.0625rem; line-height: 1.88; letter-spacing: -0.008em; }
.story-prose > *:first-child { margin-top: 0; }
.story-prose h2 { margin: 4.2rem 0 1.15rem; color: var(--ink); font-size: clamp(1.75rem, 2.8vw, 2.35rem); font-weight: 700; line-height: 1.35; letter-spacing: -0.035em; word-break: keep-all; }
.story-prose h3 { margin: 3rem 0 0.85rem; color: var(--ink); font-size: 1.3rem; font-weight: 700; line-height: 1.45; letter-spacing: -0.025em; word-break: keep-all; }
.story-prose h4 { margin: 2.3rem 0 0.8rem; color: var(--ink); font-size: 1.12rem; }
.story-prose p { margin: 0 0 1.5rem; word-break: keep-all; }
.story-prose ul, .story-prose ol { margin: 0 0 1.8rem; padding-left: 1.35rem; }
.story-prose li { margin: 0.48rem 0; padding-left: 0.3rem; }
.story-prose a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.story-prose blockquote { margin: 2.8rem 0; padding: 0.15rem 0 0.15rem 1.3rem; border-left: 2px solid var(--blue); color: var(--copy); font-size: 1.12rem; }
.story-prose blockquote p { margin: 0; }
.story-prose img { width: 100%; margin: 2.5rem 0; }
.story-prose code { padding: .15em .35em; border-radius: 4px; background: #ece9e1; font-family: "Geist Mono", monospace; font-size: .88em; }
.story-prose pre { overflow-x: auto; margin: 2rem 0; padding: 20px; background: var(--ink); color: var(--canvas); }
.story-prose pre code { padding: 0; background: transparent; color: inherit; }
.story-prose hr { margin: 4rem 0; border: 0; border-top: 1px solid var(--line); }

.story-service-bridge { display: grid; grid-template-columns: .36fr 1fr; gap: 34px; }
.story-service-bridge h2 { grid-column: 2; }
.story-service-bridge > div { display: grid; grid-column: 2; grid-template-columns: 1fr auto; gap: 32px; align-items: end; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.story-service-bridge > div p { max-width: 540px; margin: 0; color: var(--copy); line-height: 1.75; word-break: keep-all; }
.story-related > header { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 42px; }
.story-related > header h2 { font-size: clamp(2.1rem, 3.4vw, 3.3rem); }
.story-related > div { border-top: 1px solid var(--line); }
.story-related a { display: grid; grid-template-columns: .3fr 1.4fr .3fr; gap: 28px; align-items: center; min-height: 116px; border-bottom: 1px solid var(--line); text-decoration: none; }
.story-related h3 { margin: 0; font-size: 1.3rem; font-weight: 680; letter-spacing: -.025em; word-break: keep-all; }
.story-related small { margin: 0; text-align: right; }
.story-cover-placeholder { display: grid; width: 100%; height: 100%; place-items: center; background: var(--ink); color: white; font-size: 5rem; font-weight: 800; }
.story-empty { padding: 64px 0; border-top: 1px solid var(--line); }
.story-empty h2 { font-size: 2rem; }
.story-state { display: grid; width: min(720px, calc(100% - 40px)); min-height: 70svh; place-items: center; align-content: center; margin: auto; text-align: center; }
.story-state > img { width: 48px; }
.story-state h1 { max-width: 14ch; margin: 25px 0 12px; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.16; letter-spacing: -.04em; word-break: keep-all; }
.story-state p { margin: 0 0 28px; color: var(--copy); }

@media (max-width: 860px) {
  .story-nav nav a:not(.story-nav-cta):not([aria-current="page"]) { display: none; }
  .story-hero { grid-template-columns: 1fr; min-height: auto; }
  .story-hero > p { align-self: auto; }
  .story-hero > div { margin-top: 52px; }
  .story-featured { grid-template-columns: 1fr; }
  .story-featured figure { aspect-ratio: 1.25 / 1; }
  .story-archive > header, .story-final, .story-footer, .story-service-bridge { grid-template-columns: 1fr; }
  .story-article-layout { grid-template-columns: 1fr; gap: 48px; }
  .story-article-layout > aside { display: none; }
  .story-service-bridge h2, .story-service-bridge > div { grid-column: 1; }
}
@media (max-width: 560px) {
  :root { --content: calc(100% - 32px); }
  .story-nav { min-height: 62px; padding-inline: 16px; }
  .story-brand { flex: 0 0 auto; }
  .story-nav nav { min-width: 0; gap: 9px; }
  .story-nav nav a[aria-current="page"] { display: none; }
  .story-nav nav .story-nav-cta { flex: 0 0 auto; padding: 9px 13px; }
  .story-hero { padding: 70px 0 58px; }
  .story-hero h1 { max-width: none; margin-top: 22px; font-size: clamp(2.45rem, 11vw, 3.05rem); line-height: 1.16; letter-spacing: -.038em; }
  .story-hero > div { margin-top: 46px; }
  .story-featured-section, .story-archive, .story-final, .story-service-bridge, .story-related { padding-block: 68px; }
  .story-featured h2 { font-size: 2.05rem; line-height: 1.22; }
  .story-archive > div { grid-template-columns: 1fr; gap: 52px; }
  .story-final { gap: 24px; }
  .story-final a { width: 100%; }
  .story-footer { gap: 42px; padding: 54px 16px 28px; }
  .story-footer > nav { grid-template-columns: 1fr 1fr; }
  .story-article-hero { padding: 64px 0 52px; }
  .story-article-hero h1 { max-width: 100%; margin-top: 22px; font-size: clamp(2.15rem, 9.2vw, 2.7rem); line-height: 1.2; letter-spacing: -.035em; }
  .story-article-hero > p { font-size: 1rem; line-height: 1.72; }
  .story-article-hero dl { gap: 10px 20px; margin-top: 30px; }
  .story-article-cover { width: calc(100% + 32px); margin-left: -16px; }
  .story-article-cover figcaption { padding-inline: 16px; }
  .story-article-layout { padding-block: 62px; }
  .story-prose { font-size: 1rem; line-height: 1.84; }
  .story-prose h2 { margin-top: 3.6rem; font-size: 1.72rem; line-height: 1.38; }
  .story-service-bridge > div { grid-template-columns: 1fr; }
  .story-service-bridge a { width: 100%; }
  .story-related > header { display: block; }
  .story-related > header h2 { margin-top: 14px; }
  .story-related a { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .story-related small { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .story-featured figure img, .story-archive figure img { transition: none; }
}
