/**
 * Base Styles & Modern CSS Reset
 * Beauty Couture Cambridge Heath
 */

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Reduced Motion Override */
@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;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--type-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background-color: var(--cream);
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Subtle Paper-Grain Texture Overlay (4-6% opacity, pointer-events none) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Skip Link */
.skip-link {
  display: none !important;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  font-optical-sizing: auto;
}

h1 {
  font-size: var(--type-h1);
  line-height: var(--lh-h1);
  letter-spacing: var(--track-tightest);
}

h2 {
  font-size: var(--type-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--track-tight);
}

h3 {
  font-size: var(--type-h3);
  line-height: var(--lh-h3);
  letter-spacing: var(--track-tight);
}

p {
  margin-bottom: var(--space-4);
  max-width: 68ch;
}

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

.lead-p {
  font-size: var(--type-body-lead);
  line-height: 1.55;
  color: rgba(20, 17, 15, 0.88);
}

em, i, .editorial-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--type-eyebrow);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--track-eyebrow);
  color: var(--copper-text);
  margin-bottom: var(--space-3);
}

.eyebrow--light {
  color: var(--blush);
}

/* Links & Interactive */
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color var(--duration-fast) var(--ease-standard),
              opacity var(--duration-fast) var(--ease-standard);
}

a:hover {
  color: var(--copper-text);
}

:focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--focus-offset);
}

button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
}

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

picture {
  display: contents;
}

img {
  object-fit: cover;
}

/* Form Elements */
input, textarea, select, button {
  font-family: var(--font-body);
  font-size: 1rem; /* iOS zoom prevention: 16px minimum */
}

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

.container--narrow {
  max-width: 960px;
}

.section {
  padding-block: var(--section-padding-y);
  position: relative;
}

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

.section--alt {
  background-color: var(--bone);
}

.section--dark {
  background-color: var(--espresso);
  color: var(--cream);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--cream);
}

.section--dark a {
  color: var(--cream);
}

.section--dark a:hover {
  color: var(--blush);
}

.section--oxblood {
  background-color: var(--oxblood);
  color: var(--cream);
}

.section--oxblood h2,
.section--oxblood h3,
.section--oxblood p {
  color: var(--cream);
}

/* Visually Hidden 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;
}
