/* A reading page for Centum's language-and-world story. No remote fonts. */
.story-page {
  color-scheme: light;
  --site-bg: #f7f4ed;
  --site-surface: #fffcf6;
  --site-ink: #242923;
  --site-muted: #62695f;
  --site-line: #2e3d2c26;
  --site-accent: #d9a441;
  --bg: #f7f4ed;
  --ink: #242923;
  --accent: #9d6b1b;
  --font-display: Georgia, 'Songti SC', 'Hiragino Mincho ProN', serif;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    19px/1.9 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    'PingFang SC',
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
.story-page * {
  box-sizing: border-box;
}
.story-container {
  width: min(1200px, calc(100% - 96px));
  margin: 0 auto;
}
.story-hero {
  position: relative;
  min-height: min(830px, calc(100svh - 76px));
  display: flex;
  align-items: center;
  padding: 72px 0 88px;
  overflow: hidden;
}
.story-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
}
.story-opening {
  position: relative;
  z-index: 1;
}
.story-eyebrow {
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: #606952;
  margin: 0 0 32px;
}
.story-title {
  margin: 0 0 32px;
  font: 400 clamp(48px, 6.2vw, 90px)/1.13 var(--font-display);
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.story-title > span {
  display: block;
}
.story-title > span:last-child {
  color: #8c621f;
}
.story-intro {
  max-width: 30rem;
  color: #50594f;
  font-size: 19px;
  line-height: 1.85;
  margin: 0 0 30px;
}
.story-guide-link {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  min-height: 44px;
  color: #303b30;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid #7e8c7680;
}
.story-guide-link > span {
  transition: transform 160ms ease;
}
.story-guide-link:hover > span {
  transform: translate(2px, -2px);
}
.story-world {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1;
  margin: auto;
  background: radial-gradient(ellipse at center, #d8c49b33 0, transparent 68%);
}
.story-world > svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #a58f6380;
  stroke-width: 0.8;
}
.world-meridian {
  stroke-dasharray: 3 7;
}
.world-equator {
  stroke: #7b8e6b70;
}
.world-inner {
  stroke: #a58f6328;
}
.story-world .world-dot {
  fill: #9e7839;
  stroke: #f7f4ed;
  stroke-width: 3;
}
.world-word {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font: 400 clamp(58px, 7.4vw, 104px)/1 var(--font-display);
  letter-spacing: -0.035em;
  color: #665132;
}
.world-greeting {
  position: absolute;
  padding: 2px 10px;
  font:
    400 18px/1.5 Georgia,
    serif;
  color: #606c58;
  background: #f7f4edee;
}
.greeting-one {
  top: 12%;
  left: 32%;
}
.greeting-two {
  top: 30%;
  right: 0;
  font-style: italic;
}
.greeting-three {
  bottom: 16%;
  right: 15%;
}
.greeting-four {
  bottom: 30%;
  left: 0;
  font:
    15px/1.5 -apple-system,
    sans-serif;
}
.greeting-five {
  top: 22%;
  left: 4%;
  font:
    13px/1.5 -apple-system,
    sans-serif;
}
.story-chapter {
  padding: 84px 0;
  border-top: 1px solid var(--site-line);
}
.story-chapter:nth-of-type(3) {
  background: #eee9de;
}
.story-chapter-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr);
  column-gap: 112px;
}
.story-chapter h2 {
  margin: 0;
  font: 400 36px/1.45 var(--font-display);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.story-chapter h2 > span {
  display: block;
}
.story-chapter-copy {
  max-width: 41rem;
  color: #424c42;
}
.story-chapter p {
  margin: 0;
}
.story-chapter p + p {
  margin-top: 24px;
}
.story-close {
  background: #19251f;
  color: #f7f4ed;
  padding: 88px 0 68px;
  --ink: #f7f4ed;
  --bg: #19251f;
  --accent: #e2b65c;
}
.story-close .story-closing-title {
  margin: 0;
  font: 400 clamp(38px, 4.5vw, 64px)/1.3 var(--font-display);
  max-width: 100%;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.story-closing-title > span {
  display: block;
}
.story-close p {
  font-size: 17px;
  line-height: 1.8;
  max-width: 42rem;
  color: #c8d0c6;
  margin: 26px 0;
}
.story-download {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  min-height: 48px;
  padding: 10px 22px;
  margin-top: 8px;
  border-radius: 7px;
  background: #d9a441;
  color: #241b0e;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background-color 160ms ease;
}
.story-download:hover {
  transform: translateY(-2px);
  background: #e7b65b;
}
.story-download:active {
  transform: translateY(1px);
}
.story-close .story-byline {
  margin: 44px 0 0;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: #b1beb0;
}
.m-enter .story-opening {
  animation: story-arrive 700ms cubic-bezier(0.2, 0.65, 0.3, 1) both;
}
.m-enter .story-world {
  animation: story-arrive 950ms cubic-bezier(0.2, 0.65, 0.3, 1) 80ms both;
}
@keyframes story-arrive {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 1050px) {
  .story-hero-grid {
    gap: 24px;
  }
  .story-chapter-grid {
    column-gap: 64px;
  }
  .story-chapter h2 {
    font-size: 30px;
  }
}
@media (max-width: 760px) {
  .story-container {
    width: calc(100% - 40px);
  }
  .story-hero {
    display: block;
    min-height: auto;
    padding: 48px 0 44px;
  }
  .story-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .story-title {
    font-size: clamp(38px, 10.8vw, 64px);
    margin-bottom: 24px;
    line-height: 1.18;
  }
  .story-eyebrow {
    margin-bottom: 24px;
    font-size: 12px;
  }
  .story-intro {
    max-width: 34rem;
    font-size: 17px;
    line-height: 1.85;
    margin-bottom: 20px;
  }
  .story-world {
    max-width: 340px;
  }
  .world-word {
    font-size: 74px;
  }
  .world-greeting {
    font-size: 15px;
  }
  .greeting-four {
    font-size: 13px;
  }
  .greeting-five {
    font-size: 12px;
  }
  .story-chapter {
    padding: 48px 0 52px;
  }
  .story-chapter-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .story-chapter h2 {
    font-size: 28px;
  }
  .story-chapter-copy {
    font-size: 17px;
    line-height: 1.95;
  }
  .story-chapter p + p {
    margin-top: 20px;
  }
  .story-close {
    padding: 52px 0 44px;
  }
  .story-close .story-closing-title {
    font-size: clamp(28px, 7.6vw, 46px);
    line-height: 1.5;
  }
  .story-close p {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .m-enter .story-opening,
  .m-enter .story-world {
    animation: none;
  }
}
