/* welcome.tnaado.ca — QR landing page.
   Tokens mirror tnaado-media-next/css/base/variables.css. Do not invent values here;
   if a colour or size is missing, add it to the token block, not inline. */

:root {
  /* Brand — identical values to the media site */
  --ink:            #0a0a0a;
  --red:            #c8102e;   /* rules, borders, fills, LARGE type only */
  --red-text:       #e8455a;   /* the only red allowed on small text (5.1:1 on --ink) */
  --on-black:       #f5f1e8;
  --on-black-mute:  rgba(245, 241, 232, 0.62);
  --on-black-faint: rgba(245, 241, 232, 0.40);
  --rule:           rgba(245, 241, 232, 0.12);
  --rule-soft:      rgba(245, 241, 232, 0.07);
  --surface:        rgba(255, 255, 255, 0.035);
  --surface-hover:  rgba(200, 16, 46, 0.10);

  /* Type */
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body:    'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  /* Spacing scale — 4px base, used everywhere. No off-scale values. */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  --wrap: 560px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--on-black);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

:where(a, summary, button):focus-visible {
  outline: 2px solid var(--red-text);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------------------------------------------------------------- scenic
   One photograph, fixed behind everything. Two crossed gradients do the
   legibility work: a diagonal plate that darkens the left column where the
   copy sits, and a vertical one that anchors the top bar and fades into the
   flat page colour at the footer. The image itself stays near its own
   exposure — crushing it to black was the first attempt and it stopped
   reading as a photograph at all. */

.scenic {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.scenic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  filter: grayscale(0.18) contrast(1.04) saturate(1.08) brightness(0.9);
  transform: scale(1.04);
}

.scenic-scrim {
  position: absolute;
  inset: 0;
  background:
    /* A soft plate behind the hero and door copy only — everywhere else the
       photograph stays open. */
    linear-gradient(105deg, rgba(10, 10, 10, 0.80) 0%, rgba(10, 10, 10, 0.52) 58%, rgba(10, 10, 10, 0.30) 100%),
    linear-gradient(
      to bottom,
      rgba(10, 10, 10, 0.78) 0%,
      rgba(10, 10, 10, 0.34) 26%,
      rgba(10, 10, 10, 0.46) 62%,
      rgba(10, 10, 10, 0.90) 90%,
      var(--ink) 100%
    );
}

/* ------------------------------------------------------------------- bar */

.bar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s5) var(--s5) 0;
  padding-top: max(var(--s5), env(safe-area-inset-top));
}

.bar-mark img {
  display: block;
  height: 22px;
  width: auto;
  opacity: 0.94;
  transition: opacity 180ms var(--ease);
}
.bar-mark:hover img { opacity: 1; }

/* Business menu — <details> so it works with no JS and is keyboard-native. */

.menu { position: relative; }

.menu > summary {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s3) var(--s2) var(--s4);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--on-black);
  background: rgba(10, 10, 10, 0.42);
  border: 1px solid var(--rule);
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color 180ms var(--ease), background 180ms var(--ease);
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover { border-color: var(--red); background: rgba(10, 10, 10, 0.62); }

.chev {
  width: 10px;
  height: 7px;
  transition: transform 220ms var(--ease);
}
.menu[open] > summary { border-color: var(--red); }
.menu[open] .chev { transform: rotate(180deg); }

.menu-panel {
  position: absolute;
  top: calc(100% + var(--s3));
  right: 0;
  z-index: 4;
  width: min(304px, calc(100vw - var(--s5) * 2));
  padding: var(--s2);
  background: rgba(9, 9, 9, 0.94);
  border: 1px solid var(--rule);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  animation: drop 200ms var(--ease) both;
}

@keyframes drop {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

.menu-item {
  display: block;
  padding: var(--s3) var(--s3) var(--s3) var(--s4);
  border-left: 1px solid transparent;
  transition: background 160ms var(--ease), border-color 160ms var(--ease);
}
.menu-item:hover { background: var(--surface-hover); border-left-color: var(--red); }

.menu-item-name {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.3;
}

.menu-flag {
  margin-left: var(--s2);
  padding: 1px 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--red-text);
  border: 1px solid rgba(200, 16, 46, 0.42);
  vertical-align: 2px;
}

.menu-item-note {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--on-black-mute);
}

.menu-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--s2);
  padding: var(--s3) var(--s4);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--on-black);
  background: var(--red);
  transition: filter 160ms var(--ease);
}
.menu-cta:hover { filter: brightness(1.15); }
.menu-cta svg { width: 15px; height: 15px; }

/* ------------------------------------------------------------------ body */

.wrap {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: var(--s7) var(--s5) var(--s6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s7);
}

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

.hero-emblem {
  display: block;
  width: 60px;
  height: auto;
  margin-bottom: var(--s5);
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.75));
}

.eyebrow {
  margin: 0 0 var(--s3);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--red-text);
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 11vw, 60px);
  font-weight: 300;
  font-variation-settings: 'opsz' 120;
  line-height: 1.02;
  letter-spacing: -0.022em;
}
.hero-title em {
  font-style: italic;
  font-weight: 300;
}

.hero-sub {
  margin: var(--s4) 0 0;
  max-width: 40ch;
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--on-black-mute);
}

/* ----------------------------------------------------------------- doors
   The two primary destinations. Full-bleed rows with a hairline between —
   an index, not a card grid. */

.doors {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}

.door {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr 20px;
  align-items: baseline;
  gap: var(--s4);
  padding: var(--s5) 0;
  border-bottom: 1px solid var(--rule);
  transition: padding-left 260ms var(--ease);
}

/* The red wipe that fills from the left on hover. */
.door::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, rgba(200, 16, 46, 0.16), transparent);
  transition: width 340ms var(--ease);
  pointer-events: none;
}
.door:hover::before,
.door:focus-visible::before { width: 100%; }
.door:hover { padding-left: var(--s3); }

.door-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--on-black-faint);
  transition: color 200ms var(--ease);
}
.door:hover .door-idx { color: var(--red-text); }

.door-name {
  display: block;
  font-family: var(--font-display);
  font-size: 29px;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.012em;
}

.door-note {
  display: block;
  margin-top: var(--s1);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--on-black-mute);
}

.door-arrow {
  align-self: center;
  width: 20px;
  height: 20px;
  color: var(--on-black-faint);
  transition: transform 260ms var(--ease), color 200ms var(--ease);
}
.door:hover .door-arrow { transform: translateX(5px); color: var(--red-text); }

/* --------------------------------------------------------------- socials */

.rule-head {
  display: flex;
  align-items: center;
  gap: var(--s4);
  margin: 0 0 var(--s5);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--on-black-faint);
}
.rule-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule-soft);
}

.social-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
  padding: var(--s5) var(--s2);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  transition: background 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease);
}
.social:hover {
  background: var(--surface-hover);
  border-color: rgba(200, 16, 46, 0.4);
  transform: translateY(-2px);
}

.social svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
  color: var(--on-black);
  opacity: 0.88;
}

.social-name {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
}

.social-handle {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--on-black-mute);
}

/* ----------------------------------------------------------------- foot */

.foot {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  max-width: var(--wrap);
  width: 100%;
  margin: 0 auto;
  padding: var(--s5);
  padding-bottom: max(var(--s5), env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule-soft);
  font-size: 12px;
  color: var(--on-black-faint);
}

.foot p { margin: 0; }

.foot-links { display: flex; gap: var(--s4); }
.foot-links a { transition: color 160ms var(--ease); }
.foot-links a:hover { color: var(--on-black); }

/* ------------------------------------------------------------ responsive */

@media (min-width: 700px) {
  :root { --wrap: 620px; }
  .bar { padding: var(--s6) var(--s7) 0; }
  .wrap { padding: var(--s7) var(--s5); gap: var(--s8); }
  .hero-emblem { width: 68px; }
  .door-name { font-size: 33px; }
  .foot { padding: var(--s5) var(--s7); }
}

@media (max-width: 380px) {
  .social { padding: var(--s4) var(--s1); }
  .social-name { font-size: 12px; }
  .social-handle { font-size: 9.5px; }
}

/* Compact — a QR scan should land on every option at once, so on a short
   viewport the page tightens rather than pushing the socials below the fold.
   Measured against iPhone SE through 16 Pro Max, and a 1440x900 laptop. */
@media (max-height: 980px) {
  .wrap { padding: var(--s5) var(--s5); gap: var(--s6); }
  .hero-emblem { width: 48px; margin-bottom: var(--s4); }
  .door { padding: var(--s4) 0; }
  .rule-head { margin-bottom: var(--s4); }
  .social { padding: var(--s4) var(--s2); }
  .foot { padding-top: var(--s4); padding-bottom: max(var(--s4), env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .door:hover { padding-left: 0; }
}
