/* ============================================================
   Whispyr CRM — whispyrcrm.com landing
   Brand: cream / tan / charcoal (per whispyr-crm marketing rule)
   Type: Kamerik 105 (the Whispyr brand sans), self-hosted
   ============================================================ */

@font-face {
  font-family: "Kamerik 105";
  src: url("/fonts/Kamerik105-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Kamerik 105";
  src: url("/fonts/Kamerik105-Book.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Kamerik 105";
  src: url("/fonts/Kamerik105-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #faf8f5;
  --tan: #f5f0e8;
  --charcoal: #1a1a1a;
  --slate: #4a4a4a;
  --muted: #6b6b6b;
  --accent: #8b5cf6; /* brand accent — used once, never as a surface */

  --ink: var(--charcoal);
  --line: color-mix(in oklab, var(--charcoal) 14%, transparent);
  --line-strong: color-mix(in oklab, var(--charcoal) 22%, transparent);

  --font: "Kamerik 105", ui-sans-serif, system-ui, sans-serif;

  --page-pad: clamp(1.25rem, 4vw, 4rem);
  --shell: clamp(1rem, 2.5vw, 2.5rem); /* inset of the framed border */

  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color-scheme: light;
}

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

html {
  background: var(--cream);
}

body {
  margin: 0;
  min-height: 100dvh;
  padding: var(--shell); /* the inset gap — NOT a margin on .frame, so it doesn't add to total height */
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.005em;
}

/* The framed page — an editorial inset border, the page's one structural device.
   flex: 1 makes it fill exactly the viewport minus the inset, and grow (scroll)
   only when its content genuinely needs more than one screen. */
.frame {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: clamp(1.25rem, 3.5vw, 3rem) var(--page-pad) clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(1.5rem, 3.5vh, 2.75rem);
}

/* ---------- Masthead ---------- */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}
.brand__mark {
  display: block;
  height: 1.6rem;
  width: auto;
}
.brand__word {
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

/* ---------- Hero ---------- */
.hero {
  align-self: center;
  max-width: min(38rem, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 clamp(1.1rem, 2.5vh, 1.75rem);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--slate);
}
.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.headline {
  margin: 0;
  font-weight: 300;
  font-size: clamp(2rem, 4.4vw, 3.15rem);
  line-height: 1.07;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lede {
  margin: clamp(1.1rem, 2.6vh, 1.6rem) 0 0;
  max-width: 42ch;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.6;
  color: var(--slate);
}
.lede__em {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ---------- Actions ---------- */
.actions {
  margin-top: clamp(1.75rem, 4vh, 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1.75rem, 4vh, 2.5rem);
}

.btn {
  --arrow-shift: 0px;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  border-radius: 999px;
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease;
}
.btn__arrow {
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translateX(var(--arrow-shift));
}
.btn:hover .btn__arrow,
.btn:focus-visible .btn__arrow {
  --arrow-shift: 4px;
}

.btn--primary {
  padding: 1.05rem 1.6rem;
  min-height: 44px;
  background: var(--charcoal);
  color: var(--cream);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  transform: translateY(-2px);
  background: #000;
}

.team {
  display: inline-grid;
  gap: 0.55rem;
  justify-items: start;
}
.team__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.btn--ghost {
  padding: 0.8rem 1.25rem;
  min-height: 44px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--charcoal);
  background: var(--tan);
}
.team__addr {
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* ---------- Focus ---------- */
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Entrance (one orchestrated load) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .eyebrow,
  .headline,
  .lede,
  .actions,
  .masthead,
  .footer {
    animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .masthead {
    animation-delay: 0.02s;
  }
  .eyebrow {
    animation-delay: 0.08s;
  }
  .headline {
    animation-delay: 0.16s;
  }
  .lede {
    animation-delay: 0.28s;
  }
  .actions {
    animation-delay: 0.4s;
  }
  .footer {
    animation-delay: 0.5s;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
  :root {
    --shell: 0.75rem;
  }
  .frame {
    gap: clamp(2rem, 8vh, 3rem);
  }
  .actions {
    align-items: stretch;
    flex-direction: column;
    gap: 1.75rem;
  }
  .btn--primary {
    justify-content: center;
  }
  .btn--ghost {
    justify-content: center;
  }
  .team {
    justify-items: stretch;
    text-align: center;
  }
}

/* Very small height (landscape phones): relax the vertical centering */
@media (max-height: 560px) {
  .frame {
    gap: 2rem;
  }
  .hero {
    align-self: start;
  }
}
