/* ═══════════════════════════════════════════════════════════════════════════
   base.css — Reset, tokens, typography, global styles
   Zach Miller Studio — v2.0
═══════════════════════════════════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}
ul, ol { list-style: none; }

/* ── Design tokens ── */
:root {
  /* Palette — Editorial theme */
  --bg:          #fafafa;
  --bg-warm:     #f2f2f2;
  --ink:         #111111;
  --ink-mid:     #3d3d3d;
  --ink-dim:     #777777;
  --rule:        #cccccc;
  --rule-light:  #e8e8e8;
  --accent:      #1a3a5c;
  --accent-warm: #1a3a5c;
  --white:       #ffffff;

  /* Typography */
  --font-sans:  'Karla', -apple-system, Helvetica, Arial, sans-serif;
  --font-mono:  'Inconsolata', 'SF Mono', 'Courier New', monospace;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;

  /* Timing */
  --ease:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --t-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --t-base: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --t-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Layout */
  --sidebar-w: 260px;
  --content-pad-top: 3.5rem;
  --content-pad-right: 5rem;
  --content-pad-bottom: 6rem;
  --content-pad-left: 3rem;
}

/* ── Base body ── */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Selection ── */
::selection {
  background: var(--accent);
  color: var(--white);
}

/* ── Link hover — accent ── */
a:hover { color: var(--accent); }

/* ── Typographic scale ── */
.t-display {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.t-heading {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.t-body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
}
.t-small {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.85rem;
  line-height: 1.65;
}
.t-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.t-mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
