:root {
  --ink: #2a2420;
  --paper: #f0eee9;
  --heat: #c45c26;
  --field: #2a2420;
  --type: #f0eee9;
  --rule: rgba(240, 238, 233, 0.28);
  --mute: rgba(240, 238, 233, 0.58);
  --caption: #cfc8bc;
  --folio: #c45c26;
  --gutter: 50%;
  --masthead-size: 16vw;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--field);
  color: var(--type);
}

body {
  font-family: "Arial Narrow", "Helvetica Neue Condensed", "Franklin Gothic Condensed", "Helvetica Neue", Arial, sans-serif;
}

.skip {
  position: absolute;
  left: -999px;
  z-index: 3;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 3;
  background: var(--heat);
  color: var(--paper);
  padding: 0.4rem 0.7rem;
  text-decoration: none;
}

.skip-strip:focus {
  top: 3.2rem;
}

.print {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

.folio {
  position: absolute;
  top: clamp(0.9rem, 3vw, 1.8rem);
  right: clamp(1rem, 4vw, 2.6rem);
  margin: 0;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--folio);
  z-index: 2;
}

.spread {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
}

.spread-gutter {
  position: absolute;
  top: 0;
  bottom: clamp(4.4rem, 11vw, 6.2rem);
  left: var(--gutter);
  width: 1px;
  margin-left: -0.5px;
  background: var(--mute);
  z-index: 1;
}

.spread-verso {
  position: absolute;
  left: 0;
  top: 0;
  bottom: clamp(4.4rem, 11vw, 6.2rem);
  width: var(--gutter);
  overflow: hidden;
}

.spread-masthead {
  position: absolute;
  left: -28vw;
  top: 22vh;
  margin: 0;
  font-family: "Arial Narrow", "Helvetica Neue Condensed", "Franklin Gothic Condensed", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--masthead-size);
  font-weight: 800;
  font-stretch: condensed;
  letter-spacing: -0.06em;
  line-height: 0.78;
  color: var(--type);
  white-space: nowrap;
  text-align: left;
}

.spread-recto {
  position: absolute;
  left: var(--gutter);
  right: 0;
  top: 18vh;
  bottom: clamp(4.4rem, 11vw, 6.2rem);
  overflow: hidden;
  padding: 0 0 0 0.85rem;
}

.spread-recto p {
  margin: 0;
  font-family: "Arial Narrow", "Helvetica Neue Condensed", "Franklin Gothic Condensed", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.7rem, 4.4vw, 4.1rem);
  font-weight: 800;
  font-stretch: condensed;
  letter-spacing: -0.045em;
  line-height: 0.92;
  color: var(--type);
  white-space: nowrap;
}

.spread-recto p + p {
  margin-top: 0.12em;
}

.filmstrip {
  position: absolute;
  left: clamp(1rem, 4vw, 2.6rem);
  right: clamp(1rem, 4vw, 2.6rem);
  bottom: 0.7rem;
  margin: 0;
  padding: 0.55rem 0 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.18rem 0.28rem;
  border-top: 1px solid var(--rule);
  z-index: 2;
}

.filmstrip a {
  display: block;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.filmstrip a:hover,
.filmstrip a:focus {
  color: var(--heat);
  outline: none;
}

.filmstrip .origin a {
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  color: var(--mute);
}

.filmstrip .tick a {
  font-size: 0.42rem;
  letter-spacing: 0.06em;
  color: var(--mute);
  opacity: 0.78;
}

.filmstrip .recent a {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--type);
  opacity: 1;
}

.caption {
  position: absolute;
  right: clamp(1rem, 4vw, 2.6rem);
  bottom: clamp(2.6rem, 6vw, 3.4rem);
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.22rem;
  pointer-events: none;
  color: var(--caption);
  text-align: right;
  z-index: 2;
}

.brand {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(1.25rem, 2.6vw, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.meta {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--caption) 78%, var(--mute));
}

@media (max-width: 640px) {
  .print {
    min-height: 100dvh;
  }

  :root {
    --masthead-size: 22vw;
  }

  .spread-masthead {
    left: -36vw;
    top: 16vh;
  }

  .spread-recto {
    top: 14vh;
    padding-left: 0.55rem;
  }

  .spread-recto p {
    font-size: clamp(1.15rem, 5.2vw, 2.1rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html,
  body,
  .spread,
  .spread-masthead,
  .spread-recto,
  .spread-gutter,
  .folio,
  .filmstrip {
    animation: none !important;
    transition: none !important;
  }
}
