/* Shared public-site layer, loaded on every page after the Tailwind/daisyUI build.
   Page stylesheets (home.css, features.css, contact.css) load after this and may
   refine it. Palette and type match the redesigned pages. */
@font-face {
  font-family: Ember Plex;
  src: url("/assets/fonts/ibm-plex-sans-latin-wght-normal.woff2")
    format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --site-orange: #ff7700;
  --site-orange-soft: #fff1e3;
  --site-orange-text: #b34f00;
  --site-ink: #1f2022;
  --site-night: #151617;
  --site-muted: #5c5d62;
  --site-line: #e3e3de;
  --site-paper: #f7f6f2;
  --site-nav: 76px;
  --site-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
html {
  font-family:
    Ember Plex,
    Segoe UI,
    Arial,
    sans-serif;
  color: var(--site-ink);
  accent-color: var(--site-orange);
}
::selection {
  background: #ffdfbd;
  color: var(--site-ink);
}
:focus-visible {
  outline: 3px solid var(--site-orange);
  outline-offset: 3px;
}
a {
  text-underline-offset: 4px;
}
:where(h1, h2, h3) {
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* Navbar */
.navbar.site-nav {
  min-height: var(--site-nav);
  padding-inline: clamp(12px, 3vw, 48px);
  border-bottom: 1px solid var(--site-line);
  background: #ffffffeb;
  background-image: none;
  backdrop-filter: saturate(1.4) blur(12px);
}
.site-nav .menu-horizontal a {
  font-weight: 500;
}
.site-nav .navbar-end {
  gap: 10px;
}
.site-nav .navbar-end > * + * {
  margin-left: 0 !important;
}

/* Buttons: pill shape, Ember orange primary with ink text, never darkened */
.btn {
  border-radius: 999px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  transition:
    transform 0.2s var(--site-ease),
    box-shadow 0.2s,
    border-color 0.2s,
    background-color 0.2s;
}
.btn-primary,
.btn-primary:hover,
.btn-primary:focus-visible {
  border-color: var(--site-orange);
  background: var(--site-orange);
  color: #fff;
}
.site-btn-quiet,
.btn-outline {
  border: 1px solid var(--site-line);
  background: #fff;
  color: var(--site-ink);
}
.site-btn-quiet:hover,
.btn-outline:hover {
  border-color: var(--site-ink);
  background: #fff;
  color: var(--site-ink);
}
@media (hover: hover) {
  .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -10px #ff7700b3;
  }
}

/* Form controls */
.input,
.select,
.textarea {
  border-color: var(--site-line);
}
.input:focus,
.select:focus,
.textarea:focus,
.input:focus-within {
  border-color: var(--site-orange);
  outline: 2px solid #ff770040;
  outline-offset: 0;
}

/* Footer */
.site-footer,
.site-footer-legal {
  background: var(--site-night);
  color: #ffffffd9;
}
.site-footer h6 {
  color: #fff;
}
.site-footer-legal p {
  color: #a8a8a2;
  font-size: 14px;
}
.site-footer-legal a {
  color: inherit;
}
.site-footer-legal a:hover {
  color: #fff;
}

@media (max-width: 700px) {
  .site-nav .navbar-start {
    width: auto;
    flex: 1;
  }
  .site-nav .navbar-end {
    width: auto;
    gap: 6px;
  }
  .site-nav .navbar-end .btn {
    min-height: 40px;
    height: 40px;
    padding-inline: 14px;
  }
  .site-nav .navbar-start > a.btn-ghost {
    padding-inline: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}
