/* 01_tokens.css — Samurai Marketing · "Digital Ronin" design tokens (red edition).
 * Derived from the Digital Ronin mockup (layout, type scale, spacing) with the cyan/magenta
 * accents replaced by colours sampled from the hero photo (hero-notext.jpg, 1280x720):
 *   empty left background #0B0B09–#120F0D · sun highlights #C6151D–#CC191D · sun average #B51319
 * Contrast (WCAG 2.x) measured against --color-bg #0B0A09:
 *   cream 16.3:1 · muted 7.6:1 (7.1:1 on panel) · red-hi 5.7:1 (5.35:1 on panel)
 *   red 3.4:1 → large text / UI only!   on-red text: 5.5:1 on red, 6.4:1 on hover red */
:root {
  /* Colour */
  --color-bg:        #0B0A09;  /* ink black – matches the photo's empty left side */
  --color-panel:     #151311;  /* cards */
  --color-panel-2:   #1D1A18;  /* raised cards, header on scroll */
  --color-line:      #2E2927;  /* hairlines, borders */
  --color-line-strong:#4A4240;
  --color-text:      #F2E8D5;  /* warm cream – body + headings */
  --color-muted:     #A89F92;  /* secondary text (AA on bg + panel) */
  --color-red:       #C8161E;  /* sun red (sampled) – button fills, rules, large display only */
  --color-red-hover: #B51319;  /* darker on hover keeps AA with cream text (6.4:1) */
  --color-red-hi:    #FF4040;  /* bright red for SMALL accent text on dark (5.7:1) */
  --color-red-glow:  rgba(200, 22, 30, 0.24);
  --color-gold:      #D9A25B;  /* optional tiny highlight (badges), use sparingly */
  --color-on-red:    #FFF6EA;  /* text on red buttons */
  --color-focus:     #FFD089;  /* focus ring – distinct from red so it is always visible */
  --color-success:   #6FD08C;
  --color-error:     #FF6B6B;

  /* Typography */
  --font-display: "Syne", "Arial Black", system-ui, sans-serif;
  --font-body:    "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --fs-hero:  clamp(2.75rem, 1.2rem + 6.4vw, 6rem);    /* 44 → 96px, mockup h1 */
  --fs-h1:    clamp(2.25rem, 1.4rem + 3.6vw, 4rem);    /* inner page titles */
  --fs-h2:    clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);  /* section titles (mockup 36px) */
  --fs-h3:    clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);  /* card titles (mockup 24px) */
  --fs-lead:  clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); /* hero sub (mockup 18px) */
  --fs-body:  1.0625rem;                               /* 17px – dark bg needs a bit more */
  --fs-small: 0.875rem;
  --fs-label: 0.75rem;                                 /* mono micro-copy (mockup 11–12px) */

  --lh-tight: 0.92;   /* hero display (mockup 0.88, a bit looser for ő/ű accents) */
  --lh-heading: 1.1;
  --lh-body: 1.6;
  --tracking-display: -0.045em;
  --tracking-heading: -0.03em;
  --tracking-label: 0.14em;

  /* Spacing (4px base) */
  --space-1: 0.25rem; --space-2: 0.5rem;  --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.5rem;  --space-6: 2rem;    --space-7: 3rem;    --space-8: 4rem;
  --space-9: 5.5rem;  --space-10: 7rem;
  --section-y: clamp(4rem, 3rem + 4vw, 5.5rem);        /* mockup section padding 88px */

  /* Layout */
  --container: 1180px;                                 /* mockup .wrap */
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);
  --header-h: 68px;
  --radius: 0;                                         /* Digital Ronin = hard edges */
  --radius-pill: 999px;
  --border: 1px solid var(--color-line);

  /* Effects */
  --shadow-glow: 0 0 0 1px var(--color-red) inset, 0 0 32px var(--color-red-glow);
  --grid-dots: radial-gradient(circle at 1px 1px, rgba(242, 232, 213, 0.05) 1px, transparent 0);
  --grid-size: 28px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 150ms;
  --dur-reveal: 600ms;
  /* Hero overlays (photo is dark on the left, samurai + sun on the right) */
  --hero-overlay-desktop: linear-gradient(90deg, rgba(11,10,9,0.92) 0%, rgba(11,10,9,0.70) 32%, rgba(11,10,9,0.15) 58%, rgba(11,10,9,0) 70%),
                          linear-gradient(0deg, var(--color-bg) 0%, rgba(11,10,9,0) 22%);
  --hero-overlay-mobile:  linear-gradient(180deg, rgba(11,10,9,0) 0%, rgba(11,10,9,0.35) 38%, rgba(11,10,9,0.9) 60%, var(--color-bg) 72%);

  --z-header: 50; --z-nav: 60; --z-skip: 100;

  /* Foundation sizes and focus treatment. */
  --lh-display: 1;
  --text-measure: 65ch;
  --focus-width: 2px;
  --focus-offset: 3px;
  --skip-hidden-offset: -200%;
  --anchor-offset: calc(var(--header-h) + var(--space-4));
  --underline-offset: 0.2em;
  --selection-bg: var(--color-red);

  /* Navigation, buttons and footer. */
  --color-header: rgba(11, 10, 9, 0.86);
  --color-ghost: rgba(11, 10, 9, 0.35);
  --header-blur: 16px;
  --tap-target: 44px;
  --icon-size: 20px;
  --fs-wordmark: 1.375rem;
  --fs-wordmark-mobile: 0.875rem;
  --fs-wordmark-tablet: 1.125rem;
  --fs-wordmark-descriptor: 0.625rem;
  --fs-header-cta: 0.75rem;
  --fs-button: 0.875rem;
  --fs-nav-mobile: clamp(1.25rem, 1rem + 1.6vw, 2rem);
  --tracking-button: 0.01em;
  --tracking-ghost: 0.1em;
  --button-padding-y: 0.8rem;
  --button-padding-x: 1.15rem;
  --button-small-padding-y: 0.55rem;
  --button-small-padding-x: 0.65rem;
  --button-glow-size: 24px;
  --nav-bar-width: 20px;
  --footer-columns: 1.15fr 0.7fr 0.95fr 1.2fr;

  /* Homepage sections and media. */
  --fs-hero-mobile: clamp(2rem, 11.3vw, 3rem);
  --hero-max-height: 860px;
  --hero-inner-width: 48rem;
  --hero-lead-width: 34rem;
  --hero-image-position: 68% 30%;
  --hero-mobile-height: 118vw;
  --hero-mobile-overlap: 78vw;
  --hero-lead-opacity: 0.86;
  --hero-overlay-tablet: linear-gradient(90deg, rgba(11, 10, 9, 0.94) 0%, rgba(11, 10, 9, 0.88) 48%, rgba(11, 10, 9, 0.7) 78%, rgba(11, 10, 9, 0.35) 100%),
                         linear-gradient(0deg, var(--color-bg) 0%, rgba(11, 10, 9, 0) 22%);
  --tracking-note: 0.08em;
  --color-bento-start: #2A0E13;
  --color-cta-glow: rgba(200, 22, 30, 0.12);
  --glow-corner: radial-gradient(ellipse at 100% 0%, var(--color-red-glow), transparent 65%);
  --glow-cta: radial-gradient(ellipse at 80% 50%, var(--color-cta-glow), transparent 65%);
  --card-lift: -2px;
  --browser-dot-size: 6px;
  --work-phone-width: 21%;
  --work-phone-offset: 4%;
  --work-phone-border: 3px solid var(--color-panel-2);
  --work-showcase-columns: 1.25fr 1fr;
  --work-compact-columns: 0.85fr 1.15fr;
  --reveal-distance: 16px;
  --faq-marker-size: 1.5rem;
  --pill-padding-y: 0.3rem;
  --pill-padding-x: 0.65rem;

  /* Services and portfolio pages. */
  --page-title-width: 22ch;
  --service-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  --service-columns-reverse: minmax(0, 1.15fr) minmax(0, 0.85fr);
  --color-field-border: #8A8074;
  --contact-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  --fs-contact-title: clamp(2rem, 1.25rem + 2vw, 3rem);
  --auth-width: 36rem;
  --checkbox-size: 1.25rem;
  --honeypot-offset: -10000px;
  --admin-table-width: 64rem;
  --prose-width: 72ch;
  --fs-legal-title: clamp(1.75rem, 1.25rem + 2vw, 3rem);
  --error-min-height: 70vh;
  --print-bg: #FFFFFF;
  --print-text: #000000;
  --fs-print: 11pt;

  color-scheme: dark;
}

@supports (height: 1svh) {
  :root {
    --hero-mobile-height: min(118vw, 78svh);
    --hero-mobile-overlap: min(78vw, 52svh);
  }
}
