:root {
  --paper: #f6f0e5;
  --paper-deep: #e9ddcd;
  --ink: #171d18;
  --muted: #625e55;
  --schist: #353f37;
  --river: #4b746f;
  --thyme: #667153;
  --gold: #b7772b;
  --line: rgba(32, 37, 31, 0.16);
  --shadow: 0 20px 60px rgba(32, 37, 31, 0.16);
}

* {
  box-sizing: border-box;
  min-width: 0;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(23, 29, 24, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: min(238px, 48vw);
  height: auto;
}

nav {
  display: flex;
  gap: 20px;
  color: rgba(255, 250, 240, 0.78);
  font-size: 0.95rem;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: #fffaf0;
}

.hero {
  position: relative;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(420px, 1.12fr);
  align-items: center;
  gap: clamp(26px, 4vw, 64px);
  padding: 70px clamp(20px, 5vw, 70px);
  overflow: hidden;
  background: var(--ink);
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 82% 28%, rgba(183, 119, 43, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(23, 29, 24, 0.98), rgba(53, 63, 55, 0.98));
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 0;
  color: #fffaf0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 14ch;
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7.2vw, 5.9rem);
  line-height: 0.96;
  font-weight: 500;
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  font-weight: 500;
}

h3 {
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1.12;
  font-weight: 500;
}

.hero-copy p:not(.eyebrow) {
  max-width: 560px;
  color: rgba(255, 250, 240, 0.88);
  font-size: 1.16rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.place-carousel {
  position: relative;
  z-index: 1;
  min-height: 520px;
  display: grid;
  align-items: stretch;
}

.slide {
  display: none;
  margin: 0;
}

.slide.active {
  display: grid;
  grid-template-rows: minmax(360px, 1fr) minmax(1.3em, auto);
  gap: 14px;
}

.contain-carousel .slide.active {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 240, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(rgba(23, 29, 24, 0.2), rgba(23, 29, 24, 0.42)),
    var(--slide-image) center / cover;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.contain-carousel .slide.active::before {
  position: absolute;
  inset: -28px;
  content: "";
  background: var(--slide-image) center / cover;
  filter: blur(24px) saturate(0.8) brightness(0.72);
  transform: scale(1.06);
}

.carousel-photo {
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 4679 / 4058;
  align-self: center;
  justify-self: center;
  object-fit: cover;
  border: 1px solid rgba(255, 250, 240, 0.16);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.contain-carousel .carousel-photo {
  max-width: calc(100% - 34px);
  max-height: calc(100% - 34px);
  margin: auto;
  object-fit: contain;
  border: 0;
  background: transparent;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.bookshelf-photo {
  background: #1f251f;
}

.range-photo {
  object-position: center center;
}

.sunrise-photo {
  object-position: center center;
}

.shed-photo {
  object-position: center center;
}

.frost-photo {
  object-position: center center;
}

.night-photo {
  object-position: center center;
}

.rings-photo {
  object-position: center center;
}

.slide figcaption {
  position: relative;
  z-index: 1;
  color: rgba(255, 250, 240, 0.76);
  font-size: 0.92rem;
}

.carousel-dots {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 44px;
  display: flex;
  gap: 7px;
}

.carousel-dots span {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255, 250, 240, 0.8);
  border-radius: 50%;
}

.carousel-dots span.active {
  background: #fffaf0;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 7px;
  font-weight: 750;
  text-decoration: none;
}

.primary {
  background: #fff8ea;
  color: var(--ink);
}

.secondary {
  border: 1px solid rgba(255, 250, 240, 0.55);
  color: #fff8ea;
}

.section {
  padding: 78px clamp(18px, 5vw, 70px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1.1fr);
  gap: 42px;
  border-bottom: 1px solid var(--line);
}

.intro > p {
  max-width: 720px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.text-link {
  color: var(--river);
  font-weight: 750;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.winner-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.25fr) repeat(3, minmax(220px, 1fr));
  gap: 16px;
}

.judges-line {
  max-width: 760px;
  margin: -12px 0 24px;
  color: var(--muted);
}

.judges-line a {
  color: var(--river);
  font-weight: 750;
  text-underline-offset: 4px;
}

.school-awards {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 20px;
}

.award-category {
  overflow: hidden;
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.award-category > header {
  padding: 24px;
  background: var(--schist);
  color: #fffaf0;
}

.award-category > header .eyebrow {
  margin-bottom: 7px;
  color: #f2c982;
}

.award-category > header h3 {
  margin: 0;
  font-size: 2rem;
}

.senior-category {
  grid-column: 1 / -1;
}

.open-coming-soon {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(300px, 1.2fr);
  min-height: 280px;
  background: #f3ecdf;
}

.open-coming-soon > header {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.coming-soon-copy {
  align-self: center;
  max-width: 620px;
  padding: clamp(32px, 6vw, 72px);
}

.coming-soon-copy > p:last-child {
  margin: 14px 0 0;
  color: var(--schist);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.55;
}

.launch-status {
  display: inline-block;
  margin: 0;
  padding: 7px 11px;
  background: rgba(84, 127, 125, 0.13);
  border-radius: 999px;
  color: var(--river);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.open-judges-report {
  grid-column: 1 / -1;
  order: 10;
  display: grid;
  grid-template-columns: minmax(210px, 0.55fr) minmax(300px, 1.45fr);
  gap: clamp(28px, 5vw, 76px);
  padding: clamp(30px, 5vw, 62px);
  background: #f3ecdf;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 22px;
  scroll-margin-top: 24px;
}

.school-judges-report {
  order: 11;
}

.school-presentations {
  grid-column: 1 / -1;
  margin-top: 22px;
  padding: clamp(30px, 5vw, 62px);
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.presentation-heading {
  max-width: 720px;
  margin-bottom: clamp(26px, 4vw, 42px);
}

.presentation-heading h3 {
  margin: 8px 0 18px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.02;
}

.presentation-intro {
  max-width: 34ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.presentation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 920px;
}

.presentation-card {
  margin: 0;
  overflow: hidden;
  background: #f3ecdf;
  border-radius: 6px;
}

.presentation-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.presentation-card figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 20px;
  padding: 14px 16px 16px;
}

.presentation-card figcaption strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 600;
}

.presentation-card figcaption span {
  color: var(--muted);
  font-size: 0.9rem;
}

.open-judges-report header {
  align-self: start;
}

.open-judges-report h3 {
  max-width: 9ch;
  margin: 8px 0 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.02;
}

.report-body {
  max-width: 72ch;
}

.report-body p {
  margin: 0 0 1.15em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.04rem;
  line-height: 1.72;
}

.report-body a {
  color: var(--river);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.report-body .report-signoff {
  margin: 1.8em 0 0;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
  font-weight: 750;
}

.award-group {
  padding: 22px 24px;
  border-top: 1px solid var(--line);
}

.award-group h4 {
  margin: 0 0 14px;
  color: #8b5a1e;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.award-group p {
  margin: 0;
  padding: 11px 0;
  border-top: 1px solid rgba(32, 37, 31, 0.1);
}

.award-group h4 + p {
  padding-top: 0;
  border-top: 0;
}

.award-group strong,
.award-group span {
  display: block;
}

.award-group strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-weight: 600;
}

.award-group strong a {
  text-decoration-color: rgba(75, 116, 111, 0.42);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.award-group strong a:hover {
  color: var(--river);
  text-decoration-color: currentColor;
}

.collection-note {
  margin: -12px 0 26px;
  color: var(--river);
  font-size: 0.95rem;
  font-weight: 750;
}

.collection-note a {
  color: inherit;
  text-underline-offset: 4px;
}

.award-group span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.92rem;
}

.placings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.placings-grid .award-group + .award-group {
  border-left: 1px solid var(--line);
}

.senior-commendations {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  border-top: 1px solid var(--line);
}

.senior-commendations .award-group {
  border-top: 0;
}

.senior-commendations .award-group + .award-group {
  border-left: 1px solid var(--line);
}

.winner-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.winner-card.feature {
  background: var(--schist);
  color: #fffaf0;
  box-shadow: var(--shadow);
}

.award,
.pill {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  padding: 5px 9px;
  background: rgba(185, 130, 58, 0.16);
  border-radius: 999px;
  color: #8b5a1e;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.feature .award {
  background: rgba(255, 250, 240, 0.12);
  color: #f2c982;
}

.winner-card p {
  color: var(--muted);
}

.feature p {
  color: rgba(255, 250, 240, 0.78);
}

.meta {
  font-weight: 750;
}

.winner-card a {
  margin-top: auto;
  color: var(--river);
  font-weight: 800;
}

.feature a {
  color: #f2c982;
}

.anthology {
  background: var(--paper-deep);
}

.count {
  color: var(--muted);
}

.filter-panel {
  display: grid;
  gap: 20px;
  margin-bottom: 26px;
  padding: 20px;
  background: rgba(255, 250, 242, 0.62);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.filter-group {
  display: grid;
  gap: 9px;
}

.filter-label {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.segmented-control,
.year-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter,
.year-chip {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.filter.active,
.year-chip.active {
  background: var(--ink);
  color: var(--paper);
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(170px, 0.78fr) minmax(230px, 1.1fr);
  gap: 14px;
}

.filter-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.filter-controls select,
.filter-controls input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fffaf2;
  color: var(--ink);
  font: inherit;
}

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

.story-row {
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(280px, 1fr);
  gap: 24px;
  padding: 20px;
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.story-row[hidden] {
  display: none;
}

.story-row h3 {
  margin-bottom: 2px;
}

.story-row h3 a {
  text-decoration: none;
}

.story-row h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.story-row p {
  margin-bottom: 0;
  color: var(--muted);
}

.story-row mark {
  background: rgba(183, 119, 43, 0.18);
}

.judges-section {
  background: #fff8ec;
  border-top: 1px solid var(--line);
}

.judge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 16px;
}

.judge-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.judge-photo {
  width: 64px;
  height: 64px;
  display: block;
  object-fit: cover;
  object-position: center;
  background: var(--paper-deep);
  border-radius: 50%;
}

.judge-card h3 {
  margin-bottom: 6px;
}

.judge-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

footer {
  padding: 30px clamp(18px, 5vw, 70px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.reader {
  max-width: 1040px;
  margin: 0 auto;
  padding: 44px 20px 80px;
}

.back-link {
  display: inline-flex;
  color: var(--river);
  font-weight: 800;
}

.reader-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 34px;
}

.reader-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.print-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fffaf2;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.print-button:hover {
  background: var(--paper-deep);
}

.print-header,
.print-footer {
  display: none;
}

.story-page {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(0, 670px);
  gap: 54px;
}

.story-title {
  position: sticky;
  top: 96px;
  height: fit-content;
}

.story-title h1 {
  max-width: 100%;
  color: var(--schist);
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  line-height: 1;
  overflow-wrap: break-word;
}

.story-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.immersive-reader {
  max-width: 920px;
}

.long-read-page {
  max-width: 720px;
  margin: 0 auto;
}

.long-read-title {
  margin-bottom: 34px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.long-read-title h1 {
  max-width: 12ch;
  margin-bottom: 12px;
  color: var(--schist);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.98;
  font-weight: 500;
}

.long-read-title p {
  max-width: 560px;
}

.long-read-body {
  grid-column: auto;
  grid-row: auto;
  padding-bottom: 48px;
}

.judge-note {
  grid-column: 1;
  padding: 18px;
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.judge-note strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

.story-body {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: #242820;
  font-family: Georgia, "Times New Roman", serif;
  font-size: calc(clamp(1.18rem, 2vw, 1.38rem) * var(--reading-scale, 1));
  line-height: 1.78;
}

.reading-page {
  background: #fbf7ef;
}

.reading-progress {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 250, 240, 0.12);
}

.reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
}

.story-byline {
  margin-bottom: 7px;
  color: var(--schist);
  font-size: 1.08rem;
  font-weight: 750;
}

.story-byline span {
  padding: 0 0.25em;
  color: var(--gold);
}

.story-letter {
  margin: 1.8em 0;
  padding: 1.1em 1.4em;
  border-left: 3px solid var(--gold);
  background: rgba(183, 119, 43, 0.07);
  font-size: 0.96em;
}

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

.text-size {
  min-width: 44px;
  font-family: Georgia, "Times New Roman", serif;
}

.story-body p {
  margin-bottom: 1.35em;
}

.story-process-note {
  margin: 0 0 34px;
  padding: 18px 20px;
  background: rgba(84, 127, 125, 0.1);
  border-left: 4px solid var(--river);
  color: var(--schist);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.94rem;
  line-height: 1.55;
}

.story-process-note strong {
  color: var(--river);
}

.story-body .scene-break {
  margin: 2.2em 0;
  text-align: center;
  letter-spacing: 0.4em;
}

.placeholder-note {
  padding: 14px 16px;
  background: rgba(84, 127, 125, 0.11);
  border-left: 4px solid var(--river);
  color: var(--schist);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.45;
}

.reader-nav {
  justify-content: space-between;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .winner-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }

  .intro,
  .story-page {
    grid-template-columns: 1fr;
  }

  .school-awards,
  .placings-grid,
  .senior-commendations,
  .open-coming-soon,
  .open-judges-report,
  .school-presentations {
    grid-template-columns: 1fr;
  }

  .senior-category {
    grid-column: auto;
  }

  .placings-grid .award-group + .award-group,
  .senior-commendations .award-group + .award-group {
    border-left: 0;
  }

  .story-title {
    position: static;
  }

  .judge-note,
  .story-body {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  .site-header,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    position: static;
    overflow: hidden;
    padding: 14px 20px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 36px 20px 48px;
  }

  .hero::after {
    background:
      radial-gradient(circle at 82% 28%, rgba(183, 119, 43, 0.2), transparent 40%),
      linear-gradient(135deg, rgba(23, 29, 24, 0.98), rgba(53, 63, 55, 0.98));
  }

  .hero-copy {
    width: 100%;
    max-width: 350px;
    padding: 0 28px 44px;
  }

  .place-carousel {
    min-height: 320px;
    padding: 0 8px;
  }

  .slide.active {
    grid-template-rows: 260px minmax(1.3em, auto);
  }

  .carousel-photo {
    width: min(100%, calc(260px * 4679 / 4058));
    height: auto;
  }

  h1 {
    max-width: 9ch;
    font-size: 2.85rem;
    line-height: 1;
  }

  h2 {
    max-width: 9ch;
    font-size: 2.35rem;
    line-height: 1.08;
  }

  .winner-grid,
  .story-row,
  .judge-grid,
  .filter-controls {
    grid-template-columns: 1fr;
  }

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

  .section {
    padding-top: 54px;
    padding-bottom: 54px;
    padding-left: 24px;
    padding-right: 24px;
  }

  nav {
    width: min(350px, calc(100vw - 40px));
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  nav a {
    text-align: center;
  }

  .hero-copy p:not(.eyebrow) {
    max-width: 280px;
    font-size: 1rem;
  }

}

@media print {
  @page {
    margin: 18mm 20mm 16mm;
  }

  html,
  body {
    max-width: none;
    overflow: visible;
    background: #fff;
    color: #111;
  }

  body * {
    visibility: hidden;
  }

  .story-page,
  .story-page *,
  .long-read-page,
  .long-read-page * {
    visibility: visible;
  }

  .site-header,
  .reader-tools,
  .story-title,
  .long-read-title,
  .judge-note,
  .placeholder-note,
  .reader-nav {
    display: none !important;
  }

  .reader,
  .immersive-reader {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .story-page,
  .long-read-page {
    display: block;
    max-width: none;
    margin: 0;
  }

  .print-header {
    display: block;
    margin: 0 auto 10mm;
    max-width: 66ch;
    padding-bottom: 6mm;
    border-bottom: 0.5pt solid #bbb;
    page-break-after: avoid;
  }

  .print-header p {
    margin: 0 0 5mm;
    color: #555;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9.5pt;
    letter-spacing: 0.02em;
  }

  .print-header h1 {
    max-width: none;
    margin: 0;
    color: #111;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26pt;
    line-height: 1.12;
    font-weight: 600;
  }

  .story-body,
  .long-read-body {
    display: block;
    max-width: 66ch;
    margin: 0 auto;
    padding: 0;
    color: #111;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14.5pt;
    line-height: 1.72;
    grid-column: auto;
    grid-row: auto;
  }

  .story-body p,
  .long-read-body p {
    margin: 0 0 0.95em;
    break-inside: avoid;
    orphans: 3;
    widows: 3;
  }

  .print-footer {
    display: block;
    max-width: 66ch;
    margin: 12mm auto 0;
    padding-top: 4mm;
    border-top: 0.5pt solid #d0d0d0;
    color: #777;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 8.5pt;
    text-align: center;
  }
}
