/* Change the look of the whole landing page from these tokens. */
:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --text: #1c1b19;
  --muted: #6b675f;
  --line: #e4e0d6;
  --accent: #e8590c;
  --tile-l: 92%;
  --tile-c: 45%;
  --radius: 18px;
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141412;
    --surface: #1d1d1a;
    --text: #f1eee7;
    --muted: #9c978c;
    --line: #2e2d29;
    --accent: #ff8a3d;
    --tile-l: 26%;
    --tile-c: 40%;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.hero, main, footer {
  width: min(1100px, 100% - 32px);
  margin-inline: auto;
}

.hero { padding: clamp(48px, 10vw, 120px) 0 32px; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 11vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.dot { color: var(--accent); }

.lede {
  max-width: 34ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.count { margin: 0; color: var(--muted); font-size: 0.9rem; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.chip[aria-pressed="true"] {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  padding-bottom: 64px;
}

.tile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tile:hover, .tile:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -12px hsl(var(--hue) 60% 40% / 0.45);
  outline: none;
}

.tile[hidden] { display: none; }

.tile-icon {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background: hsl(var(--hue) var(--tile-c) var(--tile-l));
  font-size: 3.5rem;
}

.tile-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 18px;
}

.tile-title { font-weight: 700; font-size: 1.1rem; }

.tile-desc { color: var(--muted); font-size: 0.95rem; }

.tile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.tile-tags li {
  padding: 2px 10px;
  border-radius: 999px;
  background: hsl(var(--hue) var(--tile-c) var(--tile-l));
  font-size: 0.75rem;
}

.empty { color: var(--muted); }

footer {
  padding: 24px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
