:root {
  --bg: #fff6ea;
  --surface: #ffffff;
  --ink: #1d1a2f;
  --muted: #6b6580;
  --line: #1d1a2f;
  --shadow: #1d1a2f;
  --tomato: #ff5a36;
  --sun: #ffc21a;
  --mint: #2ec4a6;
  --grape: #7b5cff;
  --sky: #3aa0ff;
  --pink: #ff6fb5;
  --radius: 18px;
  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16131f;
    --surface: #221e30;
    --ink: #f6f1ff;
    --muted: #a59fb8;
    --line: #f6f1ff;
    --shadow: #000000;
  }
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  min-height: 100vh;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 10%, transparent) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
}

a { color: inherit; }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 16px 64px;
}

/* ---------- Header ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 36px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--sun);
  color: #1d1a2f;
  border: 2.5px solid var(--line);
  box-shadow: 3px 3px 0 var(--shadow);
  transform: rotate(-6deg);
  font-size: 20px;
}

.back {
  font-weight: 700;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  border: 2.5px solid var(--line);
  background: var(--surface);
  box-shadow: 3px 3px 0 var(--shadow);
  font-size: 15px;
}

.back:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--shadow); }

/* ---------- Hero ---------- */

.hero h1 {
  font-size: clamp(40px, 9vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 14px;
  font-weight: 800;
}

.hero h1 .squiggle {
  background: linear-gradient(transparent 62%, var(--pink) 62%, var(--pink) 90%, transparent 90%);
  padding: 0 4px;
}

.hero p {
  color: var(--muted);
  font-size: 19px;
  max-width: 520px;
  margin: 0 0 40px;
}

/* ---------- Tool grid ---------- */

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

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  min-height: 210px;
  border-radius: var(--radius);
  border: 2.5px solid var(--line);
  background: var(--surface);
  box-shadow: 6px 6px 0 var(--shadow);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}

a.card:hover {
  transform: translate(-3px, -3px) rotate(-0.6deg);
  box-shadow: 9px 9px 0 var(--shadow);
}

.card .emoji {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  font-size: 32px;
  border-radius: 16px;
  border: 2.5px solid var(--line);
  background: var(--c, var(--sun));
}

.card h2 {
  margin: 6px 0 0;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.card p { margin: 0; color: var(--muted); }

.card .go {
  margin-top: auto;
  font-weight: 800;
}

.card.soon {
  border-style: dashed;
  box-shadow: none;
  background: transparent;
  color: var(--muted);
  justify-content: center;
  align-items: center;
  text-align: center;
}

.tag {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--mint);
  color: #1d1a2f;
}

footer {
  margin-top: 64px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* ---------- Buttons & chips ---------- */

.btn {
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  border: 2.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 18px;
  box-shadow: 3px 3px 0 var(--shadow);
  transition: transform .1s ease, box-shadow .1s ease;
}

.btn:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--shadow); }
.btn:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.chip {
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  background: transparent;
  color: var(--ink);
}

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

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
