:root {
  color-scheme: light;
  --bg: #efece6;
  --card: #ffffff;
  --ink: #1c1c1c;
  --body: #4d4b47;
  --muted: #817d73;
  --accent: #f0522d;
  --radius: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  padding: 28px 32px 64px;
  background: var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid rgba(240, 82, 45, 0.38);
  outline-offset: 3px;
}

.story-header,
.story-main {
  width: min(100%, 1040px);
  margin-inline: auto;
}

.story-header {
  min-height: 42px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-size: 20px;
  font-weight: 820;
  letter-spacing: -0.045em;
}

.logo span {
  color: var(--accent);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.story-main {
  display: grid;
  gap: 10px;
}

.story-hero,
.story-section,
.story-figure {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
}

.story-hero img {
  width: 100%;
  max-height: 600px;
  display: block;
  object-fit: cover;
}

.story-intro {
  padding: clamp(28px, 6vw, 72px);
}

.story-label {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 16ch;
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 850;
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.story-lede {
  max-width: 60ch;
  margin-top: 22px;
  color: var(--body);
  font-size: clamp(18px, 2.3vw, 26px);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.story-section {
  padding: clamp(26px, 5vw, 56px);
}

.story-section h2 {
  max-width: 18ch;
  margin-bottom: 18px;
  font-size: clamp(27px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.story-section p {
  max-width: 68ch;
  color: var(--body);
  font-size: 16px;
  line-height: 1.7;
}

.story-section p + p {
  margin-top: 16px;
}

.story-figure img {
  width: 100%;
  max-height: 760px;
  display: block;
  object-fit: cover;
}

.story-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 10px;
}

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

.story-split .story-figure img {
  height: 100%;
  max-height: none;
}

@media (max-width: 720px) {
  body {
    padding: 16px 10px 36px;
  }

  .story-header {
    min-height: 38px;
    margin-bottom: 14px;
  }

  .logo {
    font-size: 18px;
  }

  .back-link {
    padding: 8px 12px;
    font-size: 11px;
  }

  .story-main {
    width: 100%;
  }

  .story-hero,
  .story-figure {
    width: 100%;
    margin: 0;
  }

  .story-hero img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-position: center;
  }

  .story-intro {
    padding: 26px;
  }

  h1 {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: clamp(38px, 11vw, 48px);
    line-height: 0.98;
  }

  .story-lede {
    margin-top: 18px;
    font-size: 17px;
    line-height: 1.45;
  }

  .story-section {
    padding: 26px;
  }

  .story-section h2 {
    max-width: 100%;
    font-size: 28px;
    line-height: 1.02;
  }

  .story-section p {
    font-size: 15px;
    line-height: 1.65;
  }

  .story-split {
    grid-template-columns: 1fr;
  }

  .story-split .story-figure img {
    width: 100%;
    height: auto;
    max-height: 520px;
  }
}
