:root {
  --ground: #fbfbfa;
  --ink: #0e0e10;
  --ink-2: #4a4a50;
  --ink-3: #6c6c73;
  --rule: #e4e4e1;
  --edge: #2342e0;
  --ink-hover: #2c2c31;
  --surface: #ffffff;
  --rule-strong: #cfcfcb;
  --sans: "Host Grotesk", ui-sans-serif, system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1200px;
}

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

body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--edge); color: #fff; }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--edge); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- nav ---------- */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
}

.mark svg { width: 22px; height: 22px; flex: none; }

.nav-link {
  font-size: 15px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-link:hover { color: var(--ink); }

/* ---------- definition ---------- */
.entry { padding-top: clamp(64px, 14vh, 152px); }

.headword {
  font-weight: 400;
  font-size: 17px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ink);
}

.headword dfn {
  font-style: normal;
  font-weight: 600;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.headword .say, .headword .pos { color: var(--ink-3); font-size: clamp(17px, 1.8vw, 22px); }
.headword .pos { font-style: italic; }

.senses {
  list-style: none;
  counter-reset: sense;
}

.senses li {
  counter-increment: sense;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}

.senses li::before {
  content: counter(sense);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.5;
  color: var(--edge);
}

.senses p {
  max-width: 60ch;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

.senses em { font-style: italic; color: var(--ink); }

/* ---------- happy path ---------- */
section { padding-top: clamp(96px, 14vh, 160px); }

h2 {
  font-weight: 600;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 16ch;
  text-wrap: balance;
}

.blurb p {
  margin-top: 24px;
  max-width: 52ch;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

.button {
  margin-top: 36px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ground);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}

.button:hover { background: var(--ink-hover); }

.button svg, .tile svg { width: 16px; height: 16px; flex: none; }

/* ---------- products ---------- */
.products { padding-bottom: clamp(96px, 14vh, 160px); }

.products h3 {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-3);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink);
}

.tiles {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 200px;
  padding: 28px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tile:hover {
  border-color: var(--rule-strong);
  box-shadow: 0 2px 4px rgba(14, 14, 16, 0.04), 0 12px 24px -8px rgba(14, 14, 16, 0.1);
}

.tile .name {
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.tile .what { color: var(--ink-2); }

.tile .url {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-3);
  transition: color 0.2s;
}

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

footer { border-top: 1px solid var(--rule); }

footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 8px 24px;
  flex-wrap: wrap;
  padding-top: 28px;
  padding-bottom: 40px;
  font-size: 14px;
  color: var(--ink-3);
}

footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

@media (max-width: 700px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 0; padding: 24px; }
  .senses li { grid-template-columns: 24px 1fr; gap: 0 12px; }
}

@media (max-width: 480px) {
  .nav-link { display: none; }
  .button { font-size: 15px; padding: 0 18px; }
}
