/* Good Tech Studio — design tokens + reset */

/* ---------- Reset (modern, light-touch) ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

/* ---------- Shared tokens (used by both themes) ---------- */
:root {
  /* Type stacks */
  --font-sans:     "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif:    "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --font-serif-d:  "Fraunces", "Times New Roman", serif; /* display serif */
  --font-mono:     "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-mono-alt: "IBM Plex Mono", "JetBrains Mono", ui-monospace, monospace;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:      180ms;
  --dur-med:       320ms;
  --dur-slow:      620ms;

  /* Layout */
  --max-w:         1440px;
  --gutter:        clamp(20px, 4vw, 56px);
  --rad-sm:        8px;
  --rad-md:        16px;
  --rad-lg:        28px;
  --rad-xl:        40px;

  /* Pastel palette mapped to project color_page values */
  --pastel-green:  #D2E8C8;
  --pastel-purple: #E5DBEB;
  --pastel-blue:   #DCE4EA;
  --pastel-lilac:  #D4C8DA;
  --green-vivid:   #62B85C;

  /* Brand accent — the orange O used in the header wordmark animation and the footer.
     Matches editorial.css's --orange so the whole site uses one orange. */
  --accent-orange: #FF3D00;
}

/* ---------- Text selection — orange-tinted instead of browser default ---------- */
::selection      { background: var(--accent-orange); color: var(--paper); }
::-moz-selection { background: var(--accent-orange); color: var(--paper); }

/* ---------- Utility ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Reduced motion */
@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;
  }
}

/* Headless / screenshot capture — kill transitions so fullPage stitching isn't mid-flight */
.is-bot *, .is-bot *::before, .is-bot *::after {
  transition-duration: 0.001ms !important;
  animation-duration: 0.001ms !important;
}

/* Selection */
::selection { background: currentColor; color: var(--paper, #fff); }
