/* ============================================================
   main.css — Global Styles, Variables & Typography
   aharsh.com | Sprint 1
   ============================================================ */

/* ------------------------------------------------------------
   Design Tokens (CSS Custom Properties)
   ------------------------------------------------------------ */
:root {
  /* Core palette */
  --bg:            #0f0f0d;     /* Near-black, warm */
  --bg-secondary:  #1a1a16;
  --bg-card:       #222219;
  --text-primary:  #f0ebe0;     /* Warm cream */
  --text-secondary:#9a9080;     /* Muted warm grey */
  --text-muted:    #5a5448;
  --accent:        #c9a84c;     /* Warm gold — echoes oil paint pigments */
  --accent-light:  #e8c97a;
  --border:        rgba(240, 235, 224, 0.08);

  /* Typography */
  --font-serif:    'Cormorant Garamond', Georgia, serif;
  --font-sans:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --nav-height:    80px;
  --section-v:     clamp(80px, 10vw, 140px);
  --page-h:        clamp(24px, 5vw, 80px);

  /* Motion */
  --ease-smooth:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-expo:     cubic-bezier(0.19, 1, 0.22, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: auto; /* Lenis handles smooth scroll */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

/* ------------------------------------------------------------
   Typography Scale
   ------------------------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.1;
}

/* Labels — e.g. "Oil Painting Artist" above titles */
.label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Section headings */
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

/* Body copy */
.body-text {
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ------------------------------------------------------------
   Layout Utilities
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--page-h);
}

.section {
  padding: var(--section-v) 0;
}

/* Overflow hidden wrapper — used for text reveal animations */
.clip {
  overflow: hidden;
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  position: relative;
}

.btn-outline {
  padding: 15px 32px;
  border: 1px solid rgba(240, 235, 224, 0.25);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.btn-arrow::after {
  content: '→';
  transition: transform 0.3s var(--ease-smooth);
}

.btn-arrow:hover::after {
  transform: translateX(5px);
}

/* ------------------------------------------------------------
   Divider Line
   ------------------------------------------------------------ */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* ------------------------------------------------------------
   Scrollbar
   ------------------------------------------------------------ */
::-webkit-scrollbar       { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* ------------------------------------------------------------
   Text Selection
   ------------------------------------------------------------ */
::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ------------------------------------------------------------
   Accessibility — focus
   ------------------------------------------------------------ */
:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

/* ------------------------------------------------------------
   Screen-reader only
   ------------------------------------------------------------ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
