/* ==========================================================================
   Design tokens — change the look here.
   ========================================================================== */
:root {
  /* Color */
  --color-bg: #f6f1ea;
  --color-text: #1a1a1a;
  --color-muted: #6b645c;
  --color-accent: #8b1f24; /* sparingly: links, small details, hover */
  --color-line: rgb(26 26 26 / 0.14); /* hairline dividers and card borders */
  --color-surface: #fbf8f3; /* cards sitting on the background */
  /* Hero studio backdrop, sampled from the portrait's original photo */
  --color-studio-light: #e7e9e9;
  --color-studio-shade: #c2c2bf;
  --color-studio-dim: rgb(38 38 36 / 0.14); /* where wall meets floor, shadow under the chair */
  --color-studio-cast: rgb(38 38 36 / 0.24); /* her shadow on the wall, light from the left */
  --color-studio-corner: rgb(38 38 36 / 0.16); /* the wall falling off away from the light */
  /* Painted-backdrop texture: fine grain (tiled), and soft clouds of uneven paint (stretched to
     cover, never tiled: low-frequency noise shows its seams) */
  --texture-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .15 0 0 0 0 .15 0 0 0 0 .14 0 0 0 .3 -.12'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --texture-mottle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 900' preserveAspectRatio='xMidYMid slice'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0035' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .15 0 0 0 0 .15 0 0 0 0 .14 0 0 0 .4 -.14'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --color-flash: #ffffff; /* the camera flash between hero and gallery */

  /* Type families (loaded from Google Fonts in index.html) */
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Fluid type scale: min at ~360px wide, max at ~1440px wide */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --text-xl: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --text-2xl: clamp(2rem, 1.6rem + 1.8vw, 3rem);
  --text-3xl: clamp(2.75rem, 2rem + 3.4vw, 4.75rem);
  --text-display: clamp(3.25rem, 2.2rem + 5.2vw, 7rem);

  --leading-tight: 1.05;
  --leading-heading: 1.15;
  --leading-body: 1.65;
  --tracking-caps: 0.16em;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-section: clamp(5rem, 3.5rem + 7vw, 10rem);

  /* Layout */
  --gutter: clamp(1.25rem, 0.8rem + 2.2vw, 3rem);
  --container: 75rem;
  --container-narrow: 42rem;

  /* Shape and motion */
  --radius: 4px;
  --hairline: 1px solid var(--color-line);
  --shadow-card: 0 1px 2px rgb(26 26 26 / 0.06); /* the only shadow; keep it subtle */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 240ms;

  color-scheme: light;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

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

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

/* ==========================================================================
   Base
   ========================================================================== */
body {
  min-height: 100svh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: var(--leading-heading);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: var(--text-3xl);
  line-height: var(--leading-tight);
}

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

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

p {
  text-wrap: pretty;
}

a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--duration) var(--ease), text-decoration-color var(--duration) var(--ease);
}

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

:focus-visible {
  outline: 1px solid var(--color-accent);
  outline-offset: 3px;
}

::selection {
  background: var(--color-accent);
  color: var(--color-bg);
}

hr {
  border: 0;
  border-top: var(--hairline);
}

/* ==========================================================================
   Utilities shared by every section
   ========================================================================== */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: calc(var(--container-narrow) + 2 * var(--gutter));
}

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

/* Small uppercase label above a heading */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-muted);
}

.display {
  font-family: var(--font-heading);
  font-size: var(--text-display);
  font-weight: 400;
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
}

.lede {
  font-size: var(--text-lg);
  color: var(--color-muted);
  max-width: 36em;
}

.muted {
  color: var(--color-muted);
}

.serif-italic {
  font-family: var(--font-heading);
  font-style: italic;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@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;
  }
}

/* Wins over any component's display, so `hidden` always hides. */
[hidden] {
  display: none !important;
}
