/*
Theme Name: Myth and Valor
Theme URI: https://mythandvalor.com
Author: AshTech Digital
Author URI: https://ashtechdigital.com
Description: Dark, cinematic, premium streetwear theme for the Myth and Valor cryptid t-shirt label. Custom-built for WooCommerce. Noir aesthetic, self-hosted fonts, grain texture, dynamic product sections. No page builders.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: myth-and-valor
WC requires at least: 8.0
WC tested up to: 9.0
*/

/* =================================================================
   SELF-HOSTED FONTS
   Anton (display) / Inter (body) / JetBrains Mono (labels)
   Subset to Latin + decorative glyph ranges. font-display: swap.
   ================================================================= */
@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/anton-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/jetbrainsmono-400.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/jetbrainsmono-500.woff2") format("woff2");
}

/* =================================================================
   DESIGN TOKENS  (ported from the Lovable prototype, oklch primary)
   hex equivalents noted for quick reference
   ================================================================= */
:root {
  --background: oklch(0.06 0 0);          /* #010101 near-black   */
  --foreground: oklch(0.96 0 0);          /* #F2F2F2 near-white   */
  --muted: oklch(0.18 0 0);               /* #121212              */
  --muted-foreground: oklch(0.65 0 0);    /* #8F8F8F              */
  --accent: oklch(0.58 0.14 55);          /* #B75F0B amber/orange */
  --accent-foreground: oklch(0.06 0 0);   /* #010101              */
  --border: oklch(0.22 0 0);              /* #1B1B1B              */
  --card: oklch(0.09 0 0);                /* #020202              */
  --card-foreground: oklch(0.96 0 0);
  --primary: oklch(0.96 0 0);
  --primary-foreground: oklch(0.06 0 0);
  --destructive: oklch(0.58 0.22 25);     /* #DF202E              */

  --font-display: "Anton", "Impact", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;

  --maxw-wide: 1440px;
  --maxw-7xl: 80rem;
  --maxw-5xl: 64rem;
  --maxw-3xl: 48rem;
  --maxw-2xl: 42rem;

  --pad-x: 1.5rem;          /* px-6  */
  --section-y: 6rem;        /* py-24 */
  --section-y-lg: 8rem;     /* py-32 */
}

/* =================================================================
   RESET / BASE
   ================================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { border-color: var(--border); }

html {
  background-color: var(--background);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input { font: inherit; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background-color: var(--accent); color: var(--accent-foreground); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Reduced motion: kill the looping / entrance animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
