/* IRMA'S — reset, typography primitives, buttons, motion defaults */

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

html {
  /* the gate owns the first screen; scrolling is unlocked once entered */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  /* horizontal overflow is a bug, not a scroll mode */
  overflow-x: hidden;
}

/* While the gate is up nothing behind it may scroll or be reached. */
html.gated, html.gated body { overflow: hidden; height: 100%; }

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }

/* `hidden` must win over any layout display value — the unconfirmed address
   row and the playback controls all rely on it. */
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.012em;
}
p { margin: 0; }

a { color: inherit; }

::selection { background: var(--gold); color: var(--ink); }

/* Focus is always visible — never removed, only styled. */
:focus-visible {
  outline: 2px solid var(--gold-lit);
  outline-offset: 3px;
  border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--gold);
  color: var(--ink);
  padding: 0.7rem 1.3rem;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: var(--track-btn);
  text-transform: uppercase;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus { transform: translate(-50%, 0); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ── layout primitives ─────────────────────────────────────────────── */

.wrap {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--space-section); position: relative; }

.eyebrow {
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin: 0;
}

.lede {
  font-size: var(--fs-lead);
  color: var(--text-soft);
  max-width: var(--measure);
  line-height: 1.6;
}

/* The red script accent lifted from the sign — used sparingly, never as decor. */
.script {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--red-lit);
}

/* A hairline rule that reads as a refined border rather than a divider bar. */
.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
}

/* ── buttons ───────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 3rem;
  padding: 0.85rem 1.9rem;
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: var(--track-btn);
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--ink);
  border-radius: 1px;
  transition:
    background var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}
.btn:hover { background: var(--gold-lit); border-color: var(--gold-lit); }

.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--line-soft);
}
.btn--ghost:hover {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold-lit);
}

.btn--text {
  background: transparent;
  border-color: transparent;
  color: var(--text-mute);
  padding-inline: 0.5rem;
  min-height: 2.5rem;
}
.btn--text:hover { background: transparent; color: var(--cream); }

/* ── touch targets ─────────────────────────────────────────────────
   Inline links that people are expected to tap — phone numbers, footer
   navigation — get a real target height rather than just their text box. */
.tap {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
}

/* ── grain: one shared warm film grain, never animated ─────────────── */
.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  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'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── reveal defaults ───────────────────────────────────────────────── */
/* Hidden only when motion is allowed AND JS is running: a no-JS or
   reduced-motion visitor must never be left with invisible content. */
html.has-motion.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  will-change: opacity, transform;
}
