/* base.css — global reset + typography baseline.
   Component-specific CSS still lives inline in each *.jsx file
   (it gets co-located there during the design-canvas phase). */

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background .2s ease, color .2s ease;
}

body { min-height: 100vh; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.05; }
h2 { font-size: clamp(28px, 4vw, 48px); line-height: 1.15; }
h3 { font-size: 22px; line-height: 1.25; }

p { margin: 0; }

a { color: inherit; text-decoration: none; }

button { font: inherit; }

/* Shared helpers used across components */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}
.serif { font-family: var(--serif); }
.mono  { font-family: var(--mono); }
.center { text-align: center; }
.eyebrow {
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hair {
  height: 1px;
  background: var(--hair);
  width: 100%;
}
.text-mute { color: var(--ink-3); }

/* Button presets */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 10px;
  font: 500 14px/1 var(--sans);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .15s ease, border-color .15s ease;
}
.btn-pill { border-radius: 999px; min-height: 36px; padding: 0 16px; font-size: 13px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary { background: var(--card); color: var(--ink); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; border: 0; color: var(--ink); padding: 8px 0; cursor: pointer; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}

.tlink {
  font: 500 14px/1 var(--sans);
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
  padding-bottom: 2px;
}

/* Print / no-print toggle used by the footer + TopBar */
@media print { .no-print { display: none !important; } }

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Focus visibility — never sacrifice for aesthetics. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Page-wide no-select ──────────────────────────────────────────────────
   The whole site is mostly imagery + brand copy; we want to discourage
   incidental drag/save/copy. Form fields stay selectable so people can
   actually type into the waitlist. */
html, body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
input, textarea, [contenteditable="true"], [contenteditable=""] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* ── Mascot — base, float, and aura ─────────────────────────────────────── */
.monk-img {
  /* Mascot is rendered as a <div role="img"> with background-image so the
     browser's "Save image" context menu doesn't show. See MonkAvatar in
     shared.jsx. */
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

/* Slow, small feather-like floating. */
.monk-float {
  animation: monk-float 7.5s ease-in-out infinite;
  will-change: transform;
}
@keyframes monk-float {
  0%, 100% { transform: translateY(0)    rotate(-0.4deg); }
  50%      { transform: translateY(-6px) rotate( 0.4deg); }
}
@media (prefers-reduced-motion: reduce) {
  .monk-float { animation: none; }
}

/* ── Aura — soft sunbeam rays behind the mascot ─────────────────────────── */
.monk-aura-wrap { display: inline-block; position: relative; }
.monk-aura {
  position: absolute;
  inset: -22% -18% -10% -18%;
  pointer-events: none;
  z-index: 0;
  /* Three stacked layers:
     1. Soft inner glow.
     2. Sharp narrow rays (repeating-conic-gradient).
     3. Outer falloff via radial mask so rays disappear toward the edge.        */
  background:
    radial-gradient(closest-side,
      rgba(232,116,26,0.28) 0%,
      rgba(232,116,26,0.08) 35%,
      transparent 65%),
    repeating-conic-gradient(
      from 0deg,
      rgba(232,116,26,0.22)  0deg  2deg,
      transparent           2deg  18deg);
  -webkit-mask-image: radial-gradient(closest-side,
    rgba(0,0,0,1) 25%,
    rgba(0,0,0,0.85) 45%,
    rgba(0,0,0,0)   72%);
          mask-image: radial-gradient(closest-side,
    rgba(0,0,0,1) 25%,
    rgba(0,0,0,0.85) 45%,
    rgba(0,0,0,0)   72%);
  filter: blur(2px);
  animation:
    monk-aura-spin 42s linear infinite,
    monk-aura-pulse 5.6s ease-in-out infinite;
}
.monk-aura-wrap .monk-img { position: relative; z-index: 1; }
@keyframes monk-aura-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes monk-aura-pulse {
  0%, 100% { opacity: .55; }
  50%      { opacity: 1;   }
}
@media (prefers-reduced-motion: reduce) {
  .monk-aura { animation: none; opacity: .7; }
}
