/* ==========================================================================
   GAMPAŞ AMBALAJ — ATELIER DE MÉTAL DESIGN SYSTEM TOKENS
   Swiss-Industrial Editorial & Die-Cut Sheet Architecture
   ========================================================================== */

:root {
  /* Surfaces */
  --surface-paper: #F2F0EB;
  --surface-pewter: #E6E3DC;
  --surface-plinth: #F8F7F4;
  --surface-white: #FFFFFF;
  --surface-obsidian: #111317;
  --surface-obsidian-elev: #181B21;
  --surface-obsidian-card: #15181E;

  /* Inks */
  --ink-primary: #111317;
  --ink-secondary: #4D525C;
  --ink-muted: #70757F;
  --ink-on-dark: #F2F0EB;
  --ink-on-dark-muted: #A1A6B0;

  /* Architectural Hairlines */
  --line-light: rgba(17, 19, 23, 0.13);
  --line-light-strong: rgba(17, 19, 23, 0.28);
  --line-dark: rgba(242, 240, 235, 0.14);
  --line-dark-strong: rgba(242, 240, 235, 0.28);

  /* Brand Accents (derived from authentic Gampaş Cobalt & Furnace Amber) */
  --accent-cobalt: #0A43C4;
  --accent-cobalt-hover: #07359E;
  --accent-cobalt-tint: rgba(10, 67, 196, 0.08);
  --accent-amber: #D9821E;
  --accent-amber-soft: rgba(217, 130, 30, 0.14);

  /* Typography */
  --font-display: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Fluid Type Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.35rem;
  --text-2xl: clamp(1.5rem, 2.2vw, 2.1rem);
  --text-3xl: clamp(2rem, 3.4vw, 3.15rem);
  --text-hero: clamp(2.55rem, 5.2vw, 5.15rem);

  /* Spacing & Layout */
  --header-h: 72px;
  --rail-w: 56px;
  --container-max: 1400px;
  --gutter: clamp(20px, 3.6vw, 56px);

  /* Die-Cut Chamfers & Radii */
  --chamfer-sm: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  --chamfer-md: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  --chamfer-lg: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);

  /* Motion */
  --ease-press: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 180ms;
  --t-med: 340ms;
  --t-slow: 640ms;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background-color: var(--surface-paper);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  overflow-x: clip;
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

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

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, p, figure, blockquote {
  margin: 0;
}

/* Focus & Accessibility */
:focus-visible {
  outline: 2px solid var(--accent-cobalt);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 1000;
  background: var(--ink-primary);
  color: var(--surface-paper);
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  clip-path: var(--chamfer-sm);
  transition: top var(--t-fast) var(--ease-press);
}

.skip-link:focus {
  top: 14px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Editorial Typography Helpers */
.font-display {
  font-family: var(--font-display);
}

.font-mono {
  font-family: var(--font-mono);
}

.editorial-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-secondary);
}

.kicker::before {
  content: '+';
  color: var(--accent-amber);
  font-weight: 600;
}

.section-dark .kicker {
  color: var(--ink-on-dark-muted);
}

/* Progressive Scroll Reveal */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--t-slow) var(--ease-press), transform var(--t-slow) var(--ease-press);
}

.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .ticker-track {
    animation: none !important;
  }
}
