/* ========================================================================
   DOMAS · GLOBAL · v8 Heritage Steakhouse
   ======================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: var(--bg);
  /* lenis controls scroll; native smooth disabled */
  /* keep anchor targets + focus below the fixed header (~76px) */
  scroll-padding-top: 5rem;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "calt";
  overflow-x: hidden;
}

/* warm grain overlay — printed-paper feel.
   Plain low-alpha layer: no mix-blend-mode, cheaper to composite. */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 2;
  background-image:
    radial-gradient(rgba(255,235,200,0.04) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: var(--grain-opacity);
}

/* vignette */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  background: var(--vignette);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
button { font: inherit; background: none; border: 0; color: inherit; }

::selection { background: var(--ottone); color: var(--bg-deep); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ottone); color: var(--bg-deep);
  padding: 0.6rem 1rem; z-index: 1000;
  font-family: var(--font-mono); font-size: var(--text-sm);
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---- Display utilities ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.98;
  margin: 0;
  color: var(--bone);
  letter-spacing: -0.005em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--ottone);
  font-weight: 400;
}

p { margin: 0 0 1em; max-width: var(--maxw-text); }

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

.section-head {
  max-width: var(--maxw);
  margin: 0 auto var(--space-12);
  padding-inline: var(--gutter);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
/* Storia-headline pattern as default: roman base, one italic em accent.
   All-italic h2s gave zero roman/italic contrast across the page. */
.section-head h2 {
  font-size: var(--text-h2);
  line-height: 0.95;
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 300;
}
.section-head h2 em {
  font-family: var(--font-italic);
  font-style: italic;
  color: var(--ottone);
}

/* focus visible */
:focus-visible {
  outline: 2px solid var(--ottone);
  outline-offset: 3px;
  border-radius: 2px;
}
