/* heydade.ai — one page, one family, one accent.
   Tokens follow Dade HQ's theme: cool graphite neutrals, and amber reserved
   for Dade's own presence (here: the dot that appears when a request is in). */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: block;
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: oklch(99% 0.003 250);
  --ink: oklch(24% 0.02 260);
  --ink-2: oklch(48% 0.02 260);
  --grid: oklch(94% 0.006 250);
  --amber: oklch(76% 0.15 70);
  --gutter: clamp(1.25rem, 6vw, 6rem);
  --pad-y: clamp(1.25rem, 3.5vh, 2.5rem);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: oklch(21% 0.012 260);
    --ink: oklch(93% 0.01 250);
    --ink-2: oklch(66% 0.015 255);
    --grid: oklch(24.5% 0.012 260);
    --amber: oklch(80% 0.14 70);
  }
}

:root[data-theme="dark"] {
  --paper: oklch(21% 0.012 260);
  --ink: oklch(93% 0.01 250);
  --ink-2: oklch(66% 0.015 255);
  --grid: oklch(24.5% 0.012 260);
  --amber: oklch(80% 0.14 70);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  padding: var(--pad-y) var(--gutter);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 2rem 2rem;
  color: var(--ink);
  font: 400 1rem/1.5 "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

/* Header */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1;
  color: inherit;
  text-decoration: none;
}

.mark {
  display: block;
  height: 1.125rem;
  width: auto;
}

.mark .d { fill: currentColor; }
.mark .dot { fill: var(--amber); }

.wordmark {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.status {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
}

/* Hero */

main {
  align-self: center;
  padding: 4vh 0 6vh;
}

.hey {
  margin: 0;
  font-size: clamp(3.25rem, 12vw, 12.5rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.035em;
}

.ask {
  margin: 0.3em 0 0;
  max-width: 22ch;
  font-size: clamp(1.625rem, 4.6vw, 4.5rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.typed {
  transition: opacity 0.35s ease;
}

.typed.out {
  opacity: 0;
}

/* The caret is the one moving part. A graphite bar while the request is being
   typed (that's you); an amber dot once it's in (that's Dade). */

.caret {
  display: inline-block;
  width: 0.1em;
  height: 0.84em;
  margin-left: 0.08em;
  border-radius: 0.03em;
  background: var(--ink);
  transform: translateY(0.1em);
  transition:
    width 0.22s ease,
    height 0.22s ease,
    margin 0.22s ease,
    border-radius 0.22s ease,
    background-color 0.22s ease,
    transform 0.22s ease;
}

.caret.dot {
  width: 0.3em;
  height: 0.3em;
  margin-left: 0.2em;
  border-radius: 50%;
  background: var(--amber);
  transform: translateY(-0.14em);
  animation: breathe 2.4s ease-in-out infinite;
}

.ask.idle .caret:not(.dot) {
  animation: blink 1.1s steps(2, jump-none) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes breathe {
  50% { transform: translateY(-0.14em) scale(0.8); opacity: 0.7; }
}

/* About */

.about {
  max-width: 36rem;
}

.about p {
  margin: 0;
  font-size: clamp(1.0625rem, 0.6rem + 1.1vw, 1.3125rem);
  line-height: 1.45;
  text-wrap: pretty;
}

.contact {
  margin-top: 0.75rem !important;
  color: var(--ink-2);
}

.contact a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.18em;
}

.contact a:hover {
  text-decoration-thickness: 0.2em;
}

a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Footer */

.bottom {
  margin-top: clamp(1.25rem, 4vh, 2.5rem);
}

.bottom p {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
}

@media (prefers-reduced-motion: reduce) {
  .caret, .typed {
    transition: none;
    animation: none !important;
  }
}
