@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/eb-garamond-regular.ttf") format("truetype");
}

@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/eb-garamond-italic.ttf") format("truetype");
}

@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/anton-regular.ttf") format("truetype");
}

:root {
  color-scheme: light;
  --paper: #f5e8c6;
  --ink: #253328;
  --pine: #173829;
  --ochre: #91582a;
  --rust: #a85036;
  --mustard: #b98d32;
  --teal: #527f73;
  --rule: #a4a589;
  --gutter: clamp(22px, 4.3vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  background-image: url("paper-grain.svg");
  font-family: "EB Garamond", Garamond, Georgia, serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

::selection { color: var(--pine); background: #e3d6b8; }

a {
  color: var(--pine);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover { color: var(--pine); }

a:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 6px;
  border-radius: 1px;
}

.skip-link {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: var(--gutter);
  padding: 10px 16px;
  background: var(--paper);
  transform: translateY(-200%);
}

.skip-link:focus { transform: translateY(0); }

.page-footer {
  width: calc(100% - var(--gutter) * 2);
  max-width: 1320px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 18px;
}

.story-heading {
  padding: 20px var(--gutter) 15px;
  text-align: center;
}

.poster-stripe {
  width: calc(100% - 32px);
  max-width: 1440px;
  height: clamp(22px, 3vw, 34px);
  margin: 14px auto 0;
  background-image: url("homecoming-poster.jpg");
  background-size: 100% auto;
  background-position: center 1.5%;
}

h1 {
  max-width: 1320px;
  margin: 0 auto;
  color: var(--pine);
  font-family: "Anton", Impact, "Arial Narrow", sans-serif;
  font-size: clamp(60px, 10.7vw, 150px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.015em;
  text-transform: uppercase;
}

h1 span { display: block; }


.byline { margin: 12px 0 0; color: var(--pine); font-size: 20px; }

.book-teaser {
  width: calc(100% - var(--gutter) * 2);
  max-width: 760px;
  margin: 240px auto 0;
  padding: 18px 24px 20px;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--mustard);
  background: rgba(255, 255, 255, .16);
  text-align: left;
}

.book-kicker {
  margin: 0;
  color: var(--ochre);
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.book-teaser h2 {
  margin: 4px 0 8px;
  color: var(--pine);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.1;
}

.book-connection {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.4;
}

.book-intro {
  margin: 0;
  color: var(--ink);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.4;
  text-wrap: pretty;
}

.landscape {
  width: calc(100% - 32px);
  max-width: 1440px;
  margin: 0 auto;
}

.landscape img { display: block; width: 100%; height: auto; }

.story-body {
  width: calc(100% - var(--gutter) * 2);
  max-width: 690px;
  margin: clamp(38px, 4.5vw, 64px) auto 0;
  font-size: 24px;
  line-height: 1.52;
  font-kerning: normal;
  font-variant-numeric: oldstyle-nums;
  overflow-wrap: break-word;
}

.story-body p {
  margin: 0 0 .42em;
  text-indent: 1.25em;
  orphans: 3;
  widows: 3;
}

.story-body .first, .scene-break + p { text-indent: 0; }

.dropcap {
  float: left;
  margin: .06em .13em -.05em 0;
  color: var(--ochre);
  font-size: 4.1em;
  line-height: .72;
}

.scene-break {
  margin: 2.4em auto;
  color: var(--ochre);
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 14px;
  break-inside: avoid;
}

.scene-break span:nth-child(1) { color: var(--rust); }
.scene-break span:nth-child(2) { color: var(--mustard); }
.scene-break span:nth-child(3) { color: var(--teal); }

.story-body .lone {
  margin: 1.1em -30px 0;
  padding: 0;
  color: var(--pine);
  font-size: 30px;
  font-style: italic;
  line-height: 1.35;
  text-align: center;
  text-indent: 0;
  text-wrap: balance;
}

.poster-stripe--footer { margin-top: 88px; }

.page-footer {
  margin-top: 14px;
  padding-block: 26px 38px;
  border-top: 1px solid var(--rule);
}

.page-footer > a { text-decoration: none; }
.page-footer nav { display: flex; flex-wrap: wrap; gap: 30px; }

@media (min-width: 1500px) {
  .landscape, .poster-stripe { width: calc(100% - var(--gutter) * 2); }
}

@media (max-width: 600px) {
  .poster-stripe { width: calc(100% - 20px); margin-top: 10px; height: 21px; }
  .story-heading { padding: 20px 22px 16px; }
  h1 { max-width: 440px; font-size: clamp(46px, 14vw, 80px); line-height: 1.09; }
  .byline { margin-top: 12px; font-size: 18px; }
  .book-teaser { padding: 15px 18px 17px; margin-top: 180px; }
  .landscape { width: calc(100% - 12px); }
  .story-body { margin-top: 39px; font-size: 22px; line-height: 1.48; }
  .story-body p { margin-bottom: .5em; }
  .story-body .lone { margin-inline: 0; font-size: 27px; }
  .poster-stripe--footer { margin-top: 64px; }
  .page-footer { align-items: flex-start; margin-top: 10px; font-size: 18px; }
  .page-footer nav { flex-direction: column; gap: 15px; text-align: right; }
}

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

@media print {
  @page { margin: 20mm; }
  body { color: #222; background: #fff; }
  .book-teaser, .landscape, .poster-stripe, .page-footer, .skip-link { display: none; }
  .story-heading { padding: 0 0 24pt; }
  h1 { color: #222; font-size: 32pt; }
  .byline { color: #222; font-size: 11pt; }
  .story-body { width: 100%; max-width: none; margin-top: 0; font-size: 12pt; line-height: 1.45; }
  .scene-break { margin-block: 18pt; break-after: avoid; }
  .story-body .lone { margin-inline: 0; font-size: 16pt; break-inside: avoid; }
}
