/* ==========================================================================
   LOOK: DEPTHS
   Not in Figma. Each section sits in the space between two sheets of soft,
   cut paper, and scrolling sinks you through the holes, one sheet per section,
   from warm paper down through blush, lilac, sky and aqua to sage.
   The sheets are drawn by depths.js.

   Type: Fraunces for titles, in its softest, rounded form and a light weight,
   with italics for the asides. Figtree for everything else.
   ========================================================================== */
html[data-look="depths"] {
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --color-text: #1c1828;       /* deep ink, softer than black */
  --color-page: #f3ebe0;
  /* The results and deep-dive colours, deepened so they hold up on pastel paper */
  --color-pink: #ad2a6c;
  --color-violet: #5a3fc2;
  --color-sky: #1b67a6;
  --color-green: #26784f;
  --color-orange: #b4501c;
  --color-link: #3240a6;
  --leading-tight: 0.95;
}
html[data-look="depths"] body { font-weight: 450; }
html[data-look="depths"] strong { font-weight: 650; }

/* Fraunces everywhere it's used: fully soft, no quirky letters */
html[data-look="depths"] :is(h1, h2, h3, .display, .step-title span, .decide-sub, .decide-notes, .team-sport,
  .result-number, .dive-title, .song-label, .demo-label, .brand-name) {
  font-variation-settings: "SOFT" 100, "WONK" 0;
}
html[data-look="depths"] :is(h1, .display) { font-weight: 320; letter-spacing: -0.025em; }
html[data-look="depths"] .hero h1 { line-height: 0.98; }
html[data-look="depths"] :is(h3, .step-title span, .dive-title, .song-label, .demo-label) { font-weight: 420; }
html[data-look="depths"] .brand-name { font-weight: 500; letter-spacing: -0.01em; }
html[data-look="depths"] .result-number { font-weight: 360; letter-spacing: -0.02em; }

/* The asides in italics */
html[data-look="depths"] :is(.greeting p, .decide-sub, .decide-notes, .team-sport) { font-style: italic; font-weight: 300; }

/* The hero portrait is a smooth pebble resting on the paper: an organic shape that
   slowly changes, like the holes, lit across its rounded top, shaded underneath,
   with a soft shadow on the paper below. */
html[data-look="depths"] .hero-photo {
  border-radius: 66% 34% 58% 42% / 42% 62% 38% 58%;
  box-shadow:
    0 36px 50px -24px rgba(58, 30, 48, 0.5),   /* the soft shadow it casts on the paper */
    0 12px 18px -10px rgba(58, 30, 48, 0.35);  /* the darker shadow where it sits */
  animation: depths-pebble 18s ease-in-out infinite alternate;
}
html[data-look="depths"] .hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 14px 18px -8px rgba(255, 255, 255, 0.6),    /* light across the rounded top */
    inset 0 -26px 34px -14px rgba(58, 30, 48, 0.5),     /* shade on the underside */
    inset 0 0 0 1px rgba(255, 255, 255, 0.3);           /* a faint polished rim */
  pointer-events: none;
}

@keyframes depths-pebble {
  0%   { border-radius: 66% 34% 58% 42% / 42% 62% 38% 58%; }
  50%  { border-radius: 40% 60% 36% 64% / 60% 40% 64% 36%; }
  100% { border-radius: 58% 42% 68% 32% / 36% 56% 44% 64%; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-look="depths"] .hero-photo { animation: none; }
}

/* Nav glass, warmed to match the paper */
html[data-look="depths"] .nav::before { background: rgba(255, 249, 242, 0.28); }

/* The sheets. Fixed behind everything, and they never intercept clicks. */
#depths {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100lvh;
  z-index: -1;
  display: block;
  pointer-events: none;
}

/* Shown only if the browser can't draw the sheets: a still set of rings */
html[data-look="depths"] body.no-webgl {
  background:
    radial-gradient(ellipse 34% 30% at 52% 50%, #fbf7f0 60%, transparent 62%),
    radial-gradient(ellipse 48% 42% at 50% 52%, #c7caf0 60%, transparent 62%),
    radial-gradient(ellipse 62% 56% at 48% 50%, #d8c4ea 60%, transparent 62%),
    radial-gradient(ellipse 78% 72% at 50% 49%, #f1c5c3 60%, transparent 62%),
    #f5d8c6 fixed;
  background-attachment: fixed;
}
