@import "https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Caslon+Text:ital@0;1&family=Manrope:wght@500;600;700;800&display=swap";

/* src/stories/stories.css */
:root {
  --ink:#293940;
  --red:#A61B26;
  --orange:#D94F30;
  --paper:#f7f9f8;
  --surface:#fff;
  --muted:#687376;
  --line:#d0d8d9;
  --soft:#e9eeee;
  --focus:#a61b26;
  --control-hover:#dbe5e4;
  --control-hover-ink:#17282e;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}
a {
  color: inherit;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.stories-header {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  position: relative;
  z-index: 10;
}
.stories-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font: 800 24px Manrope, sans-serif;
  letter-spacing: -.05em;
}
.stories-brand img {
  width: 34px;
  height: 34px;
}
.stories-header nav {
  display: flex;
  align-items: center;
  gap: 25px;
}
.stories-header nav a,
.stories-header nav button {
  border: 0;
  background: transparent;
  text-decoration: none;
  font-weight: 600;
}
.stories-footer {
  min-height: 180px;
  padding: 52px clamp(20px, 5vw, 72px);
  background: #293940;
  color: #f3f4f4;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stories-footer img {
  filter: brightness(0) invert(1);
}
.stories-footer p {
  color: #b8c3c5;
}
.stories-masthead {
  padding: clamp(70px, 10vw, 150px) max(5vw, calc((100vw - 1320px)/2));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, .45fr);
  align-items: end;
  gap: 7vw;
}
.stories-masthead > p {
  grid-column: 1/3;
  margin: 0 0 18px;
  font: 600 15px Manrope;
  color: var(--red);
}
.stories-masthead h1 {
  margin: 0;
  font: 600 clamp(42px, 7vw, 96px)/.98 Manrope;
  letter-spacing: -.065em;
  max-width: 900px;
}
.stories-masthead > span {
  font: italic clamp(18px, 2vw, 26px)/1.45 "Libre Caslon Text", serif;
  color: var(--muted);
  padding-bottom: 8px;
}
.story-card {
  max-width: 1320px;
  margin: 0 auto;
  padding: 70px 5vw;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(34px, 6vw, 90px);
  align-items: center;
}
.story-card-image {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--soft);
}
.story-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.story-card-image:hover img {
  transform: scale(1.018);
}
.story-card-copy {
  max-width: 550px;
}
.story-card-copy h2 {
  font: 600 clamp(30px, 4vw, 54px)/1.05 Manrope;
  letter-spacing: -.05em;
  margin: 8px 0 18px;
}
.story-card-copy h2 a {
  text-decoration: none;
}
.story-card-copy > p {
  font-size: 17px;
  line-height: 1.65;
}
.story-date {
  font: 600 13px Manrope;
  color: var(--red);
}
.story-deck {
  font: italic 20px/1.5 "Libre Caslon Text", serif;
  color: var(--muted);
}
.read-story {
  display: inline-block;
  margin-top: 20px;
  font-weight: 700;
  text-underline-offset: 6px;
}
.story-grid {
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px 5vw 100px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 70px 40px;
}
.story-grid .story-card {
  display: block;
  padding: 0;
  border: 0;
}
.story-grid .story-card-image {
  aspect-ratio: 16/11;
}
.story-grid .story-card-copy {
  padding-top: 25px;
}
.story-grid .story-card-copy h2 {
  font-size: 32px;
}
.stories-empty,
.stories-state {
  min-height: 65vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 40px;
}
.stories-empty h2,
.stories-state h1 {
  font: 600 clamp(32px, 5vw, 64px) Manrope;
  margin: 0;
}
.stories-state p,
.stories-empty p {
  color: var(--muted);
}
.spinner {
  width: 34px;
  height: 34px;
  border: 3px solid var(--line);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: auto;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.preview-banner {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff1d4;
  color: #644b12;
  text-align: center;
  padding: 10px;
  font-weight: 700;
}
.story-hero-copy {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(70px, 10vw, 140px) 5vw 55px;
  text-align: center;
}
.story-hero-copy > a {
  color: var(--red);
  font-weight: 700;
}
.story-hero-copy h1 {
  font: 600 clamp(44px, 8vw, 104px)/.96 Manrope;
  letter-spacing: -.07em;
  margin: 28px auto;
  max-width: 950px;
}
.story-hero-copy > p {
  font: italic clamp(20px, 2.6vw, 31px)/1.5 "Libre Caslon Text", serif;
  max-width: 780px;
  margin: 0 auto;
  color: var(--muted);
}
.story-byline {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 35px;
  color: var(--muted);
  font-size: 14px;
}
.story-byline span + span:before,
.story-byline time + span:before {
  content: "\2022";
  margin-right: 14px;
}
.story-hero-image {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 3vw;
}
.story-hero-image img {
  width: 100%;
  max-height: 82vh;
  object-fit: cover;
  display: block;
}
.story-hero-image figcaption,
.story-figure figcaption {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 10px;
}
.story-reading {
  max-width: 1240px;
  margin: 0 auto;
  padding: 45px 5vw 130px;
  position: relative;
}
.share-anchor {
  max-width: 720px;
  margin: 0 auto 60px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  font-weight: 700;
}
.share-buttons {
  display: flex;
  gap: 8px;
}
.share-buttons button,
.share-sticky button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  font-weight: 700;
}
.share-sticky {
  position: fixed;
  z-index: 15;
  left: max(18px, calc(50vw - 570px));
  top: 130px;
  display: grid;
  gap: 8px;
}
.share-toast {
  position: fixed;
  z-index: 30;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #293940;
  color: #fff;
  padding: 13px 18px;
  border-radius: 10px;
  box-shadow: 0 10px 35px #0003;
}
.share-toast a {
  margin-left: 12px;
  font-weight: 700;
}
.story-prose {
  max-width: 720px;
  margin: auto;
  font:
    18px/1.82 "Libre Caslon Text",
    Georgia,
    serif;
}
.story-prose p {
  margin: 0 0 1.55em;
}
.story-prose h2,
.story-prose h3 {
  font-family: Manrope, sans-serif;
  letter-spacing: -.04em;
  line-height: 1.15;
}
.story-prose h2 {
  font-size: 38px;
  margin: 2.2em 0 .65em;
}
.story-prose h3 {
  font-size: 27px;
  margin: 1.8em 0 .6em;
}
.story-prose a {
  color: var(--red);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.story-prose blockquote {
  font-size: 27px;
  line-height: 1.5;
  font-style: italic;
  margin: 2em -8%;
  padding-left: 30px;
  border-left: 4px solid var(--red);
}
.story-prose li {
  margin: .45em 0;
}
.story-prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 4em auto;
  width: 45%;
}
.story-figure {
  margin: 3.5em -18%;
}
.story-figure img {
  display: block;
  width: 100%;
  max-height: 85vh;
  object-fit: contain;
  background: var(--soft);
}
.status {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 5px;
  background: var(--soft);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.status-published {
  background: #dcebe4;
  color: #1c624c;
}
.status-archived {
  background: #e7e8e8;
  color: #596164;
}
.section-heading p {
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}
.section-heading p {
  margin: 5px 0 0;
}
.story-grid {
  max-width: none;
  padding: 0 0 100px;
  display: block;
}
.story-grid .story-card {
  display: grid;
  padding: 70px 5vw;
  border-top: 1px solid var(--line);
}
.story-grid .story-card:last-child {
  border-bottom: 1px solid var(--line);
}
.story-grid .story-card-image {
  aspect-ratio: 4/3;
}
.story-grid .story-card-copy {
  padding-top: 0;
}
.story-grid .story-card-copy h2 {
  font-size: clamp(30px, 4vw, 54px);
}
@media (max-width:900px) {
  .stories-masthead {
    grid-template-columns: 1fr;
  }
  .stories-masthead > p {
    grid-column: 1;
  }
  .story-card,
  .story-grid .story-card {
    grid-template-columns: 1fr;
  }
  .story-grid .story-card-copy {
    padding-top: 25px;
  }
  .story-figure {
    margin: 3em 0;
  }
  .share-sticky {
    left: 50%;
    top: auto;
    bottom: 12px;
    transform: translateX(-50%);
    display: flex;
    padding: 7px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 8px 30px #0002;
    border-radius: 40px;
  }
  .share-sticky button {
    width: 36px;
    height: 36px;
  }
  .story-grid {
    grid-template-columns: 1fr;
  }
  .stories-footer {
    display: block;
  }
  .stories-footer p {
    margin-top: 20px;
  }
}
@media (max-width:600px) {
  .stories-header {
    height: 68px;
  }
  .stories-header nav a:first-child {
    display: none;
  }
  .stories-masthead {
    padding-top: 70px;
  }
  .stories-masthead h1 {
    font-size: 45px;
  }
  .story-card,
  .story-grid .story-card {
    padding: 45px 20px;
  }
  .story-hero-copy {
    padding-top: 60px;
  }
  .story-hero-copy h1 {
    font-size: 48px;
  }
  .story-hero-image {
    padding: 0;
  }
  .story-reading {
    padding-inline: 20px;
  }
  .share-anchor {
    align-items: flex-start;
    flex-direction: column;
  }
  .share-buttons {
    width: 100%;
    justify-content: space-between;
  }
  .share-buttons button {
    width: 38px;
    height: 38px;
  }
  .story-prose {
    font-size: 17px;
  }
  .story-prose h2 {
    font-size: 30px;
  }
  .story-prose blockquote {
    font-size: 22px;
    margin-inline: 0;
  }
}
:root[data-theme=dark] {
  --ink:#f3f4f4;
  --paper:#0f171a;
  --surface:#162328;
  --muted:#aeb5b7;
  --line:#3a4b50;
  --soft:#1d2c31;
  --focus:#ff757d;
  --control-hover:#dbe5e4;
  --control-hover-ink:#17282e;
}
.stories-brand img {
  filter: none;
}
:root[data-theme=dark] .stories-brand img {
  filter: brightness(0) invert(1);
}
:root[data-theme=dark] .stories-footer {
  background: #071014;
}
:root[data-theme=dark] .status-published {
  background: #174d40;
  color: #eef7f4;
}
:root[data-theme=dark] .status-archived {
  background: #303c40;
  color: #c5ccce;
}
:root[data-theme=dark] .share-toast {
  background: #f3f4f4;
  color: #172328;
}
@media (prefers-reduced-motion:reduce) {
  * {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
.stories-brand .brand-symbol {
  display: block;
  width: 43px;
  height: 36px;
  flex-shrink: 0;
}
.stories-brand .brand-wordmark {
  font: 700 18px/1 "DM Sans", sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #f3f4f4;
}
.stories-header {
  background: rgba(13, 30, 39, .94);
  color: #f3f4f4;
}
