:root {
  --bg: #ffffff;
  --surface: #fafafa;
  --surface-strong: #ffffff;
  --ink: #171717;
  --muted: #737373;
  --line: rgba(23, 23, 23, 0.1);
  --line-strong: rgba(23, 23, 23, 0.16);
  --accent: #1d4ed8;
  --accent-soft: rgba(29, 78, 216, 0.08);
  --shadow: 0 1px 2px rgba(23, 23, 23, 0.04);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

p,
li,
blockquote {
  font-size: 1rem;
}

h1,
h2,
.card-label,
.section-label,
.hero-note,
.part-of-speech {
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.page,
.footer {
  width: min(100% - 3rem, 56rem);
  margin: 0 auto;
}

.page {
  padding: 5rem 0 1.5rem;
}

.hero {
  padding: 0 0 2.5rem;
}

.section-label,
.card-label {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 10ch;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(5rem, 3.9rem + 4.8vw, 8.5rem);
  line-height: 0.88;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.pronunciation {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: clamp(1.6rem, 1.35rem + 0.8vw, 2.2rem);
  font-style: italic;
}

.part-of-speech {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 0.92rem + 0.2vw, 1.2rem);
  font-style: italic;
}

.hero-rule,
.footer-rule {
  margin: 1.4rem 0 1.5rem;
  border: 0;
  border-top: 1px solid var(--line);
}

.hero-definitions {
  margin: 0;
  margin-bottom: 2.5rem;
  padding-left: 2.5rem;
}

.hero-definitions li {
  font-size: clamp(1.6rem, 1.25rem + 1vw, 2.05rem);
  line-height: 1.45;
}

.hero-definitions li + li {
  margin-top: 1.7rem;
}

.lede {
  max-width: 42rem;
  margin: 2rem 0 0;
  margin-inline: auto;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.65;
  text-align: center;
}

.hero-note {
  display: block;
  max-width: 38rem;
  margin-top: 0.85rem;
  margin-inline: auto;
  padding: 0.9rem 1.1rem;
  border-radius: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-align: center;
  font-size: clamp(1.05rem, 0.94rem + 0.45vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-note em {
  font-style: italic;
}

.cta {
  max-width: 42rem;
  margin: 0.9rem auto 0;
  text-align: center;
  border-color: rgba(29, 78, 216, 0.2);
  background:
    linear-gradient(180deg, rgba(29, 78, 216, 0.08), rgba(29, 78, 216, 0.04)),
    var(--surface-strong);
  box-shadow:
    0 10px 30px rgba(29, 78, 216, 0.08),
    var(--shadow);
}

.cta h2 {
  max-width: none;
  font-size: clamp(1.95rem, 1.7rem + 0.9vw, 2.5rem);
}

.cta-copy {
  max-width: 34rem;
  margin: 0.9rem auto 0;
  color: rgba(23, 23, 23, 0.78);
  font-size: 1.04rem;
}

.cta-link {
  display: inline-block;
  margin-top: 1.1rem;
  padding: 0.8rem 1.15rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(29, 78, 216, 0.22);
  background: #1d4ed8;
  color: #ffffff;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.18);
}

.cta-link:hover {
  background: #1742b8;
}

.panel {
  margin-top: 1rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.panel h2 {
  margin: 0;
  font-size: clamp(1.7rem, 1.45rem + 0.8vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.panel h2 span {
  color: var(--muted);
  font-size: 0.7em;
  font-weight: 400;
}

.panel p:last-child,
.panel ul:last-child,
.panel ol:last-child {
  margin-bottom: 0;
}

.definition-copy {
  max-width: 42rem;
  margin-top: 1rem;
}

.reasons ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--ink);
}

.reasons li + li {
  margin-top: 0.45rem;
}

.examples-header {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: end;
}

.comparison-note {
  max-width: 14rem;
  margin: 0;
  color: var(--muted);
  font-style: italic;
  font-size: 0.95rem;
}

.comparison-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.25rem;
}

.example-card {
  min-height: 100%;
  padding: 1.15rem;
  border-radius: 0.7rem;
  border: 1px solid var(--line);
  box-shadow: none;
}

.sloppy {
  background: #fcfcfc;
}

.better {
  background: var(--accent-soft);
}

.message-block p,
.message-block blockquote {
  margin: 0;
}

.message-block p + p,
.message-block blockquote + p,
.message-block p + blockquote {
  margin-top: 0.9rem;
}

blockquote {
  margin-inline: 0;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
  color: var(--ink);
}

.rulebook ol {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: rules;
}

.rulebook li {
  padding: 1rem 1.1rem;
  border-radius: 0.65rem;
  background: var(--surface);
  border: 1px solid var(--line);
  counter-increment: rules;
}

.rulebook li::before {
  content: counter(rules) ". ";
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.88rem;
}

.rulebook-note {
  margin-top: 1rem;
  color: var(--muted);
}

.closing p {
  max-width: 44rem;
  margin-top: 1rem;
}

.footer {
  padding: 0 0 3rem;
  color: var(--muted);
}

.footer-brand {
  display: flex;
  gap: 1.5rem;
  align-items: end;
  justify-content: space-between;
}

.footer-copy {
  min-width: 0;
}

.footer p {
  margin: 0.15rem 0;
}

.footer-branding {
  flex-shrink: 0;
  text-align: right;
}

.footer-brand-label {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  opacity: 0.88;
  transition: opacity 120ms ease;
}

.footer-logo-link:hover {
  opacity: 1;
}

.footer-logo {
  display: block;
  width: 164px;
  height: auto;
}

@media (max-width: 760px) {
  .page {
    padding-top: 2.75rem;
  }

  .panel {
    padding: 1.15rem;
  }

  .examples-header,
  .comparison-grid,
  .rulebook ol {
    grid-template-columns: 1fr;
    display: grid;
  }

  .comparison-note {
    max-width: none;
  }

  .footer-brand {
    flex-direction: column;
    align-items: start;
  }

  .footer-branding {
    text-align: left;
  }

  h1 {
    font-size: clamp(4rem, 2.8rem + 8vw, 5.2rem);
  }

  .pronunciation {
    font-size: 1.25rem;
  }

  .part-of-speech {
    font-size: 1rem;
  }

  .hero-definitions {
    padding-left: 1.6rem;
  }

  .hero-definitions li {
    font-size: 1.18rem;
  }
}
