:root {
  color-scheme: light;
  --ink: #14213d;
  --paper: #f8f4ea;
  --white: #fffdf7;
  --accent: #c84b31;
  --muted: #596275;
  --line: rgba(20, 33, 61, 0.16);
  --soft-accent: rgba(200, 75, 49, 0.09);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(200, 75, 49, 0.11), transparent 30rem),
    linear-gradient(135deg, var(--white), var(--paper));
  font-family: var(--serif);
}

a {
  color: inherit;
}

.site-header,
.site-footer,
.home,
.page-shell,
.story-shell {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-decoration: none;
}

nav {
  display: flex;
  gap: clamp(18px, 4vw, 38px);
  font: 700 0.72rem/1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

nav a {
  position: relative;
  padding: 12px 0;
  color: var(--muted);
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible,
nav a.active {
  color: var(--ink);
}

nav a.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  background: var(--accent);
}

.home {
  min-height: calc(100vh - 172px);
  display: grid;
  align-content: center;
  justify-items: start;
  padding: clamp(64px, 11vw, 140px) 0;
}

.eyebrow,
.story-meta,
.section-label {
  margin: 0 0 24px;
  color: var(--accent);
  font: 800 0.72rem/1.3 var(--sans);
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h1,
h2,
p {
  text-wrap: pretty;
}

.home h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.9;
}

.rule {
  width: 72px;
  height: 3px;
  margin: 42px 0 28px;
  border: 0;
  background: var(--accent);
}

.intro {
  max-width: 38rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  line-height: 1.65;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  color: var(--ink);
  font: 800 0.78rem/1 var(--sans);
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.arrow-link span {
  color: var(--accent);
  font-size: 1.15rem;
  transition: transform 160ms ease;
}

.arrow-link:hover span,
.arrow-link:focus-visible span {
  transform: translateX(5px);
}

.site-footer {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 700 0.67rem/1.4 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-shell {
  padding: clamp(70px, 10vw, 128px) 0;
}

.page-hero {
  max-width: 820px;
}

.page-hero h1,
.story-header h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.page-hero .intro {
  margin-top: 30px;
}

.disclosure-note {
  max-width: 820px;
  margin: 46px 0 0;
  padding: 22px 24px;
  border-left: 3px solid var(--accent);
  background: var(--soft-accent);
  color: var(--muted);
  font: 500 0.9rem/1.65 var(--sans);
}

.story-list {
  margin-top: clamp(64px, 9vw, 110px);
}

.story-list-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.story-list-header h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.story-list-header span {
  color: var(--muted);
  font: 700 0.67rem/1.4 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.empty-state {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  min-height: 230px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.empty-state h3 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 500;
}

.empty-state p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font: 400 1rem/1.7 var(--sans);
}

.empty-mark {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  font-size: 2rem;
}

.story-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 36px;
  min-height: 270px;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding 180ms ease;
}

.story-card:hover,
.story-card:focus-visible {
  padding-right: 18px;
  padding-left: 18px;
  background: rgba(255, 255, 255, 0.35);
  outline: none;
}

.story-card-meta {
  margin: 0 0 16px;
  color: var(--accent);
  font: 800 0.68rem/1.4 var(--sans);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.story-card h3 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.story-card-copy > p:last-child {
  max-width: 600px;
  margin: 16px 0 0;
  color: var(--muted);
  font: 400 1rem/1.65 var(--sans);
}

.story-card-arrow {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  font: 400 1.6rem/1 var(--sans);
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.story-card:hover .story-card-arrow,
.story-card:focus-visible .story-card-arrow {
  color: var(--white);
  background: var(--accent);
  transform: translateX(5px);
}

.story-shell {
  max-width: 820px;
  padding: clamp(70px, 10vw, 128px) 0;
}

.story-deck {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  line-height: 1.6;
}

.story-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 28px 0 0;
  color: var(--muted);
  font: 700 0.72rem/1.5 var(--sans);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.story-byline span + span::before {
  content: "•";
  margin-right: 18px;
  color: var(--accent);
}

.story-disclosure {
  margin: 34px 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  color: var(--muted);
  font: 600 0.82rem/1.55 var(--sans);
}

.story-disclosure.demo {
  border-color: var(--accent);
  background: var(--soft-accent);
  color: var(--ink);
}

.story-figure {
  width: min(1100px, calc(100vw - 48px));
  margin: 52px 50% 38px;
  transform: translateX(-50%);
}

.story-image-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e8e2d7;
  box-shadow: 0 24px 60px rgba(20, 33, 61, 0.12);
}

.story-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.comparison-label {
  position: absolute;
  top: 18px;
  padding: 9px 12px;
  color: var(--white);
  background: rgba(20, 33, 61, 0.88);
  font: 800 0.68rem/1 var(--sans);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.comparison-label.before {
  left: 18px;
}

.comparison-label.after {
  right: 18px;
}

.story-figure figcaption {
  margin-top: 14px;
  color: var(--muted);
  font: 500 0.78rem/1.6 var(--sans);
}

.story-body {
  margin-top: 54px;
  font-size: clamp(1.08rem, 2vw, 1.22rem);
  line-height: 1.85;
}

.story-body h2 {
  margin: 2.2em 0 0.65em;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.story-body blockquote {
  margin: 2em 0;
  padding-left: 28px;
  border-left: 3px solid var(--accent);
  color: var(--ink);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.45;
}

.routine-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 30px 0 38px;
}

.routine-card {
  padding: 26px;
  border-top: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.45);
}

.routine-card h3 {
  margin: 0 0 12px;
  color: var(--accent);
  font: 800 0.72rem/1.3 var(--sans);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.routine-card p {
  margin: 0;
  font: 500 0.96rem/1.7 var(--sans);
}

.lesson-list {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: lesson;
}

.lesson-list li {
  position: relative;
  padding: 30px 0 30px 58px;
  border-top: 1px solid var(--line);
  counter-increment: lesson;
}

.lesson-list li::before {
  content: "0" counter(lesson);
  position: absolute;
  top: 33px;
  left: 0;
  color: var(--accent);
  font: 800 0.72rem/1.3 var(--sans);
  letter-spacing: 0.12em;
}

.lesson-list h3 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 500;
  line-height: 1.15;
}

.lesson-list p {
  margin: 0;
}

.story-source-note {
  margin: 56px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 500 0.78rem/1.7 var(--sans);
}

.submission-story .story-header {
  max-width: 700px;
}

.submission-note {
  max-width: 700px;
  margin: 28px auto 0;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 600 0.78rem/1.65 var(--sans);
}

.submitted-copy {
  max-width: 700px;
  margin: 48px auto 0;
}

.submitted-copy p {
  margin: 0 0 1.45em;
}

.submitted-copy h2 {
  margin: 2.3em 0 1em;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.submitted-section-intro {
  margin-top: 2.8em !important;
  font-weight: 600;
}

.submitted-list {
  margin: 0 0 2.5em;
  padding: 0;
  list-style: none;
}

.submitted-list li {
  position: relative;
  margin-bottom: 1.35em;
  padding-left: 1.4em;
}

.submitted-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.pending-link {
  color: var(--accent);
}

.submitted-closing {
  margin-top: 2.4em !important;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 600;
  line-height: 1.4;
}

.submission-context {
  max-width: 700px;
  margin: 56px auto 0;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.35);
  color: var(--muted);
  font: 500 0.78rem/1.7 var(--sans);
}

@media (max-width: 640px) {
  .site-header,
  .site-footer,
  .home,
  .page-shell,
  .story-shell {
    width: min(100% - 32px, 1120px);
  }

  .site-header {
    min-height: 76px;
  }

  .home {
    min-height: calc(100vh - 144px);
  }

  .site-footer,
  .story-list-header {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .empty-state {
    grid-template-columns: 1fr;
  }

  .empty-mark,
  .story-card-arrow {
    display: none;
  }

  .story-card {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 34px 0;
  }

  .story-card:hover,
  .story-card:focus-visible {
    padding-right: 0;
    padding-left: 0;
  }

  .story-byline {
    display: grid;
    gap: 4px;
  }

  .story-byline span + span::before {
    content: none;
  }

  .story-figure {
    width: 100%;
    margin-top: 38px;
  }

  .comparison-label {
    top: 10px;
    padding: 7px 9px;
    font-size: 0.58rem;
  }

  .comparison-label.before {
    left: 10px;
  }

  .comparison-label.after {
    right: 10px;
  }

  .routine-grid {
    grid-template-columns: 1fr;
  }

  .lesson-list li {
    padding-left: 44px;
  }
}

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

  * {
    transition: none !important;
  }
}
