/**
 * Base & Reset Styles — New Super Photography
 * Source of truth: DESIGN_SYSTEM.md & AGENTS.md
 */

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: var(--color-black);
  color: var(--color-text);
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-ivory);
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: inherit;
  text-wrap: balance;
  margin-bottom: var(--space-4);
}

h1 {
  font-size: var(--text-4xl);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h2 {
  font-size: var(--text-3xl);
  line-height: 1.15;
}

h3 {
  font-size: var(--text-2xl);
  line-height: 1.2;
}

h4 {
  font-size: var(--text-xl);
}

h5, h6 {
  font-size: var(--text-lg);
}

/* Paragraphs & Text Elements */
p {
  margin-bottom: var(--space-4);
  max-width: var(--container-narrow-width);
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--color-muted);
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-2);
}

/* Links */
a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

a:hover {
  color: var(--color-gold-deep);
}

/* Images & Media */
img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  font-style: italic;
  shape-margin: 0.75rem;
}

/* Lists */
ul, ol {
  list-style: none;
}

/* Form resets */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

/* Focus States (WCAG 2.2 AA visible focus ring) */
:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

/* Surface-specific dark focus */
.surface-dark :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--color-focus);
}

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