/*
Theme Name: Tamagna Theme
Theme URI: https://nicholastamagna.com
Author: Traveling Troubadour Media & Design
Author URI: https://concordiandawn.com
Description: A bold, editorial photography-style theme for Nicholas Tamagna - countertenor, director, designer, voice teacher, and writer. Inspired by the Sizzey template with full scroll animations and page transitions.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tamagna
Tags: dark, portfolio, photography, music, one-column, custom-menu, featured-images, threaded-comments

Tamagna WordPress Theme
(C) 2025 Nicholas Tamagna
*/

/* ==========================================================================
   CSS Custom Properties (Design Tokens)
   ========================================================================== */

:root {
    /* Colors - Dark Editorial Palette */
    --color-bg-primary: #0a0a0a;
    --color-bg-secondary: #111111;
    --color-bg-tertiary: #1a1a1a;
    --color-bg-card: #151515;
    
    --color-text-primary: #ffffff;
    --color-text-secondary: #a0a0a0;
    --color-text-muted: #666666;
    
    --color-accent: #c9a962;
    --color-accent-hover: #dfc07a;
    --color-accent-subtle: rgba(201, 169, 98, 0.1);
    
    --color-border: #2a2a2a;
    --color-border-light: #333333;
    
    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Font Sizes - Fluid Typography */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
    --text-xl: clamp(1.35rem, 1.1rem + 0.85vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
    --text-3xl: clamp(2rem, 1.5rem + 2.5vw, 3rem);
    --text-4xl: clamp(2.5rem, 1.75rem + 3.75vw, 4rem);
    --text-5xl: clamp(3rem, 2rem + 5vw, 5.5rem);
    --text-6xl: clamp(4rem, 2.5rem + 7.5vw, 8rem);
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;
    
    /* Layout */
    --container-max: 1400px;
    --container-narrow: 900px;
    --container-wide: 1600px;
    --header-height: 80px;
    
    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1);
    
    --duration-fast: 0.2s;
    --duration-normal: 0.4s;
    --duration-slow: 0.6s;
    --duration-slower: 0.8s;
    --duration-slowest: 1.2s;
    
    /* Z-Index Scale */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-loader: 1000;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

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

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

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    overflow-x: hidden;
}

/* Page Transition Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-primary);
    z-index: var(--z-loader);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--duration-slow) var(--ease-out-expo);
}

body.page-transitioning::before {
    opacity: 1;
    pointer-events: all;
}

::selection {
    background-color: var(--color-accent);
    color: var(--color-bg-primary);
}

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

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

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

ul, ol {
    list-style: none;
}

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

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

.display-text {
    font-family: var(--font-display);
    font-size: var(--text-6xl);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.eyebrow {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.lead {
    font-size: var(--text-xl);
    line-height: 1.5;
    color: var(--color-text-secondary);
}

/* ==========================================================================
   Layout Components
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.container--narrow { max-width: var(--container-narrow); }
.container--wide { max-width: var(--container-wide); }
.container--full { max-width: none; padding: 0; }

.section {
    padding: var(--space-5xl) 0;
}

.section--hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.section--full {
    min-height: 100vh;
}

.scroll-indicator {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none; /* keeps it non-intrusive */
}

/* Optional refinement */
.scroll-indicator__text {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 6px;
  opacity: 0.7;
}

.scroll-indicator__line {
  width: 1px;
  height: 40px;
  background: currentColor;
  opacity: 0.6;
}