@font-face {
  font-family: "EB Garamond";
  src: url("fonts/eb-garamond.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/eb-garamond-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --ground: #f4f0e6;
  --ink: #1f1b16;
  --red: #8c2f1f;
  --grey: #6f675a;
  --rule: #d8d0be;
  --measure: 34em;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 4rem 1.5rem 3rem;
  background: var(--ground);
  color: var(--ink);
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.entry {
  max-width: var(--measure);
  margin: 0 auto;
}

/* Headword block */

.entry-head {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.1rem;
  margin-bottom: 1.8rem;
}

.headword {
  margin: 0;
  color: var(--red);
  font-size: 3.1rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.ipa {
  margin: 0.35rem 0 0;
  color: var(--grey);
  font-size: 1.05rem;
}

.grammar {
  margin: 0.5rem 0 0;
  color: var(--grey);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* Definition */

.senses {
  margin: 0 0 2rem;
  padding-left: 1.6rem;
}

.sense {
  text-align: justify;
  hyphens: auto;
  padding-left: 0.3rem;
}

.sense::marker {
  color: var(--red);
  font-weight: 600;
}

/* Labelled fields, label set in the left margin */

.fields {
  margin: 0 0 2.4rem;
}

.field-label {
  float: left;
  clear: left;
  width: 9.5rem;
  color: var(--grey);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  padding-top: 0.42rem;
}

.field-value {
  margin: 0 0 0.75rem 9.5rem;
}

/* Symptoms */

.symptoms { clear: both; }

.section-title {
  margin: 0 0 1rem;
  color: var(--grey);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.symptom {
  margin: 0 0 0.9rem;
  padding-left: 1.9rem;
  text-indent: -1.9rem;
  text-align: justify;
  hyphens: auto;
}

.symptom::before {
  content: "—";
  color: var(--red);
  padding-right: 0.85rem;
}

/* Quote */

.quote {
  margin: 2.4rem 0 0;
  padding-left: 1.6rem;
  border-left: 2px solid var(--rule);
  font-style: italic;
  color: #3a332a;
}

.quote p { margin: 0; }

/* Footer */

.site-footer {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--grey);
  font-size: 0.8rem;
}

.site-footer p { margin: 0; }

.site-footer a {
  color: var(--grey);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

.site-footer a:hover { color: var(--red); border-bottom-color: var(--red); }

/* Narrow screens: labels stack above their values */

@media (max-width: 34rem) {
  body { padding: 2.5rem 1.25rem 2rem; font-size: 18px; }
  .headword { font-size: 2.3rem; }
  .field-label { float: none; width: auto; padding-top: 0; margin-bottom: 0.15rem; }
  .field-value { margin-left: 0; margin-bottom: 1.1rem; }
  .sense, .symptom { text-align: left; }
}
