/* UNIKE base: fonts, element defaults, layout primitives.
   Assumes Oxygen's Modern Normalize is enabled; the small reset below only covers what it doesn't. */

@font-face {
  font-family: "Dazzle Unicase";
  src: url("../fonts/dazzle-unicase-thin.woff2") format("woff2");
  font-weight: 100;
  font-display: swap;
}
@font-face {
  font-family: "Dazzle Unicase";
  src: url("../fonts/dazzle-unicase-light.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
/* Poppins variable (Fontshare recompile, OFL): one file, weights 100–900, Latin only. */
@font-face {
  font-family: "Poppins VF";
  src: url("../fonts/poppins-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
img, svg, video { display: block; max-width: 100%; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--ui-header-h) + var(--wp-admin--admin-bar--height, 0px));
  -webkit-text-size-adjust: 100%;
}
/* Reduced motion: state changes become instant everywhere (header, menus, hovers). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

body {
  margin: 0;
  font-family: var(--ui-font-text);
  font-size: var(--ui-fs-body);
  font-weight: 400;
  line-height: var(--ui-lh-body);
  color: var(--ui-text);
  background: var(--ui-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }

/* Type roles */
.ui-display-xl, .ui-display, .ui-display-sm {
  font-family: var(--ui-font-display);
  font-weight: 300;
  line-height: var(--ui-lh-tight);
  letter-spacing: var(--ui-tracking-display);
  text-wrap: balance;
}
.ui-display-xl { font-size: var(--ui-fs-display-xl); font-weight: 100; }
.ui-display { font-size: var(--ui-fs-display); line-height: var(--ui-lh-heading); }
.ui-display-sm { font-size: var(--ui-fs-display-sm); line-height: var(--ui-lh-heading); }
.ui-h3 { font-size: var(--ui-fs-h3); font-weight: 500; line-height: var(--ui-lh-heading); text-wrap: balance; }
.ui-lead { font-size: var(--ui-fs-lead); font-weight: 400; line-height: 1.45; text-wrap: balance; }
.ui-small { font-size: var(--ui-fs-small); }
.ui-label {
  font-size: var(--ui-fs-label);
  font-weight: 500;
  letter-spacing: var(--ui-tracking-label);
  text-transform: uppercase;
}
.ui-eyebrow { color: var(--ui-gold-text); }
.ui-prose > * + * { margin-top: 1em; }
.ui-prose { max-width: var(--ui-measure); text-wrap: pretty; }
.ui-prose a { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

/* Layout primitives */
.ui-container {
  width: min(var(--ui-container), 100% - 2 * var(--ui-gutter));
  margin-inline: auto;
}
.ui-container--narrow { width: min(var(--ui-container-narrow), 100% - 2 * var(--ui-gutter)); }

.ui-section { padding-block: var(--ui-section); }
.ui-section--sand { background: var(--ui-sand); }
.ui-section--night { background: var(--ui-night); color: var(--ui-gold); }
.ui-section--tight-top { padding-top: calc(10.49rem - 1.96vw); }   /* 160 phone → 134 at 1728 */

/* Colour band that stops (top) or starts (bottom) partway down a block, so its photos straddle
   two backgrounds, as in the mockup. Values: sand-top, sand-bottom, gold-bottom, paper-top
   (white above, on a sand section).
   --ui-band-at moves the edge (default: halfway). Put data-band on a wrapper (container, trio,
   duo), never on .ui-media or a [data-reveal] element: their clipping would hide the band.
   The section isolates and clips, so the band paints just above its background, under all content. */
[data-band] { position: relative; }
[data-band]::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline: -100vw;
  background: var(--ui-sand);
}
[data-band^="gold"]::before { background: var(--ui-gold-surface); }
[data-band^="paper"]::before { background: var(--ui-paper); }
[data-band$="top"]::before { top: -100vh; bottom: calc(100% - var(--ui-band-at, 50%)); }
[data-band$="bottom"]::before { top: var(--ui-band-at, 50%); bottom: -100vh; }
:is(.ui-section, .ui-hero-card):has([data-band]) { isolation: isolate; overflow: clip; }
/* A band that runs into the next section replaces this section's bottom padding,
   and the next section opens with a little more room. */
.ui-section:has([data-band$="bottom"]):has(+ .ui-section) { padding-bottom: 0; }
.ui-section:has([data-band$="bottom"]) + .ui-section { padding-top: calc(7.22rem + 3.85vw); }

.ui-stack { display: grid; gap: var(--ui-space-6); }
.ui-center { text-align: center; justify-items: center; }

.ui-cols-3 {
  display: grid;
  gap: var(--ui-space-6) var(--ui-gap);
}
@media (min-width: 768px) {
  .ui-cols-3 { grid-template-columns: repeat(3, 1fr); }
}
/* Real Estate mockup: 20px column gap (456px columns at 1408). */
.ui-cols-3--tight { column-gap: 1.25rem; }

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