/* Dean Creative Closings: design system (shared by every page). See DESIGN.md. */

/* ---------- Tokens ---------- */
:root {
  /* palette, pulled from the headshot: charcoal backdrop, black blazer, warm hair tones */
  --ink: #1c1b1a;
  --ink-2: #2b2927;
  --ink-3: #3d3a36;
  --ivory: #f5f1e8;
  --ivory-2: #ece6d8;
  --paper: #fbf9f4;
  --brass: #9c7f45;
  --brass-2: #c2a365;
  --brass-soft: rgba(156, 127, 69, 0.14);
  --muted: #625c53;
  --muted-light: #b8b0a3;
  --line: rgba(28, 27, 26, 0.14);
  --line-light: rgba(245, 241, 232, 0.18);

  /* type */
  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: 1.0625rem;          /* 17px phone */
  --text-lg: 1.1875rem;       /* 19px */
  --text-sm: 0.9375rem;       /* 15px */
  --eyebrow: 0.75rem;         /* 12px */
  --h1: clamp(2.75rem, 10.5vw, 5.75rem);
  --h2: clamp(2.125rem, 5vw, 3.5rem);
  --h3: clamp(1.5rem, 2.2vw, 1.875rem);
  --lh-body: 1.6;
  --lh-tight: 1.05;

  /* spacing scale: 8 / 16 / 24 / 32 / 48 / 64 / 96 / 140 */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 48px; --s6: 64px; --s7: 96px; --s8: 140px;
  --section: clamp(64px, 8vw, 128px);  /* every section's top + bottom padding */
  --head-gap: clamp(32px, 4vw, 56px);  /* section heading block to its content */
  --gutter: 20px;                       /* side gutter; see 1024px rule */
  --container: 1800px;

  /* components */
  --radius: 6px;
  --radius-lg: 10px;
  --btn-h: 56px;
  --btn-h-sm: 44px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 900ms;
  --header-h: 72px;
}

@media (min-width: 1024px) {
  :root { --text: 1.125rem; --text-lg: 1.3125rem; --gutter: 48px; --header-h: 84px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[id] { scroll-margin-top: calc(var(--header-h) + var(--s3)); } /* anchor targets land below the sticky header */
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--ink { background: var(--ink); color: var(--ivory); }
.section--ivory { background: var(--ivory); }
.section__head { max-width: 46ch; margin-bottom: var(--head-gap); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head .lead { margin-top: var(--s3); }
.section__head--split {
  max-width: none;
  display: grid; gap: var(--s3); align-items: end;
}
@media (min-width: 1024px) {
  .section__head--split { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s6); }
  .section__head--split .lead { margin-top: 0; max-width: 52ch; }
}
.measure { max-width: 62ch; }

/* ---------- Type ---------- */
.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--h1); line-height: 1; }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); line-height: 1.15; }
h1 em, h2 em, h3 em, .display em { font-style: italic; color: var(--brass); }
.section--ink h1 em, .section--ink h2 em, .section--ink h3 em { color: var(--brass-2); }
.eyebrow {
  display: block;
  font-size: var(--eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: var(--s2);
}
.eyebrow--light { color: var(--brass-2); }
.lead { font-size: var(--text-lg); color: var(--muted); max-width: 58ch; }
.section--ink .lead { color: var(--muted-light); }
.small { font-size: var(--text-sm); }
.muted { color: var(--muted); }
.section--ink .muted { color: var(--muted-light); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s1);
  height: var(--btn-h); padding-inline: var(--s4);
  border-radius: var(--radius);
  font-weight: 500; font-size: var(--text); line-height: 1; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color 240ms var(--ease), color 240ms var(--ease), border-color 240ms var(--ease), transform 240ms var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn--primary:hover { background: var(--ink-3); border-color: var(--ink-3); }
.btn--secondary { background: transparent; color: var(--ink); border-color: rgba(28,27,26,0.35); }
.btn--secondary:hover { border-color: var(--ink); }
.section--ink .btn--primary { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.section--ink .btn--primary:hover { background: var(--paper); border-color: var(--paper); }
.section--ink .btn--secondary { color: var(--ivory); border-color: rgba(245,241,232,0.4); }
.section--ink .btn--secondary:hover { border-color: var(--ivory); }
.btn--sm { height: var(--btn-h-sm); padding-inline: var(--s3); font-size: var(--text-sm); }
.btn--block { width: 100%; }
.btn-row { display: grid; gap: var(--s2); }
@media (min-width: 640px) { .btn-row { grid-template-columns: repeat(2, max-content); } .btn-row--center { justify-content: center; } }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500; color: var(--ink);
  border-bottom: 1px solid var(--brass);
  padding-bottom: 2px;
}
.text-link::after { content: "\2192"; color: var(--brass); }
.section--ink .text-link { color: var(--ivory); }

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s4);
  display: flex; flex-direction: column;
  height: 100%;
}
.card__title { margin-bottom: var(--s2); }
.card__body { color: var(--muted); }
.card__foot { margin-top: auto; padding-top: var(--s3); }

/* ---------- Header ---------- */
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--ivory); padding: 12px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 249, 244, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__row { display: flex; align-items: center; gap: var(--s3); height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; letter-spacing: 0.01em; line-height: 1; white-space: nowrap; }
.brand em { font-style: italic; color: var(--brass); }
.brand__mark {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--ivory); font-size: 1.25rem; font-weight: 600;
}
.brand--light { color: var(--ivory); }
.brand--light .brand__mark { background: var(--ivory); color: var(--ink); }
.site-nav { display: none; gap: var(--s4); margin-inline: auto; font-size: var(--text-sm); font-weight: 500; }
.site-nav a { padding-block: 6px; border-bottom: 1px solid transparent; transition: border-color 240ms var(--ease); }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-color: var(--brass); }
.site-header__contact { display: none; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 0.8125rem; color: var(--muted); line-height: 1.3; }
.contact-link { white-space: nowrap; }
.contact-link:hover { color: var(--brass); }
.site-header__cta { display: none; }
.menu-btn { margin-left: auto; width: 44px; height: 44px; display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; align-items: center; }
.menu-btn__bar { width: 22px; height: 1.5px; background: var(--ink); transition: transform 300ms var(--ease), opacity 300ms var(--ease); }
.menu-btn[aria-expanded="true"] .menu-btn__bar:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bar:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.menu { border-top: 1px solid var(--line); background: var(--paper); }
.menu__inner { display: grid; gap: var(--s4); padding-block: var(--s4) var(--s5); }
.menu__nav { display: grid; }
.menu__nav a { font-family: var(--font-display); font-size: 2rem; line-height: 1; padding-block: 14px; border-bottom: 1px solid var(--line); }
.menu__nav a[aria-current="page"] { color: var(--brass); }
.menu__contact { display: grid; gap: var(--s1); color: var(--muted); }
@media (min-width: 1024px) {
  .site-nav { display: flex; }
  .site-header__contact { display: flex; }
  .site-header__cta { display: inline-flex; }
  .menu-btn, .menu { display: none !important; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--ivory); padding-block: var(--section) var(--s5); }
.site-footer__grid { display: grid; gap: var(--s5); padding-bottom: var(--s5); border-bottom: 1px solid var(--line-light); }
.site-footer__tag { margin-top: var(--s3); color: var(--muted-light); max-width: 36ch; }
.site-footer__nav { display: grid; gap: 12px; font-size: var(--text); }
.site-footer__nav a:hover { color: var(--brass-2); }
.site-footer__contact { display: grid; gap: 4px; }
.site-footer__contact .eyebrow { margin-bottom: 4px; }
.site-footer__contact .eyebrow + .site-footer__big { margin-bottom: var(--s3); }
.site-footer__big { font-family: var(--font-display); font-size: 1.75rem; line-height: 1.1; word-break: break-word; }
.site-footer__big:hover { color: var(--brass-2); }
.site-footer__legal { padding-top: var(--s4); display: grid; gap: var(--s2); color: var(--muted-light); font-size: var(--text-sm); }
.site-footer__legal p { max-width: 80ch; }
@media (min-width: 1024px) {
  .site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr; gap: var(--s7); }
  .site-footer__nav { grid-template-columns: 1fr 1fr; }
  .site-footer__legal { grid-template-columns: 1fr auto; align-items: end; gap: var(--s6); }
}

/* ---------- Reveal (gentle fade and rise on view; no scroll-scrub) ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-seq] > * { opacity: 0; transform: translateY(18px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
[data-seq].is-in > * { opacity: 1; transform: none; }
[data-seq].is-in > :nth-child(1) { transition-delay: 0ms; }
[data-seq].is-in > :nth-child(2) { transition-delay: 160ms; }
[data-seq].is-in > :nth-child(3) { transition-delay: 320ms; }
[data-seq].is-in > :nth-child(4) { transition-delay: 480ms; }
[data-seq].is-in > :nth-child(5) { transition-delay: 640ms; }
[data-seq].is-in > :nth-child(6) { transition-delay: 800ms; }
[data-seq].is-in > :nth-child(7) { transition-delay: 960ms; }
html.reveal-off [data-reveal], html.reveal-off [data-seq] > * { opacity: 1; transform: none; transition: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], [data-seq] > * { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
