:root {
  --ink: #111;
  --ink-soft: #444;
  --ink-faint: #767676;
  --rule: #111;
  --rule-faint: #d9d9d9;
  --paper: #fff;
  --display: "EB Garamond", Garamond, "Times New Roman", serif;
  --text: "Source Serif 4", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.6;
  font-optical-sizing: auto;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px 64px;
}

.small-caps, .section-label, .sub-label {
  font-variant: small-caps;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

/* Masthead */
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 20px 0 10px;
  border-bottom: 3px double var(--rule);
  font-family: var(--display);
  font-size: 17px;
}
.masthead-domain { color: var(--ink-soft); font-style: italic; }

/* Entry */
.entry { padding: 48px 0 32px; border-bottom: 1px solid var(--rule); }

.headword {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(48px, 11vw, 92px);
  line-height: 1;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.pron-line { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-soft); }
.syllables { font-family: var(--display); font-size: 20px; }
.pron { font-size: 18px; }

.grammar { margin: 4px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.pos { font-style: italic; font-size: 20px; }
.plural { color: var(--ink-soft); }
.register {
  font-size: 13px;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  border: 1px solid var(--ink);
  padding: 0 8px;
  line-height: 1.7;
}

.senses { margin: 28px 0 0; padding-left: 1.6em; }
.senses > li { margin: 0 0 18px; padding-left: 4px; }
.senses > li::marker { font-weight: 700; font-family: var(--display); }
.senses .label { font-style: italic; color: var(--ink-soft); margin-right: 4px; }
.senses .label::after { content: ","; }
.definition { font-size: 20px; }
.example { display: block; margin-top: 4px; font-style: italic; color: var(--ink-soft); }
.example-note { display: block; font-size: 15px; color: var(--ink-faint); }

.sub { margin-top: 26px; }
.sub-label {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--text);
}
.sub p { margin: 0; }

.see-also { margin: 26px 0 0; }
.see-also .small-caps { font-weight: 600; margin-right: 6px; font-size: 15px; }
.xref { font-variant: small-caps; letter-spacing: 0.03em; }

/* Acquire box */
.acquire {
  margin: 40px 0;
  padding: 28px;
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}
.acquire .section-label { margin: 0; font-size: 14px; color: var(--ink-soft); }
.acquire-headline {
  margin: 4px 0 10px;
  font-family: var(--display);
  font-size: clamp(26px, 5vw, 34px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.acquire p { margin: 0 0 12px; }
.price-note { font-style: italic; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 14px; }
.button {
  display: inline-block;
  padding: 12px 22px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.button:hover { background: #f2f2f2; }
.button-primary { background: var(--ink); color: var(--paper); }
.button-primary:hover { background: #333; }
.email-line { font-size: 15px; color: var(--ink-soft); margin: 0 !important; }

/* Sections */
.block { padding: 28px 0; border-top: 1px solid var(--rule-faint); }
.block .section-label { margin: 0 0 8px; font-size: 15px; font-weight: 600; font-family: var(--text); }
.section-intro { margin: 0 0 14px; color: var(--ink-soft); }

.uses { margin: 0; padding-left: 1.6em; list-style: lower-alpha; }
.uses li { margin-bottom: 10px; }
.use-title { font-weight: 600; }
.use-title::after { content: "."; }

.family, .other-entries { list-style: none; margin: 0; padding: 0; }
.family li, .other-entries li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 10px 0;
  border-bottom: 1px dotted var(--rule-faint);
}
.family .domain { font-family: var(--display); font-size: 22px; }
.tag {
  font-size: 12px;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  background: var(--ink);
  color: var(--paper);
  padding: 0 7px;
}
.tag-muted { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.note { color: var(--ink-faint); font-size: 15px; flex-basis: 100%; }

.other-entries .hw { font-family: var(--display); font-weight: 700; font-size: 22px; }
.gloss { font-style: italic; color: var(--ink-soft); }
.domain-small { font-size: 14px; color: var(--ink-faint); margin-left: auto; }

.sources { margin: 0; padding-left: 1.6em; font-size: 16px; }
.sources li { margin-bottom: 10px; }
.publisher { font-weight: 600; }
.source-host { display: block; font-size: 13px; color: var(--ink-faint); }

.colophon {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 3px double var(--rule);
  font-size: 14px;
  color: var(--ink-faint);
}
.colophon p { margin: 0 0 6px; }

@media (max-width: 520px) {
  body { font-size: 17px; }
  .entry { padding-top: 32px; }
  .acquire { padding: 20px; box-shadow: 4px 4px 0 var(--ink); }
  .actions .button { flex: 1 1 100%; text-align: center; }
  .domain-small { margin-left: 0; flex-basis: 100%; }
}

@media print {
  .acquire { box-shadow: none; }
  .actions { display: none; }
}
