:root {
  --paper: #c7f0d8;
  --ink: #43523d;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(2rem, env(safe-area-inset-top)) 1rem max(2rem, env(safe-area-inset-bottom));
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
}

.screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 960px;
}

.hands {
  display: block;
  max-width: 100%;
  image-rendering: pixelated;
}

.entry {
  width: 100%;
  max-width: 34rem;
  font-size: 1.125rem;
  line-height: 1.5;
}

.headword {
  margin: 0;
  font-size: clamp(2rem, 7vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
}

.grammar {
  margin: 0.25rem 0 0;
}

.pronunciation {
  margin-right: 0.25em;
}

.grammar abbr {
  font-style: italic;
  text-decoration: none;
}

.definition {
  margin: 0.75rem 0 0;
}

.example {
  font-style: italic;
}

.example::before {
  content: "‘";
}

.example::after {
  content: "’";
}

.etymology {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
}
