@font-face {
  font-family: "Lettetria";
  src: url("assets/fonts/Lettetria.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Lettetria Black";
  src: url("assets/fonts/Lettetria-Black.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  --gb-passion-red: #b61f34;
  --gb-white: #ffffff;
  --gb-black: #000000;
  --gb-coral: #fe3935;
  --gb-pink: #ef1957;
  --gb-rose-bright: #f45e89;
  --gb-peach: #f57e7e;
  --gb-red-soft: #8d1926;
  --gb-red-dark: #590318;
  --gb-fuchsia: #971f51;
  --gb-gold: #f9cb9c;
  --gb-black-soft-1: #575757;
  --gb-black-soft-2: #878787;
  --gb-black-soft-3: #b2b2b2;
  --gb-black-soft-4: #dadada;
  --gb-ui-gray: #9e9e9e;
  --gb-background-light: #f2f2f2;
  --red: var(--gb-passion-red);
  --red-dark: var(--gb-red-soft);
  --ink: var(--gb-black);
  --muted: var(--gb-black-soft-1);
  --line: var(--gb-black-soft-4);
  --soft: var(--gb-background-light);
  --white: var(--gb-white);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Lettetria", Arial, Helvetica, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

@keyframes gentle-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.motion-ready [data-reveal] {
  opacity: 0;
}

.motion-ready [data-reveal].is-visible {
  animation: gentle-fade-in 1200ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--reveal-delay, 0ms);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.header-inner,
.hero-inner,
.content-shell,
.footer-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  min-height: 84px;
  align-items: center;
}

.brand img {
  display: block;
  width: 152px;
  height: auto;
}

.header-label {
  margin-left: 26px;
  padding-left: 26px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.header-label:hover {
  color: var(--red);
}

.back-link {
  margin-left: auto;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover {
  color: var(--red);
}

.hero {
  background: var(--red);
  color: var(--white);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 78px 0 84px;
}

.eyebrow {
  margin: 0 0 18px;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  max-width: 800px;
  margin: 0;
  font-family: "Lettetria Black", "Lettetria", Arial, Helvetica, sans-serif;
  font-size: clamp(52px, 8vw, 94px);
  font-weight: 900;
  line-height: 0.94;
  text-transform: uppercase;
}

h2 {
  font-family: "Lettetria Black", "Lettetria", Arial, Helvetica, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
}

.intro {
  max-width: 670px;
  margin: 30px 0 36px;
  color: inherit;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.search {
  position: relative;
  display: block;
  width: min(700px, 100%);
}

.search input {
  width: 100%;
  height: 68px;
  padding: 0 62px 0 62px;
  border: 0;
  border-radius: 4px;
  outline: 0;
  background: var(--white);
  color: var(--ink);
  font-size: 18px;
  box-shadow: none;
}

.search input:focus {
  outline: 3px solid var(--gb-pink);
  outline-offset: 3px;
}

.search input::-webkit-search-cancel-button {
  display: none;
}

.search-icon {
  position: absolute;
  z-index: 1;
  top: 25px;
  left: 24px;
  width: 20px;
  height: 20px;
}

.clear-search {
  position: absolute;
  top: 17px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.clear-search img {
  width: 18px;
  height: 18px;
}

.content-shell {
  padding: 56px 0 96px;
}

.filters {
  position: relative;
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.category-filter button,
.result-bar button,
.empty-state button {
  border: 0;
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
}

.category-filter button {
  min-height: 44px;
  padding: 0 18px;
  background: var(--soft);
}

.category-filter button:hover,
.category-filter button.active {
  background: var(--red);
  color: var(--white);
}

.category-filter button:hover {
  background: var(--gb-pink);
}

.alphabet {
  position: sticky;
  z-index: 15;
  top: 84px;
  display: flex;
  overflow-x: auto;
  gap: 2px;
  padding: 10px 0 12px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  scrollbar-width: thin;
}

.alphabet button {
  flex: 1 0 38px;
  aspect-ratio: 1;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
}

.alphabet button:hover,
.alphabet button.active {
  background: var(--red);
  color: var(--white);
}

.alphabet button:hover {
  background: var(--gb-pink);
}

.alphabet button:disabled {
  color: var(--gb-black-soft-3);
  cursor: default;
}

.alphabet button:disabled:hover {
  background: transparent;
}

.result-bar {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
}

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

.result-bar strong {
  color: var(--ink);
}

.result-bar button {
  padding: 9px 12px;
  border: 0;
  color: var(--red);
}

.groups {
  display: grid;
  gap: 60px;
}

.letter-group {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 36px;
}

.letter-heading {
  position: sticky;
  top: 166px;
  align-self: start;
  color: var(--red);
  font-size: 76px;
  font-weight: 700;
  line-height: 0.9;
}

.entry {
  border-top: 1px solid var(--line);
}

.entry:last-child {
  border-bottom: 1px solid var(--line);
}

.entry-heading {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 4px 8px;
}

.entry h2 {
  margin: 0;
}

.entry h2 a {
  color: var(--ink);
  font-size: clamp(19px, 2.2vw, 25px);
  font-weight: 900;
  text-decoration: none;
}

.entry h2 a:hover {
  color: var(--red);
}

.entry-more {
  flex: 0 0 auto;
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.entry-more:hover {
  color: var(--gb-pink);
}

.entry h2 a:hover {
  color: var(--red);
}

.definition {
  max-width: 860px;
  padding: 2px 64px 28px 4px;
}

.definition p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  white-space: pre-line;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.tags span {
  padding: 5px 8px;
  background: var(--soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.empty-state {
  padding: 80px 24px;
  background: var(--soft);
  text-align: center;
}

.empty-state > img {
  width: 54px;
  height: 54px;
}

.empty-state h2 {
  margin: 24px 0 8px;
  font-size: 28px;
}

.empty-state p {
  margin: 0 auto 24px;
  color: var(--muted);
}

.empty-state button {
  min-height: 46px;
  padding: 0 18px;
  background: var(--red);
  color: var(--white);
}

.empty-state button:hover {
  background: var(--gb-pink);
}

.noscript-note {
  margin: 36px 0 0;
  padding: 18px;
  background: var(--soft);
  color: var(--muted);
}

.term-main {
  background: var(--white);
}

.term-hero {
  background: var(--red);
  color: var(--white);
}

.term-hero-inner,
.term-shell {
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
}

.term-hero-inner {
  padding: 30px 0 48px;
}

.term-shell {
  padding: 52px 0 90px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--white);
}

.term-article {
  padding: 0;
}

.term-hero h1 {
  max-width: 900px;
  overflow-wrap: anywhere;
  font-size: clamp(44px, 7vw, 74px);
  line-height: 1;
}

.term-hero .tags {
  margin-top: 24px;
}

.term-hero .tags span {
  background: var(--white);
  color: var(--red);
}

.term-definition {
  max-width: 760px;
  margin-top: 0;
  padding-top: 0;
}

.term-definition h2,
.related h2 {
  margin: 0 0 18px;
  font-size: clamp(25px, 4vw, 36px);
}

.term-definition p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.7;
  white-space: pre-line;
}

.term-definition .term-context {
  margin-top: 22px;
  color: var(--muted);
  font-size: 15px;
}

.term-definition .editorial-review {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.term-sources {
  max-width: 760px;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.term-sources h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.term-sources ul {
  margin: 0;
  padding-left: 22px;
}

.term-sources li + li {
  margin-top: 8px;
}

.term-sources a {
  color: var(--red-dark);
}

.alias-note {
  margin-top: 30px;
  padding: 18px 20px;
  background: var(--soft);
}

.alias-note a {
  color: var(--red-dark);
}

.related {
  margin-top: 58px;
  padding: clamp(32px, 5vw, 52px);
  background: var(--soft);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.related-grid a {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 118px;
  align-content: center;
  padding: 22px 24px;
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
}

.related-grid a:hover {
  color: var(--red);
}

.related-grid span {
  font-size: 18px;
  font-weight: 700;
}

.related-grid small {
  color: var(--muted);
}

.all-terms-link {
  display: inline-block;
  margin-top: 40px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.all-terms-link:hover {
  color: var(--red);
}

.not-found-inner {
  width: min(980px, calc(100% - 48px));
  min-height: 360px;
  margin: 0 auto;
  padding: 52px 0 90px;
}

.not-found-inner h2 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(25px, 4vw, 36px);
}

.not-found-inner p {
  max-width: 680px;
  margin: 0 0 28px;
  font-size: 18px;
  line-height: 1.65;
}

.primary-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 0 20px;
  border-radius: 4px;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.primary-link:hover {
  background: var(--gb-pink);
}

footer {
  background: var(--ink);
  color: var(--white);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 46px 0;
}

.footer-inner img {
  width: 128px;
}

.footer-copy p {
  margin: 0;
  color: var(--gb-black-soft-3);
}

.footer-copy .editorial-note {
  margin-top: 8px;
  font-size: 13px;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
}

.footer-inner a {
  color: var(--white);
  font-size: 13px;
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--gb-peach);
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--gb-pink);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .letter-group {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 22px;
  }

  .letter-heading {
    font-size: 58px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner nav {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .hero-inner,
  .content-shell,
  .footer-inner {
    width: min(100% - 28px, 1180px);
  }

  .header-inner {
    min-height: 70px;
  }

  .brand img {
    width: 108px;
  }

  .header-label {
    margin-left: 14px;
    padding-left: 14px;
    font-size: 12px;
  }

  .back-link {
    font-size: 11px;
  }

  .hero-inner {
    padding: 54px 0 62px;
  }

  h1 {
    font-size: 52px;
  }

  .intro {
    font-size: 17px;
  }

  .search input {
    height: 60px;
    padding-left: 54px;
    font-size: 16px;
  }

  .search-icon {
    top: 21px;
    left: 20px;
  }

  .clear-search {
    top: 12px;
  }

  .content-shell {
    padding-top: 38px;
  }

  .category-filter {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .category-filter button:first-child {
    grid-column: 1 / -1;
  }

  .alphabet {
    top: 70px;
  }

  .letter-heading {
    top: 142px;
  }

  .letter-group {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .letter-heading {
    position: static;
    padding-top: 8px;
    font-size: 46px;
  }

  .entry-heading {
    min-height: 68px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 16px;
  }

  .definition {
    padding-right: 4px;
  }

  .term-shell {
    width: min(100% - 28px, 980px);
    padding-top: 36px;
  }

  .not-found-inner {
    width: min(100% - 28px, 980px);
    padding-top: 36px;
  }

  .term-hero-inner {
    width: min(100% - 28px, 980px);
    padding: 22px 0 34px;
  }

  .breadcrumbs {
    margin-bottom: 26px;
  }

  .term-definition {
    margin-top: 0;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .result-bar {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }

  .motion-ready [data-reveal],
  .motion-ready [data-reveal].is-visible {
    opacity: 1;
    animation: none;
  }
}
