:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #e8f3fc;
  background: #061424;
  --story-muted: #acc7dc;
  --story-accent: #9ce1d5;
  --story-border: #254761;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid #b1f2dc; outline-offset: 4px; }

.story-skip {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  transform: translateY(-200%);
  padding: 12px 16px;
  color: #092c31;
  background: #b1f2dc;
  border-radius: 8px;
}
.story-skip:focus { transform: translateY(0); }

.story-header { background: #091c30; border-bottom: 1px solid var(--story-border); }
.story-header-inner,
.story-main,
.story-footer { width: min(100% - 40px, 1120px); margin-inline: auto; }
.story-header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.story-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 44px;
  font-size: 1rem;
  font-weight: 700;
}
.story-brand img { flex: none; }
.story-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story-site-links { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.story-site-links > a,
.story-link-button { display: inline-flex; align-items: center; min-height: 44px; }
.story-site-links > a:not(.story-link-button) { color: var(--story-muted); }
.story-link-button {
  gap: 10px;
  padding: 10px 16px;
  background: #a0e4d8;
  color: #0b2e36;
  border-radius: 11px;
  font-size: 0.94rem;
  font-weight: 700;
}
.story-link-button:hover { background: #bef2e9; }

.story-main { padding: 34px 0 0; }
.story-hero {
  min-height: 300px;
  display: grid;
  align-items: center;
  padding: clamp(26px, 5.5vw, 64px);
  border-radius: 25px;
  border: 1px solid var(--story-border);
  background: linear-gradient(90deg, #061424 2%, #061424e8 33%, #06142440 100%),
    url("/images/deep-ocean.webp") 60% 56% / cover;
}
.story-hero-inner { max-width: 34rem; }
.story-chapter {
  margin: 0 0 10px;
  color: var(--story-accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}
.story-hero h1 { margin: 0; font-size: clamp(2.5rem, 6vw, 4.4rem); line-height: 1.12; }
.story-hero-inner > p:last-child { margin: 16px 0 0; color: #c3dbef; line-height: 1.7; }
.story-chapters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 0 28px;
}
.story-chapters a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--story-border);
  border-radius: 10px;
  background: #0c2237;
  font-size: 0.94rem;
}
.story-chapters a span { color: var(--story-accent); font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.story-chapters a:hover { background: #173650; }

.story-collection { display: grid; gap: 20px; }
.story-card,
.story-together {
  scroll-margin-top: 18px;
  border: 1px solid var(--story-border);
  border-radius: 21px;
  background: #0b2137;
}
.story-card { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); overflow: hidden; }
.story-portrait {
  margin: 0;
  padding: clamp(18px, 2.9vw, 32px) 0 clamp(18px, 2.9vw, 32px) clamp(18px, 2.9vw, 32px);
  align-self: start;
}
.story-portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #061424;
}
.story-card-body { padding: clamp(21px, 3.5vw, 39px); }
.story-card h2,
.story-together h2 { margin: 0; font-size: clamp(1.65rem, 3.2vw, 2.5rem); line-height: 1.22; }
.story-tagline { margin: 8px 0 19px; color: var(--story-accent); font-weight: 600; }
.story-prose { max-width: 44rem; color: #d4e6f4; font-size: 1rem; line-height: 1.9; }
.story-prose p { margin: 0 0 0.78em; }
.story-prose p:last-child { margin-bottom: 0; }
.story-quote {
  margin: 22px 0 0;
  padding: 12px 15px;
  border-left: 3px solid #76c9bb;
  border-radius: 0 8px 8px 0;
  background: #123047;
  color: #bdf3e6;
  font-weight: 600;
  line-height: 1.65;
}
.story-together {
  padding: clamp(22px, 4.5vw, 46px);
  background: linear-gradient(120deg, #0c233b, #123449);
}
.story-together .story-prose { margin-top: 18px; }
.story-together .story-link-button { margin-top: 23px; }
.story-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 24px;
  padding: 22px 0 28px;
  color: var(--story-muted);
  font-size: 0.88rem;
}
.story-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.story-footer a:hover { color: #e8f3fc; }
.story-footer .ocean-icp { order: 1; flex: 0 0 100%; text-align: center; font-size: 0.8rem; }

@media (max-width: 720px) {
  .story-header-inner, .story-main, .story-footer { width: calc(100% - 32px); }
  .story-header-inner { min-height: 63px; }
  .story-site-links { gap: 12px; font-size: 0.9rem; }
  .story-brand { gap: 8px; font-size: 0.91rem; }
  .story-brand img { width: 28px; height: 28px; }
  .story-main { padding-top: 18px; }
  .story-hero { min-height: 235px; border-radius: 18px; }
  .story-card { grid-template-columns: 1fr; }
  .story-portrait { padding: 0; }
  .story-portrait img { border-radius: 0; }
}

@media (max-width: 400px) {
  .story-site-links { gap: 9px; font-size: 0.85rem; }
  .story-link-button { padding-inline: 11px; gap: 5px; font-size: 0.85rem; }
  .story-chapters { gap: 8px; }
  .story-chapters a { padding-inline: 10px; }
}

.story-footer .ocean-icp a { text-decoration: underline; text-underline-offset: 4px; }
