@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #1a1a1a;
  --bg-elevated: #100e0f;
  --bg-soft: #241918;
  --text: #f2eee6;
  --text-soft: #f3eee6;
  --muted: #8a9bab;
  --copper: #c97852;
  --copper-hover: #9d5431;
  --gold: #e6d4a0;
  --gold-deep: #c19354;
  --teal: #057a8b;
  --steel: #65838e;
  --line: rgba(230, 212, 160, 0.28);
  --serif: "Instrument Serif", "Palatino Linotype", Palatino, serif;
  --sans: "Instrument Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --wide: 76rem;
  --read: 72rem;
  --pad: clamp(1rem, 3vw, 1.75rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1000px 420px at 100% -8%, rgba(201, 120, 82, 0.16), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  color-scheme: dark;
}

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

a {
  color: var(--text);
  text-decoration-thickness: 1px;
  text-decoration-color: var(--copper);
  text-underline-offset: 0.18em;
}

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

:focus {
  outline: none;
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 30;
  background: var(--gold);
  color: #1a1a1a;
  padding: 0.6rem 1rem;
  text-decoration: none;
  font-weight: 600;
}

.skip:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  width: 100%;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--line);
}

.bar-wrap {
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.85rem var(--pad);
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.25rem;
}

.mark {
  flex: 0 0 auto;
  color: var(--gold);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.mark:hover {
  color: var(--gold);
}

.mark small {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-soft);
  letter-spacing: 0;
}

.nav-toggle {
  display: none;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  min-height: 44px;
  min-width: 44px;
  padding: 0 0.9rem;
  cursor: pointer;
}

.nav-panel ul {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1rem;
}

.nav-panel a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--text-soft);
}

.nav-panel a:hover,
.nav-panel a[aria-current="page"] {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: var(--copper);
  text-underline-offset: 0.35em;
}

.js .nav-panel {
  display: none;
  flex-basis: 100%;
}

.js .nav-panel.is-open {
  display: block;
}

main {
  flex: 1;
  width: 100%;
  max-width: var(--read);
  margin: 0 auto;
  padding: clamp(1.6rem, 4vw, 3.4rem) var(--pad) 4.5rem;
}

main.wide {
  max-width: var(--wide);
}

main :is(p, ul, ol, blockquote, .h-note) {
  max-width: 70ch;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--gold);
}

h1 {
  font-size: clamp(2.15rem, 5.4vw, 4.15rem);
  margin: 0.2rem 0 1rem;
  max-width: 22ch;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 2.4rem 0 0.8rem;
}

h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  margin: 1.6rem 0 0.55rem;
  color: var(--text);
}

h4 {
  font-size: 1.35rem;
  margin: 1.4rem 0 0.45rem;
  color: var(--text);
}

p,
li {
  color: var(--text);
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.2rem 0;
  max-width: 70ch;
}

blockquote {
  margin: 1.6rem 0;
  padding: 0.15rem 0 0.15rem 1.15rem;
  border-left: 3px solid var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  line-height: 1.35;
  color: var(--text-soft);
}

blockquote footer {
  margin-top: 0.75rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 1.05rem;
  color: var(--text);
}

ul,
ol {
  padding-left: 1.3rem;
}

li {
  margin: 0.45rem 0;
}

li::marker {
  color: var(--gold-deep);
}

.signup {
  max-width: 32rem;
  width: 100%;
  margin: 1.25rem auto 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: clamp(1rem, 3vw, 1.4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.signup [data-element="fields"],
.signup .formkit-alert,
.signup .form-success,
.signup .fallback {
  width: 100%;
}

.signup label,
.signup .field {
  text-align: left;
}

.field {
  margin: 0 0 0.85rem;
}

label {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.req {
  font-weight: 400;
  color: var(--text-soft);
}

input[type="text"],
input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  font-size: 1.05rem;
  color: #1a1a1a;
  background: #fff;
  border: 2px solid var(--copper);
  border-radius: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 0.2rem;
  padding: 0.75rem 1rem;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #1a1a1a;
  background: var(--copper);
  border: 0;
  cursor: pointer;
}

.btn:hover {
  background: var(--copper-hover);
  color: var(--text);
}

.form-success,
.formkit-alert-success {
  margin: 0.9rem 0 0;
  padding: 0.8rem 0.9rem;
  background: #243028;
  color: var(--text);
  border: 1px solid var(--gold-deep);
}

.formkit-alert-error {
  margin: 0 0 0.8rem;
  padding: 0.75rem 0.9rem;
  background: #3a2118;
  color: var(--text);
  border: 1px solid var(--copper);
  list-style: none;
}

.fallback {
  margin: 0.85rem 0 0;
  max-width: none;
  color: var(--text-soft);
  font-size: 1rem;
}

.player {
  margin: 1rem auto 1.25rem;
  max-width: none;
  width: 100%;
}

.player-frame {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.player-frame.portrait {
  aspect-ratio: 9 / 16;
  border-top-color: var(--copper);
  max-width: 100%;
  margin-inline: auto;
}

.player-frame img,
.player-frame iframe,
.player-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #100e0f;
}

html:not(.js) .play {
  display: none;
}

.player.is-playing .play {
  display: none;
}

.play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.play[aria-disabled="true"] {
  cursor: default;
}

.play-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  border: 2px solid var(--copper);
  background: rgba(16, 14, 15, 0.78);
  display: grid;
  place-items: center;
}

.play-icon svg {
  width: 1.35rem;
  height: 1.35rem;
  margin-left: 0.18rem;
  fill: var(--text);
}

figcaption {
  margin-top: 0.55rem;
  color: var(--text);
  font-size: 1rem;
}

.ptitle {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--gold);
}

.pmeta {
  display: block;
  margin-top: 0.15rem;
  color: var(--text-soft);
}

.reels {
  display: grid;
  gap: 1.4rem;
  margin: 1rem 0 1.5rem;
  max-width: none;
}

.reel-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 0.85rem 0.85rem 1rem;
}

.reel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.45rem 0.8rem;
}

.reel-head h3 {
  margin: 0.15rem 0 0.6rem;
}

.cut-toggle {
  font: inherit;
  font-weight: 600;
  min-height: 44px;
  padding: 0.4rem 0.75rem;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--copper);
  cursor: pointer;
}

.cut-state {
  display: inline-block;
  margin-left: 0.35rem;
  font-weight: 400;
  color: var(--gold);
}

.alt-cut {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.cover-layout {
  display: grid;
  gap: 1.4rem;
  margin-top: 0.5rem;
}

.cover-layout .cover {
  margin: 0 auto;
  max-width: 22rem;
  width: 100%;
}

.cover-layout .book-copy {
  width: 100%;
  justify-self: stretch;
}

.cover-layout .cover img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

.map-fig {
  margin: 1.2rem auto 1.6rem;
  max-width: 40rem;
  width: 100%;
}

.map-fig img {
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid var(--line);
}

.site-footer {
  width: 100%;
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.2rem var(--pad) 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.footer-inner p {
  margin: 0;
}

.footer-nav {
  display: flex;
  gap: 1rem;
}

.footer-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

@media (min-width: 700px) {
  .reels {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 860px) {
  .nav-toggle,
  .js .nav-toggle {
    display: none;
  }

  .js .nav-panel,
  .nav-panel {
    display: block;
    flex: 1 1 auto;
  }

  .nav-panel ul {
    width: 100%;
    margin: 0;
    justify-content: flex-end;
  }
}

@media (min-width: 1100px) {
  .reels {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 859px) {
  .js .nav-toggle {
    display: inline-flex;
  }
}

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

@media print {
  body {
    background: #fff;
    color: #1a1a1a;
  }

  .nav-toggle,
  .play,
  .signup {
    display: none;
  }

  a {
    color: #1a1a1a;
  }
}
