@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/eb-garamond-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/eb-garamond-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --desk: #e7dccb;
  --sheet: #f7f2e7;
  --mat: #fbf7ef;
  --ink: #1a2620;
  --muted: #3d4a42;
  --forest: #1a3c2e;
  --burgundy: #6e2436;
  --visited: #4f2c38;
  --rule: #8a704c;
  --rule-soft: #c2b394;
  --status: #e5efe6;
  color-scheme: light;
  font-synthesis: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-padding-top: 11.5rem;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background-color: var(--desk);
  background-image:
    radial-gradient(rgba(88, 58, 28, 0.045) 0.55px, transparent 0.62px),
    radial-gradient(rgba(255, 250, 242, 0.45) 0.55px, transparent 0.62px);
  background-size: 3px 3px, 5px 5px;
  background-position: 0 0, 1px 2px;
  font-family: "EB Garamond", "Palatino Linotype", Palatino, "Liberation Serif", "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.55;
  font-weight: 400;
  font-variant-numeric: oldstyle-nums;
  font-feature-settings: "kern" 1, "liga" 1, "onum" 1;
}

p,
h1,
h2,
h3,
figure {
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--burgundy);
  text-underline-offset: 0.18em;
}

a:visited {
  color: var(--visited);
}

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

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--burgundy);
  outline-offset: 3px;
}

::selection {
  background: var(--forest);
  color: var(--sheet);
}

.skip {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  transform: translateY(-150%);
  z-index: 40;
  padding: 0.45rem 0.7rem;
  background: var(--sheet);
  color: var(--ink);
  border: 1px solid var(--burgundy);
}

.skip:focus {
  position: fixed;
  transform: none;
}

.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;
}

.running {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0.55rem 0.85rem 0.35rem;
  border-bottom: 1px solid var(--rule-soft);
  text-align: center;
  background-color: var(--desk);
  background-image:
    radial-gradient(rgba(88, 58, 28, 0.045) 0.55px, transparent 0.62px),
    radial-gradient(rgba(255, 250, 242, 0.45) 0.55px, transparent 0.62px);
  background-size: 3px 3px, 5px 5px;
  background-position: 0 0, 1px 2px;
}

.running-bar {
  display: grid;
  justify-items: center;
}

.running-left,
.running-title,
.running-sub {
  margin: 0;
}

.running-left {
  display: none;
}

.running-title {
  font-size: 1.05rem;
  font-variant: all-small-caps;
  letter-spacing: 0.22em;
  font-weight: 500;
}

.running-title a {
  color: inherit;
  text-decoration: none;
}

.running-title a:visited {
  color: inherit;
}

.running-sub {
  color: var(--muted);
  font-style: italic;
  font-size: 1.02rem;
}

.running nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 0.85rem;
  list-style: none;
  margin: 0.2rem 0 0;
  padding: 0;
}

.running nav a {
  display: inline-block;
  padding: 0.42rem 0.12rem;
  color: var(--ink);
  text-decoration: none;
  font-variant: all-small-caps;
  letter-spacing: 0.11em;
  font-size: 0.95rem;
}

.running nav a:visited {
  color: var(--ink);
}

.running nav a:hover,
.running nav a[aria-current="true"] {
  color: var(--burgundy);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.sheet {
  position: relative;
  max-width: 48rem;
  margin: 0.85rem 0.65rem 2.25rem;
  padding: 1.6rem 1.15rem 2.2rem;
  background-color: var(--sheet);
  background-image:
    radial-gradient(rgba(70, 48, 24, 0.03) 0.5px, transparent 0.55px),
    linear-gradient(var(--burgundy), var(--burgundy)),
    linear-gradient(var(--burgundy), var(--burgundy)),
    linear-gradient(var(--burgundy), var(--burgundy)),
    linear-gradient(var(--burgundy), var(--burgundy)),
    linear-gradient(var(--burgundy), var(--burgundy)),
    linear-gradient(var(--burgundy), var(--burgundy)),
    linear-gradient(var(--burgundy), var(--burgundy)),
    linear-gradient(var(--burgundy), var(--burgundy));
  background-size:
    3px 3px,
    0.7rem 1px,
    1px 0.7rem,
    0.7rem 1px,
    1px 0.7rem,
    0.7rem 1px,
    1px 0.7rem,
    0.7rem 1px,
    1px 0.7rem;
  background-position:
    0 0,
    left 0.7rem top 0.7rem,
    left 0.7rem top 0.7rem,
    right 0.7rem top 0.7rem,
    right 0.7rem top 0.7rem,
    left 0.7rem bottom 0.7rem,
    left 0.7rem bottom 0.7rem,
    right 0.7rem bottom 0.7rem,
    right 0.7rem bottom 0.7rem;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  border: 1px solid var(--rule);
  outline: 1px solid var(--rule);
  outline-offset: -6px;
  box-shadow:
    inset 0 0 70px rgba(88, 58, 28, 0.045),
    0 14px 34px rgba(60, 40, 20, 0.07);
}

.cover {
  padding-top: 0.85rem;
  text-align: center;
}

.eyebrow,
.index,
h2,
.plate-title,
.tag,
.mark figcaption,
label,
button,
.running-left {
  font-variant: all-small-caps;
  font-variant-numeric: oldstyle-nums;
}

.eyebrow {
  color: var(--burgundy);
  letter-spacing: 0.24em;
  font-size: 0.98rem;
  font-weight: 500;
}

h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0.35rem;
  font-weight: 500;
  font-size: clamp(4.1rem, 18vw, 7.4rem);
  line-height: 0.84;
  letter-spacing: -0.02em;
}

.forces {
  margin-top: 0.95rem;
  font-variant: all-small-caps;
  letter-spacing: 0.22em;
  font-size: 1rem;
  font-weight: 500;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.15rem auto 0;
  color: var(--burgundy);
}

.ornament span {
  display: block;
  width: min(6.5rem, 22vw);
  height: 1px;
  background: var(--rule);
}

.deck {
  max-width: 26rem;
  margin: 1rem auto 0;
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.4;
}

.toc {
  margin-top: 2.4rem;
  text-align: center;
}

h2 {
  font-weight: 500;
  font-size: clamp(1.7rem, 4vw, 2.15rem);
  letter-spacing: 0.16em;
  line-height: 1.15;
  text-align: center;
}

h2::after {
  content: "";
  display: block;
  width: 2.6rem;
  height: 1px;
  margin: 0.55rem auto 0;
  background: var(--burgundy);
}

.toc ol {
  list-style: none;
  max-width: 24rem;
  margin: 1rem auto 0;
  padding: 0;
  text-align: left;
}

.toc a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  column-gap: 0.55rem;
  align-items: baseline;
  padding: 0.32rem 0;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.15rem;
}

.toc a:visited {
  color: var(--ink);
}

.toc .leader {
  border-bottom: 1px dotted var(--rule);
  align-self: center;
  height: 0;
}

.toc .mark,
.index {
  color: var(--burgundy);
  letter-spacing: 0.12em;
  font-weight: 500;
}

.index {
  margin-bottom: 0.3rem;
  text-align: center;
  font-size: 1.15rem;
}

.toc a:hover .label,
.toc a:focus-visible .label,
.toc a[aria-current="true"] .label {
  color: var(--burgundy);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.sheet > section {
  margin-top: 2.8rem;
}

.lede {
  max-width: 36rem;
  margin: 1.05rem auto 0;
  font-size: 1.22rem;
  line-height: 1.55;
}

.lede::first-letter {
  color: var(--burgundy);
  font-weight: 500;
}

@supports (initial-letter: 2) {
  .lede::first-letter {
    initial-letter: 2;
    margin-right: 0.4rem;
  }
}

.prose,
.example-note {
  max-width: 34rem;
  margin: 0.9rem auto 0;
  text-align: center;
}

.example-note {
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.45;
}

.example-note strong {
  font-style: normal;
  font-weight: 500;
  font-variant: all-small-caps;
  letter-spacing: 0.12em;
  color: var(--burgundy);
}

.cast {
  list-style: none;
  display: grid;
  gap: 1.15rem;
  margin: 1.35rem 0 0;
  padding: 0;
}

.cast li {
  text-align: center;
  padding-top: 0.2rem;
}

.cast li + li {
  border-top: 1px solid var(--rule-soft);
  padding-top: 1rem;
}

.cast h3 {
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.2;
  text-wrap: balance;
}

.cast p {
  margin-top: 0.15rem;
  font-style: italic;
  font-size: 1.15rem;
}

.works,
.evenings {
  list-style: none;
  margin: 1.2rem auto 0;
  padding: 0;
  max-width: 34rem;
}

.works li {
  text-align: center;
  padding: 1.2rem 0.25rem 1.15rem;
}

.works li + li {
  border-top: 1px solid var(--rule-soft);
}

.tag {
  color: var(--burgundy);
  letter-spacing: 0.16em;
  font-size: 0.92rem;
  font-weight: 500;
}

.works h3,
.evenings h3 {
  margin-top: 0.3rem;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.45rem, 3vw, 1.8rem);
  text-wrap: balance;
}

.for,
.when {
  margin-top: 0.3rem;
  color: var(--muted);
  font-variant: all-small-caps;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
}

.evenings {
  display: grid;
  gap: 0.85rem;
}

.evenings li {
  text-align: center;
  padding: 1rem 0.75rem 1.05rem;
  border: 1px solid var(--rule-soft);
}

.plate {
  margin: 1.35rem 0 0;
}

.intimate {
  max-width: 24rem;
  margin-inline: auto;
}

.mat {
  padding: 0.5rem;
  background: var(--mat);
  border: 1px solid var(--rule-soft);
}

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

figcaption {
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  margin-top: 0.7rem;
  text-align: center;
}

.plate-title {
  letter-spacing: 0.18em;
  font-size: 0.95rem;
  font-weight: 500;
}

.plate-note {
  max-width: 28rem;
  font-style: italic;
  font-size: 1.05rem;
}

.listen {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  margin-top: 1.15rem;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.2rem;
  border: 1px solid var(--forest);
  background: var(--forest);
  color: var(--sheet);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-decoration: none;
  cursor: pointer;
}

.button:visited,
button:visited {
  color: var(--sheet);
}

.button:hover,
button:hover {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--sheet);
}

.url {
  font-style: italic;
}

.form-wrap {
  max-width: 28rem;
  margin: 1.15rem auto 0;
  text-align: left;
}

.field {
  display: grid;
  gap: 0.28rem;
  margin-top: 0.85rem;
}

label {
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  font-weight: 500;
}

input,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.55rem 0.7rem;
  border: 1px solid #5e4a32;
  border-radius: 0;
  background: var(--mat);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
  line-height: 1.4;
  font-variant-numeric: oldstyle-nums;
}

textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.actions {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

#form-status:not(:empty) {
  margin-top: 1rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--forest);
  background: var(--status);
  text-align: center;
}

.colophon {
  margin-top: 2.8rem;
  text-align: center;
}

.mark {
  max-width: 10.5rem;
  margin: 1.1rem auto 0.35rem;
}

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

.mark figcaption {
  margin-top: 0.45rem;
  letter-spacing: 0.14em;
  font-size: 0.9rem;
  font-weight: 500;
}

.colophon .fine,
.colophon p {
  max-width: 32rem;
  margin: 0.7rem auto 0;
}

.colophon .fine {
  font-style: italic;
  color: var(--muted);
}

@media (min-width: 42rem) {
  .cast {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    align-items: stretch;
  }

  .cast li,
  .cast li + li {
    border-top: 0;
    padding: 0.2rem 0.8rem 0;
  }

  .cast li + li {
    border-left: 1px solid var(--rule-soft);
  }

  .evenings {
    grid-template-columns: 1fr 1fr;
    max-width: 40rem;
  }
}

@media (min-width: 52rem) {
  .sheet {
    margin: 1.6rem auto 3.25rem;
    padding: 2.4rem 3rem 2.8rem;
  }

  .running {
    padding-inline: 1.5rem;
  }
}

@media (min-width: 64rem) {
  html {
    scroll-padding-top: 7rem;
  }

  .running-bar {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    justify-items: stretch;
  }

  .running-left {
    display: block;
    justify-self: start;
    letter-spacing: 0.16em;
    font-size: 0.95rem;
  }

  .running-title {
    justify-self: center;
  }

  .running-sub {
    justify-self: end;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .ornament span {
    animation: grow 900ms ease both;
  }
}

@keyframes grow {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@media (prefers-contrast: more) {
  :root {
    --ink: #000;
    --rule-soft: #5e4a32;
  }

  .sheet,
  .mat,
  .evenings li,
  input,
  textarea {
    border-width: 2px;
  }
}

@media (forced-colors: active) {
  .sheet,
  .mat,
  .evenings li,
  input,
  textarea,
  .button,
  button {
    border: 1px solid CanvasText;
  }

  .button,
  button {
    background: ButtonFace;
    color: ButtonText;
  }

  .ornament span,
  h2::after,
  .toc .leader {
    background: CanvasText;
    border-color: CanvasText;
  }
}

@media print {
  .skip,
  .running {
    display: none;
  }

  body {
    background: #fff;
    background-image: none;
  }

  .sheet {
    margin: 0;
    max-width: none;
    box-shadow: none;
    outline: none;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.9em;
  }

  .plate,
  .works li,
  .cast {
    break-inside: avoid;
  }
}
