/* =========================================================
   PETITE FOCUS STUDIO — DARK CINEMATIC THEME
   Design tokens & base reset
   ========================================================= */

:root {
  /* Color palette */
  --color-bg: #0a0a0a;
  --color-bg-alt: #111111;
  --color-surface: #161616;
  --color-border: #2a2a2a;
  --color-text: #ededed;
  --color-text-muted: #9a9a9a;
  --color-text-soft: #c9c9c9;
  --color-accent: #ffffff;

  /* Typography */
  --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-sans: "Inter", "Roboto Condensed", system-ui, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;

  /* Spacing & layout */
  --max-width: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 200ms var(--ease-out);
  --transition-base: 400ms var(--ease-out);
  --transition-slow: 700ms var(--ease-out);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--color-accent);
  letter-spacing: 0.01em;
  margin: 0 0 1rem;
  line-height: 1.15;
}

p {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--color-text-soft);
  margin: 0 0 1.25rem;
}

/* Page wrapper — flex layout to keep footer at the bottom */
.page-wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg);
}

body > .page-wrapper main {
  flex: 1;
}

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

/* Custom scrollbar for a refined feel */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3a3a3a;
}

/* Reusable utility — animated section reveal */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Reduced motion friendliness */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
