/* ==========================================================================
   Wellingtonia Labs
   ---------------------------------------------------------------------------
   Design 45, "grainy bloom": four large saturated blobs drifting slowly on a
   near-black violet ground, buried under three passes of grain.

   The grain is not decoration. Soft blurred colour on its own reads as a
   default CSS gradient; giving it a surface is what makes it look printed or
   photographed. Layer order matters and is fixed:

     0  .blobs   the colour, blurred hard
     1  .g1/.g2  fine tooth, then coarse dirt
     1  .g3      vignette, pulls the edges down so the centre reads brighter
     2  content

   Nothing here uses a card, a border, or a pill. The page is colour, grain,
   and type. Adding a container to it kills the whole effect.
   ========================================================================== */

:root {
  --ground: #0d0722;
  --ink: #ffffff;
  --ink-soft: rgba(255, 255, 255, 0.82);
  --ink-dim: rgba(255, 255, 255, 0.62);
  --ink-faint: rgba(255, 255, 255, 0.44);
  --accent: #12e0c0;

  --sans: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100svh;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; }

/* --------------------------------------------------------------------------
   The colour
   -------------------------------------------------------------------------- */

.blobs { position: fixed; inset: -30%; z-index: 0; pointer-events: none; }

.b { position: absolute; border-radius: 50%; filter: blur(90px); }

.b1 { width: 72vmax; height: 72vmax; top: -14%; left: -16%;    background: #ff2fb0; opacity: .5;  animation: m1 38s ease-in-out infinite alternate; }
.b2 { width: 62vmax; height: 62vmax; bottom: -18%; right: -12%; background: #12e0c0; opacity: .52; animation: m2 45s ease-in-out infinite alternate; }
.b3 { width: 58vmax; height: 58vmax; top: 26%; left: 40%;      background: #3b5bff; opacity: .62; animation: m3 52s ease-in-out infinite alternate; }
.b4 { width: 44vmax; height: 44vmax; bottom: 16%; left: 10%;   background: #8a3cff; opacity: .5;  animation: m4 41s ease-in-out infinite alternate; }

@keyframes m1 { to { transform: translate(20vmax, 12vmax) scale(1.24); } }
@keyframes m2 { to { transform: translate(-18vmax, -14vmax) scale(1.16); } }
@keyframes m3 { to { transform: translate(-22vmax, 15vmax) scale(.84); } }
@keyframes m4 { to { transform: translate(16vmax, -17vmax) scale(1.3); } }

/* --------------------------------------------------------------------------
   The grain
   -------------------------------------------------------------------------- */

.g1, .g2, .g3 { position: fixed; inset: 0; z-index: 1; pointer-events: none; }

.g1 {
  opacity: .42;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23a)'/%3E%3C/svg%3E");
}

.g2 {
  opacity: .2;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.22' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23b)'/%3E%3C/svg%3E");
}

.g3 { background: radial-gradient(70% 60% at 50% 46%, rgba(13,7,34,0) 0%, rgba(13,7,34,.72) 100%); }

/* --------------------------------------------------------------------------
   Home
   -------------------------------------------------------------------------- */

.frame {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.name {
  margin: 0 0 22px;
  font-size: 11px;
  line-height: 18px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.headline {
  margin: 0;
  font-size: clamp(52px, 13vw, 168px);
  line-height: .82;
  font-weight: 800;
  letter-spacing: -.05em;
  text-transform: uppercase;
}

.home { text-align: center; }

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 52px;
  font-size: 11px;
  line-height: 18px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.home .links { justify-content: center; }

.links a {
  color: var(--ink-dim);
  text-decoration: none;
  transition: color .2s ease;
}

.links a:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   Legal pages
   ---------------------------------------------------------------------------
   Same ground, but long text over drifting colour is unreadable, so the prose
   sits on a dark scrim. It is deliberately not a card: no border, no radius
   worth noticing, just enough opacity to hold contrast.
   -------------------------------------------------------------------------- */

.doc .frame {
  place-items: start center;
  padding-top: clamp(40px, 8vh, 96px);
  padding-bottom: clamp(40px, 8vh, 96px);
}

.sheet { width: 100%; max-width: 720px; }

.back {
  margin: 0 0 36px;
  font-size: 11px;
  line-height: 18px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.back a { color: var(--ink-dim); text-decoration: none; transition: color .2s ease; }
.back a:hover { color: var(--ink); }

.doc-title {
  margin: 0;
  font-size: clamp(40px, 8vw, 92px);
  line-height: .86;
  font-weight: 800;
  letter-spacing: -.045em;
  text-transform: uppercase;
}

.doc-meta {
  margin: 16px 0 0;
  font-size: 11px;
  line-height: 18px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.prose {
  margin: 40px 0 0;
  padding: 36px clamp(20px, 4vw, 44px);
  border-radius: 8px;
  background: rgba(9, 5, 24, .62);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  font-size: 16px;
  line-height: 27px;
  color: var(--ink-soft);
}

.prose h2 {
  margin: 36px 0 10px;
  font-size: 11px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}

.prose h2:first-child { margin-top: 0; }

.prose p { margin: 0 0 15px; }

.prose a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(18, 224, 192, .55);
  padding-bottom: 1px;
  transition: border-color .2s ease;
}

.prose a:hover { border-bottom-color: var(--accent); }

/* Fields still to be filled in before the page is truthful. */
.todo { border-bottom: 1px dotted var(--accent); }

.doc .links { margin-top: 40px; }

/* --------------------------------------------------------------------------
   Quality floor
   -------------------------------------------------------------------------- */

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

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

/* Without backdrop-filter the scrim would be too transparent to read against
   the moving colour, so make it properly opaque instead. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .prose { background: rgba(9, 5, 24, .92); }
}

@media (max-width: 560px) {
  .links { gap: 18px; }
}
