* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: #f7f8f5;
  color: #22251f;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  line-height: 1.5;
}
a {
  color: inherit;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #315de5;
  outline-offset: 4px;
}
.wrap {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}
.top {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  font-size: 23px;
  font-weight: 900;
  text-decoration: none;
}
.brand span {
  color: #b53b29;
}
.top > a:last-child {
  font-size: 14px;
  text-underline-offset: 5px;
}
.hero {
  position: relative;
  background: #101518;
  overflow: hidden;
}
.hero img {
  display: block;
  width: 100%;
  height: min(556px, calc(100svh - 280px));
  object-fit: contain;
  object-position: center top;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(8, 13, 14, 0.86));
  pointer-events: none;
}
.hero-copy {
  position: absolute;
  z-index: 1;
  bottom: 32px;
  left: 24px;
  right: 24px;
  text-align: center;
  color: white;
}
.hero-copy h1 {
  margin: 0;
  font-size: 88px;
  line-height: 1;
  font-weight: 900;
}
.hero-copy p {
  margin: 12px 0 0;
  font-size: 18px;
}
.wish {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 26px;
  border-bottom: 1px solid #cdd2c7;
}
.wish p {
  margin: 0;
  font-size: 18px;
}
.glhf {
  font-family: monospace;
  font-size: 15px;
  font-weight: bold;
  white-space: nowrap;
  color: #272d1b;
  background: #d5f56a;
  padding: 7px 12px;
  transform: rotate(-3deg);
}
.dictionary {
  padding-block: 48px 72px;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.section-head h2 {
  font-size: 32px;
  line-height: 1.15;
  margin: 0 0 22px;
}
.counter {
  font-size: 14px;
  color: #5d6457;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.filters {
  display: grid;
  grid-template-columns: 1fr 230px;
  gap: 14px;
  margin-bottom: 28px;
}
.search,
.category {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid #c5cabc;
  border-radius: 6px;
  min-height: 52px;
  padding: 0 15px;
}
.search input {
  background: transparent;
  border: 0;
  outline: 0;
  width: 100%;
  min-width: 0;
  height: 50px;
  color: inherit;
}
.search:focus-within {
  outline: 3px solid #315de5;
  outline-offset: 2px;
}
.search input:focus-visible {
  outline: 0;
}
.category select {
  color: inherit;
  width: 100%;
  border: 0;
  background: white;
  min-width: 0;
  height: 48px;
}
.search-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.terms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 32px;
}
.term {
  border-top: 1px solid #cdd2c7;
  padding: 21px 0 24px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.term h3 {
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 6px;
  font-weight: 800;
}
.term .expansion {
  font-size: 12px;
  font-family: monospace;
  color: #656b60;
  margin: 0 0 10px;
  min-height: 18px;
}
.term .meaning {
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}
.term .tag {
  display: inline-block;
  font-size: 11px;
  color: #56614b;
  margin-top: 14px;
  text-transform: uppercase;
}
.empty {
  padding: 32px 0;
  min-height: 180px;
}
.foot {
  border-top: 1px solid #cdd2c7;
  padding-block: 28px 36px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  font-size: 13px;
  color: #5d6457;
}
.foot strong {
  color: #22251f;
}
.foot p {
  margin: 0;
}
.foot details {
  max-width: 600px;
}
.foot summary {
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
}
.foot a {
  text-underline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10;
  padding: 12px;
  background: white;
}
.skip:focus {
  top: 10px;
}
@media (min-width: 1500px) {
  .hero img {
    height: min(590px, calc(100svh - 280px));
  }
}
@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .top {
    height: 60px;
  }
  .hero img {
    height: auto;
    aspect-ratio: 848/560;
    object-fit: contain;
  }
  .hero-copy {
    bottom: 18px;
  }
  .hero-copy h1 {
    font-size: 56px;
  }
  .hero-copy p {
    font-size: 14px;
    margin-top: 6px;
  }
  .wish {
    gap: 12px;
    padding-block: 22px;
  }
  .wish p {
    font-size: 16px;
    max-width: 250px;
  }
  .glhf {
    font-size: 12px;
    padding: 6px 9px;
  }
  .dictionary {
    padding-block: 32px 48px;
  }
  .section-head h2 {
    font-size: 27px;
  }
  .filters {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .terms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 22px;
  }
  .term h3 {
    font-size: 23px;
  }
  .foot {
    flex-direction: column;
    gap: 16px;
  }
}
@media (max-width: 460px) {
  .terms {
    grid-template-columns: 1fr;
  }
  .term {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    column-gap: 16px;
    padding-block: 19px;
  }
  .term h3 {
    grid-column: 1;
    grid-row: 1/4;
    font-size: 21px;
    overflow-wrap: anywhere;
  }
  .term .expansion,
  .term .meaning,
  .term .tag {
    grid-column: 2;
  }
  .term .expansion {
    min-height: 0;
    margin-bottom: 6px;
  }
  .term .tag {
    margin-top: 10px;
    font-size: 10px;
  }
  .section-head {
    align-items: center;
  }
  .counter {
    font-size: 12px;
  }
  .section-head h2 {
    margin-bottom: 16px;
  }
  .hero-copy h1 {
    font-size: 48px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
