/* ==========================================================================
   peaty.dev root index — a hub page for two products.
   Each card borrows its own product's accent so the hand-off reads as one brand.
   ========================================================================== */

:root {
  --surface: #F7F6F3;
  --card: #FFFFFF;
  --ink: #17161A;
  --muted: #5C5964;
  --line: rgba(23, 22, 26, .10);

  --filota: #B02E6B;
  --filota-soft: #FBE8F0;
  --outodo: #1E40AF;
  --outodo-soft: #E8ECFA;

  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --shell: 900px;
  --curve: cubic-bezier(0.32, 0.72, 0, 1);
}

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

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(48px, 12vh, 120px) clamp(20px, 5vw, 32px) 48px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Masthead ────────────────────────────────────────────────────────────── */

.masthead { margin-bottom: clamp(36px, 7vw, 64px); }

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.wordmark svg { display: block; }

.tagline {
  margin: 20px 0 0;
  max-width: 30em;
  font-size: clamp(20px, 3.4vw, 28px);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}

/* ── Cards ───────────────────────────────────────────────────────────────── */

.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color .25s var(--curve), transform .25s var(--curve);
}

.card:hover { transform: translateY(-2px); }
.card--filota:hover { border-color: var(--filota); }
.card--outodo:hover { border-color: var(--outodo); }

.card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px;
}

.card__kicker {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}

.card--filota .card__kicker { color: var(--filota); background: var(--filota-soft); }
.card--outodo .card__kicker { color: var(--outodo); background: var(--outodo-soft); }

.card__title {
  margin: 18px 0 0;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.card__body {
  margin: 10px 0 24px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.card__cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
}

.card--filota .card__cta { color: var(--filota); }
.card--outodo .card__cta { color: var(--outodo); }

.card__arrow { transition: transform .25s var(--curve); }
.card:hover .card__arrow { transform: translateX(4px); }

/* ── Foot ────────────────────────────────────────────────────────────────── */

.foot {
  margin-top: auto;
  padding-top: 56px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.foot a:hover { color: var(--ink); }

/* ── Narrow ──────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .card__link { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .card__arrow { transition: none; }
  .card:hover { transform: none; }
}
