@font-face {
  font-family: "Charis SIL"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/fonts/charis-sil-400-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Charis SIL"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/fonts/charis-sil-400-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Charis SIL"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/charis-sil-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Charis SIL"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/charis-sil-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Charis SIL"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fonts/charis-sil-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Charis SIL"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fonts/charis-sil-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #F2F4F1;
  --print: #1B34C4;
  --pencil: #33363B;
  --indent: 1.25rem;
  --h: clamp(2.25rem, 16.4vw, 5rem);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #1B34C4; --print: #F2F4F1; --pencil: #D5D9E8; }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: "Charis SIL", Charter, "Bitstream Charter", Georgia, serif;
  font-size: 1.125rem; line-height: 1.5;
  color: var(--print); background: var(--paper);
  padding:
    max(1.25rem, env(safe-area-inset-top))
    max(1.25rem, env(safe-area-inset-right))
    calc(4rem + env(safe-area-inset-bottom))
    max(1.25rem, env(safe-area-inset-left));
  -webkit-tap-highlight-color: transparent;
}
::selection { background: var(--print); color: var(--paper); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; -webkit-user-select: none; user-select: none; }

.sheet { max-width: 34rem; position: relative; }

.head {
  display: flex; justify-content: space-between;
  font-size: 1.0625rem; padding-bottom: .5rem;
  border-bottom: 1px solid var(--print);
}

.entry { position: relative; margin-top: 1.25rem; }
.hw { font-weight: 700; }
.ipa { margin: 0 .35em; }

.def { position: relative; }
h1 {
  font-size: var(--h); line-height: .98; font-weight: 700; letter-spacing: -.012em;
  margin: .375rem 0 0 var(--indent);
}
h1 .w { display: block; width: max-content; position: relative; }
h1 .w svg { position: absolute; left: 0; bottom: -.02em; overflow: visible; pointer-events: none; }
@media (scripting: none) {
  h1 .w { background: radial-gradient(circle, var(--pencil) 1.6px, transparent 2px) 0 100% / 9px 8px repeat-x; }
}

.pencil { color: var(--pencil); font-style: italic; }
.stet {
  position: absolute; right: .125rem; top: calc(var(--h) * .16);
  width: 3.3em; height: 2.2em; display: grid; place-items: center;
  font-size: 1.25rem; line-height: 1;
  transform: rotate(-4deg);
}
.stet svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.note { font-size: 1rem; line-height: 1.35; transform: rotate(-1.6deg); transform-origin: left center; }
.entry > .note { margin: .875rem 0 0 var(--indent); }

.see { margin-top: 1.5rem; }
.see > p { font-style: italic; }
.refs { list-style: none; }
.ref {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 1rem;
  min-height: 3.5rem; padding: .5rem 1rem; margin-top: .375rem;
  font-size: 1.1875rem; text-decoration: none;
  background: var(--print); color: var(--paper);
}
a.ref:active { background: var(--paper); color: var(--print); box-shadow: inset 0 0 0 2px var(--print); }
@media (hover: hover) {
  a.ref:hover { background: var(--paper); color: var(--print); box-shadow: inset 0 0 0 2px var(--print); }
}
a.ref:focus-visible { outline: 3px solid var(--print); outline-offset: 3px; }
.ref.soon {
  margin-top: .625rem;
  color: var(--print);
  /* The dashed outline is drawn as four gradients: dashed borders lose their short sides in some phone browsers. */
  background:
    repeating-linear-gradient(90deg, var(--print) 0 6px, transparent 6px 11px) left top / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, var(--print) 0 6px, transparent 6px 11px) left bottom / 100% 2px no-repeat,
    repeating-linear-gradient(0deg, var(--print) 0 6px, transparent 6px 11px) left top / 2px 100% no-repeat,
    repeating-linear-gradient(0deg, var(--print) 0 6px, transparent 6px 11px) right top / 2px 100% no-repeat;
}
.ref.soon .pencil {
  position: relative; font-size: 1.125rem; padding: 0 .125rem .3125rem;
  transform: rotate(-3deg) translate(.5rem, -.1875rem);
}
.ref.soon .pencil svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 6px; overflow: visible; }

.lede { margin-top: 2.75rem; font-size: 1.375rem; line-height: 1.32; }

.notewrap { position: relative; }
.archive { margin-top: 1.75rem; padding-right: 1.625rem; }
.senses { list-style: none; counter-reset: s; margin-top: .25rem; }
.senses li { counter-increment: s; position: relative; padding-left: var(--indent); margin-top: .375rem; }
.senses li::before { content: counter(s); position: absolute; left: 0; font-weight: 700; }
.bracket { position: absolute; right: 0; top: .25rem; width: 14px; height: calc(100% - .5rem); overflow: visible; }
.notewrap > .note { margin-top: .625rem; text-align: right; transform-origin: right center; }

.foot { margin-top: 3.25rem; padding-top: .625rem; border-top: 1px solid var(--print); }

.stroke { fill: none; stroke: var(--pencil); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.scale .stroke { vector-effect: non-scaling-stroke; }
.dot { fill: var(--pencil); }

@media (prefers-reduced-motion: no-preference) {
  .dot { opacity: 0; animation: dot 1ms linear forwards; animation-delay: calc(var(--i) * 11ms + 250ms); }
  .still .dot { opacity: 1; animation: none; }
  .ring { stroke-dasharray: 165.2; stroke-dashoffset: 165.2; animation: draw 320ms ease-out 1080ms forwards; }
}
@keyframes dot { to { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (max-width: 18.75rem) {
  .stet { position: static; margin: .5rem 0 0 var(--indent); }
}

@media (min-width: 56.25rem) {
  body { padding: 3.5rem 0 7.5rem; }
  .sheet { margin-left: 14vw; }
  .stet { right: auto; left: calc(100% + 2.75rem); }
  .entry > .note, .notewrap > .note {
    position: absolute; left: calc(100% + 2.75rem); width: 15rem;
    margin: 0; text-align: left; transform-origin: left center;
  }
  .entry > .note { top: 13.2rem; }
  .archive { padding-right: 0; }
  .bracket { right: -1.5rem; }
  .notewrap > .note { bottom: 2.2rem; }
}
