/* ==========================================================================
   LUMEN DENTAL — base: tokens, fonts, reset, type, utilities
   ========================================================================== */

@font-face { font-family: "Newsreader"; src: url("../assets/fonts/newsreader-latin.woff2") format("woff2"); font-weight: 300 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../assets/fonts/newsreader-italic-latin.woff2") format("woff2"); font-weight: 300 500; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../assets/fonts/dmsans-latin.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }

:root {
  --warm: #fcfaf5;
  --beige: #f3eee3;
  --stone: #e6dfd0;
  --stone-dk: #cfc6b3;
  --char: #24241f;
  --char-2: #3a3a33;
  --ink-2: #57564d;
  --mute: #7a786c;
  --sage: #93a58a;
  --sage-dk: #4d6047;
  --sage-lt: #e5eadf;
  --line: rgba(36, 36, 31, 0.14);
  --line-strong: rgba(36, 36, 31, 0.32);
  --line-inv: rgba(252, 250, 245, 0.22);

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --gutter: clamp(20px, 4.6vw, 72px);
  --maxw: 1360px;
  --section-y: clamp(72px, 10vw, 152px);
  --header-h: 76px;
  --r: 22px;

  --ease: cubic-bezier(0.22, 0.7, 0.16, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 10px);
  background: var(--warm);
}

body {
  margin: 0;
  background: var(--warm);
  color: var(--char);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
address { font-style: normal; }

::selection { background: var(--sage-lt); color: var(--char); }

:focus-visible { outline: 2px solid var(--sage-dk); outline-offset: 4px; }
.dark :focus-visible, .footer :focus-visible { outline-color: #c9d6c2; }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 500;
  padding: 0.8em 1.2em; background: var(--char); color: var(--warm);
  font-weight: 600; border-radius: 8px;
  transform: translateY(-200%); transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

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

.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--beige { background: var(--beige); }
.dark { background: var(--char); color: var(--warm); }

/* --------------------------------------------------------------------------
   Type: calm serif headlines, italic sage accents
   -------------------------------------------------------------------------- */

.h1, .h2 {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.02;
  text-wrap: balance;
}

.h1 { font-size: clamp(3rem, 8.4vw, 6.6rem); }
.h2 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); }

.h1 em, .h2 em, .it {
  font-style: italic;
  font-weight: 300;
  color: var(--sage-dk);
}

.dark .h2 em, .dark .it { color: #b9cbb1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.8em;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sage-dk); line-height: 1;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }
.dark .eyebrow { color: #b9cbb1; }

.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--ink-2); max-width: 32em; }
.dark .lede { color: #d5d3c9; }
.body-text { color: var(--ink-2); max-width: 34em; }
.dark .body-text { color: #cbc9be; }

.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 72px); }
.section-head .h2 { margin-top: 1.2rem; }

@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.3fr 1fr; align-items: end; gap: 72px; }
  .section-head--split .lede { justify-self: end; }
}

/* Reveals (only when JS runs) */
.js [data-reveal] {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

.i { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* photo frames */
.photo { position: relative; overflow: hidden; background: var(--stone); border-radius: var(--r); }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.photo--arch { border-radius: 999px 999px var(--r) var(--r); }
