/* ==================================================================
   Reset + global foundations
================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  /* Every size on the page is in rem, so the scale is set here — not on
     body, where it would only affect inherited em sizing. */
  font-size: 106.25%;          /* 17px root */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--espresso-950);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 300;
  margin: 0;
  line-height: 1.05;
}

::selection { background: var(--gold-500); color: var(--espresso-950); }

:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 4px;
}

/* --- Small caps label ------------------------------------------- */
.eyebrow {
  font-size: clamp(0.66rem, 1.15vw, 0.8rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  color: var(--gold-300);
}

/* --- Buttons ----------------------------------------------------- */
/* Drawn for the dark sections — cream label, pale gold rule. Over a
   light ground it vanishes, so a light-ground button needs its resting
   colour and border overridden (see .enquiry__toggle in visit.css). */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 1.05em 2.4em;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  border: var(--rule) solid rgba(232, 210, 140, 0.45);
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.5s var(--ease-soft), border-color 0.5s var(--ease-soft);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-500);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.55s var(--ease-out);
  z-index: 0;
}
.btn > * { position: relative; z-index: 1; }
.btn:hover { color: var(--espresso-950); border-color: var(--gold-500); }
.btn:hover::after { transform: scaleY(1); }

.btn--solid {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--espresso-950);
}
.btn--solid::after { background: var(--cream); }

/* --- Ornamental rule --------------------------------------------- */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--gold-500);
}
.ornament__line {
  height: 1px;
  width: clamp(40px, 9vw, 120px);
  background: linear-gradient(90deg, transparent, currentColor);
}
.ornament__line--r {
  background: linear-gradient(270deg, transparent, currentColor);
}
/* Lives here, not in the hero stylesheet — inner pages use the ornament
   too, and an unsized SVG stretches to fill its box and paints solid. */
.ornament__mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
}

/* --- Film grain overlay (masks image softness, adds warmth) ------- */
.grain {
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 60;
  opacity: 0.11;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.7s steps(3) infinite;
}
@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-2%, 1%); }
  66%  { transform: translate(1%, -2%); }
  100% { transform: translate(0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
