/* Timp Family Dental: tokens, reset, type, buttons, shared layout, motion */
:root {
  --cream: #F4EEE3;
  --cream-deep: #EAE2D3;
  --card: #FBF8F2;
  --pine: #2F4A3A;
  --ink: #1F2A24;
  --terracotta: #B95A36; /* design #C0643F, darkened for AA with white text */
  --terracotta-text: #A84F2B; /* design #B0552F, darkened for AA at 13px */
  --peach: #E8B48F;
  --muted: #4A574F;
  --muted-2: #5C6B61;
  --line: #DCD3C3;
  --line-card: #E3DACB;
  --chip-line: #CFC5B3;
  --success: #4E9A6A;
  --on-pine: #D3DBD2;
  --on-pine-2: #BFCABF;
  --font-display: 'Young Serif', Georgia, serif;
  --font-body: 'Figtree', system-ui, sans-serif;
  --gutter: clamp(20px, 4.4vw, 56px);
  --section-y: clamp(64px, 8vw, 112px);
  --max-w: 1440px;
  --radius-card: 20px;
  --shadow-float: 0 18px 40px rgba(31, 42, 36, .16);
  --ease-reveal: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--cream); -webkit-font-smoothing: antialiased; }
body { color: var(--ink); font-family: var(--font-body); min-height: 100vh; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .82; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
:focus-visible { outline: 3px solid var(--terracotta-text); outline-offset: 3px; border-radius: 4px; }
.pine :focus-visible, .footer :focus-visible, .cta :focus-visible { outline-color: var(--peach); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Layout */
.wrap { max-width: var(--max-w); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.pine { background: var(--pine); color: var(--cream); }
.alt { background: var(--cream-deep); }
.stack-44 { display: flex; flex-direction: column; gap: 44px; }
.stack-40 { display: flex; flex-direction: column; gap: 40px; }
.stack-18 { display: flex; flex-direction: column; gap: 18px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.split { display: flex; flex-wrap: wrap; gap: clamp(40px, 5vw, 72px); }
.split__left { flex: 1 1 380px; min-width: 0; }

/* Type */
.eyebrow { margin: 0; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--terracotta-text); }
.eyebrow--peach { color: var(--peach); }
.display { margin: 0; font-family: var(--font-display); font-weight: 400; }
.h-hero { font-size: clamp(46px, 5.8vw, 78px); line-height: 1.02; letter-spacing: -.01em; }
.h-page { font-size: clamp(46px, 6vw, 84px); line-height: 1; letter-spacing: -.01em; }
.h2 { font-size: clamp(36px, 4vw, 54px); line-height: 1.05; text-wrap: balance; }
.lead { margin: 0; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.55; color: var(--muted); max-width: 480px; text-wrap: pretty; }
.body-text { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 460px; }
.text-link { font-weight: 600; font-size: 16px; border-bottom: 1.5px solid var(--ink); padding-bottom: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 1px solid var(--chip-line); border-radius: 999px; padding: 9px 16px; font-size: 15px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; border-radius: 999px; font: 600 16px/1.2 var(--font-body); padding: 17px 28px; border: 1.5px solid transparent; cursor: pointer; }
.btn--md { padding: 16px 26px; }
.btn--sm { font-size: 15px; padding: 13px 22px; }
.btn--primary { background: var(--pine); color: #fff; }
.btn--accent { background: var(--terracotta); color: #fff; }
.btn--outline { border-color: var(--pine); color: var(--ink); background: transparent; padding: 16px 26px; }
.btn--md.btn--outline { padding: 15px 24px; }
.btn--white { background: #fff; color: var(--ink); }
.btn--outline-white { border-color: #fff; color: #fff; padding: 16px 26px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row--12 { gap: 12px; }

/* Motion: entrance (fade-up, masked line reveal) and ambient (drift, Ken Burns) */
@keyframes tfd-fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes tfd-reveal { from { transform: translateY(105%); } to { transform: none; } }
@keyframes tfd-drift { from { transform: scale(1.12) translate(-1.5%, 0); } to { transform: scale(1.12) translate(1.5%, -1%); } }
@keyframes tfd-kenburns { from { transform: scale(1); } to { transform: scale(1.09); } }
.reveal-line { display: block; overflow: hidden; padding-bottom: 6px; }
.reveal-line > span { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .anim-fade { animation: tfd-fade-up .9s both; }
  .book-card.anim-fade, .hero__inset.anim-fade { animation-duration: 1s; }
  .reveal-line > span { animation: tfd-reveal 1.1s var(--ease-reveal) both; }
  .anim-drift { animation: tfd-drift 20s ease-in-out infinite alternate; }
  .anim-kenburns { animation: tfd-kenburns 14s ease-in-out infinite alternate; }
}
.d-10 { animation-delay: .1s; }
.d-25 { animation-delay: .25s; }
.d-30 { animation-delay: .3s; }
.d-45 { animation-delay: .45s; }
.d-60 { animation-delay: .6s; }
.d-65 { animation-delay: .65s; }
.d-90 { animation-delay: .9s; }
.d-105 { animation-delay: 1.05s; }
.d-120 { animation-delay: 1.2s; }
.d-140 { animation-delay: 1.4s; }
