:root {
  --ink: #171a1f;
  --ink-soft: #4c535e;
  --paper: #f7f7f4;
  --white: #ffffff;
  --line: #dfe2e5;
  --coral: #f05d52;
  --coral-dark: #c94139;
  --cyan: #087f83;
  --cyan-pale: #d9eeee;
  --yellow: #f5c453;
  --shadow: 0 14px 40px rgba(23, 26, 31, 0.12);
  --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; letter-spacing: 0; }
img, video { max-width: 100%; }
svg { width: 1.15em; height: 1.15em; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin: 0 auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(23, 26, 31, 0.1);
  background: rgba(247, 247, 244, 0.94);
  backdrop-filter: blur(14px);
}
.header-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--ink);
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  color: var(--white);
  background: var(--coral);
  border-radius: 8px;
}
.brand-mark svg { width: 22px; height: 22px; }
.header-nav { display: flex; align-items: center; gap: 28px; }
.header-nav a { color: var(--ink-soft); font-size: 0.92rem; font-weight: 650; }
.header-nav a:hover { color: var(--coral-dark); }
.language-switch {
  justify-self: end;
  display: grid;
  grid-template-columns: repeat(3, 40px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.language-switch a {
  min-height: 34px;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  border-right: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 750;
}
.language-switch a:last-child { border-right: 0; }
.language-switch a.active { color: var(--white); background: var(--cyan); }

.home-ad-band { background: var(--white); border-bottom: 1px solid var(--line); }
.desktop-home-ad, .mobile-home-ad { display: none; }

@media (min-width: 900px) {
  .desktop-home-ad {
    width: 100%;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px 10px;
    overflow: hidden;
  }
}

@media (max-width: 899px) {
  .mobile-home-ad {
    width: 100%;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 10px;
    overflow: hidden;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }
}

.hero {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background-color: #e6e5e0;
  background-image: url("../images/story-viewer-hero.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-bottom: 1px solid var(--line);
}
.hero-scrim {
  position: absolute;
  inset: 0 auto 0 0;
  width: 66%;
  background: rgba(247, 247, 244, 0.9);
}
.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 610px;
  display: flex;
  align-items: center;
  padding-top: 42px;
  padding-bottom: 56px;
}
.hero-copy { width: min(650px, 58%); }
.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 640px;
  margin: 0;
  font-size: 3.45rem;
  line-height: 1.1;
  font-weight: 820;
}
.hero-subtitle {
  max-width: 600px;
  margin: 22px 0 28px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.lookup-form { max-width: 640px; }
.lookup-control {
  min-height: 62px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 7px 7px 18px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.lookup-control > svg { color: var(--cyan); }
.lookup-control input {
  min-width: 0;
  height: 44px;
  color: var(--ink);
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 1rem;
}
.lookup-control input::placeholder { color: #8a9098; }
.lookup-control:focus-within { border-color: var(--cyan); }
.lookup-control button {
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  color: var(--white);
  border: 0;
  border-radius: 6px;
  background: var(--coral);
  font-weight: 780;
  cursor: pointer;
}
.lookup-control button:hover { background: var(--coral-dark); }
.lookup-control button:disabled { cursor: wait; opacity: 0.72; }
.lookup-message {
  max-width: 640px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 12px;
  padding: 11px 13px;
  border: 1px solid #e9a19b;
  border-radius: 8px;
  color: #80251f;
  background: #fff0ee;
  font-size: 0.9rem;
}
.lookup-message svg { flex: 0 0 auto; margin-top: 3px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 22px; }
.hero-facts span { display: inline-flex; align-items: center; gap: 6px; font-size: 0.87rem; font-weight: 700; }
.hero-facts svg { color: var(--cyan); }
.public-only {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  max-width: 620px;
  margin: 13px 0 0;
  color: #666d75;
  font-size: 0.78rem;
}
.public-only svg { flex: 0 0 auto; margin-top: 3px; }

.results-band { padding: 58px 0 82px; background: var(--white); }
.result-anchor { scroll-margin-top: 80px; }
.profile-strip {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.profile-strip > img {
  width: 80px;
  height: 80px;
  border: 3px solid var(--white);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px var(--coral);
}
.profile-title-row { display: flex; align-items: center; gap: 7px; }
.profile-title-row h2 { margin: 0; font-size: 1.35rem; line-height: 1.25; }
.verified { color: var(--cyan); }
.username { margin: 2px 0 0; color: var(--coral-dark); font-weight: 720; }
.biography { max-width: 650px; margin: 8px 0 0; color: var(--ink-soft); font-size: 0.9rem; }
.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-size: 0.82rem;
  font-weight: 700;
}
.profile-link:hover { border-color: var(--cyan); color: var(--cyan); }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 34px;
}
.section-heading h2, .faq-intro h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.2;
}
.section-heading > p { max-width: 470px; margin: 0; color: var(--ink-soft); }
.result-heading { margin-top: 42px; }
.result-count {
  padding: 6px 10px;
  color: var(--cyan);
  border: 1px solid #acd3d4;
  border-radius: 6px;
  background: var(--cyan-pale);
  font-size: 0.8rem;
  font-weight: 750;
}
.story-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.story-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(23, 26, 31, 0.08);
}
.story-media {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #111318;
}
.story-media img, .story-media video { width: 100%; height: 100%; display: block; object-fit: contain; }
.media-type {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  color: var(--white);
  border-radius: 5px;
  background: rgba(23, 26, 31, 0.82);
  font-size: 0.7rem;
  font-weight: 720;
  pointer-events: none;
}
.story-meta {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
}
.story-meta > div:first-child { min-width: 0; display: flex; flex-direction: column; }
.story-meta span { color: var(--ink-soft); font-size: 0.68rem; }
.story-meta time { overflow: hidden; font-size: 0.77rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.story-actions { display: flex; align-items: center; gap: 6px; }
.story-meta a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.story-meta .story-download {
  width: auto;
  min-width: 38px;
  padding: 0 10px;
  display: inline-flex;
  gap: 6px;
}
.story-meta .story-download span { color: inherit; font-size: 0.7rem; font-weight: 750; }
.story-meta a:hover { color: var(--white); background: var(--cyan); border-color: var(--cyan); }
.story-meta a:hover span { color: var(--white); }
.empty-state { padding: 70px 20px; text-align: center; border-top: 1px solid var(--line); }
.empty-state > svg { width: 42px; height: 42px; color: var(--coral); }
.empty-state h3 { margin: 16px 0 5px; }
.empty-state p { margin: 0; color: var(--ink-soft); }

.how-band { padding: 88px 0; background: #eaf3f2; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #b8cfce;
  border-bottom: 1px solid #b8cfce;
}
.steps li {
  min-height: 190px;
  display: grid;
  grid-template-columns: 54px 1fr;
  align-content: center;
  gap: 14px;
  padding: 30px;
  border-right: 1px solid #b8cfce;
}
.steps li:last-child { border-right: 0; }
.step-number { color: var(--coral); font-size: 1.4rem; font-weight: 850; }
.steps h3 { margin: 0 0 7px; font-size: 1rem; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }

.story-guide-band { padding: 88px 0; background: var(--white); }
.story-guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 84px;
  align-items: start;
}
.story-guide-intro { position: sticky; top: 112px; }
.story-guide-intro h2 { margin: 0; font-size: 2rem; line-height: 1.25; }
.story-guide-intro > p:last-child { margin: 20px 0 0; color: var(--ink-soft); }
.story-guide-items { border-top: 1px solid var(--line); }
.story-guide-items article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.story-guide-items article > span { color: var(--coral); font-weight: 850; }
.story-guide-items h3 { margin: 0 0 8px; font-size: 1.05rem; }
.story-guide-items p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

.principles-band { padding: 88px 0; background: var(--paper); }
.section-heading.compact { margin-bottom: 38px; }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.principle { padding-top: 22px; border-top: 3px solid var(--ink); }
.principle:nth-child(2) { border-color: var(--coral); }
.principle:nth-child(3) { border-color: var(--cyan); }
.principle > svg { width: 28px; height: 28px; color: var(--coral); }
.principle h3 { margin: 20px 0 8px; font-size: 1.05rem; }
.principle p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }

.faq-band { padding: 88px 0; color: var(--white); background: var(--ink); }
.faq-layout { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 80px; align-items: start; }
.faq-intro .eyebrow { color: var(--yellow); }
.faq-list { border-top: 1px solid #444a53; }
.faq-list details { border-bottom: 1px solid #444a53; }
.faq-list summary {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  font-weight: 720;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { flex: 0 0 auto; color: var(--yellow); transition: transform 0.2s; }
.faq-list details[open] summary svg { transform: rotate(45deg); }
.faq-list details p { margin: -2px 0 20px; color: #b7bdc5; font-size: 0.92rem; }

.legal-band { min-height: 68vh; padding: 100px 0; background: var(--white); }
.legal-content { max-width: 760px; }
.legal-content h1 { margin: 0 0 38px; font-size: 2.5rem; }
.legal-content > p:not(.eyebrow) { margin: 0; padding: 22px 0; color: var(--ink-soft); border-top: 1px solid var(--line); }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 32px; color: var(--coral-dark); font-weight: 750; }

.site-footer { padding: 40px 0; color: #c4c8ce; background: #0f1115; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-brand { color: var(--white); }
.footer-brand .brand-mark { width: 32px; height: 32px; flex-basis: 32px; }
.footer-inner p { max-width: 620px; margin: 10px 0 0; font-size: 0.78rem; }
.footer-links { display: flex; gap: 20px; font-size: 0.82rem; }
.footer-links a:hover { color: var(--white); }

.spin { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .header-nav { display: none; }
  .hero-scrim { width: 78%; }
  .hero-copy { width: 68%; }
  .hero h1 { font-size: 2.7rem; }
  .story-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps li { grid-template-columns: 1fr; padding: 24px; }
}

@media (max-width: 720px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .header-inner { min-height: 64px; gap: 12px; }
  .brand { font-size: 1rem; }
  .brand-mark { width: 34px; height: 34px; flex-basis: 34px; }
  .language-switch { grid-template-columns: repeat(3, 34px); }
  .hero { min-height: 690px; background-position: 62% center; }
  .hero-scrim { width: 100%; background: rgba(247, 247, 244, 0.87); }
  .hero-inner { min-height: 690px; align-items: flex-start; padding-top: 66px; padding-bottom: 44px; }
  .hero-copy { width: 100%; }
  .hero h1 { max-width: 560px; font-size: 2.35rem; }
  .hero-subtitle { margin: 18px 0 24px; font-size: 0.98rem; }
  .lookup-control { grid-template-columns: 22px minmax(0, 1fr); padding: 8px 10px 8px 14px; }
  .lookup-control button { grid-column: 1 / -1; width: 100%; height: 48px; }
  .hero-facts { gap: 8px 15px; }
  .profile-strip { grid-template-columns: 66px minmax(0, 1fr); gap: 16px; }
  .profile-strip > img { width: 66px; height: 66px; }
  .profile-link { grid-column: 1 / -1; width: 100%; justify-content: center; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .section-heading h2, .faq-intro h2 { font-size: 1.65rem; }
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .story-meta { padding: 9px; }
  .story-meta .story-download { width: 38px; padding: 0; justify-content: center; }
  .story-meta .story-download span { display: none; }
  .how-band, .story-guide-band, .principles-band, .faq-band { padding: 66px 0; }
  .steps { grid-template-columns: 1fr; }
  .steps li { min-height: 0; grid-template-columns: 48px 1fr; border-right: 0; border-bottom: 1px solid #b8cfce; }
  .steps li:last-child { border-bottom: 0; }
  .story-guide-layout { grid-template-columns: 1fr; gap: 34px; }
  .story-guide-intro { position: static; }
  .story-guide-intro h2 { font-size: 1.65rem; }
  .story-guide-items article { grid-template-columns: 42px minmax(0, 1fr); }
  .principles { grid-template-columns: 1fr; gap: 28px; }
  .faq-layout { grid-template-columns: 1fr; gap: 35px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .legal-band { padding: 70px 0; }
  .legal-content h1 { font-size: 2rem; }
}

@media (max-width: 390px) {
  .brand > span:last-child { font-size: 0.92rem; }
  .language-switch { grid-template-columns: repeat(3, 32px); }
  .hero h1 { font-size: 2.05rem; }
  .lookup-control input { font-size: 0.9rem; }
  .story-meta time { font-size: 0.68rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
