:root {
  --ink: #29272c;
  --ink-soft: #5f5960;
  --paper: #f5f1e9;
  --surface: #fffdf9;
  --burgundy: #8f2439;
  --burgundy-dark: #6f1729;
  --gold: #c5a45f;
  --teal: #2f6c70;
  --line: #ded6c8;
  --shadow: 0 24px 70px rgba(45, 37, 37, 0.13);
  --radius: 22px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Raleway, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: -5rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  color: #fff;
  background: var(--burgundy-dark);
  border-radius: 0.5rem;
}

.skip-link:focus {
  top: 1rem;
}

.shell {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  color: #fff;
  background: rgba(41, 39, 44, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: grid;
  text-decoration: none;
  line-height: 1.05;
}

.brand strong {
  color: #f0d487;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
}

.brand span {
  margin-top: 0.28rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav,
.language-nav,
.story-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.site-nav a,
.language-nav a,
.story-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.language-nav a:hover,
.language-nav a:focus-visible,
.story-nav a:hover,
.story-nav a:focus-visible {
  color: var(--ink);
  background: #fff;
}

.hero {
  overflow: hidden;
  padding: clamp(4.5rem, 9vw, 8rem) 0;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 64px 64px,
    var(--ink);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 6rem);
}

.hero-grid > * {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 1rem;
  color: #e3c77e;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.06;
  text-wrap: balance;
}

h1,
h2,
h3,
.eyebrow,
.brand span,
.site-nav a,
.language-nav a,
.story-nav a,
.button,
.article-kicker,
.article-meta,
.fiction-note,
.card p,
.story p {
  overflow-wrap: anywhere;
}

h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(3rem, 4.2vw, 4rem);
}

h1 span {
  display: block;
  margin-top: 0.45rem;
  color: #e3c77e;
  font-size: 0.42em;
  line-height: 1.2;
}

.hero-lead {
  max-width: 43rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
}

.story-cover {
  width: min(280px, 100%);
  margin: 0;
}

.story-cover img,
.story-box__cover img,
.story-card__cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.story-feature__content {
  max-width: 46rem;
}

.story-format {
  margin: -0.45rem 0 1.2rem;
  color: #e3c77e;
  font-weight: 800;
}

.story-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.4rem 0;
}

.story-status span {
  padding: 0.4rem 0.7rem;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.story-feature__button {
  margin-top: 0;
}

.hero-figure {
  margin: 0;
}

.hero-figure img {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-figure figcaption {
  margin-top: 0.7rem;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.75rem;
}

.section {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}

.section-paper {
  background: var(--paper);
}

.section-head {
  max-width: 48rem;
  margin-bottom: 2.5rem;
}

.section-head h2,
.chronology h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
}

.section-head p,
.card p,
.chronology p {
  color: var(--ink-soft);
}

.language-intro {
  display: grid;
  gap: 0.35rem;
}

.language-intro p {
  margin: 0;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(45, 37, 37, 0.08);
}

.card .language-code {
  color: var(--burgundy);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.card h3 {
  margin: 1rem 0 0.7rem;
  font-size: 1.75rem;
}

.card p {
  margin: 0 0 1.5rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 0.75rem 1.1rem;
  color: #fff;
  background: var(--burgundy);
  border: 2px solid var(--burgundy);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  background: var(--burgundy-dark);
  border-color: var(--burgundy-dark);
}

.chronology-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.chronology-list li {
  position: relative;
  padding: 1.5rem;
  background: #fff;
  border-top: 5px solid var(--gold);
  box-shadow: 0 12px 32px rgba(45, 37, 37, 0.07);
}

.chronology-list strong,
.chronology-list span {
  display: block;
}

.chronology-list strong {
  margin-bottom: 0.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.chronology-list span {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.article-hero {
  padding: clamp(3.5rem, 7vw, 6rem) 0 3rem;
  color: #fff;
  background: var(--ink);
}

.article-hero h1 {
  max-width: 13ch;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
}

.article-kicker {
  margin: 0 0 0.9rem;
  color: #e3c77e;
  font-weight: 800;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.language-strip {
  padding: 1rem 0;
  color: #fff;
  background: var(--teal);
}

.language-strip .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.language-strip p {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
}

.language-nav a[aria-current="page"] {
  color: var(--ink);
  background: #fff;
}

.story-image {
  margin: 0;
  padding: 2rem 0 0;
  background: var(--paper);
}

.story-image img {
  width: 100%;
  max-height: 690px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.story-image figcaption {
  margin-top: 0.8rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.context-box,
.fiction-note,
.translation-note {
  margin: 2rem 0;
  padding: 1.3rem 1.5rem;
  border-left: 5px solid var(--gold);
  background: var(--paper);
}

.translation-note {
  border-left-color: var(--burgundy);
}

.context-box strong,
.fiction-note strong,
.translation-note strong {
  display: block;
  margin-bottom: 0.35rem;
}

.reading-shell {
  width: min(760px, calc(100% - 48px));
  margin-inline: auto;
}

.story {
  padding: 1.5rem 0 clamp(5rem, 10vw, 8rem);
}

.story p {
  margin: 0 0 1.45em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.12rem, 2vw, 1.25rem);
  line-height: 1.75;
  hanging-punctuation: first last;
}

.story .continued {
  margin: 3rem 0 0;
  color: var(--burgundy);
  font-family: Raleway, "Segoe UI", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.story-box {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  margin: 0 0 clamp(4rem, 8vw, 6rem);
  padding: 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.story-box__cover {
  width: 80px;
  margin: 0;
}

.story-box__cover img {
  border-color: var(--line);
  border-radius: 4px;
  box-shadow: 0 10px 26px rgba(45, 37, 37, 0.14);
}

.story-box__content > .story-box__eyebrow {
  margin: 0 0 0.25rem;
  color: var(--burgundy);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.story-box h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.45rem, 4vw, 1.9rem);
}

.story-box__content > p:not(.story-box__eyebrow) {
  margin: 0 0 0.7rem;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.story-box__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
}

.story-box__links a {
  color: var(--burgundy-dark);
  font-size: 0.88rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

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

.story-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.story-card__cover {
  width: 112px;
  margin: 0;
}

.story-card > * {
  min-width: 0;
}

.story-card h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.story-card p {
  margin: 0 0 0.7rem;
  color: var(--ink-soft);
}

.story-card h2,
.story-card p,
.story-card a,
.story-card span {
  overflow-wrap: anywhere;
}

.story-footer {
  padding: 2.5rem 0;
  color: #fff;
  background: var(--ink);
}

.story-nav {
  justify-content: space-between;
}

.story-nav a {
  border-color: rgba(255, 255, 255, 0.3);
}

.site-footer {
  padding: 2rem 0;
  color: rgba(255, 255, 255, 0.68);
  background: #17161a;
  font-size: 0.82rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer a {
  color: #fff;
}

@media (max-width: 840px) {
  .hero-grid,
  .language-grid,
  .chronology-list,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .story-cover {
    width: 180px;
  }

  .chronology-list li {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .shell,
  .reading-shell {
    width: min(100% - 32px, 1120px);
  }

  .header-inner,
  .language-strip .shell,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    position: static;
  }

  .header-inner {
    padding: 1rem 0;
  }

  .site-nav,
  .language-nav {
    width: 100%;
  }

  .site-nav a,
  .language-nav a {
    flex: 1 1 auto;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    gap: 1rem;
  }

  .story-cover {
    flex: 0 0 112px;
    width: 112px;
  }

  .story-feature__content .eyebrow {
    margin-bottom: 0.55rem;
  }

  .story-feature__content h1 {
    margin-bottom: 1.25rem;
  }

  .story-feature__content {
    flex: 1 1 12rem;
    min-width: 0;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 10vw, 2.75rem);
  }

  .hero .story-feature__content h1 {
    overflow-wrap: anywhere;
    hyphens: none;
    word-break: normal;
    font-size: clamp(1.4rem, 6.8vw, 2rem);
  }

  .story-image img {
    min-height: 250px;
  }

  .story-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .story-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .story-card__cover {
    width: 96px;
  }
}

@media (max-width: 440px) {
  .story-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .hero-grid {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .story-cover {
    flex-basis: 96px;
    width: 96px;
  }

  .story-box {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 0.9rem;
    padding: 1rem;
  }

  .story-box__cover {
    width: 72px;
  }

}

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