/* ============================================================
   Craig Hooper — alternate design (v2)
   Rebuilt from Figma (home/desktop-2 + home/mobile-2)
   ============================================================ */

/* ---- Fonts -------------------------------------------------
   Licensed font from the design. Drop the web (.woff2) files into
   assets/fonts/ with the names below and they load automatically.
   Until then, the fallback grotesk keeps it readable.
------------------------------------------------------------- */
@font-face {
  font-family: "KMR Melange Grotesk";
  src: url("assets/fonts/KMRMelangeGrotesk-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "KMR Melange Grotesk";
  src: url("assets/fonts/KMRMelangeGrotesk-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Parabole";
  src: url("assets/fonts/Parabole-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---- Tokens (from Figma) ---------------------------------- */
:root {
  --bg: #ffffff;
  --ink: #1a1a1a;       /* black/90  */
  --ink-soft: #4d4d4d;  /* black/70  */

  --font: "KMR Melange Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-links: "Parabole", "Helvetica Neue", Arial, sans-serif;

  /* desktop type */
  --h1-size: 48px;
  --h1-line: 48px;
  --h1-track: -0.48px;
  --link-size: 24px;
  --link-line: 30px;
  --link-gap: 20px;
}

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

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 24px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-feature-settings: "salt" 1, "ss08" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- Card ------------------------------------------------- */
.card {
  width: 570px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
}

/* ---- Avatar ----------------------------------------------- */
.avatar {
  width: 48px;
  height: 48px;
  object-fit: cover;
  display: block;
}
/* graceful state if the GIF hasn't been added yet */
.avatar--missing {
  visibility: hidden;
}

/* ---- Copy + links ----------------------------------------- */
.copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}

.headline {
  margin: 0;
  width: 100%;
  font-weight: 700;
  font-size: var(--h1-size);
  line-height: var(--h1-line);
  letter-spacing: var(--h1-track);
  color: var(--ink);
  font-feature-settings: "salt" 1, "ss08" 1;
  word-break: break-word;
}

.links {
  display: flex;
  flex-direction: row;
  gap: var(--link-gap);
  font-family: var(--font-links);
  font-weight: 400;
  font-size: var(--link-size);
  line-height: var(--link-line);
  font-feature-settings: "salt" 1;
  white-space: nowrap;
}
.links a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
}
.links a:hover {
  color: var(--ink);
}
/* desktop only: subtle lift on hover (matches v1's button feel) */
@media (min-width: 601px) {
  .links a:hover {
    transform: translateY(-2px);
  }
}

/* ---- Mobile ----------------------------------------------- */
@media (max-width: 600px) {
  body { padding: 24px 20px; }
  :root {
    --h1-size: 32px;
    --h1-line: 34px;
    --h1-track: -0.32px;
    --link-size: 16px;
    --link-line: 22px;
    --link-gap: 16px;
  }
  .card { width: 100%; }
}

/* ---- Tasteful page-load entrance (remove if unwanted) ----- */
@media (prefers-reduced-motion: no-preference) {
  .avatar,
  .headline,
  .links {
    opacity: 0;
    translate: 0 10px;
    animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }
  .avatar { animation-delay: 0.04s; }
  .headline { animation-delay: 0.12s; }
  .links { animation-delay: 0.22s; }

  @keyframes rise {
    to { opacity: 1; translate: 0 0; }
  }
}
