/* Billie brand foundation for hibillie.com pages.
   Token values mirror `.billie-desk-theme` in app/client/src/styles.css
   (the site can't import the app stylesheet — it deploys separately with no
   build step). `npm run check:design-tokens` fails the build if these drift.
   Page-specific layout stays in each page's own <style>. */

:root {
  --cream: #fdfaf3;
  --paper: #fffef9;
  --ink: #1b1916;
  --muted: #686159;
  --pink: #f06fa7;
  --pink-soft: #f9c5dc;
  --pink-text: #9b2d62;
  --cobalt: #0055a4;
  --chartreuse: #dcf4a2;
  --teal: #0c8a68;
  --teal-text: #087257;
  --rule: rgba(27, 25, 22, 0.16);
  --serif: "Young Serif", Georgia, serif;
  --sans: "Karla", Arial, sans-serif;
  --hand: "Caveat", cursive;
  --mono: "Courier Prime", monospace;
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
button, input { font: inherit; }
::selection { background: var(--pink-soft); color: var(--ink); }

/* Ink, not pink: same WCAG 1.4.11 reasoning as the app — pink is ~2.7:1 on
   cream. Pink stays for selection, shadows, and underlines. */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.shell {
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
}

.nav {
  position: relative;
  z-index: 10;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
  text-decoration: none;
  letter-spacing: -0.02em;
  position: relative;
}
.wordmark::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 6px;
  left: 1px;
  bottom: -9px;
  background: var(--pink);
  border-radius: 70% 35% 60% 45%;
  transform: rotate(-2deg);
}
.nav-cta {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* The canonical Billie CTA: ink fill, square corners, pink hard shadow at
   rest (3px) growing on hover (4px) — matching the app's w-btn--primary
   (--shadow-accent / --shadow-accent-lg). */
.button {
  min-height: 52px;
  padding: 13px 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  box-shadow: 3px 3px 0 var(--pink);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.button:hover, .button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 4px 4px 0 var(--pink);
}
.button:active {
  transform: translateY(1px);
}

@media (max-width: 620px) {
  body { font-size: 17px; }
  .shell { width: min(calc(100% - 32px), var(--content)); }
  .nav { height: 72px; }
  .nav-cta { font-size: 15px; }
  .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
