/* ==========================================================================
   CuffCreations — one page, no scripts, no third-party anything.
   Black and greys carry it; slate blue is the light in the room; gold is a
   single hairline and a hover. The CSP is style-src 'self': keep every style
   in this file (no style="" attributes, no <style> blocks).
   ========================================================================== */

:root {
  --ink: #0a0b0d;          /* page */
  --slate: 38 54 74;       /* shady blue, as an rgb triplet for the glows */
  --text-hi: #e9ebee;      /* "Cuff" */
  --text-mid: #8a929d;     /* "Creations", the footer link */
  --text-lo: #7a828d;      /* footer label (4.8:1 on --ink) */
  --line: #262a31;         /* hairline separators */
  --gold: #c4a65e;         /* muted, used sparingly */
  --track: 0.34em;         /* wordmark letter-spacing */

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI",
          "Helvetica Neue", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);

  color-scheme: dark;
}

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

html {
  height: 100%;
  background: var(--ink);
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow-x: clip;
  background:
    radial-gradient(58% 42% at 50% 46%, rgb(var(--slate) / 0.30), transparent 72%),
    radial-gradient(110% 55% at 50% 112%, rgb(var(--slate) / 0.16), transparent 62%),
    var(--ink);
  color: var(--text-hi);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgb(196 166 94 / 0.24);
  color: var(--text-hi);
}

/* --- The wordmark ------------------------------------------------------- */

.stage {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.75rem;
  padding: 4rem 16px;
}

.wordmark {
  margin: 0;
  font-size: clamp(1.1rem, 5.4vw, 2.6rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: var(--track);
  /* letter-spacing also trails the last letter; this balances it so the
     word sits on the true centre line */
  padding-left: var(--track);
  text-transform: uppercase;
  white-space: nowrap;
  animation: arrive 1.8s var(--ease) both;
}

.wordmark-a { color: var(--text-hi); font-weight: 500; }
.wordmark-b { color: var(--text-mid); font-weight: 300; }

.rule {
  display: block;
  width: 3.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.6;
  animation: draw 1.4s 0.9s var(--ease) both;
}

/* --- Footer: affiliations ------------------------------------------------ */

.foot {
  display: flex;
  justify-content: center;
  padding: 0 16px max(2rem, env(safe-area-inset-bottom));
  animation: fade 1.2s 1.5s var(--ease) both;
}

.aff {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.6875rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-lo);
}

.aff-sep {
  width: 1.25rem;
  height: 1px;
  background: var(--line);
}

.aff a {
  padding: 0.5rem 0;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.4s ease;
}

.aff a:hover { color: var(--gold); }

.aff a:focus-visible,
.home:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 6px;
  color: var(--text-hi);
}

/* --- 404 ------------------------------------------------------------------ */

.lost {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  padding-left: 0.32em;
  text-transform: uppercase;
  color: var(--text-lo);
}

.home {
  font-size: 0.875rem;
  letter-spacing: var(--track);
  padding-left: var(--track);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

/* --- Motion --------------------------------------------------------------- */

@keyframes arrive {
  from {
    opacity: 0;
    letter-spacing: 0.6em;
    padding-left: 0.6em;
    filter: blur(4px);
  }
}

@keyframes draw {
  from { opacity: 0; transform: scaleX(0); }
}

@keyframes fade {
  from { opacity: 0; }
}

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