:root {
  --color-bg: #0a1116;
  --color-bg-soft: #152129;
  --color-paper: #f4efe6;
  --color-paper-edge: rgba(5, 15, 25, 0.14);
  --color-ink: rgb(5, 15, 25);
  --color-muted: rgba(5, 15, 25, 0.72);
  --font-serif: "Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052,
    serif;
  --shell-width: min(960px, calc(100vw - 2rem));
}

@supports (font-variation-settings: normal) {
  :root {
    font-family: var(--font-sans);
  }
}

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

html {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  color: white;
  font-family: var(--font-sans);
}

::selection {
  background: var(--color-accent);
  color: var(--color-ink);
}

.page-shell {
  width: var(--shell-width);
  margin: 0 auto;
  padding: 4rem 0 5rem;
}

.title-block {
  color: var(--color-ink);
  margin-bottom: 2rem;
  margin-left: 2.5rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 420;
  line-height: 0.92;
  letter-spacing: -0.07em;
  text-wrap: balance;
}

.story-panel {
  position: relative;
  background: linear-gradient(180deg, rgba(244, 239, 230, 0.99) 0%, rgba(239, 233, 223, 1) 100%);
  border: 1px solid var(--color-paper-edge);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.24);
}

.story-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0.45rem;
}

.story-body {
  padding: 2.6rem 2.6rem 3rem;
}

.story-body p {
  margin: 0 0 1.45rem;
  color: var(--color-ink);
  font-family: var(--font-serif);
  font-size: 1.24rem;
  line-height: 1.84;
  text-wrap: pretty;
}

.story-body p:nth-child(-n + 3) {
  font-size: 1.34rem;
  line-height: 1.72;
}

.story-body p:last-child {
  margin-bottom: 0;
}

@media screen and (max-width: 720px) {
  .page-shell {
    width: min(100vw - 1rem, 100%);
    padding: 2rem 0 2.5rem;
  }

  .title-block {
    margin-left: 1rem;
    margin-bottom: 1.4rem;
  }

  .story-body {
    padding: 1.6rem 1.2rem 2rem;
  }

  .story-body p,
  .story-body p:nth-child(-n + 3) {
    font-size: 1.08rem;
    line-height: 1.76;
  }
}