/* ---------------------------------------------------------------
   El Monty Wine — single-page site
   Self-hosted font, no third-party requests anywhere on the page.
   --------------------------------------------------------------- */

@font-face {
  font-family: "Barlow";
  src: url("/fonts/barlow-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #ffffff;
  --backdrop: #3d4453;              /* sampled from the sky photo; shows while it loads */
  --scrim: rgba(65, 65, 65, 0.35);  /* the same tint the old site laid over the photo */
  --shadow: 0 1px 24px rgba(0, 0, 0, 0.35);
}

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

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

body {
  margin: 0;
  background: var(--backdrop);
  color: var(--ink);
  font-family: "Barlow", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  line-height: 1.45;
  text-shadow: var(--shadow);
  -webkit-font-smoothing: antialiased;
}

/* --- layout ---------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 5vw, 4rem);
}

/* The <picture> wrapper must not become a grid row of its own; the fixed
   <img> inside it is out of flow and takes no space. */
.hero > picture { display: contents; }

.hero__bg,
.hero::before {
  position: fixed;
  inset: 0;
}

.hero__bg {
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::before {
  content: "";
  z-index: -1;
  background: var(--scrim);
  pointer-events: none;
}

/* Pinned explicitly: the out-of-flow hero <img> must not consume a track. */
.hero__inner { grid-row: 1; }
.footer { grid-row: 2; }

.hero__inner {
  padding-top: clamp(0rem, 4vh, 3rem);  /* optical centring: nudged below true centre */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.35rem, 1vw, 0.75rem);
  text-align: center;
}

/* --- type ------------------------------------------------------ */

.eyebrow {
  margin: 0;
  font-size: clamp(0.75rem, 1.45vw, 1.125rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Barlow Condensed stands in for DIN Neuzeit Grotesk Bold Condensed,
   the Wix-licensed face the old site used. */
.wordmark {
  margin: 0;
  font-family: "Barlow Condensed", "Helvetica Neue Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(2.4rem, 9vw, 7.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.mark {
  width: clamp(12rem, 27.8vw, 22rem);
  height: auto;
  margin-top: clamp(0.25rem, 1.5vw, 1rem);
  filter: drop-shadow(0 2px 18px rgba(0, 0, 0, 0.28));
}

/* --- footer ---------------------------------------------------- */

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: clamp(0.875rem, 1.25vw, 1rem);
  letter-spacing: 0.05em;
}

.footer p { margin: 0; }

.footer__ig {
  display: inline-flex;
  margin-bottom: 0.6rem;
  padding: 0.35rem;
  color: var(--ink);
  border-radius: 0.5rem;
  opacity: 0.85;
  transition: opacity 150ms ease;
}

.footer__ig svg { filter: drop-shadow(var(--shadow)); }

/* --- links ----------------------------------------------------- */

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: from-font;
}

a:hover,
a:focus-visible,
.footer__ig:hover,
.footer__ig:focus-visible { opacity: 1; }

:where(a):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- short landscape viewports (phones held sideways) ---------- */

@media (max-height: 520px) and (orientation: landscape) {
  .hero { padding-block: 1rem; }
  .mark { width: clamp(7rem, 16vw, 12rem); }
}

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