/* Heald shell — warm ivory, sage, dusty blue, pale teal, lavender */

:root {
  --hd-bg: #f5f0e8;
  --hd-border: rgba(61, 56, 48, 0.1);
  --hd-text: #3d3830;
  --hd-text-secondary: rgba(61, 56, 48, 0.72);
  --hd-text-tertiary: rgba(61, 56, 48, 0.5);
  --hd-accent: #6b8f71;
  --hd-accent-mist: #8ec4c0;
  --hd-accent-deep: #7a9eb8;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hd-container: min(96rem, calc(100vw - 2rem));
  --hd-easing: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

html[data-theme="dark"] {
  --hd-bg: #2a2e2c;
  --hd-border: rgba(245, 240, 232, 0.08);
  --hd-text: #f5f0e8;
  --hd-text-secondary: rgba(245, 240, 232, 0.72);
  --hd-text-tertiary: rgba(245, 240, 232, 0.5);
  --hd-accent: #8ec4c0;
  --hd-accent-mist: #6b8f71;
  color-scheme: dark;
}

html, body.hd-site {
  transition: background-color 0.35s var(--hd-easing), color 0.35s var(--hd-easing);
}

body.hd-site {
  font-family: var(--font-sans) !important;
  letter-spacing: -0.011em;
  line-height: 1.5;
  background-color: var(--hd-bg) !important;
  color: var(--hd-text) !important;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--hd-accent);
  color: #f5f0e8;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.hd-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--hd-easing), border-color 0.4s var(--hd-easing);
}
.hd-header.is-scrolled {
  background: color-mix(in srgb, var(--hd-bg) 92%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--hd-border);
}
.hd-header__inner {
  max-width: var(--hd-container);
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
@media (min-width: 640px) { .hd-header__inner { height: 5rem; } }

.hd-brand {
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--hd-text);
  text-decoration: none;
}
.hd-brand:hover { color: var(--hd-accent); }

.hd-nav-desktop {
  display: none;
  gap: 1.75rem;
  align-items: center;
}
@media (min-width: 768px) { .hd-nav-desktop { display: flex; } }
.hd-nav-desktop a {
  font-size: 0.875rem;
  color: var(--hd-text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.hd-nav-desktop a:hover,
.hd-nav-desktop a.is-active { color: var(--hd-text); }

.hd-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hd-theme-btn {
  border: 1px solid var(--hd-border);
  background: transparent;
  color: var(--hd-text-secondary);
  border-radius: 9999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  cursor: pointer;
}
.hd-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--hd-border);
  border-radius: 0.5rem;
  background: transparent;
  color: var(--hd-text);
  cursor: pointer;
}
@media (min-width: 768px) { .hd-menu-btn { display: none; } }
.hd-menu-btn svg { width: 1.25rem; height: 1.25rem; }

.hd-mobile-nav {
  display: none;
  position: fixed;
  inset: 4rem 0 0 0;
  z-index: 55;
  background: color-mix(in srgb, var(--hd-bg) 98%, transparent);
  backdrop-filter: blur(12px);
  overflow-y: auto;
}
.hd-mobile-nav.is-open { display: block; }
@media (min-width: 768px) { .hd-mobile-nav { display: none !important; } }
.hd-mobile-nav__inner {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.hd-mobile-nav__inner a {
  font-size: 1rem;
  color: var(--hd-text);
  text-decoration: none;
  padding: 0.5rem 0;
}
.hd-mobile-nav__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hd-text-tertiary);
  margin-top: 0.5rem;
}
.hd-btn-mini {
  display: inline-flex;
  margin-top: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  background: var(--hd-accent);
  color: #f5f0e8 !important;
  font-weight: 500;
  font-size: 0.875rem;
  text-align: center;
}

.hd-accent { color: var(--hd-accent); }

.hd-footer {
  margin-top: 4rem;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--hd-border);
  background: color-mix(in srgb, var(--hd-bg) 96%, var(--hd-accent) 4%);
}
.hd-footer__inner {
  max-width: var(--hd-container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.hd-footer__brand {
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--hd-text);
  text-decoration: none;
}
.hd-footer__desc {
  margin-top: 0.75rem;
  max-width: 36rem;
  font-size: 0.9375rem;
  color: var(--hd-text-secondary);
  line-height: 1.6;
}
.hd-footer__cols {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
}
.hd-footer__cols h3 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hd-text-tertiary);
  margin: 0 0 0.75rem;
}
.hd-footer__cols ul { list-style: none; margin: 0; padding: 0; }
.hd-footer__cols li { margin-bottom: 0.4rem; }
.hd-footer__cols a {
  font-size: 0.875rem;
  color: var(--hd-text-secondary);
  text-decoration: none;
}
.hd-footer__cols a:hover { color: var(--hd-accent); }
.hd-footer__base {
  max-width: var(--hd-container);
  margin: 2rem auto 0;
  padding: 1.5rem 1.5rem 0;
  border-top: 1px solid var(--hd-border);
  font-size: 0.8125rem;
  color: var(--hd-text-tertiary);
  text-align: center;
}
.hd-footer__base a { color: var(--hd-text-secondary); }

.hd-cookie {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 28rem;
  margin-inline: auto;
  z-index: 80;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--hd-border);
  background: color-mix(in srgb, var(--hd-bg) 95%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(61, 56, 48, 0.12);
}
.hd-cookie__text { font-size: 0.8125rem; color: var(--hd-text-secondary); margin: 0 0 0.75rem; }
.hd-cookie__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.hd-cookie__btn {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: none;
  background: var(--hd-accent);
  color: #f5f0e8;
  font-size: 0.8125rem;
  cursor: pointer;
}
.hd-cookie__btn--ghost {
  background: transparent;
  border: 1px solid var(--hd-border);
  color: var(--hd-text);
}
