/* hanhdbrown.net — shared styles
   Design system adopted from hanhdbrown.com: dark, high-contrast,
   "age-friendly" (>=18px text, large touch targets), Inter Tight,
   champagne-gold accent. Plain CSS, no build step. */

@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-display: swap;
  font-weight: 400 600;
  src: url('fonts/inter-tight-latin-wght-normal.woff2') format('woff2-variations'),
       url('fonts/inter-tight-latin-wght-normal.woff2') format('woff2');
}

:root {
  /* Age-friendly high contrast palette */
  --bg:            #0B0B0D;
  --bg-soft:       #141417;   /* raised surfaces: inputs, cards */
  --text:          #FFFFFF;
  --text-soft:     #C8C5BE;   /* secondary text */
  --text-mute:     #8A8780;   /* tertiary labels */
  --accent:        #F5D58C;   /* warm champagne */
  --accent-strong: #FFE4A8;
  --line:          rgba(255, 255, 255, 0.18);
  --line-soft:     rgba(255, 255, 255, 0.10);
  --sans:          'Inter Tight', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease:          cubic-bezier(0.22, 0.61, 0.36, 1);
  --max:           760px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Subtle warm glow at center */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 50% at 50% 30%, rgba(245, 213, 140, 0.045) 0%, transparent 70%);
  z-index: 0;
}

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

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 48px);
}

/* ===========================================================================
   Header / nav
   =========================================================================== */
.site-header {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand:hover { color: var(--accent); text-decoration: none; }
.nav a {
  margin-left: 24px;
  color: var(--text-soft);
  font-size: 18px;
}
.nav a:first-child { margin-left: 0; }
.nav a:hover { color: var(--accent); text-decoration: none; }

/* ===========================================================================
   Hero
   =========================================================================== */
.hero {
  text-align: center;
  padding: clamp(64px, 12vh, 132px) 0 clamp(48px, 8vh, 88px);
}

.eyebrow {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  opacity: 0;
  animation: fade 700ms var(--ease) 200ms forwards;
}
.eyebrow::before,
.eyebrow::after {
  content: '';
  width: 32px;
  height: 1.5px;
  background: var(--accent);
  opacity: 0.7;
}

.headline {
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: var(--text);
  margin: 0 auto 28px;
  max-width: 14ch;
  text-wrap: balance;
}
.headline .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.3em);
  animation: rise 900ms var(--ease) forwards;
}
.headline .word:nth-child(1) { animation-delay: 420ms; }
.headline .word:nth-child(2) { animation-delay: 540ms; }
.headline .word:nth-child(3) { animation-delay: 660ms; }
.headline .accent-word { color: var(--accent-strong); font-weight: 600; }

.dek {
  font-size: 22px;
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 42ch;
  margin: 0 auto 40px;
  opacity: 0;
  animation: fade 800ms var(--ease) 900ms forwards;
}

/* Pill button (outline -> fills on hover), matches source contact button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 16px 30px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  transition: all 280ms var(--ease);
  opacity: 0;
  animation: fade 800ms var(--ease) 1200ms forwards;
}
.btn:hover,
.btn:focus-visible {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-2px);
  text-decoration: none;
  outline: none;
}
.btn:focus-visible { box-shadow: 0 0 0 4px rgba(245, 213, 140, 0.3); }

/* Solid variant — primary action (form submit) */
.btn-solid {
  background: var(--accent);
  color: var(--bg);
  animation: none;
  opacity: 1;
}
.btn-solid:hover,
.btn-solid:focus-visible {
  background: var(--accent-strong);
  color: var(--bg);
}

/* ===========================================================================
   Contact form
   =========================================================================== */
.contact {
  border-top: 1px solid var(--line-soft);
  padding: clamp(48px, 8vh, 80px) 0 16px;
}
.contact h2 {
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: -0.02em;
  font-weight: 500;
  margin-bottom: 14px;
}
.contact-intro {
  color: var(--text-soft);
  font-size: 20px;
  max-width: 46ch;
  margin-bottom: 36px;
}
#contact-form label {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 22px 0 8px;
}
#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 18px;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
#contact-form input::placeholder,
#contact-form textarea::placeholder { color: var(--text-mute); }
#contact-form input:focus,
#contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(245, 213, 140, 0.18);
}
#contact-form textarea { resize: vertical; min-height: 140px; }
#contact-form .btn { margin-top: 28px; }

/* Honeypot — visually hidden, kept in the DOM for bots */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status {
  font-size: 18px;
  margin-top: 18px;
  min-height: 1.5em;
  color: var(--text-soft);
}
.form-status.ok  { color: var(--accent-strong); }
.form-status.err { color: #ffb4a8; }

/* ===========================================================================
   Document pages (privacy / terms)
   =========================================================================== */
.doc { padding: clamp(48px, 8vh, 80px) 0 72px; }
.doc h1 {
  font-size: clamp(34px, 5vw, 48px);
  letter-spacing: -0.02em;
  font-weight: 500;
  margin-bottom: 6px;
}
.doc .updated { color: var(--text-mute); font-size: 18px; margin-bottom: 40px; }
.doc h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 44px 0 12px;
}
.doc p, .doc li { color: var(--text-soft); }
.doc ul { padding-left: 24px; }
.doc li { margin: 8px 0; }

/* ===========================================================================
   Footer
   =========================================================================== */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line-soft);
  margin-top: 24px;
  padding: 32px 0;
  color: var(--text-mute);
  font-size: 18px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
}
.site-footer .links a { margin-left: 20px; color: var(--text-soft); }
.site-footer .links a:first-child { margin-left: 0; }
.site-footer .links a:hover { color: var(--accent); }

/* ===========================================================================
   Animations
   =========================================================================== */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise {
  from { opacity: 0; transform: translateY(0.3em); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===========================================================================
   Responsive
   =========================================================================== */
@media (max-width: 540px) {
  .site-header .wrap { min-height: 0; padding-top: 16px; padding-bottom: 16px; }
  .nav a { margin-left: 18px; }
  .eyebrow { letter-spacing: 0.2em; }
  .eyebrow::before, .eyebrow::after { width: 20px; }
  .headline { font-size: clamp(38px, 12vw, 56px); }
  .dek { font-size: 20px; }
  .contact-intro { font-size: 19px; }
  .btn { width: 100%; justify-content: center; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
  .site-footer .links a { margin-left: 0; margin-right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
