/* ==========================================================================
   SPARKLE INK TATTOOS — BASE STYLES & RESET
   ========================================================================== */

/* Google Fonts Import: Fraunces (400, 500, 600 variable opsz), Work Sans (400, 500, 600), Permanent Marker */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..600;1,9..144,400&family=Permanent+Marker&family=Work+Sans:wght@400;500;600&display=swap');

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
  -webkit-text-size-adjust: 100%;
  background-color: var(--ink-black);
  color: var(--ink-light);
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.7;
  color: var(--ink-gray-500);
  background-color: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accessible Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  background: var(--ember);
  color: var(--ink-black);
  padding: var(--space-2) var(--space-4);
  font-weight: 600;
  font-size: var(--text-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius);
  z-index: 9999;
  transition: top var(--transition-fast);
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-4);
  outline: 2px solid var(--ink-black);
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: inherit;
  text-wrap: balance;
}

h1 {
  font-size: var(--text-h1);
  letter-spacing: -0.025em;
  line-height: 1.02;
}

h2 {
  font-size: var(--text-h2);
  letter-spacing: -0.015em;
}

h3 {
  font-size: var(--text-h3);
}

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

p {
  margin-bottom: var(--space-3);
}

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

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

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* Selection */
::selection {
  background-color: var(--ember);
  color: var(--ink-black);
}

/* Focus Visible Accessibility */
:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--space-5);
    padding-right: var(--space-5);
  }
}

/* Section Themings (Alternating dark and light sections per Section 4.1) */
.theme-dark {
  background-color: var(--ink-black);
  color: var(--ink-light);
}

.theme-dark p {
  color: var(--ink-muted);
}

.theme-dark .eyebrow {
  color: var(--ember);
}

.theme-light {
  background-color: var(--paper);
  color: var(--ink-black);
}

.theme-light p {
  color: var(--ink-gray-500);
}

.theme-light .eyebrow {
  color: var(--ember-dark);
}

/* Eyebrow Label */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  display: inline-block;
  margin-bottom: var(--space-2);
}

/* Section Header Shared */
.section-header {
  margin-bottom: var(--space-7);
}

.section-header.text-center {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  margin-bottom: var(--space-3);
}

.section-header .subheading {
  font-size: 1.15rem;
  line-height: 1.6;
}

/* Editorial Ink Pen Squiggle Divider Motif (Section 4.4) */
.ink-squiggle {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--space-6) auto;
  color: var(--ember);
  opacity: 0.75;
}

.ink-squiggle svg {
  width: 140px;
  height: 12px;
}

/* Screen Reader Only Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

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