/**
 * ====================================================================
 * Anisha Khanduja Studio - Base Styles (base.css)
 * ====================================================================
 * Global resets, luxury typography foundation, Somerset paper texture,
 * and architectural layout containers.
 */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--forest-ink);
  background-color: var(--surface-canvas);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle museum cotton rag texture overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  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.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Accessible focus visible styling */
:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* Text Selection */
::selection {
  background-color: rgba(197, 164, 118, 0.25);
  color: var(--forest-deep);
}

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

/* Links & Buttons */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

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

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: var(--forest-ink);
}

ul,
ol {
  list-style: none;
}

/* --- TYPOGRAPHY BASE (High-End Gallery Editorial) --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--leading-tight);
  color: var(--forest-ink);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: var(--text-hero);
  font-weight: 600;
  letter-spacing: -0.015em;
}

h2 {
  font-size: var(--text-3xl);
  font-weight: 500;
  letter-spacing: -0.01em;
}

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

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

p {
  color: var(--text-muted);
  line-height: var(--leading-normal);
  text-wrap: pretty;
}

p.lead {
  font-size: var(--text-md);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  text-wrap: pretty;
}

/* Elegant editorial note accent in Cormorant Garamond italic */
.hand-note,
.commission-note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--gold-dark);
  line-height: 1.3;
  display: inline-block;
  letter-spacing: 0.02em;
}

.hand-note-alt {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--gold-primary);
  display: inline-block;
}

/* Eyebrow badge over section titles */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest-primary);
  background-color: var(--surface-sage);
  border: 1px solid var(--gold-light);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.95rem;
  box-shadow: 0 2px 8px rgba(18, 35, 26, 0.03);
  margin-bottom: 0.85rem;
  width: fit-content;
}

/* --- LAYOUT CONTAINERS --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + var(--announcement-height) + 14px);
}

.section {
  padding-block: clamp(1.75rem, 3.2vw, 3rem);
  position: relative;
}

.section-header {
  margin-bottom: clamp(1.25rem, 2.2vw, 2rem);
  max-width: 680px;
}

.section-header.text-center {
  margin-inline: auto;
  text-align: center;
}

.section-header .eyebrow {
  margin-inline: auto;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 500;
  color: var(--forest-ink);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
  text-wrap: balance;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.96rem, 1.1vw, 1.08rem);
  color: var(--text-muted);
  text-wrap: pretty;
  max-width: 640px;
  margin-inline: auto;
  line-height: var(--leading-relaxed);
}

/* Architectural Gallery Divider */
.gallery-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-block: clamp(0.4rem, 0.8vw, 0.75rem);
  position: relative;
}

.gallery-divider::before,
.gallery-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197, 164, 118, 0.4), transparent);
}

.divider-diamond {
  color: var(--gold-primary);
  font-size: 0.85rem;
  padding-inline: 1.25rem;
  opacity: 0.85;
  user-select: none;
}

/* Hide legacy wavy divider */
.wobbly-divider {
  display: none !important;
}

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