:root {
  --background: #f0ebe0;
  --paper: #faf6ee;
  --ink: #2a2824;
  --muted: rgba(42, 40, 36, 0.58);
  --line: rgba(42, 40, 36, 0.16);
  --stamp: #6b3d38;
  --stamp-soft: rgba(107, 61, 56, 0.14);
  --official: #3d4f62;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family: "Times New Roman", Times, serif;
  color: var(--ink);
  background-color: var(--background);
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 27px,
    rgba(42, 40, 36, 0.04) 27px,
    rgba(42, 40, 36, 0.04) 28px
  );
}

.page-shell,
.site-footer {
  position: relative;
  z-index: 2;
}

.page-shell {
  width: min(1280px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 5rem 0 3rem;
}

.buy-button {
  display: block;
  width: fit-content;
  margin: 0 auto;
  padding: 0.85rem 1.35rem;
  border: 1px solid rgba(26, 26, 26, 0.75);
  border-radius: 8px 13px;
  color: var(--ink);
  background: transparent;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-style: normal;
  line-height: 1;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.buy-button:hover,
.buy-button:focus-visible {
  border-color: #ff8a00;
  color: #ff8a00;
  transform: translateY(-2px);
}

.buy-button--top {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.buy-button--bottom {
  margin-top: clamp(-0.5rem, -1vw, -0.25rem);
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.kicker {
  margin: 0 0 1.4rem;
  width: min(860px, 100%);
  margin-inline: auto;
  font-size: 0.9rem;
  font-style: italic;
  letter-spacing: 0.08em;
  opacity: 0.55;
  text-transform: lowercase;
}

.issue-tag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.12rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 0.78em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
  opacity: 0.85;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  width: min(860px, 100%);
  max-width: 18ch;
  margin-inline: auto;
  margin-bottom: 0.75rem;
  font-size: clamp(2.4rem, 7.5vw, 6.5rem);
  font-weight: normal;
  line-height: 0.92;
  letter-spacing: -0.05em;
  text-align: left;
}

.date {
  width: min(860px, 100%);
  margin-inline: auto;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-style: italic;
  text-align: left;
}

figure {
  margin: 0;
}

.story {
  width: min(860px, 100%);
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.42;
  text-align: left;
}

.story--pull {
  margin-left: auto;
  margin-right: auto;
}

.story--dialogue {
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.35rem, 3.5vw, 2.25rem);
  border-left: 3px solid var(--stamp);
  background: var(--paper);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(42, 40, 36, 0.06);
  font-style: italic;
  color: var(--official);
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.dialogue-bubbles {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
}

.dialogue-bubble {
  position: relative;
  width: min(100%, 42ch);
  margin: 0;
  padding: 0.6rem 0.95rem;
  border: 1px solid rgba(61, 79, 98, 0.24);
  border-radius: 1.1rem;
  background: #ffffff;
  line-height: 1.35;
}

.dialogue-bubble::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  bottom: -0.52rem;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 1px solid rgba(61, 79, 98, 0.24);
  border-bottom: 1px solid rgba(61, 79, 98, 0.24);
  background: #ffffff;
  transform: rotate(45deg);
}

.story-section {
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
}

.story-section h2 {
  width: min(860px, 100%);
  margin-inline: auto;
  margin-bottom: 0.35rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: normal;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-align: left;
}

.section-tagline {
  width: min(860px, 100%);
  margin: 0 auto clamp(1.5rem, 3vw, 2.25rem);
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-style: italic;
  text-align: left;
}

.media-slot {
  width: min(100%, 920px);
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}

.media-slot figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: clamp(0.92rem, 1.5vw, 1.05rem);
  font-style: italic;
  line-height: 1.3;
}

.media-embed {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  background: #1e1c19;
}

.media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(160px, 28vw, 320px);
  padding: 2rem 1.5rem;
  border: 2px dashed rgba(107, 61, 56, 0.4);
  border-radius: 4px;
  background: var(--stamp-soft);
  color: var(--ink);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-style: italic;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.media-slot--gif .media-placeholder {
  aspect-ratio: 4 / 3;
  min-height: 0;
}

.media-slot--demo .media-placeholder {
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.media-slot--gif .media-embed {
  max-width: min(720px, 100%);
  margin-inline: auto;
  height: auto;
  object-fit: contain;
}

.media-slot--demo .media-embed {
  aspect-ratio: 16 / 9;
}

.story-section .story {
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

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

.story--closing {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  font-style: italic;
}

.newsletter-signoff {
  width: min(860px, 100%);
  margin-inline: auto;
  text-align: left;
}

.site-footer {
  padding: 0 1rem 2rem;
  text-align: center;
}

@media (max-width: 820px) {
  .page-shell {
    padding-top: 4rem;
  }

  .story--pull {
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  .page-shell {
    width: min(100% - 1.5rem, 1120px);
    padding-top: 3rem;
  }
}
