/* ===========================================================
   Ryan Wadsworth Tattoos — The Reliquary Cabinet
   seed b417f41e · direction locked 2026-09-17
   =========================================================== */

:root {
  color-scheme: dark;

  /* Ground — a dark room, one lamp */
  --ink:        #0B0A0C;   /* the room */
  --ink-2:      #131115;   /* cabinet interior */
  --ink-3:      #1B181D;   /* raised surface */
  --velvet:     #3E1018;   /* oxblood lining */
  --velvet-dim: #26090F;

  /* The one metal. Brass. Never a second. */
  --brass:      #C9A063;
  --brass-dim:  #8A6C3E;
  --brass-lit:  #E7C58C;

  /* Bone */
  --bone:       #F0EADF;
  --bone-2:     #C3BAAD;   /* secondary — warmed, never gray */
  --bone-3:     #8E867B;   /* tertiary */

  --measure: 66ch;

  --step--1: clamp(0.78rem, 0.76rem + 0.10vw, 0.84rem);
  --step-0:  clamp(1rem, 0.96rem + 0.20vw, 1.12rem);
  --step-1:  clamp(1.25rem, 1.15rem + 0.5vw, 1.55rem);
  --step-2:  clamp(1.6rem, 1.4rem + 1vw, 2.3rem);
  --step-3:  clamp(2.2rem, 1.8rem + 2vw, 3.4rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  font-synthesis-weight: none;
  overflow-x: hidden;
}

/* The room: a lamp above and left, falling off into the corners. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(120% 90% at 22% -10%, rgba(201,160,99,0.13) 0%, rgba(201,160,99,0.04) 28%, transparent 62%),
    radial-gradient(90% 70% at 88% 108%, rgba(62,16,24,0.40) 0%, transparent 60%);
}

/* Velvet nap: fine tiled turbulence, the tooth of the cloth under a low lamp. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.30;
  mix-blend-mode: overlay;
  background-repeat: repeat;
  background-size: 140px 140px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
}

main, header, footer { position: relative; z-index: 1; }

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

/* ---------- Browser surfaces ---------- */

::selection { background: var(--velvet); color: var(--brass-lit); }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 1px;
}

html { scrollbar-color: var(--brass-dim) var(--ink); scrollbar-width: thin; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb {
  background: var(--brass-dim);
  border: 3px solid var(--ink);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: var(--brass); }

a { color: var(--brass-lit); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { color: var(--brass); }

/* ---------- Type ---------- */

.display {
  font-family: 'Bodoni Moda', Georgia, 'Times New Roman', serif;
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.028em;
  text-wrap: balance;
  margin: 0;
}

h1, h2, h3 { text-wrap: balance; margin: 0; }

h2.display { font-size: var(--step-3); font-weight: 700; }

/* The engraved plate: the one label style in the system. */
.plate {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--brass);
}

.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.15em; }
.prose p:last-child { margin-bottom: 0; }

.lede {
  font-family: 'Bodoni Moda', Georgia, serif;
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--bone);
}

.muted { color: var(--bone-2); }

/* ---------- The brass rule: ornament and control, one material ---------- */

.rule {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--brass) 0%, var(--brass-dim) 55%, transparent 100%);
  margin: 0;
}

/* ---------- Shell ---------- */

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in oklab, var(--ink) 88%, transparent);
  backdrop-filter: blur(14px) saturate(115%);
  border-bottom: 1px solid rgba(201,160,99,0.20);
  padding-top: env(safe-area-inset-top, 0px);
}

.site-head__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 62px;
}

.mark {
  font-family: 'Bodoni Moda', Georgia, serif;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  color: var(--bone);
  text-decoration: none;
  white-space: nowrap;
}
.mark:hover { color: var(--brass-lit); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.1rem); }

.nav a {
  position: relative;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bone-2);
  text-decoration: none;
  padding-block: 0.6rem;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.15rem;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.nav a:hover { color: var(--bone); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--brass-lit); }

@media (max-width: 600px) {
  .site-head__in {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 0;
    padding-top: 0.6rem;
  }
  .mark { font-size: 0.98rem; }
  .nav {
    justify-content: space-between;
    gap: 0.6rem;
    margin-top: 0.1rem;
  }
  .nav a { font-size: 0.72rem; letter-spacing: 0.13em; padding-block: 0.5rem; }
}

/* ---------- Establishing frame: every page arrives somewhere ---------- */

.establish {
  padding-block: clamp(2.4rem, 6vw, 4.4rem) clamp(1.4rem, 3vw, 2.2rem);
}

.establish .plate { display: block; margin-bottom: 1.4rem; }

.establish h1.display {
  font-size: clamp(2.6rem, 9.5vw, 5.6rem);
}

.establish .rule { margin-block: clamp(1.4rem, 3vw, 2.1rem); }

/* ---------- Home hero ---------- */

.hero { padding-block: clamp(2.4rem, 6vw, 4.6rem) clamp(1.4rem, 3vw, 2.2rem); }

.hero__name {
  font-size: clamp(2.2rem, 12.2vw, 11rem);
  text-transform: uppercase;
  letter-spacing: -0.035em;
  color: var(--bone);
}
.hero__name .line { display: block; }
.hero__name .sub {
  display: block;
  font-size: clamp(0.9rem, 3.2vw, 1.9rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: clamp(0.7rem, 1.6vw, 1.1rem);
  line-height: 1.2;
}

.hero .rule { margin-block: clamp(1.1rem, 2.2vw, 1.6rem); }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem clamp(1.2rem, 4vw, 2.6rem);
  color: var(--bone-2);
  font-size: var(--step--1);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ---------- The vitrine ---------- */

.vitrine {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  margin: 0;
  text-align: left;
  font: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background: var(--ink-2);
  border: 1px solid rgba(201,160,99,0.22);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: 0 6px 13px -8px rgba(0,0,0,0.95);
  transition: border-color 0.5s var(--ease), box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}

.vitrine__glass {
  display: block;
  position: relative;
  aspect-ratio: 4 / 5;
  padding: 10px;
  background:
    linear-gradient(158deg, var(--velvet) 0%, var(--velvet-dim) 62%, #1C060B 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
}

/* The lining shows as a hairline of cloth around the specimen. */
.vitrine__glass img {
  box-shadow: 0 1px 6px -2px rgba(0,0,0,0.9);
}

.vitrine__glass img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.9s var(--ease);
}

/* Beveled glass: a specific effect, a lit top edge and a soft fall. */
.vitrine__glass::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10) 0%, transparent 22%),
    linear-gradient(0deg, rgba(11,10,12,0.55) 0%, transparent 34%);
}

.vitrine:hover { border-color: rgba(201,160,99,0.55); box-shadow: 0 9px 16px -8px rgba(0,0,0,0.95); }
.vitrine:hover .vitrine__glass img { transform: scale(1.035); filter: brightness(1.06); }

/* The engraved plate beneath each piece */
.vitrine__plate {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem 0.95rem;
  border-top: 1px solid rgba(201,160,99,0.22);
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
}

.vitrine__plate .style {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brass);
}
.vitrine__plate .spec {
  font-size: var(--step--1);
  color: var(--bone-2);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  white-space: nowrap;
}

/* Empty vitrine: lit and waiting, never broken. */
.vitrine--empty .vitrine__glass {
  display: grid;
  place-items: center;
  background:
    radial-gradient(70% 55% at 50% 22%, rgba(201,160,99,0.11), transparent 70%),
    linear-gradient(160deg, rgba(62,16,24,0.34), rgba(11,10,12,0.95));
}
.vitrine--empty .mono {
  font-size: var(--step--1);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-3);
}

/* The establishing frame: one wide vitrine, before the grid. */
.vitrine--wide { margin-bottom: clamp(1.4rem, 3vw, 2.2rem); }
.vitrine--wide .vitrine__glass { aspect-ratio: 8 / 3; }
@media (max-width: 720px) {
  .vitrine--wide .vitrine__glass { aspect-ratio: 3 / 2; }
}

/* The empty case closes the cabinet across its full width, so it never sits alone in a ragged last row. */
.cabinet > .vitrine--empty { grid-column: 1 / -1; }
.cabinet > .vitrine--empty .vitrine__glass { aspect-ratio: 8 / 3; }
@media (max-width: 720px) {
  .cabinet > .vitrine--empty .vitrine__glass { aspect-ratio: 3 / 2; }
}

/* ---------- Cabinet grid ---------- */

/* The button that follows a cabinet belongs to it, not to the next section. */
.cabinet + p { margin: 0; }

.cabinet {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr));
  gap: clamp(0.9rem, 2vw, 1.5rem);
  padding-bottom: clamp(1.6rem, 3.5vw, 2.6rem);
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(2.4rem, 5vw, 4rem); }
.section__head { margin-bottom: clamp(1.6rem, 3.5vw, 2.4rem); }
.section__head .plate { display: block; margin-bottom: 0.9rem; }

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.8rem, 5vw, 3.5rem);
}
@media (min-width: 900px) {
  .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}

/* ---------- Ordered ritual (how an appointment runs) ---------- */

.ritual {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  position: relative;
}
.ritual::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: rgba(201,160,99,0.16);
}

.ritual li {
  counter-increment: step;
  position: relative;
  padding-left: 3.1rem;
  padding-block: 1.05rem;
}
.ritual li::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: rgba(201,160,99,0.16);
}

.ritual li::before {
  content: counter(step, upper-roman);
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 2.1rem;
  text-align: right;
  font-family: 'Bodoni Moda', Georgia, serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--brass);
}

.ritual h3 {
  font-family: 'Bodoni Moda', Georgia, serif;
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
  color: var(--bone);
}
.ritual p { margin: 0; color: var(--bone-2); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.6rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--brass);
  color: var(--brass-lit);
  background: transparent;
  position: relative;
  overflow: hidden;
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease);
  z-index: -1;
}
.btn:hover { color: var(--ink); border-color: var(--brass-lit); }
.btn:hover::before { transform: scaleX(1); }
.btn span { position: relative; z-index: 1; }

.btn--solid { background: var(--brass); color: var(--ink); border-color: var(--brass); }
.btn--solid:hover { background: var(--brass-lit); border-color: var(--brass-lit); color: var(--ink); }
.btn--solid::before { display: none; }

/* ---------- Booking ---------- */

.booking-frame {
  border: 1px solid rgba(201,160,99,0.28);
  background: var(--ink-2);
  padding: 1.6rem;
  box-shadow: 0 7px 14px -9px rgba(0,0,0,0.95);
}
@media (min-width: 720px) { .booking-frame { padding: 2.6rem; } }

.detail-list { list-style: none; margin: 0; padding: 0; position: relative; }
.detail-list::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: rgba(201,160,99,0.16);
}
.detail-list li {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem;
  padding-block: 0.9rem;
}
.detail-list li::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: rgba(201,160,99,0.16);
}
.detail-list dt, .detail-list .k {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brass);
}
.detail-list .v { color: var(--bone); }
.detail-list .v a { color: var(--bone); }
.detail-list .v a:hover { color: var(--brass-lit); }

/* ---------- Footer ---------- */

.site-foot {
  border-top: 1px solid rgba(201,160,99,0.20);
  padding-block: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: calc(clamp(2.5rem, 6vw, 4rem) + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, transparent, rgba(62,16,24,0.16));
}

.foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.8rem, 4vw, 3rem);
}
@media (min-width: 760px) {
  .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}

.foot-name {
  font-family: 'Bodoni Moda', Georgia, serif;
  font-size: var(--step-2);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 0.7rem;
}

.foot-col .plate { display: block; margin-bottom: 0.85rem; }
.foot-col address { font-style: normal; color: var(--bone-2); }
.foot-col a { color: var(--bone-2); text-decoration: none; }
.foot-col a:hover { color: var(--brass-lit); text-decoration: underline; }

.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.ig-link svg { width: 18px; height: 18px; flex: none; }

.colophon {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: 1.4rem;
  border-top: 1px solid rgba(201,160,99,0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  font-size: var(--step--1);
  color: var(--bone-3);
  letter-spacing: 0.04em;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: color-mix(in oklab, var(--ink) 94%, transparent);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}
.lightbox[data-open="true"] { opacity: 1; pointer-events: auto; }

.lightbox__img {
  max-width: min(94vw, 900px);
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(201,160,99,0.35);
  box-shadow: 0 8px 12px -8px rgba(0,0,0,0.95);
}

.lightbox__bar {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.lightbox__close,
.lightbox__nav {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(201,160,99,0.4);
  color: var(--brass-lit);
  font-family: inherit;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.lightbox__close:hover,
.lightbox__nav:hover { background: var(--brass); color: var(--ink); }
.lightbox__nav:disabled { opacity: 0.35; cursor: default; }
.lightbox__count { color: var(--bone-2); font-size: var(--step--1); letter-spacing: 0.15em; }

/* ---------- Motion: one authored moment ---------- */

/* Motion runs from visible. The script adds .is-out to stage an element it is about to
   settle, and removes it; if the script never runs, every section is simply already there. */
@media (prefers-reduced-motion: no-preference) {
  .reveal { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
  .reveal.is-out { opacity: 0; transform: translateY(14px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
