/* ==========================================================
   DREAMLAND LOUNGE
   FUTURE ARCHIVE — GLOBAL FOUNDATION
   Production review / September 2026

   This file owns only the site-wide foundation and reusable
   primitives. Homepage composition belongs in
   dreamland-home.css.
   ========================================================== */

:root {
  --dl-stage: #070707;
  --dl-night: #111113;
  --dl-ink: #1b1b1e;
  --dl-bone: #f3efe7;
  --dl-paper: #eeeae1;
  --dl-paper-light: #faf7f0;
  --dl-paper-edge: #cfc7b8;
  --dl-smoke: #aaa59b;
  --dl-muted: #77726a;

  --dl-gold-shadow: #53350f;
  --dl-gold-deep: #855b1e;
  --dl-gold: #c79232;
  --dl-gold-light: #e4bf68;
  --dl-gold-pale: #f2dda0;

  --dl-display:
    "Science Gothic",
    "Arial Narrow",
    Arial,
    sans-serif;

  --dl-programme:
    "Archivo",
    Arial,
    sans-serif;

  --dl-max: 1920px;
  --dl-gutter: clamp(20px, 3.15vw, 64px);
  --dl-section-space: clamp(96px, 9vw, 180px);
  --dl-section-space-small: clamp(64px, 6vw, 112px);

  --dl-micro: 180ms;
  --dl-fast: 260ms;
  --dl-reveal: 680ms;
  --dl-long: 980ms;
  --dl-ease: cubic-bezier(.77, 0, .18, 1);

  --dl-rule: rgba(243, 239, 231, .18);
  --dl-rule-soft: rgba(243, 239, 231, .09);

  --dl-width-compressed: 58;
  --dl-width-narrow: 72;
  --dl-width-normal: 100;
  --dl-width-wide: 142;
  --dl-width-expanded: 178;
}

html {
  margin: 0;
  padding: 0;
  background: var(--dl-stage);
  color: var(--dl-bone);
  color-scheme: dark;
  scroll-behavior: auto;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #625b50 var(--dl-stage);
  scrollbar-width: thin;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--dl-stage);
  color: var(--dl-bone);
  font-family: var(--dl-programme);
  font-size: clamp(16px, 1vw, 18px);
  font-weight: 430;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  body {
    overflow-x: clip;
  }
}

body.home {
  background: var(--dl-stage);
}

body.dl-no-scroll {
  overflow: hidden;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dl-stage);
}

::-webkit-scrollbar-thumb {
  background: #625b50;
}

::-webkit-scrollbar-thumb:hover {
  background: #8d7d62;
}

.dl-home,
.dl-home *,
.dl-home *::before,
.dl-home *::after {
  box-sizing: border-box;
}

.dl-home {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--dl-stage);
  color: var(--dl-bone);
  font-family: var(--dl-programme);
  isolation: isolate;
  overflow: hidden;
}

@supports (overflow: clip) {
  .dl-home {
    overflow: clip;
  }
}

.dl-home img,
.dl-home picture,
.dl-home video,
.dl-home canvas,
.dl-home svg {
  display: block;
  max-width: 100%;
}

.dl-home figure {
  margin: 0;
}

.dl-home button,
.dl-home input,
.dl-home textarea,
.dl-home select {
  font: inherit;
}

.dl-home button {
  color: inherit;
}

.dl-home a {
  color: inherit;
  text-decoration: none;
}

.dl-home p,
.dl-home h1,
.dl-home h2,
.dl-home h3,
.dl-home h4,
.dl-home h5,
.dl-home h6 {
  margin-top: 0;
}

.dl-home p:last-child {
  margin-bottom: 0;
}

.dl-home ::selection {
  background: var(--dl-gold-light);
  color: var(--dl-stage);
}

.dl-home ::-moz-selection {
  background: var(--dl-gold-light);
  color: var(--dl-stage);
}

.dl-home :where(a, button, input, textarea, select):focus-visible,
.dl-skip:focus-visible {
  outline: 2px solid var(--dl-gold-light);
  outline-offset: 4px;
}

.dl-skip {
  position: fixed;
  z-index: 20000;
  top: 12px;
  left: 12px;
  padding: 11px 15px;
  background: var(--dl-gold-light);
  color: var(--dl-stage);
  font-family: var(--dl-programme);
  font-size: .76rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
  transform: translateY(-180%);
  transition: transform var(--dl-micro) ease;
}

.dl-skip:focus,
.dl-skip:focus-visible {
  transform: translateY(0);
}

.dl-grid {
  width: min(
    calc(100% - (var(--dl-gutter) * 2)),
    var(--dl-max)
  );
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(12px, 1.4vw, 26px);
}

.dl-shell {
  width: min(
    calc(100% - (var(--dl-gutter) * 2)),
    var(--dl-max)
  );
  margin-inline: auto;
}

.dl-programme {
  font-family: var(--dl-programme);
  font-size: clamp(.66rem, .68vw, .78rem);
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: .105em;
  text-transform: uppercase;
}

.dl-display,
.dl-display--compressed,
.dl-display--normal,
.dl-display--expanded {
  font-family: var(--dl-display);
  font-optical-sizing: auto;
  font-synthesis: none;
  text-wrap: balance;
}

.dl-display--compressed {
  font-variation-settings:
    "wdth" var(--dl-width-compressed),
    "wght" 680;
  letter-spacing: -.045em;
}

.dl-display--normal {
  font-variation-settings:
    "wdth" var(--dl-width-normal),
    "wght" 650;
}

.dl-display--expanded {
  font-variation-settings:
    "wdth" var(--dl-width-expanded),
    "wght" 620;
  letter-spacing: -.04em;
}

.dl-copy {
  max-width: 42rem;
  color: rgba(243, 239, 231, .78);
  font-family: var(--dl-programme);
  font-size: clamp(1rem, 1.15vw, 1.2rem);
  font-weight: 430;
  line-height: 1.55;
  letter-spacing: -.012em;
}

.dl-label {
  display: inline-flex;
  align-items: center;
  color: var(--dl-smoke);
  font-family: var(--dl-programme);
  font-size: clamp(.63rem, .67vw, .72rem);
  font-weight: 650;
  line-height: 1;
  letter-spacing: .11em;
  text-transform: uppercase;
}

/* Labels are typographic coordinates, not decorative dividers. */
.dl-label::before {
  content: none;
}

.dl-rule {
  width: 100%;
  height: 1px;
  background: var(--dl-rule);
}

.dl-rule--iris {
  background: var(--dl-gold);
}

.dl-action {
  position: relative;
  z-index: 0;
  display: inline-flex;
  min-height: 48px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  overflow: hidden;
  border: 1px solid rgba(243, 239, 231, .55);
  border-radius: 0;
  background: transparent;
  color: var(--dl-bone);
  font-family: var(--dl-programme);
  font-size: .76rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .09em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color var(--dl-fast) ease,
    border-color var(--dl-fast) ease;
}

.dl-action::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--dl-gold-light);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dl-fast) var(--dl-ease);
}

.dl-action:hover,
.dl-action:focus-visible {
  border-color: var(--dl-gold-light);
  color: var(--dl-stage);
}

.dl-action:hover::before,
.dl-action:focus-visible::before {
  transform: scaleX(1);
}

.dl-action__arrow {
  display: inline-block;
  transition:
    transform
    var(--dl-fast)
    cubic-bezier(.2, .8, .2, 1);
}

.dl-action:hover .dl-action__arrow,
.dl-action:focus-visible .dl-action__arrow {
  transform: translate(4px, -4px);
}

.dl-text-link {
  position: relative;
  display: inline-flex;
  min-height: 40px;
  padding-bottom: 4px;
  align-items: center;
  gap: 9px;
  font-family: var(--dl-programme);
  font-size: .76rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.dl-text-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  transform-origin: left center;
  transition: transform var(--dl-fast) var(--dl-ease);
}

.dl-text-link:hover::after,
.dl-text-link:focus-visible::after {
  transform: scaleX(.35);
}

.dl-media {
  position: relative;
  overflow: hidden;
  background: var(--dl-night);
}

.dl-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dl-section {
  position: relative;
  width: 100%;
  padding-block: var(--dl-section-space);
}

.dl-section--tight {
  padding-block: var(--dl-section-space-small);
}

.dl-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* The retired WebGL/Dreamline layer must never affect layout. */
.dl-webgl[data-dl-webgl],
.dl-dreamline-fallback {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 767px) {
  :root {
    --dl-gutter: 20px;
    --dl-section-space: clamp(80px, 21vw, 120px);
    --dl-section-space-small: clamp(60px, 16vw, 88px);
  }

  body {
    font-size: 16px;
  }

  .dl-grid {
    width: calc(100% - 40px);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 12px;
  }

  .dl-shell {
    width: calc(100% - 40px);
  }

  .dl-copy {
    font-size: 1rem;
    line-height: 1.5;
  }

  .dl-action {
    min-height: 48px;
    padding-inline: 15px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .dl-home a,
  .dl-home button {
    -webkit-tap-highlight-color: transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dl-home *,
  .dl-home *::before,
  .dl-home *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
}

@media (forced-colors: active) {
  .dl-webgl,
  .dl-dreamline-fallback {
    display: none !important;
  }

  .dl-action {
    border: 1px solid ButtonText;
  }
}