/* Howard House Art Appraisals — Design tokens */
:root {
  /* Brand */
  --brand: #0033A0;
  --brand-deep: #002478;
  --brand-tint: #E8ECF6;

  /* Warm neutral palette */
  --bg: #FBF7F0;          /* warm cream */
  --bg-alt: #F3EDE1;      /* warmer cream */
  --bg-deep: #EAE1CE;     /* aged paper */
  --ink: #1E1A14;         /* near-black warm */
  --ink-soft: #3B342A;
  --ink-muted: #6E6555;
  --rule: #D9CFB8;
  --gold: #A88752;

  /* Type */
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --small-caps: "Cormorant SC", "Cormorant Garamond", Georgia, serif;

  /* Sizes (informational scale) */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 17px;
  --text-lg: 20px;
  --text-xl: clamp(24px, 2.5vw, 34px);
  --text-2xl: clamp(34px, 4.2vw, 56px);
  --text-hero: clamp(48px, 7vw, 96px);

  /* Space */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  --measure: 62ch;
  --container: 1200px;
  --container-narrow: 780px;

  --shadow-sm: 0 1px 2px rgba(30, 26, 20, 0.06), 0 1px 3px rgba(30, 26, 20, 0.05);
  --shadow-md: 0 6px 18px rgba(30, 26, 20, 0.08);
}

* { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-4);
  line-height: 1.15;
}

h1 { font-size: var(--text-2xl); font-weight: 500; }
h2 { font-size: var(--text-xl); font-weight: 500; }
h3 { font-size: var(--text-lg); font-family: var(--sans); font-weight: 600; letter-spacing: -0.005em; }

p { margin: 0 0 1em; max-width: var(--measure); }

a {
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
a:hover { border-bottom-color: var(--brand); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* Eyebrow / small caps label */
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--space-4);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 240, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  max-width: var(--container);
  margin: 0 auto;
}
.brand-lockup {
  display: flex; align-items: center; gap: var(--space-3);
  color: var(--brand);
  border-bottom: none;
}
.brand-lockup:hover { border-bottom: none; }
.brand-mark { height: 42px; width: auto; display: block; }
.brand-wordmark {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--brand);
  line-height: 1;
}
.brand-wordmark span {
  display: block;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 3px;
}

.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: var(--space-8); align-items: center;
}
.site-nav a {
  color: var(--ink-soft);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  border: none;
  padding: 6px 0;
  position: relative;
}
.site-nav a:hover { color: var(--brand); }
.site-nav a.is-current { color: var(--brand); }
.site-nav a.is-current::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--brand);
}

.nav-cta {
  display: inline-flex; align-items: center;
  padding: 10px 18px;
  background: var(--brand);
  color: #fff !important;
  border-radius: 2px;
  border: none !important;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  transition: background .2s ease;
}
.nav-cta:hover { background: var(--brand-deep); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px; color: var(--brand);
}
.nav-toggle svg { display: block; }

@media (max-width: 820px) {
  .site-nav { display: none; }
  .site-nav.is-open {
    display: block;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    padding: var(--space-4) var(--space-6);
  }
  .site-nav.is-open ul {
    flex-direction: column; align-items: flex-start; gap: var(--space-4);
  }
  .nav-toggle { display: block; }
  .brand-wordmark { font-size: 17px; }
  .brand-wordmark span { font-size: 8px; }
}

/* Sections */
section { padding: clamp(64px, 9vw, 128px) 0; }
.section-tight { padding: clamp(48px, 7vw, 96px) 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  background: var(--brand);
  color: #fff !important;
  border: 1px solid var(--brand);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease, transform .1s ease;
}
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn:active { transform: translateY(1px); }

.btn-ghost {
  background: transparent;
  color: var(--brand) !important;
  border: 1px solid var(--brand);
}
.btn-ghost:hover { background: var(--brand); color: #fff !important; }

/* Rule / divider */
.rule {
  border: none;
  height: 1px;
  background: var(--rule);
  margin: var(--space-16) 0;
}
.ornament {
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-4);
  color: var(--gold);
  margin: var(--space-8) 0;
}
.ornament::before, .ornament::after {
  content: ""; flex: 0 1 80px; height: 1px; background: var(--gold); opacity: 0.5;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #C9C1B0;
  padding: var(--space-20) 0 var(--space-8);
  margin-top: var(--space-24);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
}
.site-footer h4 {
  color: #FBF7F0;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.site-footer p, .site-footer li, .site-footer a { color: #C9C1B0; font-size: var(--text-sm); }
.site-footer a { border: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: var(--space-2); }
.footer-brand { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.footer-brand img { height: 56px; }
.footer-brand-text { font-family: var(--serif); font-size: 22px; color: #fff; line-height: 1; }
.footer-brand-text span {
  display: block; font-family: var(--sans); font-size: 9px;
  letter-spacing: 0.24em; text-transform: uppercase; color: #C9C1B0; margin-top: 3px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-6);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4);
  font-size: var(--text-xs);
  color: #8f8875;
}
.footer-credit {
  margin-top: var(--space-3);
  text-align: center;
  font-size: 11px;
  color: #6b6555;
  letter-spacing: 0.01em;
}
.footer-credit a {
  color: #8f8875;
  text-decoration: underline;
  text-decoration-color: rgba(143,136,117,0.35);
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}
.footer-credit a:hover { color: #C9C1B0; text-decoration-color: currentColor; }

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.lead { font-size: var(--text-lg); line-height: 1.55; color: var(--ink-soft); max-width: 60ch; }

/* Fade-in on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
