/* base.css – global tokens, reset, typography, and shared utilities */

:root {
  /* Design Tokens */
  --color-primary: #23343b;
  --color-accent: #e4003a;
  --color-dark: #0d0d0d;
  --color-light: #ffffff;

  /* Secondary Colors */
  --color-pink: #ed6ea7;
  --color-blue-bright: #00b5dd;
  --color-blue-medium: #0075b5;
  --color-lime: #aecc52;
  --color-teal: #66c1be;

  /* Functional Colors */
  --color-text-main: var(--color-primary);
  --color-text-muted: #4b575e;
  --color-surface-tint: #f8f9fa;
  --color-border: rgba(35, 52, 59, 0.1);

  /* Gradients */
  --grad-primary: linear-gradient(120deg, var(--color-primary) 0%, #1a262b 100%);
  --grad-lime-teal: linear-gradient(135deg, var(--color-lime) 0%, var(--color-teal) 100%);
  --grad-blue: linear-gradient(135deg, var(--color-blue-bright) 0%, var(--color-blue-medium) 100%);

  /* Typography */
  --font-primary: "Poppins", sans-serif;
  --font-secondary: "Playfair Display", serif;

  /* Type Scale */
  --font-size-xs: 0.875rem;
  --font-size-sm: 1rem;
  --font-size-md: 1.125rem;
  --font-size-lg: 1.5rem;
  --font-size-xl: 2rem;
  --font-size-xxl: 3rem;
  --font-size-hero: clamp(2.5rem, 5vw, 4.5rem);

  /* Spacing */
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --space-huge: 96px;

  /* Effects */
  --shadow-sm: 0 2px 4px rgba(35, 52, 59, 0.05);
  --shadow-md: 0 4px 8px rgba(35, 52, 59, 0.1);
  --shadow-lg: 0 12px 24px rgba(35, 52, 59, 0.15);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-pill: 50px;
}

@media (max-width: 768px) {
  :root {
    --font-size-hero: 2.5rem;
    --font-size-xxl: 2rem;
  }
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  font-weight: 400;
  color: var(--color-text-main);
  background-color: var(--color-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

ul {
  list-style: none;
}

/* Typography Classes */
.heading-xl {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: var(--font-size-hero);
  line-height: 1.1;
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

.heading-lg {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: var(--font-size-xxl);
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

.heading-md {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

.heading-sm {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-xs);
  color: var(--color-primary);
}

.lead-text {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-lg);
  max-width: 750px;
}

.body-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

/* Utilities */
.text-center {
  text-align: center;
}

.text-light {
  color: var(--color-light);
}

.text-accent {
  color: var(--color-accent);
}

.text-muted {
  color: var(--color-text-muted);
}

/* Animations Utility */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

/* Print Theme Global Effects */
/* Paper Texture Overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 900;
  opacity: 0.6;
}

/* Registration / Crop Marks */
.print-marks {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2000;
}

.mark-tl,
.mark-tr,
.mark-bl,
.mark-br {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: rgba(0, 0, 0, 0.3);
  border-style: solid;
}

.mark-tl {
  top: 10px;
  left: 10px;
  border-width: 1px 0 0 1px;
}

.mark-tr {
  top: 10px;
  right: 10px;
  border-width: 1px 1px 0 0;
}

.mark-bl {
  bottom: 10px;
  left: 10px;
  border-width: 0 0 1px 1px;
}

.mark-br {
  bottom: 10px;
  right: 10px;
  border-width: 0 1px 1px 0;
}

.mark-center-x,
.mark-center-y {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.2);
}

.mark-center-x {
  top: 10px;
  left: 50%;
  width: 1px;
  height: 10px;
  transform: translateX(-50%);
}

.mark-center-y {
  top: 50%;
  left: 10px;
  width: 10px;
  height: 1px;
  transform: translateY(-50%);
}

/* Separation Filters */
body.view-cyan::after,
body.view-magenta::after,
body.view-yellow::after,
body.view-black::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2000;
}

body.view-cyan::after {
  backdrop-filter: sepia(1) hue-rotate(130deg) saturate(2) brightness(0.9);
}

body.view-magenta::after {
  backdrop-filter: sepia(1) hue-rotate(280deg) saturate(2) brightness(0.8);
}

body.view-yellow::after {
  backdrop-filter: sepia(1) hue-rotate(50deg) saturate(3) brightness(1.1);
}

body.view-black::after {
  backdrop-filter: grayscale(100%) contrast(1.2);
}

body.view-cyan,
body.view-magenta,
body.view-yellow,
body.view-black {
  filter: none;
}
