:root {
  --ink: #e8dcc8;
  --paper: #17130f;
  --heat: #c45c26;
  --heat-soft: rgba(196, 92, 38, 0.34);
  --rule: rgba(232, 220, 200, 0.22);
  --mute: #8a7d6b;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
}

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

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

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

.print {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(0.75rem, 3vw, 2rem);
}

.plate-frame {
  position: relative;
  width: min(92vw, 92vh, 920px);
}

.drawing {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  display: block;
}

.paper {
  fill: #1a1612;
}

.stain ellipse {
  fill: var(--heat-soft);
}

.rules line,
.marks path {
  stroke: var(--rule);
  stroke-width: 1.5;
}

.slash {
  stroke: rgba(196, 92, 38, 0.45) !important;
  stroke-width: 2 !important;
}

.ring {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.75;
  opacity: 0.72;
}

.dot {
  fill: var(--heat);
  stroke: none;
}

.marks circle {
  fill: var(--ink);
}

.plate {
  fill: var(--mute);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 18px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.filmstrip {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 4.5%;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.filmstrip a {
  display: block;
  color: var(--ink);
  text-decoration: none;
}

.filmstrip img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #2a2420;
  border: 1px solid rgba(232, 220, 200, 0.28);
}

.filmstrip span {
  display: block;
  margin-top: 0.28rem;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  text-align: center;
}

.caption {
  position: absolute;
  left: clamp(1rem, 4vw, 2.5rem);
  bottom: clamp(1rem, 4vw, 2.5rem);
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  pointer-events: none;
}

.brand {
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2rem);
  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: var(--mute);
}

@media (prefers-reduced-motion: no-preference) {
  .ring {
    transform-origin: 380px 480px;
    animation: drift 28s linear infinite;
  }

  .r2 {
    animation-duration: 41s;
    animation-direction: reverse;
  }

  .r3 {
    animation-duration: 19s;
  }

  .stain {
    transform-origin: 700px 340px;
    animation: breathe 16s ease-in-out infinite;
  }
}

@keyframes drift {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.85;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ring,
  .stain {
    animation: none !important;
  }
}
