/* ============================================================
   BEYOND FRAME PRODUCTIONS — portable stylesheet
   (design-system tokens flattened into one file for standalone use)
   ============================================================ */

/* ===== tokens/fonts.css ===== */
/* ============================================================
   Beyond Frame Productions — WEBFONTS
   Bebas Neue · DM Mono · Montserrat (logo)
   Served via Google Fonts CDN. Loaded with a <link> in base.html
   (not an @import here) so the browser starts fetching fonts in
   parallel with this stylesheet instead of after it.
   ============================================================ */

/* Montserrat carries the LOGO WORDMARK ("BEYONDFRAME / PRODUCTIONS").
   It is the closest web match to the client's geometric-grotesque wordmark;
   flagged as an approximation in readme.md. Not part of the UI type system. */

/* ===== tokens/colors.css ===== */
/* ============================================================
   Beyond Frame Productions — COLOR TOKENS
   Sourced from beyondframe.gr. Dark-first, warm near-black
   canvas + warm cream ink, signature violet→magenta gradient.
   ============================================================ */
:root {
  /* ---- BRAND GRADIENT (canonical 3-stop) ---- */
  --bf-grad-start: #3B2F88;   /* indigo violet */
  --bf-grad-mid:   #7B3BAB;   /* royal purple  */
  --bf-grad-end:   #C03E9E;   /* magenta pink  */

  /* ---- Solid pulls from the gradient ---- */
  --violet:  #3B2F88;
  --purple:  #7B3BAB;
  --magenta: #C03E9E;

  /* ---- Magenta = primary accent (hovers, focus, hairlines) ---- */
  --accent:        #C03E9E;
  --accent-strong: #D451B0;
  --accent-soft:   rgba(192, 62, 158, 0.50);
  --accent-faint:  rgba(192, 62, 158, 0.08);
  --violet-faint:  rgba(59, 47, 136, 0.12);

  /* ---- NEUTRALS — warm near-black scale ---- */
  --black:   #080808;   /* canvas              */
  --night-1: #111111;   /* raised surface      */
  --night-2: #1A1A1A;   /* card surface        */
  --night-3: #1E1E1E;   /* card hover / inset  */
  --night-4: #2A2A2A;   /* divider on dark     */
  --cream:   #F0EDE8;   /* primary text (warm white) */
  --muted:   #888888;   /* secondary text      */
  --faint:   rgba(255, 255, 255, 0.04);  /* giant decorative numerals */

  /* ---- Hairline borders ---- */
  --border:        rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --border-accent: rgba(192, 62, 158, 0.40);

  /* ============================================================
     SEMANTIC ALIASES — reference these in product code
     ============================================================ */
  --canvas:     var(--black);
  --surface-1:  var(--night-1);
  --surface-2:  var(--night-2);
  --surface-3:  var(--night-3);

  --text-primary:   var(--cream);
  --text-secondary: var(--muted);
  --text-faint:     var(--faint);
  --text-on-accent: #FFFFFF;
  --text-link:      var(--accent);

  --brand:      var(--magenta);
  --focus-ring: var(--accent-soft);

  /* ---- Status — restrained, tuned to the filmic palette ---- */
  --success: #5BBF97;
  --warning: #D9A441;
  --danger:  #D9485F;
  --info:    #6C7BD9;
}

/* ===== tokens/typography.css ===== */
/* ============================================================
   Beyond Frame Productions — TYPOGRAPHY TOKENS
   Tri-font system:
     Bebas Neue          — monumental condensed display
     Cormorant Garamond  — elegant light serif (italic + gradient)
     DM Mono             — technical body, UI & wide-tracked labels
   ============================================================ */
:root {
  /* ---- Families ---- */
  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-serif:   'Cormorant Garamond', 'Times New Roman', serif;
  --font-mono:    'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-body:    var(--font-mono);

  /* ---- Display scale (Bebas Neue) ---- */
  --display-sm: clamp(40px, 6vw, 64px);   /* @kind font */
  --display-md: clamp(56px, 9vw, 120px);  /* @kind font */
  --display-lg: clamp(80px, 12vw, 180px); /* @kind font */

  /* ---- Serif heading scale (Cormorant Garamond, 300) ---- */
  --serif-sm: 28px;                  /* @kind font */
  --serif-md: clamp(32px, 4vw, 48px); /* @kind font */
  --serif-lg: clamp(42px, 5vw, 72px); /* @kind font */
  --serif-xl: clamp(48px, 7vw, 100px);/* @kind font */

  /* ---- Mono text scale (small + wide-tracked is intentional) ---- */
  --text-2xs:  8px;   /* @kind font */
  --text-xs:   9px;   /* @kind font */
  --text-sm:  10px;   /* @kind font */
  --text-md:  11px;   /* @kind font */
  --text-base:12px;   /* @kind font */
  --text-lg:  14px;   /* @kind font */

  /* ---- Weights ---- */
  --weight-light:    300; /* @kind font */
  --weight-regular:  400; /* @kind font */
  --weight-medium:   500; /* @kind font */
  --weight-semibold: 600; /* @kind font */

  /* ---- Line heights ---- */
  --leading-display: 0.88; /* @kind font */
  --leading-tight:   1.05; /* @kind font */
  --leading-snug:    1.3;  /* @kind font */
  --leading-normal:  1.8;  /* @kind font */
  --leading-loose:   2;    /* @kind font */

  /* ---- Letter-spacing — wide tracking is a signature ---- */
  --tracking-tight:   -0.02em; /* @kind font */
  --tracking-normal:   0;      /* @kind font */
  --tracking-body:     0.05em; /* @kind font */
  --tracking-label:    0.20em; /* @kind font */
  --tracking-eyebrow:  0.30em; /* @kind font */
  --tracking-wide:     0.35em; /* @kind font */
}

/* ===== tokens/spacing.css ===== */
/* ============================================================
   Beyond Frame Productions — SPACING, RADII & LAYOUT TOKENS
   4px base rhythm. Near-sharp corners (2px default) and a 2px
   grid "seam" between cards are signature to the brand.
   ============================================================ */
:root {
  /* ---- Spacing scale (4px base) ---- */
  --space-0:  0;
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-7:  28px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-13: 52px;
  --space-14: 60px;    /* page gutter            */
  --space-16: 80px;
  --space-20: 120px;   /* vertical section pad    */
  --space-24: 160px;

  /* ---- Grid seam (thin gap between cards, contact-sheet feel) ---- */
  --seam: 2px;

  /* ---- Radii — the brand is near-sharp ---- */
  --radius-none: 0;
  --radius-xs:   2px;   /* DEFAULT for cards / boxes */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-pill: 999px;
  --radius-circle: 50%;

  /* ---- Borders ---- */
  --border-w:       1px;
  --border-w-thick: 2px;

  /* ---- Layout ---- */
  --gutter:        60px;
  --gutter-mobile: 24px;
  --section-y:     120px;
  --maxw:          1400px;
  --container:     1200px;
}

/* ===== tokens/effects.css ===== */
/* ============================================================
   Beyond Frame Productions — EFFECTS TOKENS
   Gradients, ambient glows, scrims, film grain, motion.
   The system favours borders + surface elevation + glow over
   heavy drop shadows.
   ============================================================ */
:root {
  /* ---- Brand gradients ---- */
  --gradient-brand:   linear-gradient(135deg, var(--bf-grad-start), var(--bf-grad-mid), var(--bf-grad-end)); /* @kind other */
  --gradient-brand-h: linear-gradient(90deg, var(--bf-grad-start), var(--bf-grad-end)); /* @kind other */
  --gradient-text:    linear-gradient(135deg, var(--bf-grad-start), var(--bf-grad-mid), var(--bf-grad-end)); /* @kind other */

  /* Hairline gradient lines */
  --gradient-line:   linear-gradient(90deg, var(--bf-grad-start), var(--bf-grad-end)); /* @kind other */
  --gradient-line-v: linear-gradient(180deg, transparent, var(--accent-soft) 40%, rgba(59,47,136,0.30) 80%, transparent); /* @kind other */

  /* ---- Ambient glows on dark ---- */
  --glow-field: radial-gradient(ellipse 60% 60% at 75% 40%, rgba(123,59,171,0.18), transparent 70%),
                radial-gradient(ellipse 40% 40% at 20% 70%, rgba(59,47,136,0.12), transparent 60%); /* @kind other */
  --glow-accent: 0 0 40px rgba(192,62,158,0.25); /* @kind shadow */
  --glow-soft:   0 20px 60px rgba(123,59,171,0.20); /* @kind shadow */

  /* ---- Drop shadows (used sparingly) ---- */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.50);  /* @kind shadow */
  --shadow-md: 0 10px 30px rgba(0,0,0,0.50); /* @kind shadow */
  --shadow-lg: 0 30px 80px rgba(0,0,0,0.60); /* @kind shadow */

  /* ---- Scrims (nav / image overlays) ---- */
  --scrim-top:    linear-gradient(to bottom, rgba(8,8,8,0.90), transparent); /* @kind other */
  --scrim-bottom: linear-gradient(to top,    rgba(8,8,8,0.90), transparent); /* @kind other */

  /* ---- Film grain (fractal noise, overlay at ~3% opacity) ---- */
  --grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); /* @kind other */

  /* ---- Motion ---- */
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);   /* @kind other */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);  /* @kind other */
  --dur-fast: 0.30s; /* @kind other */
  --dur-med:  0.60s; /* @kind other */
  --dur-slow: 0.80s; /* @kind other */

  /* ---- Backdrop blur ---- */
  --blur: blur(16px); /* @kind other */
}

/* ===== tokens/base.css ===== */
/* ============================================================
   Beyond Frame Productions — BASE / RESET
   Minimal, dark-first. Sets the warm near-black canvas, warm
   cream ink, and DM Mono body defaults.
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: var(--weight-light);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

:root {
  color-scheme: dark;
  accent-color: var(--accent);
}

::selection { background: var(--magenta); color: #fff; }

a { color: inherit; text-decoration: none; }

img, svg, video { display: block; max-width: 100%; }
