:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #6b7280;
  --line: #ececec;
  --vibe: #4f46e5;
}

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

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

a {
  color: inherit;
}

/* ---------- home ---------- */
.home {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.home-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  text-align: center;
}

.email {
  font-size: clamp(1.25rem, 4.5vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.email:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.menu a {
  color: var(--muted);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.15s ease;
}

.menu a:hover {
  color: var(--fg);
}

/* ---------- tools page ---------- */
.page-header {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 5vw, 3rem) 0.5rem;
}

.email-small {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.email-small:hover {
  color: var(--fg);
}

.page-header h1 {
  margin-top: 1.1rem;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

/* a labeled section (the stack, then the agent tools) */
.group {
  max-width: 1120px;
  margin: 0 auto;
}

.group + .group {
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
}

.group-title {
  padding: 2.25rem clamp(1.25rem, 5vw, 3rem) 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.group-sub {
  padding: 0.4rem clamp(1.25rem, 5vw, 3rem) 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* masonry so cards pack tight with no dead vertical space */
.grid {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.75rem clamp(1.25rem, 5vw, 3rem) 4rem;
  column-count: 3;
  column-gap: 1.1rem;
}

@media (max-width: 900px) {
  .grid {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .grid {
    column-count: 1;
  }
}

.card {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 1.1rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 14px;
  box-shadow:
    0 1px 2px rgba(17, 17, 17, 0.06),
    0 6px 20px rgba(17, 17, 17, 0.09);
}

/* header block, set apart from the tool list by a divider */
.card-head {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.card-head h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cat-desc {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.tools {
  list-style: none;
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.tools li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tool-name {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.tool-desc {
  color: var(--muted);
  font-size: 0.875rem;
}

/* ---------- vibecoders dictionary ---------- */
.vibe-header {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 5vw, 3rem) 0.5rem;
}

.vibe-title {
  margin-top: 1rem;
  font-size: clamp(1.4rem, 4.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.vibe-sub {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.dictionary {
  max-width: 780px;
  margin: 0 auto;
  padding: 1.5rem clamp(1.25rem, 5vw, 3rem) 4rem;
}

.dict-section + .dict-section {
  margin-top: 2.75rem;
}

.dict-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}

.term {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}

.term:last-child {
  border-bottom: none;
}

.term-head {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.term-word {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.term-pron {
  color: var(--muted);
  font-size: 1rem;
  font-style: italic;
}

.def {
  margin-top: 0.9rem;
}

.def-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9aa0aa;
  margin-bottom: 0.2rem;
}

.def-text {
  font-size: 0.95rem;
}

.usage {
  margin-top: 1rem;
}

.usage-text .ex {
  font-style: italic;
  color: var(--muted);
}

.usage-text {
  font-size: 0.92rem;
}
