:root {
  --crypt: #140d14;
  --soil: #22161f;
  --wax: #efe3c8;
  --ash: #a8998a;
  --flame: #f0a33c;
  --blood: #9e2a24;
  --manila: #d8c7a0;
  --fell: "IM Fell English", "Iowan Old Style", Georgia, serif;
  --fell-sc: "IM Fell English SC", "IM Fell English", Georgia, serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--crypt);
  color: var(--wax);
  font: 19px/1.7 var(--fell);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* grain over everything, like an old print */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 400; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 200; background: var(--flame); color: var(--crypt); padding: 8px 14px; }
:focus-visible { outline: 2px solid var(--flame); outline-offset: 4px; }

.btn {
  display: inline-block;
  padding: 12px 22px 13px;
  font: 21px/1 var(--fell-sc);
  text-decoration: none;
  color: var(--crypt);
  background: var(--flame);
  box-shadow: 0 0 0 1px var(--flame), 0 0 40px -8px rgba(240, 163, 60, .7);
  transition: box-shadow .25s ease, transform .25s ease;
}
.btn:hover { box-shadow: 0 0 0 1px var(--flame), 0 0 60px -4px rgba(240, 163, 60, .9); transform: translateY(-1px); }
.btn-quiet { background: transparent; color: var(--wax); box-shadow: inset 0 0 0 1px rgba(239, 227, 200, .35); }
.btn-quiet:hover { box-shadow: inset 0 0 0 1px var(--wax); }

/* ---------- header ---------- */
.top {
  position: absolute; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px clamp(16px, 4vw, 48px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 24px/1 var(--fell-sc); }
nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 34px); font: 20px/1 var(--fell-sc); }
nav a { text-decoration: none; color: var(--ash); }
nav a:hover { color: var(--wax); }
nav .nav-phone { color: var(--flame); }

/* ---------- hero: the flashlight ---------- */
.hero {
  --x: 70%; --y: 45%; --r: max(170px, 21vw);
  position: relative;
  min-height: max(640px, 100svh);
  display: flex; align-items: flex-end;
  padding: 120px clamp(16px, 4vw, 48px) clamp(56px, 8vw, 96px);
  isolation: isolate;
  cursor: crosshair;
}
.dark { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #0a060a; }
.dark img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 42%;
}
.dim { filter: brightness(.09) saturate(.3); }
.lit {
  filter: sepia(.3) saturate(1.05) contrast(1.12) brightness(1.02);
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 0%, rgba(0, 0, 0, .9) 38%, rgba(0, 0, 0, .35) 66%, transparent 100%);
          mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 0%, rgba(0, 0, 0, .9) 38%, rgba(0, 0, 0, .35) 66%, transparent 100%);
}
/* warm spill of the beam, plus shadow for the headline to sit in */
.dark::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle calc(var(--r) * 1.3) at var(--x) var(--y), rgba(240, 163, 60, .16), transparent 70%),
    linear-gradient(to top, var(--crypt) 0%, rgba(20, 13, 20, .75) 30%, transparent 62%),
    linear-gradient(to right, rgba(20, 13, 20, .7) 0%, transparent 55%);
}
.hero-copy { max-width: 760px; }
h1 {
  font: clamp(64px, 10.5vw, 168px)/.86 var(--fell);
  letter-spacing: -.02em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .8);
}
.lede { max-width: 31em; margin: 28px 0 34px; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.6; color: var(--wax); text-shadow: 0 1px 12px #000; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hint {
  position: absolute; right: clamp(16px, 4vw, 48px); bottom: clamp(24px, 4vw, 40px);
  font: italic 17px/1 var(--fell); color: var(--ash);
}
.hint-touch { display: none; }
@media (pointer: coarse) { .hint-pointer { display: none; } .hint-touch { display: inline; } }

/* ---------- the work ---------- */
.things {
  max-width: 1240px; margin: 0 auto;
  padding: clamp(80px, 11vw, 150px) clamp(16px, 4vw, 48px) clamp(40px, 6vw, 80px);
}
h2 { font: clamp(46px, 6.2vw, 92px)/.95 var(--fell); letter-spacing: -.015em; }
.things > h2 { max-width: 11em; margin-bottom: clamp(48px, 7vw, 96px); }

.kind {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
  margin-bottom: clamp(56px, 7vw, 100px);
}
.kind-creatures { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.kind-creatures .kind-copy { order: 2; }
h3 { font: italic clamp(38px, 4.4vw, 60px)/1 var(--fell); color: var(--flame); margin-bottom: 18px; }
.kind-copy p { max-width: 30em; color: var(--ash); }
.kind-copy p + p { margin-top: 14px; }

/* photos pinned to the wall, each with a tied tag */
.wall { position: relative; height: clamp(640px, 62vw, 800px); }
.kind-creatures .wall { height: clamp(600px, 56vw, 720px); }
.pin { position: absolute; margin: 0; }
.pin img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  filter: sepia(.35) saturate(.85) contrast(1.15) brightness(.82);
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, .9);
}
/* vignette so the tabletop sinks into the dark */
.pin::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 60px 18px rgba(20, 13, 20, .85);
  pointer-events: none;
}
/* the pin */
.pin::before {
  content: ""; position: absolute; z-index: 2;
  top: -7px; left: 50%; width: 14px; height: 14px; margin-left: -7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #d2574c, var(--blood) 55%, #4a0f0c);
  box-shadow: 0 3px 5px rgba(0, 0, 0, .7);
}
.pin figcaption {
  position: absolute; z-index: 3; right: -10px; bottom: 18px;
  padding: 5px 12px 6px 22px;
  font: 17px/1.2 var(--fell-sc);
  color: #2a1a14;
  background: var(--manila);
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%);
  transform: rotate(-4deg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .5);
}
.pin figcaption::before {
  content: ""; position: absolute; left: 10px; top: 50%;
  width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
  background: #2a1a14;
}

.kind-masks .p1 { left: 0;   top: 0;   width: 50%; transform: rotate(-3deg); }
.kind-masks .p2 { left: 56%; top: 3%;  width: 40%; transform: rotate(4deg); }
.kind-masks .p3 { left: 6%;  top: 58%; width: 38%; transform: rotate(2deg); }
.kind-masks .p4 { left: 56%; top: 52%; width: 40%; transform: rotate(-4deg); }
.kind-creatures .p1 { left: 0;   top: 4%;  width: 54%; transform: rotate(2deg); }
.kind-creatures .p2 { left: 58%; top: 0;   width: 40%; transform: rotate(-4deg); }
.kind-creatures .p3 { left: 60%; top: 54%; width: 38%; transform: rotate(3deg); }

/* ---------- omen band ---------- */
.omen {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex; align-items: center;
  padding: 64px clamp(16px, 6vw, 96px);
  overflow: hidden;
  isolation: isolate;
}
.omen img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%;
}
.omen::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to right, rgba(20, 13, 20, .92) 0%, rgba(20, 13, 20, .55) 45%, rgba(20, 13, 20, .1) 75%),
    linear-gradient(to bottom, var(--crypt), transparent 22%, transparent 78%, var(--crypt));
}
.omen p {
  font: italic clamp(52px, 7.6vw, 124px)/.95 var(--fell);
  letter-spacing: -.02em;
  text-shadow: 0 4px 40px #000;
}

/* ---------- commission ---------- */
.commission {
  max-width: 1240px; margin: 0 auto;
  padding: clamp(80px, 11vw, 150px) clamp(16px, 4vw, 48px) clamp(40px, 6vw, 80px);
}
.commission-lede { max-width: 30em; margin: 24px 0 clamp(40px, 6vw, 72px); font-size: clamp(19px, 1.6vw, 22px); color: var(--ash); }
.rite {
  list-style: none; counter-reset: rite; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px);
}
.rite li {
  counter-increment: rite;
  padding-top: 20px;
  border-top: 1px solid rgba(158, 42, 36, .7);
  color: var(--ash);
}
.rite li::before {
  content: counter(rite, upper-roman);
  display: block; margin-bottom: 10px;
  font: 56px/1 var(--fell); color: var(--blood);
}
.rite strong { display: block; margin-bottom: 6px; font: 26px/1.15 var(--fell); color: var(--wax); font-weight: 400; }

/* ---------- contact: a toe tag ---------- */
.contact {
  display: flex; justify-content: center;
  padding: clamp(80px, 10vw, 140px) 16px clamp(96px, 12vw, 160px);
  overflow: hidden;
}
.tag {
  position: relative;
  width: min(560px, 100%);
  padding: 34px 40px 36px 92px;
  color: #2a1a14;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(255, 255, 255, .18), transparent 50%),
    radial-gradient(ellipse at 15% 90%, rgba(90, 60, 30, .22), transparent 55%),
    var(--manila);
  clip-path: polygon(34px 0, 100% 0, 100% 100%, 34px 100%, 0 calc(100% - 34px), 0 34px);
  transform: rotate(-3deg);
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .6));
}
/* brass grommet */
.tag::before {
  content: ""; position: absolute; left: 30px; top: 50%;
  width: 30px; height: 30px; margin-top: -15px; border-radius: 50%;
  background: var(--crypt);
  box-shadow: 0 0 0 5px #a88a4c, 0 0 0 6px #6d5428;
}
.tag h2 { font: clamp(34px, 4.4vw, 48px)/1 var(--fell); margin-bottom: 22px; }
.tag dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 18px; align-items: baseline; }
.tag dt { font: 17px/1.2 var(--fell-sc); color: #6b5140; }
.tag dd { margin: 0; padding-bottom: 4px; border-bottom: 1px dashed rgba(42, 26, 20, .45); font: italic 24px/1.2 var(--fell); }
.tag dd a { text-decoration: none; font-style: normal; font-size: clamp(28px, 3.4vw, 36px); }
.tag dd a.mail { font-size: clamp(20px, 2.6vw, 26px); overflow-wrap: anywhere; }
.tag dd a:hover { color: var(--blood); }
.rite a { color: var(--wax); text-decoration-color: rgba(240, 163, 60, .6); text-underline-offset: 3px; }
.rite a:hover { color: var(--flame); }
.tag dd a:focus-visible { outline-color: var(--blood); }

.foot {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 28px 16px 36px;
  font: 17px/1.3 var(--fell-sc); color: var(--ash);
}

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  .kind, .kind-creatures { grid-template-columns: 1fr; }
  .kind-creatures .kind-copy { order: 0; }
  .rite { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 18px; }
  nav a:not(.nav-phone) { display: none; }
  .brand span { display: none; }
  .hero { --r: 150px; }
  .hint { left: 16px; right: auto; bottom: 18px; }
  .wall, .kind-creatures .wall { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 18px; padding-top: 8px; }
  .pin { position: relative; left: auto !important; top: auto !important; width: auto !important; }
  .pin:first-child { grid-column: 1 / -1; width: 78% !important; justify-self: center; }
  .pin figcaption { font-size: 15px; right: -6px; }
  .tag { padding: 28px 22px 30px 76px; }
  .tag::before { left: 24px; width: 24px; height: 24px; margin-top: -12px; }
  .tag dl { grid-template-columns: 1fr; gap: 2px; }
  .tag dd { margin-bottom: 12px; }
}

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