/* Antonio Sorrentino Website - Main Stylesheet */

/* ===== CSS VARIABLES ===== */
:root {
  /* Color Palette - Warm Museum Tones */
  --bg: #F5F1EA;
  --surface: #FBF8F3;
  --surface-alt: #EFE7DC;
  --text: #1F1A17;
  --text-muted: #6B6259;
  --border: #D8CFC3;
  --accent: #6E1F2A;
  --accent-2: #8A6A47;
  --accent-hover: #4A141C;

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

  /* Scale - Refined */
  --hero-title: clamp(3rem, 6vw, 6rem);
  --section-title: clamp(1.75rem, 3vw, 2.75rem);
  --card-title: clamp(1.125rem, 1.5vw, 1.375rem);
  --body: clamp(0.9375rem, 1vw, 1rem);
  --meta: 0.8125rem;
  --small: 0.75rem;

  /* Layout */
  --max-width: 1400px;
  --content-width: 720px;

  /* Spacing - More refined scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;
  --space-9: 112px;
  --space-10: 160px;

  /* Effects */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-soft: 0 8px 24px rgba(31, 26, 23, 0.05);
  --transition: 200ms ease;
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-feature-settings: 'liga' 1, 'calt' 1;
}

/* ===== PAGE LAYOUT ===== */
.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  padding-top: 80px; /* Match header height */
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.01em;
}

h1 {
  font-size: var(--hero-title);
  line-height: 1.05;
}

h2 {
  font-size: var(--section-title);
}

h3 {
  font-size: var(--card-title);
}

p {
  line-height: 1.7;
}

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

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

/* ===== UTILITY CLASSES ===== */
.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;
}

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

.content-narrow {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  :root {
    --space-6: 24px;
    --space-7: 32px;
    --space-8: 48px;
    --space-9: 72px;
    --space-10: 96px;
  }

  .container,
  .content-narrow {
    padding: 0 var(--space-4);
  }
}

@media (max-width: 480px) {
  :root {
    --space-5: 20px;
    --space-6: 20px;
    --space-7: 24px;
    --space-8: 40px;
    --space-9: 56px;
    --space-10: 72px;
  }

  .container,
  .content-narrow {
    padding: 0 var(--space-3);
  }
}

/* ===== NOT FOUND PAGE ===== */
.not-found {
  padding: var(--space-9) var(--space-6);
  text-align: center;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.not-found h1 {
  font-family: var(--font-serif);
  font-size: var(--section-title);
  margin-bottom: var(--space-4);
}

.not-found p {
  font-family: var(--font-sans);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.not-found a {
  color: var(--accent);
  text-decoration: underline;
}

/* ===== SECTION STYLES ===== */
.section-hero {
  padding: var(--space-8) 0 var(--space-7);
  text-align: center;
}

.section-hero-title {
  font-family: var(--font-serif);
  font-size: var(--hero-title);
  font-weight: 400;
  color: var(--text);
  line-height: 1.05;
  margin-bottom: var(--space-4);
}

.section-hero-subtitle {
  font-family: var(--font-sans);
  font-size: var(--body);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== EDITORIAL TEXT ===== */
.editorial-lead {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  color: var(--text);
  line-height: 1.6;
  font-style: italic;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--small);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--surface);
  background: var(--accent);
  padding: var(--space-3) var(--space-5);
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--surface);
}

.btn-secondary {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--small);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  padding: var(--space-3) var(--space-5);
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== LINKS ===== */
.link-arrow {
  font-family: var(--font-sans);
  font-size: var(--small);
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: all var(--transition);
}

.link-arrow:hover {
  color: var(--accent-hover);
  gap: var(--space-3);
}
