/* ============================================================
   DESIGN SYSTEM — UX Portfolio
   Font: Inter (Google Fonts)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ============================================================
   TOKENS — CSS Custom Properties
   ============================================================ */

:root {

  /* --- Colors: Background --- */
  --color-bg-primary:    #FEF9F3; /* Clay */
  --color-bg-surface:    #FFFFFF; /* White */
  --color-bg-inverse:    #0E1011; /* Onyx */

  /* --- Colors: Text --- */
  --color-text-primary:  #0E1011; /* Onyx */
  --color-text-inverse:  #FFFFFF; /* White */
  --color-text-accent:   #FF4100; /* Bright Rust */

  /* --- Colors: Accent --- */
  --color-accent:        #FF4100; /* Bright Rust — decorative use only */
  --color-accent-text:   #C93600; /* Rust Text — WCAG AA compliant on cream (4.5:1) */
  --color-accent-light:  #FF6733; /* Rust Light */

  /* --- Typography --- */
  --font-family:          'Inter', sans-serif;

  --font-weight-regular:  400;
  --font-weight-medium:   500;
  --font-weight-semibold: 600;
  --font-weight-bold:     700;

  --font-size-xs:   0.75rem;   /* 12px */
  --font-size-sm:   0.875rem;  /* 14px */
  --font-size-base: 1rem;      /* 16px */
  --font-size-md:   1.125rem;  /* 18px */
  --font-size-lg:   1.25rem;   /* 20px */
  --font-size-xl:   1.5rem;    /* 24px */
  --font-size-2xl:  2rem;      /* 32px */
  --font-size-3xl:  2.5rem;    /* 40px */
  --font-size-4xl:  3.5rem;    /* 56px */
  --font-size-5xl:  4.5rem;    /* 72px */

  --line-height-tight:   1.1;
  --line-height-snug:    1.3;
  --line-height-normal:  1.5;
  --line-height-relaxed: 1.7;

  --letter-spacing-tight:  -0.03em;
  --letter-spacing-normal:  0;
  --letter-spacing-wide:    0.05em;
  --letter-spacing-wider:   0.1em;

  /* --- Spacing --- */
  --space-1:   4px;
  --space-2:   8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* --- Border Radius --- */
  --radius-none: 0;
  --radius-sm:   4px;
  --radius-base: 8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* --- Shadows --- */
  --shadow-sm: 0 1px 3px rgba(14,16,17,0.06), 0 1px 2px rgba(14,16,17,0.04);
  --shadow-md: 0 4px 12px rgba(14,16,17,0.08), 0 2px 4px rgba(14,16,17,0.04);
  --shadow-lg: 0 8px 32px rgba(14,16,17,0.10), 0 4px 8px rgba(14,16,17,0.06);
  --shadow-xl: 0 16px 48px rgba(14,16,17,0.12), 0 8px 16px rgba(14,16,17,0.06);

  /* --- Transitions --- */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* ============================================================
   DARK MODE TOKENS
   ============================================================ */

[data-theme="dark"] {
  --color-bg-primary:   #0E1011; /* Onyx */
  --color-bg-surface:   #1A1C1D; /* Onyx Surface */
  --color-bg-inverse:   #FEF9F3; /* Clay */
  --color-text-primary: #FFFFFF; /* White */
  --color-text-inverse: #0E1011; /* Onyx */
  --color-text-accent:  #FF6733; /* Rust Light — better contrast on dark */
  --color-accent:       #FF4100; /* Bright Rust — decorative use only */
  --color-accent-text:  #FF6733; /* Rust Text on dark — already passes contrast */
  --color-accent-light: #FF6733; /* Rust Light */
}

/* ============================================================
   RESET & BASE
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
  letter-spacing: var(--letter-spacing-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
}

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

a {
  color: var(--color-text-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-light);
}

/* ============================================================
   TYPOGRAPHY SCALE
   ============================================================ */

.display {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
}

.heading-1, h1 {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
}

.heading-2, h2 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-snug);
  letter-spacing: var(--letter-spacing-tight);
}

.heading-3, h3 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-snug);
}

.heading-4, h4 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-snug);
}

.heading-5, h5 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
}

.heading-6, h6 {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
}

.body-large {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-relaxed);
}

.body, p {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-relaxed);
}

.body-small {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
}

.label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
}

.caption {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-regular);
  color: var(--color-text-primary);
  line-height: var(--line-height-normal);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-family);
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  border-radius: 21px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--transition-fast),
              color var(--transition-fast),
              opacity var(--transition-fast),
              border var(--transition-fast);
  padding: var(--space-3) var(--space-6);
  overflow: hidden;
}


/* Filled button */
.btn-primary {
  background: #FF4100;
  color: #0E1011;
  border: 1px solid #FF4100;
}

.btn-primary:hover {
  background: #D93600;
  color: #0E1011;
  border: 1px solid #D93600;
}

/* Outline button */
.btn-secondary {
  background: transparent;
  color: #0E1011;
  border: 1px solid #0E1011;
}

.btn-secondary:hover {
  background: rgba(14, 16, 17, 0.08);
  color: #0E1011;
  border: 1px solid #0E1011;
}

/* ============================================================
   TAGS / BADGES
   ============================================================ */

.tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
}

.tag-default {
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
}

.tag-accent {
  background-color: var(--color-accent-light);
  color: var(--color-text-inverse);
}

.tag-dark {
  background-color: var(--color-bg-inverse);
  color: var(--color-text-inverse);
}

/* ============================================================
   CARDS
   ============================================================ */

.card {
  background-color: var(--color-bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-body {
  padding: var(--space-6);
}

.card-footer {
  padding: var(--space-4) var(--space-6);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

/* ============================================================
   DIVIDERS
   ============================================================ */

/* Horizontal */
.divider {
  border: none;
  border-top: 0.7px solid #6B6A68;
  height: 0;
  overflow: hidden;
  margin: var(--space-8) 0;
}

[data-theme="dark"] .divider {
  border-top-color: #C9C8C6;
}

/* Vertical */
.divider-vertical {
  display: inline-block;
  width: 0.7px;
  background-color: #6B6A68;
  align-self: stretch;
}

/* ============================================================
   CARD — DASHED STROKE VARIANT
   ============================================================ */

.card-dashed {
  outline: none;
  border-radius: 0;
  background-image:
    repeating-linear-gradient(90deg, #FF4100 0, #FF4100 10px, transparent 10px, transparent 21px),
    repeating-linear-gradient(90deg, #FF4100 0, #FF4100 10px, transparent 10px, transparent 21px),
    repeating-linear-gradient(0deg,  #FF4100 0, #FF4100 10px, transparent 10px, transparent 21px),
    repeating-linear-gradient(0deg,  #FF4100 0, #FF4100 10px, transparent 10px, transparent 21px);
  background-size: 21px 5px, 21px 5px, 5px 21px, 5px 21px;
  background-position: top left, bottom left, top left, top right;
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.container-narrow {
  max-width: 760px;
}

.section {
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

/* Text colors */
.text-primary   { color: var(--color-text-primary); }
.text-inverse   { color: var(--color-text-inverse); }
.text-accent    { color: var(--color-accent); }

/* Background colors */
.bg-clay        { background-color: var(--color-bg-primary); }
.bg-white       { background-color: var(--color-bg-surface); }
.bg-onyx        { background-color: var(--color-bg-inverse); }

/* ============================================================
   AS LOGO — HOVER BOUNCE + CLICK SQUISH
   ============================================================ */

@keyframes navMarkBounce {
  0%   { transform: translateY(0);    }
  40%  { transform: translateY(-4px); }
  100% { transform: translateY(0);    }
}

.nav-mark {
  cursor: pointer;
}

a:hover .nav-mark {
  animation: navMarkBounce 0.4s ease-out forwards;
}

/* Focus styles (accessibility) */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
