/* ============================================
   BASE STYLES & TYPOGRAPHY
   ============================================ */

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Turbo stream sources should never affect layout */
turbo-cable-stream-source {
  display: none;
}

/* Base Elements */

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    text-rendering: optimizeLegibility;
    scrollbar-gutter: stable;
}

body {
    min-block-size: 100vh;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: var(--text-base);
    line-height: 1.5;
    color: var(--ink);
    background: var(--page);
    letter-spacing: 0;
    font-weight: 400;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Protected typography - Calendly-style hierarchy */
:where(h1, h2, h3, h4, h5, h6) {
    color: var(--ink);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.3;
    text-wrap: balance;
    hyphens: auto;
    overflow-wrap: break-word;
}
:where(h1) {
    font-size: var(--text-3xl);
    margin-block: 0.5em;
    font-weight: 700;
    line-height: 1.2;
}
:where(h2) {
    font-size: var(--text-xl);
    margin-block: 0.5em;
    font-weight: 600;
    line-height: 1.25;
}
:where(h3) {
    font-size: var(--text-xl);
    margin-block: 0.65em;
    line-height: 1.4;
    font-weight: 500;
}
:where(p) {
    margin-block: 0.65lh;
    line-height: 1.6;
    letter-spacing: -0.005ch;
    text-wrap: pretty;
    hyphens: auto;
    overflow-wrap: break-word;
}
/* Links inherit color by default (Calendly style) - only explicit links are blue */
:where(a) {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition), opacity var(--transition);
}
/* Blue links - use .link class or wrap in .content */
a.link, .content a { color: var(--primary); }
@media (any-hover: hover) {
    a.link:hover, .content a:hover { opacity: 0.8; }
}
:where(pre) { max-inline-size: 100%; overflow-x: auto; }

:where(a, button, input, select, textarea, .btn, .card) { transition: background-color var(--transition), border-color var(--transition), color var(--transition), opacity var(--transition), transform var(--transition), box-shadow var(--transition-fast); touch-action: manipulation; }
:where(input, textarea) { caret-color: var(--primary); }
