/* ==========================================================================
   SOLARIS — design tokens and base styles
   Brand palette: Forest #123C2C · Botanical #287C50 · Soft lime #B8DB83
                  Warm cream #F1F0DF · Muted gold #D9A94E
   ========================================================================== */

:root {
  /* Brand palette */
  --forest: #123C2C;
  --botanical: #287C50;
  --lime: #B8DB83;
  --cream: #F1F0DF;
  --gold: #D9A94E;

  /* Derived tones */
  --ink: #123C2C;
  --ink-soft: #3D5E50;
  --surface: rgba(241, 240, 223, 0.66);
  --surface-strong: rgba(252, 251, 242, 0.86);
  --line: rgba(18, 60, 44, 0.12);
  --glass-edge: rgba(255, 255, 255, 0.6);

  /* Elevation */
  --shadow-soft: 0 18px 40px -22px rgba(18, 60, 44, 0.38);
  --shadow-lift: 0 30px 60px -28px rgba(18, 60, 44, 0.5);

  /* Shape */
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);

  /* Type */
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --gutter: clamp(16px, 4vw, 48px);
  --tap: 44px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

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

html,
body {
  height: 100%;
  margin: 0;
  /* The application shell never scrolls; content panels scroll internally. */
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(184, 219, 131, 0.45), transparent 60%),
    radial-gradient(900px 600px at 110% 110%, rgba(217, 169, 78, 0.22), transparent 60%),
    linear-gradient(160deg, #F1F0DF 0%, #E7EEDA 55%, #F4EBD3 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--forest);
  margin: 0 0 0.5em;
  overflow-wrap: anywhere;
}

h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 2.6vw, 1.45rem); }

p {
  margin: 0 0 1em;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

a {
  color: var(--botanical);
  text-underline-offset: 3px;
}

button {
  font: inherit;
}

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

::selection {
  background: var(--lime);
  color: var(--forest);
}

/* Reduced motion: keep layout and final states, remove movement. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
