/* Richardson Haunt Labs */
:root {
  --ink: #07040c;
  --ink-2: #120a1f;
  --violet: #a66bff;
  --orchid: #c9a0ff;
  --bone: #f4f0fa;
  --copper: #d98d52;
  --muted: #bfb3d3;
  --measure: 60ch;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-head: "Pirata One", "Georgia", serif;
  --font-note: "Special Elite", "Courier New", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1.1875rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--orchid); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--copper); color: #000; padding: 0.5rem 1rem; z-index: 100; font-family: var(--font-note); }
.skip:focus { left: 8px; }

.wrap { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }

/* Header */
.site-header { padding: 1.1rem 0; border-bottom: 1px solid rgba(217, 141, 82, 0.5); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 2rem; }
.brand { font-family: var(--font-head); font-size: 2rem; line-height: 1; color: var(--bone); text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.4rem; font-family: var(--font-note); font-size: 1rem; }
.nav a { color: var(--muted); text-decoration: none; padding: 0.4rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--bone); }
.nav a[aria-current="page"] { color: var(--bone); border-bottom-color: var(--copper); }

/* Type */
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.05; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 6.5vw, 4.6rem); }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); color: var(--bone); }
h3 { font-size: 1.9rem; color: var(--orchid); margin-bottom: 0.2em; }
p { margin: 0 0 1.15em; max-width: var(--measure); }
.lede { font-size: 1.35rem; line-height: 1.55; max-width: 38ch; }
.note { font-family: var(--font-note); color: var(--copper); font-size: 1rem; }
.muted { color: var(--muted); }

/* Hero, on graph paper */
.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
  background:
    linear-gradient(rgba(166, 107, 255, 0.07) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(90deg, rgba(166, 107, 255, 0.07) 1px, transparent 1px) 0 0 / 36px 36px,
    radial-gradient(800px 420px at 80% 0%, rgba(166, 107, 255, 0.2), transparent 70%),
    var(--ink);
  border-bottom: 1px solid rgba(217, 141, 82, 0.5);
}
.hero .wrap { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.25fr 0.75fr; } }
.logo-lockup { width: min(420px, 100%); margin: 0 0 1.6rem; }

/* Specimen tag */
.tag-wrap { position: relative; width: min(330px, 100%); margin: 90px auto 0; transform-origin: 50% -90px; transform: rotate(3deg); animation: swing 2.4s ease-out 0.3s 1 both; }
@keyframes swing {
  0% { transform: rotate(-9deg); }
  25% { transform: rotate(6deg); }
  50% { transform: rotate(-3deg); }
  75% { transform: rotate(4deg); }
  100% { transform: rotate(3deg); }
}
@media (prefers-reduced-motion: reduce) { .tag-wrap { animation: none; } }
.tag-string { position: absolute; left: 50%; top: -90px; height: 104px; width: 2px; background: var(--copper); }
.tag {
  position: relative; background: var(--bone); color: #130a20; padding: 2.6rem 1.7rem 1.8rem;
  clip-path: polygon(16% 0, 84% 0, 100% 9%, 100% 100%, 0 100%, 0 9%);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.5);
}
.tag .hole { position: absolute; left: 50%; top: 0.7rem; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 3px var(--copper); }
.tag .note { color: #7a3f12; margin: 0 0 0.3rem; }
.tag .big { font-family: var(--font-head); font-size: 2.3rem; line-height: 1; margin: 0 0 0.4rem; color: #130a20; }
.tag p { margin: 0 0 0.5em; font-size: 1.08rem; line-height: 1.45; color: #1d1230; }
.tag .days { font-family: var(--font-note); color: #5a1fb8; margin-top: 0.8rem; font-size: 1.05rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.9rem 1.1rem; margin-top: 1.7rem; }
.btn {
  display: inline-block; text-decoration: none; font-family: var(--font-note); font-size: 1.1rem; padding: 0.85rem 1.4rem; min-height: 48px;
  background: var(--violet); color: #0b0614; border: 2px solid var(--violet);
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--bone); border-color: var(--bone); color: #0b0614; }
.btn.alt { background: transparent; color: var(--bone); border-color: var(--copper); }
.btn.alt:hover { background: rgba(217, 141, 82, 0.18); color: #fff; }

/* Sections */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section.tight { padding-top: 0; }
.split { display: grid; gap: 1.5rem 3.5rem; }
@media (min-width: 860px) { .split { grid-template-columns: 0.9fr 1.3fr; } }
.rule { border: 0; border-top: 1px solid rgba(217, 141, 82, 0.5); margin: 0; }

.facts { margin: 0; padding: 0; list-style: none; max-width: var(--measure); }
.facts li { padding: 0.8rem 0; border-top: 1px solid rgba(166, 107, 255, 0.35); }
.facts li:last-child { border-bottom: 1px solid rgba(166, 107, 255, 0.35); }
.facts + p { margin-top: 1.4rem; }
.facts strong { font-family: var(--font-head); font-weight: 400; font-size: 1.5rem; color: var(--orchid); display: block; line-height: 1.2; }

/* Rules as a ledger */
dl.ledger { margin: 0; max-width: 70ch; }
.ledger div { display: grid; gap: 0.2rem 2rem; padding: 0.9rem 0; border-top: 1px solid rgba(166, 107, 255, 0.35); }
.ledger div:last-child { border-bottom: 1px solid rgba(166, 107, 255, 0.35); }
@media (min-width: 700px) { .ledger div { grid-template-columns: 13rem 1fr; } }
.ledger dt { font-family: var(--font-head); font-size: 1.6rem; color: var(--orchid); line-height: 1.2; }
.ledger dd { margin: 0; }

/* The route through the haunt */
.route { list-style: none; margin: 0; padding: 0; max-width: 70ch; position: relative; counter-reset: stop; }
.route li { position: relative; padding: 0 0 2.2rem 4rem; counter-increment: stop; }
.route li::before {
  content: counter(stop); position: absolute; left: 0; top: 0; width: 2.6rem; height: 2.6rem; border: 2px solid var(--copper); border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-head); font-size: 1.5rem; color: var(--copper); background: var(--ink); z-index: 1;
}
.route li::after { content: ""; position: absolute; left: calc(1.3rem - 1px); top: 2.6rem; bottom: 0; border-left: 2px dashed rgba(217, 141, 82, 0.55); }
.route li:last-child { padding-bottom: 0; }
.route li:last-child::after { display: none; }
.route h3 { margin: 0.1rem 0 0.15rem; }
.route p { margin: 0; }
.redact { display: inline-block; background: var(--bone); color: var(--bone); border-radius: 2px; padding: 0 0.4em; user-select: none; }

/* Story */
.story p:first-of-type::first-letter { font-family: var(--font-head); float: left; font-size: 4.6rem; line-height: 0.8; padding: 0.35rem 0.6rem 0 0; color: var(--copper); }
.story p { max-width: 58ch; }
.pull { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; color: var(--orchid); margin: 2rem 0; max-width: 24ch; }

/* Cross-promo with the sticker */
.promo { display: grid; gap: 1.5rem 3rem; align-items: center; }
@media (min-width: 760px) { .promo { grid-template-columns: 230px 1fr; } }
.promo img { width: min(230px, 60%); }

/* Footer */
.site-footer { border-top: 1px solid rgba(217, 141, 82, 0.5); padding: 2.2rem 0 3rem; color: var(--muted); font-size: 1rem; }
.site-footer p { margin: 0 0 0.4em; max-width: none; }
.site-footer .brand { font-size: 1.7rem; display: inline-block; margin-bottom: 0.5rem; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Address on the specimen tag */
.tag .addr { font-family: var(--font-head); font-size: 1.7rem; line-height: 1.15; margin: 0.5rem 0 0.4rem; color: #130a20; }
.tag .addr strong { font-weight: 400; }
.tag a { color: #5a1fb8; }

/* Hours, made prominent on the tag */
.tag .hours-label { font-family: var(--font-note); color: #7a3f12; margin: 0.9rem 0 0; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; }
.tag .hours { font-family: var(--font-head); font-size: 3rem; line-height: 1; margin: 0.1rem 0 0.8rem; color: #5a1fb8; }
[hidden] { display: none !important; }
.actions + p { margin-top: 1.4rem; }
