/* TMH Abogados - Propuesta 3 "Amplia". Tokens: single source of literal values. */
@layer tmh.tokens, tmh.base, tmh.layout, tmh.components, tmh.utilities;

/* Self-hosted variable font (OFL 1.1), wght axis, latin subset */
@font-face { font-family: "Google Sans Flex"; font-style: normal; font-weight: 100 1000; font-display: swap; src: url("/assets/fonts/google-sans-flex-latin-wght-normal.woff2") format("woff2"); }

@layer tmh.tokens {
  :root {
    /* Palette: identity manual section 4 (limit) */
    --tmh-navy-700: #14192E;
    --tmh-navy-500: #1E2540;
    --tmh-gold-700: #8C6F15;
    --tmh-gold-500: #B8901E;
    --tmh-line-300: #CBCDD6;
    --tmh-paper-50: #FDFCFA;
    --tmh-ink-muted: #5B6078;
    --tmh-field-border: #7A7F94;
    --tmh-navy-400: #3A4160;
    --tmh-error: #9B2C2C;

    --tmh-bg: var(--tmh-paper-50);
    --tmh-fg: var(--tmh-navy-700);
    --tmh-fg-muted: var(--tmh-ink-muted);
    --tmh-accent: var(--tmh-gold-700);
    --tmh-hair: var(--tmh-line-300);
    --tmh-focus: var(--tmh-navy-700);

    --tmh-font: "Google Sans Flex", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
    /* Modest scale: titles stay calm on wide screens */
    --tmh-fs-xs: 0.8125rem;
    --tmh-fs-sm: 0.9375rem;
    --tmh-fs-base: 1.0625rem;
    --tmh-fs-lead: 1.1875rem;
    --tmh-fs-ui-title: 1.125rem;
    --tmh-fs-h4: clamp(1.125rem, 1rem + 0.4vw, 1.375rem);
    --tmh-fs-h3: clamp(1.25rem, 1rem + 0.8vw, 1.75rem);
    --tmh-fs-h2: clamp(1.75rem, 1.1rem + 1.6vw, 2.75rem);
    --tmh-fs-h1: clamp(2.25rem, 1.1rem + 3vw, 4.125rem);
    --tmh-lh-text: 1.65;
    /* Letter-spacing roles */
    --tmh-tracking-display: -0.022em;
    --tmh-tracking-title: -0.012em;
    --tmh-tracking-text: 0.004em;
    --tmh-tracking-ui: 0.025em;
    --tmh-tracking-label: 0.04em;
    --tmh-lh-tight: 1.15;
    --tmh-measure: 62ch;

    --tmh-space-1: 0.25rem;
    --tmh-space-2: 0.5rem;
    --tmh-space-3: 0.75rem;
    --tmh-space-4: 1rem;
    --tmh-space-5: 1.5rem;
    --tmh-space-6: 2rem;
    --tmh-space-7: 3rem;
    --tmh-space-8: 4rem;
    --tmh-space-9: 6rem;
    --tmh-section-y: clamp(3rem, 2rem + 4vw, 6rem);
    /* Widescreen: full width, generous side margins instead of a max-width box */
    --tmh-gutter: clamp(1.25rem, 2.6vw, 10rem);

    --tmh-target: 2.75rem;
    --tmh-logo-w: 7.5rem;
    --tmh-photo-w: clamp(12rem, 18vw, 30rem);
    --tmh-portrait-w: 5.5rem;
    --tmh-hairline: 1px;
    --tmh-focus-w: 3px;
    --tmh-marquee-gap: 3rem;

    --tmh-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --tmh-dur-fast: 0.25s;
    --tmh-dur-base: 0.6s;
    --tmh-dur-slow: 1.1s;
    --tmh-z-header: 50;
    --tmh-z-skip: 100;
  }
}
