/* css/base.css */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600&family=Lato:wght@400;700&display=swap');

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-ink);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Section spacing */
.section { padding-block: var(--space-120); }
.section--alt { background: var(--color-off-white); }
.section--dark { background: var(--color-dark); color: var(--color-white); }
.section--navy { background: var(--color-navy); color: var(--color-white); }

/* Typography */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.5rem, 5.5vw, var(--text-4xl)); }
h2 { font-size: clamp(1.75rem, 3.5vw, var(--text-3xl)); }
h3 { font-size: clamp(1.25rem, 2.5vw, var(--text-2xl)); }

p { line-height: 1.75; color: var(--color-muted); }
p + p { margin-top: var(--space-16); }

.label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* Fade-up animation baseline */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-base), transform var(--transition-base);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Focus states — global */
:focus-visible {
  outline: 2px solid var(--color-navy);
  outline-offset: 3px;
}
.section--navy :focus-visible,
.nav__mobile :focus-visible,
.lightbox :focus-visible {
  outline-color: var(--color-white);
}

@media (max-width: 768px) {
  body { font-size: var(--text-sm); }

  .section { padding-block: var(--space-80); }

  h1 { font-size: clamp(2.35rem, 12vw, 3.35rem); }
  h2 { font-size: clamp(1.7rem, 8vw, 2.45rem); }
  h3 { font-size: clamp(1.25rem, 6vw, 1.75rem); }
}

@media (max-width: 480px) {
  h1 { font-size: clamp(2.05rem, 11vw, 2.75rem); }
  h2 { font-size: clamp(1.55rem, 8vw, 2.1rem); }

  p { line-height: 1.65; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
