:root {
  --ink: #fff;
  --ink-70: rgba(255, 255, 255, 0.72);
  --ink-45: rgba(255, 255, 255, 0.46);   /* the quiet gray: labels, kickers. 4.5:1 on black */
  --rule: rgba(255, 255, 255, 0.14);
  --serif: "Libre Baskerville", Baskerville, "Times New Roman", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: #000; }
body {
  margin: 0;
  background: #000;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100svh;
}
p, h1, li { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
a, button { cursor: pointer; }

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 20px 48px;
}
@media (min-width: 640px) { .page { padding: 88px 24px 64px; } }

/* ---------- kicker ---------- */
.top { margin-bottom: 44px; }
.kicker {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-45);
}
@media (min-width: 640px) { .kicker { font-size: 12px; } }

/* ---------- the entry ---------- */
.entry { border-top: 1px solid var(--rule); padding-top: 28px; }
.headword {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(38px, 9vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.pron {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 0 0 6px;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  color: var(--ink-70);
}
.pos { font-family: var(--serif); font-style: italic; color: var(--ink-70); }
.sep { color: var(--ink-45); }
.ipa { letter-spacing: 0.01em; }
.also {
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--ink-45);
}
.speak {
  appearance: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: border-color 200ms ease, transform 200ms ease;
}
.speak svg { width: 20px; height: 20px; }
.speak .horn { fill: currentColor; }
.speak .wave { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; opacity: 0.9; }
.speak:hover, .speak:focus-visible { border-color: var(--ink-70); outline: none; }
.speak:active { transform: scale(0.94); }
.speak.playing .w1 { animation: wave 900ms ease-in-out infinite; }
.speak.playing .w2 { animation: wave 900ms ease-in-out 150ms infinite; }
@keyframes wave { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

.label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-45);
  margin-right: 6px;
}
.origin, .related, .example {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-70);
}
.origin { margin-bottom: 26px; }
.related .label:not(:first-child) { margin-left: 8px; }
.example { margin-top: 12px; }
.example .label { margin-right: 8px; }

.senses {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
}
.senses li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0 6px;
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.6;
}
.senses .num { font-weight: 700; color: var(--ink); }
.senses .num::after { content: ":"; font-weight: 400; color: var(--ink-45); margin-left: 4px; }
.senses .def { color: var(--ink); }
@media (min-width: 640px) {
  .senses li { font-size: 19.5px; }
  .origin, .related, .example { font-size: 16px; }
}

/* ---------- renderings ---------- */
.gallery {
  margin-top: 64px;
  border-top: 1px solid var(--rule);
  padding-top: 44px;
  display: grid;
  gap: 36px;
}
.gallery figure { margin: 0; }
.gallery img {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}
.gallery figcaption {
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ink-45);
}

/* ---------- footer ---------- */
.foot {
  margin-top: 64px;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-45);
}

@media (prefers-reduced-motion: reduce) {
  .speak.playing .w1, .speak.playing .w2 { animation: none; opacity: 1; }
  .speak { transition: none; }
}
