/* nexusdreamers.com: hand-written, no build step.
   Colours, type and motion come from the Nexus Dreamers brand kit v1 (Nov 2026). */

@font-face {
  font-family: "Fredoka";
  src: url("/fonts/fredoka-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Silkscreen";
  src: url("/fonts/silkscreen-bold-latin.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --yellow: #FFE14D;
  --black: #151515;
  --indigo: #1C1745;
  --paper: #FBF6E9;
  --muted: #4A4438;
  --blush: #FF8A65;

  --font: "Fredoka", ui-rounded, system-ui, sans-serif;
  --pixel: "Silkscreen", ui-monospace, monospace;

  --line: 3px solid var(--black);
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 24px;
  --ui: 160ms ease-out;
  --page: 1080px;
  --gutter: clamp(16px, 4vw, 32px);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font: 400 18px/1.55 var(--font);
  color: var(--black);
  background: var(--yellow);
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }

.label {
  font: 700 13px/1 var(--pixel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skip {
  position: absolute; left: 12px; top: -60px;
  padding: 10px 14px; background: var(--black); color: var(--paper);
  border-radius: var(--r-s); z-index: 10;
}
.skip:focus { top: 12px; }

/* ---- Home: hero ---------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding-top: clamp(40px, 9vh, 104px);
  padding-bottom: clamp(32px, 6vh, 64px);
}

.cart { width: 100%; height: auto; display: block; overflow: visible; }

.wordmark {
  margin: 0 0 0.3em;
  font-weight: 700;
  font-size: clamp(52px, 8.4vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}

.intro { margin: 0; max-width: 34ch; text-wrap: pretty; font-size: clamp(20px, 2.1vw, 24px); line-height: 1.4; }


/* ---- Home: announcement ------------------------------------------- */

.soon-wrap { filter: drop-shadow(6px 6px 0 var(--black)); }

.soon {
  position: relative;
  display: grid;
  gap: 10px;
  padding: clamp(24px, 4vw, 40px);
  padding-right: clamp(56px, 8vw, 96px);
  background: var(--indigo);
  color: var(--yellow);
  border-radius: var(--r-m);
  /* the cartridge's cut corner */
  clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 0 100%);
}

.soon .label { color: var(--paper); opacity: 0.8; }

.soon h2 {
  margin: 0;
  font-weight: 600;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.soon p { margin: 0; font-size: 18px; color: var(--paper); }

.dots span {
  display: inline-block;
  width: 6px; height: 6px;
  margin-left: 4px;
  background: var(--yellow);
  animation: pulse 1.4s steps(2, jump-none) infinite;
}
.dots span:nth-child(2) { animation-delay: 0.2s; }
.dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes pulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

/* ---- Home: contact ------------------------------------------------- */

.contact { padding-top: clamp(48px, 9vh, 96px); padding-bottom: clamp(48px, 9vh, 96px); }

.contact h2 { margin: 0 0 6px; font-weight: 600; font-size: clamp(28px, 3.4vw, 36px); line-height: 1.1; }
.contact p { margin: 0 0 24px; color: var(--muted); }

.mail {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  max-width: 100%;
  padding: 0 24px;
  border: var(--line);
  border-radius: var(--r-m);
  background: var(--paper);
  font-weight: 600;
  font-size: clamp(17px, 2.4vw, 22px);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: transform var(--ui), box-shadow var(--ui);
}
.mail:hover { transform: translateY(-2px); box-shadow: 0 4px 0 var(--black); }
.mail:active { transform: none; box-shadow: none; }

/* Floating z's: brand kit motion spec (2.8 s loop, second z 1.4 s later). */
@keyframes nd-float {
  0%   { transform: translate(0, 6px); opacity: 0; }
  25%  { opacity: 1; }
  100% { transform: translate(8px, -14px); opacity: 0; }
}
.nd-z { transform-box: fill-box; transform-origin: center; animation: nd-float 2.8s ease-out infinite; }
.nd-z-late { animation-delay: 1.4s; }

/* The cart stirs (one eye opens) when you go for the email. */
.cart .open { opacity: 0; }
body:has(.mail:is(:hover, :focus-visible)) .cart .shut-r { opacity: 0; }
body:has(.mail:is(:hover, :focus-visible)) .cart .open { opacity: 1; }

/* ---- Footer -------------------------------------------------------- */

.foot { background: var(--black); color: var(--paper); font-size: 15px; line-height: 1.5; }

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.foot-id { display: flex; align-items: center; gap: 14px; }
.foot-id img { width: 36px; height: 36px; flex: none; }
.foot-id p { margin: 0; }
.foot-id small { display: block; font-size: 13px; opacity: 0.7; }

.foot nav ul { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; }
.foot nav a { text-decoration-color: rgb(251 246 233 / 0.35); }
.foot nav a:hover { text-decoration-color: var(--yellow); color: var(--yellow); }
.foot a:focus-visible { outline-color: var(--yellow); }

/* ---- Text pages (privacy, terms, rules, support, 404) -------------- */

.page { background: var(--paper); }

.bar { background: var(--yellow); border-bottom: var(--line); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }

.lockup { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.lockup img { width: 40px; height: 40px; }
.lockup span { font-weight: 700; font-size: 22px; line-height: 0.9; letter-spacing: -0.01em; }

.doc { max-width: 680px; padding-top: clamp(40px, 7vh, 72px); padding-bottom: clamp(56px, 10vh, 104px); }
.doc .label { color: var(--muted); }
.doc h1 { margin: 12px 0 8px; font-weight: 700; font-size: clamp(38px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.015em; }
.doc h2 { margin: 40px 0 8px; font-weight: 600; font-size: 24px; line-height: 1.2; }
.doc p, .doc li { color: #2a2620; }
.doc .lede { font-size: 20px; color: var(--black); }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--muted); }
.doc .updated { color: var(--muted); font-size: 15px; }

.lost { text-align: left; }
.lost img { width: 160px; height: 160px; margin-bottom: 8px; }
.button {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; margin-top: 16px;
  border: var(--line); border-radius: var(--r-m); background: var(--yellow);
  font-weight: 600; text-decoration: none;
  transition: transform var(--ui), box-shadow var(--ui);
}
.button:hover { transform: translateY(-2px); box-shadow: 0 4px 0 var(--black); }
.button:active { transform: none; box-shadow: none; }

/* ---- Phones -------------------------------------------------------- */

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; gap: 8px; padding-top: 24px; }
  .cart { width: min(56vw, 220px); margin: 0 0 -14px -14px; }
  .soon { padding-right: 56px; }
  .foot .wrap { flex-direction: column; align-items: flex-start; }
  .lockup span { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .dots span, .nd-z { animation: none; opacity: 1; }
  .mail, .button { transition: none; }
}
