/* =================== foundation-base.css =================== */
/* Base reset, typography baseline, form primitives, and shared micro-utilities. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  /* clip (NOT hidden): overflow-x:hidden makes the root a scroll container,
     which silently breaks position:sticky for the header on every page.
     clip contains horizontal overflow without establishing that container. */
  overflow-x: clip;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #f5f2ec;
  color: #1a1714;
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--hc-sans);
  font-size: var(--hc-fs-md);
  line-height: var(--hc-lh-base);
  color: var(--hc-ink);
  background: var(--hc-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overflow-y: visible;
}

body > main {
  flex: 1 0 auto;
}

body > .hc-ftr,
body > footer {
  flex-shrink: 0;
  margin-top: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--hc-serif);
  font-weight: 500;
  line-height: var(--hc-lh-tight);
  letter-spacing: var(--hc-ls-tight);
  color: var(--hc-ink);
}

h1 { font-size: var(--hc-fs-4xl); }
h2 { font-size: var(--hc-fs-3xl); }
h3 { font-size: var(--hc-fs-2xl); }
h4 { font-size: var(--hc-fs-xl); }
h5 { font-size: var(--hc-fs-lg); }

h6 {
  font-size: var(--hc-fs-md);
  font-family: var(--hc-sans);
  text-transform: uppercase;
  letter-spacing: var(--hc-ls-wide);
}

p { line-height: var(--hc-lh-base); }
small { font-size: var(--hc-fs-xs); }

code,
kbd,
samp,
pre {
  font-family: var(--hc-mono);
  font-size: 0.94em;
}

strong,
b { font-weight: 600; }

em,
i { font-style: italic; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--hc-dur-fast) var(--hc-ease);
}

a:hover { color: var(--hc-accent); }

img,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

svg { fill: currentColor; }

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: transparent;
  border: 0;
  cursor: pointer;
}

input,
textarea,
select {
  background: transparent;
  border: 0;
}

textarea { resize: vertical; }

:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--hc-accent);
  outline-offset: 2px;
  border-radius: var(--hc-r-sm);
}

::selection {
  background: var(--hc-gold-soft);
  color: var(--hc-ink);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track { background: transparent; }

::-webkit-scrollbar-thumb {
  background: var(--hc-line-2);
  border-radius: var(--hc-r-pill);
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--hc-line-strong);
  background-clip: padding-box;
  border: 2px solid transparent;
}
