@font-face {
  font-family: Dela;
  src: url("dela-gothic-one.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Figtree;
  src: url("figtree-regular.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Figtree;
  src: url("figtree-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  --yellow: #fbda28;
  --ink: #141510;
  --paper: #f3f0e7;
  --line: #d2cfc2;
  --muted: #605e50;
  --display: Dela, Arial, sans-serif;
  --gutter: clamp(16px, 3vw, 48px);
  --reading: 680px;
  color: var(--ink);
  background: var(--paper);
  font: 18px/1.58 Figtree, Arial, sans-serif;
  scroll-padding-top: 1rem;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, h3, h4, p { margin: 0; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-underline-offset: .28em; }
a:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}
.skip {
  position: fixed;
  z-index: 2;
  padding: .6rem 1rem;
  background: var(--paper);
  transform: translateY(-125%);
}
.skip:focus { transform: translateY(0); }
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 90px;
  padding: .8rem var(--gutter);
  background: var(--yellow);
  border-bottom: 1px solid #14151033;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font: .95rem/1.2 var(--display);
  text-transform: uppercase;
  text-decoration: none;
}
.brand small {
  display: block;
  margin-top: .2rem;
  font: .77rem Figtree, Arial, sans-serif;
  text-transform: none;
}
.key {
  display: grid;
  place-items: center;
  flex: none;
  width: 49px;
  height: 45px;
  transform: rotate(-6deg);
  border: 1px solid #d7d4c6;
  border-bottom: 4px solid #aaa79b;
  border-radius: 10px;
  background: var(--paper);
  font-size: 1.15rem;
}
.editions { display: flex; gap: .5rem; }
.editions a, .alphabet a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .45rem .8rem;
  border: 1px solid var(--ink);
  border-radius: 6px;
  text-decoration: none;
}
.editions a {
  text-align: center;
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
}
.editions a[aria-current], .editions a:hover { color: var(--paper); background: var(--ink); }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -.035em;
}
h1:focus, h2:focus { outline: none; }
.home {
  padding: clamp(2.75rem, 7vw, 6rem) var(--gutter);
  text-align: center;
}
.home h1, .reference-heading h2 { font-size: clamp(1.65rem, 5.5vw, 3.5rem); overflow-wrap: anywhere; }
.home > p {
  max-width: 51ch;
  margin: 1.15rem auto 0;
}
.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
  width: min(100%, 760px);
  margin: 2rem auto 0;
  text-align: left;
}
.choices a {
  padding: 1.15rem;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--yellow);
  text-decoration: none;
}
.choices a:hover { background: var(--ink); color: var(--paper); }
.choices a > * { display: block; }
.choices strong { margin-bottom: .3rem; }
.choices strong > span { float: right; margin-left: .3rem; }
.choices a > span { font-size: .9rem; }
.reference-heading { padding: 2.3rem var(--gutter) 0; text-align: center; }
.tools, .entries {
  width: min(100%, var(--reading));
  margin-inline: auto;
}
.tools {
  width: min(calc(100% - 2 * var(--gutter)), var(--reading));
  margin-block: 1.55rem 2rem;
}
.lookup label { display: block; margin-bottom: .35rem; font-weight: 700; }
.lookup input {
  width: 100%;
  min-height: 54px;
  padding: .6rem .85rem;
  background: #fffefa;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 6px;
  font: inherit;
}
.lookup input::placeholder { color: var(--muted); }
.results { margin-top: .4rem; color: var(--muted); }
.results:empty { display: none; }
.alphabet { display: flex; flex-wrap: wrap; gap: .4rem; margin-block: 1rem; }
.alphabet a { min-width: 44px; padding: .35rem; }
.alphabet a:hover { background: var(--yellow); }
.intro { color: var(--muted); font-size: .9rem; }
.intro summary { cursor: pointer; }
.intro p { margin-top: .6em; }
.no-results { margin-top: 1.25rem; }
.letter {
  position: relative;
  padding: 1.25rem var(--gutter) 1.6rem;
  border-top: 1px solid var(--line);
}
.letter > h3 {
  position: absolute;
  top: 1.35rem;
  left: var(--gutter);
  font-size: clamp(1.85rem, 4vw, 3.2rem);
}
.letter > h3::after {
  content: "";
  display: block;
  width: .68em;
  height: 5px;
  margin-top: .2em;
  background: var(--yellow);
}
.entry { padding: 1rem 0 1.2rem; }
.entry:first-child { padding-top: .2rem; }
.entry + .entry { border-top: 1px solid var(--line); }
.entry header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .35rem .9rem;
  margin-bottom: .45rem;
}
.entry h4 { font-size: clamp(1.12rem, 2.5vw, 1.45rem); line-height: 1.3; overflow-wrap: anywhere; }
.entry p { overflow-wrap: anywhere; }
.entry p + p { margin-top: .6em; }
.label {
  color: var(--ink);
  background: var(--yellow);
  padding: .12rem .5rem;
  border-radius: 3px;
  font-size: .69rem;
  font-weight: 700;
  text-transform: uppercase;
}
.end-link {
  width: min(calc(100% - 2 * var(--gutter)), var(--reading));
  margin: .5rem auto 2.5rem;
  font-weight: 700;
}
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .4rem 1rem;
  padding: 1.2rem var(--gutter);
  color: var(--paper);
  background: var(--ink);
  font-size: .85rem;
}
@media (max-width: 875px) {
  .letter > h3 { position: static; margin-bottom: .9rem; }
}
@media (max-width: 620px) {
  .masthead { flex-direction: column; align-items: start; gap: .65rem; padding-block: .7rem; }
  .brand { font-size: .85rem; }
  .key { width: 39px; height: 36px; font-size: .92rem; }
  .editions { width: 100%; }
  .editions a { flex: 1; padding-inline: .45rem; font-size: .67rem; }
  .choices { grid-template-columns: 1fr; }
  .entry h4 { width: 100%; }
}
