/* Panic Room design mock: shared system. See design/DESIGN.md section 3.
   Fonts are served from this site (assets/fonts/, Latin subset, SIL OFL 1.1,
   see assets/fonts/LICENCE.txt). Inter Tight is one variable file for
   weights 400 to 800. Pages preload inter-tight-latin.woff2 in the head. */
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/inter-tight-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/instrument-serif-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/instrument-serif-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ground: #000000;
  --panel: #0b0b0a;
  --ink: #efe9dd;
  --muted: #8c877d;
  --hairline: rgba(239, 233, 221, .16);
  --red: #d02028;
  --on-red: #ffffff;

  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --ease-enter: cubic-bezier(.2, .7, .2, 1);
  --ease-travel: cubic-bezier(.65, .05, 0, 1);
  --dur-enter: .8s;
  --dur-travel: .75s;
  --dur-press: .15s;

  --inset: 56px;
  --head-pad: 28px;
  --bar-h: 76px;
  /* Space the phone book bar takes, including the iPhone home bar area (0 elsewhere). */
  --bar-space: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
}
@media (max-width: 759.98px) {
  :root { --inset: 20px; --head-pad: 14px; }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--ink); color: var(--ground); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--inset); top: 8px; z-index: 100;
  background: var(--ink); color: var(--ground); padding: 12px 16px;
  font-size: 14px; line-height: 18px; font-weight: 500;
  transform: translateY(-200%);
}
.skip-link:focus-visible { transform: none; }

.wrap { padding-left: var(--inset); padding-right: var(--inset); }

/* ---------- type ---------- */
.statement-sans {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(52px, 8.9vw, 128px);
  line-height: .83;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.statement-serif {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 7.2vw, 104px);
  line-height: .92;
  letter-spacing: -0.02em;
}
.statement-serif em, .statement-serif i { font-style: italic; }
.body { font-size: 17px; line-height: 26px; }
.meta { font-size: 15px; line-height: 22px; color: var(--muted); }
.label {
  font-size: 13px; line-height: 16px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted);
}
.menu-type {
  font-size: 14px; line-height: 18px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em;
}
.red-word { color: var(--red); }

/* facts: a row of small facts with hairline dividers */
.facts {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px 0;
  font-size: 15px; line-height: 22px; color: var(--muted);
}
.facts > li, .facts > span {
  display: inline-flex; align-items: center; gap: 8px;
}
.facts > li + li::before, .facts > span + span::before {
  content: ""; width: 1px; height: 14px; background: var(--hairline);
  margin: 0 14px;
}
.facts.is-list { display: grid; gap: 0; }
.facts.is-list > li { padding: 12px 0; border-top: 1px solid var(--hairline); }
.facts.is-list > li:last-child { border-bottom: 1px solid var(--hairline); }
.facts.is-list > li + li::before { content: none; }

.tag-confirm {
  display: inline-flex; align-items: center;
  height: 22px; padding: 0 8px;
  border: 1px solid var(--muted);
  font-size: 13px; line-height: 16px; font-weight: 500;
  letter-spacing: .04em; color: var(--muted);
  white-space: nowrap; vertical-align: middle;
}

.link-plain {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 15px; line-height: 22px; font-weight: 500;
  color: var(--ink);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
  transition: opacity var(--dur-press) linear;
}
.link-plain:hover { opacity: .7; }

.ai-note {
  font-size: 13px; line-height: 16px; color: var(--muted);
  font-weight: 400; letter-spacing: 0;
}

/* ---------- buttons ---------- */
.btn-book {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 13px 22px;
  border-radius: 2px;
  background: var(--red); color: var(--on-red);
  font-size: 14px; line-height: 18px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em; white-space: nowrap;
  transition: transform var(--dur-press) var(--ease-enter), filter var(--dur-press) linear;
}
.btn-book:hover { filter: brightness(1.08); }
.btn-book:active { transform: scale(.97); }
.btn-book.is-large {
  height: 64px; padding: 20px 36px;
  font-size: 16px; line-height: 20px; letter-spacing: .1em;
}
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 13px 22px; border-radius: 2px;
  border: 1px solid var(--ink); color: var(--ink);
  font-size: 14px; line-height: 18px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em; white-space: nowrap;
  transition: transform var(--dur-press) var(--ease-enter), background-color var(--dur-press) linear, color var(--dur-press) linear;
}
.btn-ghost:hover { background: var(--ink); color: var(--ground); }
.btn-ghost:active { transform: scale(.97); }

/* ---------- header ---------- */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: var(--head-pad) var(--inset);
  background: transparent;
  transition: background-color .3s linear, padding .3s var(--ease-enter);
}
.site-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--hairline); opacity: 0; transition: opacity .3s linear;
}
.site-head.is-solid { background: var(--ground); }
.site-head.is-solid::after { opacity: 1; }
.site-logo { display: block; flex: none; margin-right: auto; }
.site-logo img { width: 150px; height: auto; }
.site-tabs { display: flex; align-items: center; gap: 28px; }
.site-tabs a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 14px; line-height: 18px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em; white-space: nowrap;
  color: var(--ink);
  background-image: linear-gradient(var(--ink), var(--ink));
  background-repeat: no-repeat; background-position: 0 calc(50% + 14px);
  background-size: 0 1px;
  transition: background-size .3s var(--ease-enter);
}
.site-tabs a:hover, .site-tabs a[aria-current="page"] { background-size: 100% 1px; }
.site-menu { display: none; }

/* Compact header: the five tabs need about 1100px, so below 1160px they move into the sheet.
   Only the header switches here; the book bar and page layouts still switch at 760px. */
@media (max-width: 1159.98px) {
  .site-head { gap: 8px; }
  .site-tabs { display: none; }
  .site-menu {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; height: 44px; padding: 0 12px;
    font-size: 14px; line-height: 18px; font-weight: 500;
    text-transform: uppercase; letter-spacing: .1em;
  }
}
@media (max-width: 759.98px) {
  .site-logo img { width: 112px; }
  .site-head .btn-book { padding: 13px 16px; }
}

/* ---------- phone menu sheet ---------- */
.site-sheet {
  position: fixed; inset: 0; z-index: 60;
  background: var(--ground);
  display: flex; flex-direction: column;
  padding: var(--head-pad) var(--inset) 32px;
  overflow-y: auto; overscroll-behavior: contain;   /* a short screen can still reach every link */
  opacity: 0; visibility: hidden;
  transition: opacity .3s linear, visibility 0s linear .3s;
}
.site-sheet.is-open { opacity: 1; visibility: visible; transition: opacity .3s linear, visibility 0s; }
.site-sheet-top { display: flex; align-items: center; justify-content: space-between; min-height: 59px; }
.site-sheet-top img { width: 112px; height: auto; }
@media (min-width: 760px) { .site-sheet-top img { width: 150px; } }   /* same size as the header logo, so it does not jump */
.site-sheet-close {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 12px;
  font-size: 14px; line-height: 18px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em;
}
.site-sheet nav { margin-top: 32px; display: grid; }
.site-sheet nav a {
  display: flex; align-items: center; min-height: 60px;
  border-top: 1px solid var(--hairline);
  font-size: 28px; line-height: 32px; font-weight: 600; letter-spacing: -0.01em;
  transform: translateY(12px); opacity: 0;
  transition: transform var(--dur-enter) var(--ease-enter), opacity var(--dur-enter) var(--ease-enter);
}
.site-sheet nav a:last-child { border-bottom: 1px solid var(--hairline); }
.site-sheet nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.site-sheet.is-open nav a { transform: none; opacity: 1; }
.site-sheet.is-open nav a:nth-child(2) { transition-delay: .04s; }
.site-sheet.is-open nav a:nth-child(3) { transition-delay: .08s; }
.site-sheet.is-open nav a:nth-child(4) { transition-delay: .12s; }
.site-sheet.is-open nav a:nth-child(5) { transition-delay: .16s; }
.site-sheet.is-open nav a:nth-child(6) { transition-delay: .2s; }
.site-sheet .btn-book { margin-top: auto; width: 100%; height: 52px; }
@media (min-width: 1160px) { .site-sheet { display: none; } }

/* ---------- phone book bar ---------- */
.book-bar { display: none; }
@media (max-width: 759.98px) {
  .book-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: flex; align-items: center; gap: 16px;
    padding: 12px var(--inset) calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--ground);
    border-top: 1px solid var(--hairline);
  }
  .book-bar-price { flex: none; font-size: 15px; line-height: 20px; color: var(--ink); }
  .book-bar-price span { display: block; font-size: 13px; line-height: 16px; color: var(--muted); }
  .book-bar .btn-book { flex: 1; height: 52px; }
  body.has-book-bar { padding-bottom: var(--bar-space); }
}

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--hairline);
  padding: 40px var(--inset) 48px;
  display: grid; gap: 24px;
  grid-template-columns: 1fr auto;
  align-items: start;
  font-size: 15px; line-height: 22px; color: var(--muted);
}
.site-foot img { width: 120px; height: auto; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.site-foot nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.site-foot nav a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.site-foot-note { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; border-top: 1px solid var(--hairline); }
@media (max-width: 759.98px) {
  .site-foot { grid-template-columns: 1fr; }
}

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 45; pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.2 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}

/* ---------- motion helpers ---------- */
.rise { opacity: 0; transform: translateY(35px); transition: opacity var(--dur-enter) var(--ease-enter), transform var(--dur-enter) var(--ease-enter); }
.rise.is-in { opacity: 1; transform: none; }

/* decode (PR.decode in system.js): each .dc box keeps its final letter's width */
.decode { white-space: nowrap; }
.decode .dc-space { display: inline-block; }

/* Shared markup the pages use (copy as is):
   <div id="site-sheet" class="site-sheet" role="dialog" aria-modal="true" aria-label="Menu">
     <div class="site-sheet-top">
       <a href="index.html" aria-label="The Panic Room Dartford, home"><img src="assets/img/logo.webp" alt="" width="150" height="59"></a>
       <button class="site-sheet-close" type="button">Close</button>
     </div>
     <nav aria-label="Pages (menu)">
       <a href="index.html">Home</a> <a href="witch-house.html">The Witch House</a> <a href="netherworld.html">Netherworld</a>
       <a href="great-escape.html">A Great Escape</a> <a href="prices.html">Prices</a> <a href="find-us.html">Find us</a>
     </nav>
     <a class="btn-book" href="book.html">Book now</a>
   </div>
   <div class="book-bar"><p class="book-bar-price">From £21 each<span>Private games, 2 to 8 players</span></p><a class="btn-book" href="book.html">Book now</a></div>
   Add class="has-book-bar" to <body> so the page clears the bar on phone.
   <div class="grain" aria-hidden="true"></div>
   <footer class="site-foot"> logo, nav, then <div class="site-foot-note"><p>Design concept. Not the official website.</p><p>...</p></div></footer> */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .rise { transform: none; transition: opacity .4s linear; }
  .site-sheet nav a { transform: none; }
}
