/* ── Huey Holdings — warm, lo-fi family aesthetic ──────────────── */
:root {
  --bg: #fbf4ea;           /* warm cream */
  --bg-elev: #f4ead9;      /* slightly deeper cream */
  --bg-card: #fffaf0;      /* paper-white card */
  --border: #e7d8c0;       /* soft tan border */
  --border-strong: #d6c2a1;
  --fg: #2a1f17;           /* warm near-black */
  --fg-muted: #6a5642;     /* warm brown text */
  --fg-dim: #9b8770;
  --accent: #d97757;       /* terracotta */
  --accent-dim: #b8593c;
  --accent-soft: #f4c8a6;  /* peach */
  --accent-leaf: #7a8f5a;  /* sage */
  --accent-sky: #a8c5d6;   /* dusty blue */
  --max-w: 760px;
  --max-w-wide: 1080px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-soft: 0 8px 24px -16px rgba(60, 35, 20, 0.25);
  --shadow-card: 0 18px 40px -24px rgba(60, 35, 20, 0.3);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(244, 200, 166, 0.35), transparent 38%),
    radial-gradient(circle at 88% 8%, rgba(168, 197, 214, 0.25), transparent 36%),
    radial-gradient(circle at 76% 92%, rgba(122, 143, 90, 0.18), transparent 40%);
  background-attachment: fixed;
}

h1, h2, h3, .page-title, .brand .wordmark {
  font-family: "Fraunces", "Iowan Old Style", "Palatino", Georgia, serif;
  font-weight: 600;
}

a {
  color: var(--accent-dim);
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 89, 60, 0.35);
  transition: border-color 0.15s ease, color 0.15s ease;
}

a:hover,
a:focus {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-wide {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ─────────────────────────────────────────────────────── */
header.site {
  border-bottom: 1px solid var(--border);
  background: rgba(251, 244, 234, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--fg);
  border: none;
}

.brand:hover,
.brand:focus {
  border: none;
  color: var(--accent-dim);
}

.brand img {
  width: 40px;
  height: 40px;
  display: block;
}

.brand .wordmark {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.brand .wordmark .llc {
  color: var(--fg-dim);
  font-weight: 400;
  font-size: 14px;
  margin-left: 6px;
  font-family: "Nunito", sans-serif;
  vertical-align: middle;
}

/* ── Hamburger toggle ───────────────────────────────────────────── */
.nav-toggle {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.nav-toggle:hover {
  border-color: var(--accent);
  background: var(--bg-elev);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.nav-toggle-bar {
  position: relative;
}

.nav-toggle-bar::before {
  position: absolute;
  left: 0;
  top: -6px;
}

.nav-toggle-bar::after {
  position: absolute;
  left: 0;
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ── Primary nav (mobile: collapsible, desktop: inline) ─────────── */
.site-nav {
  overflow: hidden;
  border-top: 1px solid transparent;
}

html.js .site-nav {
  max-height: 0;
  transition: max-height 0.25s ease;
}

html.js .site-nav[data-open="true"] {
  max-height: 360px;
  border-top-color: var(--border);
}

.site-nav-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 6px 24px 18px;
  display: flex;
  flex-direction: column;
}

.site-nav-inner a {
  color: var(--fg-muted);
  font-size: 16px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--border);
}

.site-nav-inner a:last-child {
  border-bottom-color: transparent;
}

.site-nav-inner a:hover,
.site-nav-inner a:focus {
  color: var(--accent);
  border-bottom-color: var(--border);
}

/* ── Desktop nav: inline in header, hide hamburger ──────────────── */
@media (min-width: 760px) {
  .nav-toggle {
    display: none;
  }
  html.js .site-nav,
  .site-nav {
    max-height: none !important;
    border-top: none !important;
    overflow: visible;
  }
  .site-nav {
    border-top: 1px solid var(--border);
  }
  .site-nav-inner {
    flex-direction: row;
    gap: 26px;
    padding: 12px 24px;
    justify-content: center;
  }
  .site-nav-inner a {
    border-bottom: none;
    padding: 6px 0;
    position: relative;
  }
  .site-nav-inner a:hover,
  .site-nav-inner a:focus {
    border-bottom: none;
    color: var(--accent);
  }
  .site-nav-inner a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.2s ease;
    transform-origin: center;
  }
  .site-nav-inner a:hover::after,
  .site-nav-inner a:focus::after {
    transform: scaleX(1);
  }
}

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
  padding: 64px 0 56px;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--accent-dim);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-family: "Nunito", sans-serif;
}

.hero-text h1 {
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: -1px;
  margin: 0 0 18px;
}

.hero-text h1 .squiggle {
  position: relative;
  white-space: nowrap;
}

.hero-text h1 .squiggle::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 8px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12'><path d='M2 6 Q 20 0 40 6 T 80 6 T 120 6 T 160 6 T 198 6' fill='none' stroke='%23d97757' stroke-width='3' stroke-linecap='round'/></svg>") repeat-x left center / auto 100%;
  pointer-events: none;
}

.hero-text .tagline {
  font-size: 19px;
  color: var(--fg-muted);
  margin: 0 0 28px;
  max-width: 30em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Hero photo — Huey the cat ──────────────────────────────────── */
.hero-photo {
  position: relative;
  margin: 0;
}

.hero-photo .blob {
  position: absolute;
  inset: 4% -6% 8% -4%;
  z-index: 0;
  background: radial-gradient(58% 58% at 50% 50%, var(--accent-soft) 0%, rgba(244, 200, 166, 0.55) 45%, transparent 75%);
  filter: blur(8px);
}

.hero-photo .sticker {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--fg-muted);
  box-shadow: var(--shadow-soft);
  font-family: "Nunito", sans-serif;
  letter-spacing: 0.4px;
  z-index: 2;
}

.hero-photo .sticker-1 {
  top: 6%;
  right: 0;
  transform: rotate(7deg);
  color: var(--accent-dim);
}

.hero-photo .sticker-2 {
  bottom: 10%;
  left: -4%;
  transform: rotate(-6deg);
  color: var(--accent-leaf);
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 18px 28px rgba(60, 35, 20, 0.18));
}

.hero-photo figcaption {
  margin-top: 8px;
  text-align: center;
  font-size: 13px;
  color: var(--fg-dim);
  font-style: italic;
}

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--accent);
  background: var(--accent);
  color: #fff7f1;
  font-family: "Nunito", sans-serif;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 0 var(--accent-dim);
  letter-spacing: 0.2px;
}

.btn:hover,
.btn:focus {
  background: var(--accent-dim);
  border-color: var(--accent-dim);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #8a4029;
  color: #fff7f1;
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--accent-dim);
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--fg);
  border-color: var(--border-strong);
  box-shadow: 0 4px 0 var(--border-strong);
}

.btn-ghost:hover,
.btn-ghost:focus {
  background: var(--bg-elev);
  border-color: var(--accent-dim);
  color: var(--fg);
  box-shadow: 0 6px 0 var(--border-strong);
}

/* ── Page heading (sub-pages) ───────────────────────────────────── */
.page-title {
  font-size: 40px;
  line-height: 1.15;
  margin: 48px 0 12px;
  letter-spacing: -0.6px;
}

.page-lede {
  font-size: 18px;
  color: var(--fg-muted);
  margin: 0 0 32px;
  max-width: 36em;
}

/* ── Section ────────────────────────────────────────────────────── */
section {
  margin: 0 0 64px;
}

section h2 {
  font-size: 28px;
  margin: 0 0 16px;
  letter-spacing: -0.3px;
}

section h3 {
  font-size: 18px;
  margin: 24px 0 8px;
  color: var(--fg);
  font-family: "Nunito", sans-serif;
  font-weight: 700;
}

section p {
  margin: 0 0 14px;
  color: var(--fg-muted);
}

section ul {
  padding-left: 22px;
  margin: 0 0 14px;
  color: var(--fg-muted);
}

section ul li {
  margin-bottom: 6px;
}

section ul li::marker {
  color: var(--accent);
}

/* ── About + feature row ────────────────────────────────────────── */
.feature-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  margin: 32px 0 0;
}

.feature-photo {
  margin: 0;
  position: relative;
}

.feature-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transform: rotate(-1.5deg);
  transition: transform 0.3s ease;
}

.feature-photo:hover img {
  transform: rotate(0deg);
}

.feature-photo .tape {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 110px;
  height: 28px;
  background: rgba(244, 200, 166, 0.7);
  border-left: 1px dashed rgba(184, 89, 60, 0.2);
  border-right: 1px dashed rgba(184, 89, 60, 0.2);
  box-shadow: 0 2px 6px rgba(60, 35, 20, 0.1);
  z-index: 2;
}

.values {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 14px;
}

.values li {
  position: relative;
  padding-left: 32px;
  color: var(--fg-muted);
}

.values li::before {
  content: "✦";
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--accent);
  font-size: 16px;
}

/* ── Apps grid ──────────────────────────────────────────────────── */
.apps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.app-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--fg);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.app-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft), var(--accent-sky));
}

.app-card:hover,
.app-card:focus {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.app-card .name {
  font-family: "Fraunces", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -0.2px;
}

.app-card .desc {
  font-size: 15px;
  color: var(--fg-muted);
  margin: 0 0 14px;
  line-height: 1.55;
}

.app-card .badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--accent-dim);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-family: "Nunito", sans-serif;
}

.app-card .badge.live {
  background: rgba(122, 143, 90, 0.18);
  color: var(--accent-leaf);
}

/* ── FAQ ────────────────────────────────────────────────────────── */
.faq {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  transition: border-color 0.15s ease;
}

.faq details[open] {
  border-color: var(--accent);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--fg);
  font-family: "Nunito", sans-serif;
  list-style: none;
  position: relative;
  padding-right: 28px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--accent);
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details > p {
  margin: 10px 0 0;
}

/* ── Footer ─────────────────────────────────────────────────────── */
footer.site {
  border-top: 1px solid var(--border);
  margin-top: 24px;
  font-size: 14px;
  color: var(--fg-dim);
  background: var(--bg-elev);
}

.footer-inner {
  padding: 32px 0 40px;
  max-width: var(--max-w-wide);
}

footer.site .links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

footer.site .links a {
  color: var(--fg-muted);
  border-bottom: none;
}

footer.site .links a:hover {
  color: var(--accent);
}

footer.site .copy {
  margin: 0;
}

/* ── Last-updated stamp ─────────────────────────────────────────── */
.updated {
  font-size: 13px;
  color: var(--fg-dim);
  margin: -16px 0 32px;
  font-style: italic;
}

/* ── Tablet / stacked hero ──────────────────────────────────────── */
@media (max-width: 820px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-photo {
    order: -1;
    max-width: 360px;
    margin: 0 auto;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-photo {
    max-width: 360px;
    margin: 0 auto;
  }
}

/* ── Small screens ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding: 36px 0 44px; }
  .hero-text h1 { font-size: 36px; letter-spacing: -0.6px; }
  .hero-text .tagline { font-size: 17px; }
  .page-title { font-size: 30px; margin-top: 32px; }
  .page-lede { font-size: 16px; }
  section h2 { font-size: 24px; }
  .header-inner { padding: 14px 0; }
  .brand img { width: 36px; height: 36px; }
  .brand .wordmark { font-size: 19px; }
  .app-card { padding: 20px; }
  .hero-photo .sticker { font-size: 11px; padding: 3px 9px; }
}

/* ── Reduced motion ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .feature-photo img {
    transform: none;
  }
}
