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

:root {
  /* Force light mode - never use dark mode */
  color-scheme: light only;

  /* Default theme variables - overridden by concept classes */
  --primary: #b8963e;
  --bg: #f5f0e8;
  --dark: #1a2332;
  --text: #2c2c2c;
  --text-muted: rgba(44, 44, 44, 0.78);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Cormorant Garamond', serif;
}

html {
  font-size: 18px;
  background: var(--bg, #f5f0e8);
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg, #f5f0e8);
  font-family: var(--font-body);
  color: var(--text);
  font-size: 1.25rem; /* 20px base for better readability */
  line-height: 1.7;
}

#app {
  max-width: 1920px;
  margin: 0 auto;
}

#main-content {
  min-height: 100vh;
  background: var(--bg);
  transition: opacity 0.2s ease;
}

#main-content.fade-out {
  opacity: 0;
}

#main-content.fade-in {
  opacity: 1;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input, textarea {
  font-family: inherit;
}

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

/* Focus styles for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Ensure focus is visible on interactive elements even on click */
a:focus, button:focus {
  outline: 2px solid transparent;
}
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 1rem;
  z-index: 1000;
  border-radius: 0 0 4px 4px;
}

.skip-link:focus {
  position: fixed;
  top: 0;
  left: 1rem;
  width: auto;
  height: auto;
  overflow: visible;
  outline: 3px solid var(--text);
  outline-offset: 2px;
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.3;
}

h1 {
  font-size: clamp(2.75rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
}

h3 {
  font-size: clamp(1.5rem, 2.5vw, 1.75rem);
}

p, li, blockquote {
  font-size: 1.25rem; /* 20px minimum for body text */
  line-height: 1.8;
}

.tm {
  font-size: 0.5em;
  vertical-align: super;
  line-height: 1;
}

/* ===== LAYOUT UTILITIES ===== */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-narrow {
  max-width: 800px;
}

.section-title {
  font-style: italic;
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.25rem;
  margin-bottom: 3rem;
}

.section-intro {
  text-align: center;
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.section-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.reveal {
  opacity: 0;
  transform: translateY(10px); /* Reduced from 22px - more subtle */
  transition: opacity 0.4s ease-out, transform 0.4s ease-out; /* Faster */
  transition-delay: var(--delay, 0s);
}

.reveal.revealed,
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Skip animation on page load - show content immediately */
.no-animate .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.25rem;
  font-family: var(--font-body);
  font-size: 0.9375rem; /* 15px - larger for readability */
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg);
}

.btn-primary:hover {
  filter: brightness(1.1);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--bg);
}

.btn-large {
  padding: 1.125rem 2.75rem;
  font-size: 1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .section-container {
    padding: 0 30px;
  }
}

@media (max-width: 768px) {
  .section-container {
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .section-container {
    padding: 0 16px;
  }

  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
    min-height: 44px;
  }
}
