/* michaelpitluk.com — on the ZERMELO Design Spec (Brand/ZERMELO Design Spec.md).
   § 5 tokens plus the personal accent pair (Models precedent, 2026-09-03:
   personal domain carries the Loop-to-Flow accent; orange retired here). */

:root {
  --bg: #f5f4f1;
  --card: #ffffff;
  --ink: #161513;
  --body: #232321;
  --muted: #7c7b73;
  --line: #e4e2dd;
  --loop: #4f8cff;
  --flow: #45d39e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--body);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

/* The personal-family signature band (same grammar as Models' progress fill). */
.band {
  height: 2px;
  background: linear-gradient(to right, var(--loop), var(--flow));
}

.wrap {
  max-width: 1080px;
  margin-inline: auto;
  padding: 96px 32px 64px;
}

/* Grid areas so desktop (avatar left, text right) and mobile (heading, avatar,
   lede stacked — Mike's order, 2026-09-04) share one DOM whose source order is
   the mobile reading order. */
.hero {
  display: grid;
  grid-template-columns: 150px 1fr;
  grid-template-areas:
    "avatar heading"
    "avatar lede";
  column-gap: 32px;
  row-gap: 8px;
  align-items: center;
}

.avatar {
  grid-area: avatar;
  display: block;
  width: 150px;
  height: 150px;
  border-radius: 10px;
  object-fit: cover;
}

h1 {
  grid-area: heading;
  align-self: end;
}

.lede {
  grid-area: lede;
  align-self: start;
}

h1 {
  font-size: 48px;
  line-height: 1.03;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--ink);
}

/* Measure 70ch (the spec's BODY cap) rather than the 46ch lede cap — a named
   exception: Mike requires this line to render on exactly two lines beside the
   150px avatar (2026-09-04), and 46ch forces four. 70ch stays inside the
   canonical 45-75 comfort range (spec § 6). */
.lede {
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--muted);
  max-width: 70ch;
}

section {
  margin-top: 64px;
}

.eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.12em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--muted);
}

.grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  min-height: 44px;
  text-decoration: none;
}

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

.tile-title {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 500;
  color: var(--ink);
}

.tile-sub {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.tile-off .tile-title {
  color: var(--muted);
}

.tile-off {
  background: var(--bg);
}

@media (max-width: 640px) {
  .wrap {
    padding: 64px 32px 48px;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "avatar"
      "lede";
    row-gap: 24px;
    align-items: start;
  }

  h1 {
    font-size: 32px;
    line-height: 1.03;
    align-self: auto;
  }

  .lede {
    align-self: auto;
  }
}
