:root {
  --paper: #F4F0E6;
  --card: #FBFAF7;
  --green: #363820;
  --oxblood: #5E1B18;
  --rose: #7A5561;
  --rule: #DAD7CC;
  /* --rule is 1.27:1 on --paper: correct for a decorative card edge, far too
     faint to be the visible boundary of a control. WCAG 1.4.11 wants 3:1 for
     that, and this audience skews older. --edge is the boundary colour.
     Measured with contrast() in _tools/check_site.py:
     --edge on --paper = 3.62:1, --edge on --card = 3.94:1. */
  --edge: #7E7F63;
  --ink: #241C15;
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Gill Sans MT", Gill Sans, Calibri, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.wrap { max-width: 44rem; margin: 0 auto; padding: 2rem 1.25rem 4rem; }

h1, h2, h3 { font-weight: normal; line-height: 1.2; color: var(--green); }
h1 { font-size: 2.25rem; margin: 0 0 1rem; }
h2 { font-size: 1.5rem; margin: 2.75rem 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 1.75rem 0 0.4rem; }

p { margin: 0 0 1.1rem; }

a { color: var(--oxblood); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
  margin: 0 0 0.6rem;
}

.muted { color: var(--rose); font-size: 0.95rem; }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--oxblood);
  color: #FFF6E9;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 2px;
  margin: 0.35rem 0.35rem 0.35rem 0;
}
.btn:hover, .btn:focus { background: var(--green); }

.btn-secondary { background: transparent; color: var(--green);
                 border: 1px solid var(--edge); }
.btn-secondary:hover, .btn-secondary:focus { background: var(--card);
                                             color: var(--green); }

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1.4rem 1.5rem;
  margin: 0 0 1.25rem;
}

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 46rem) { .grid { grid-template-columns: 1fr 1fr; } }

nav { font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.06em; }
nav a { color: var(--green); text-decoration: none; margin-right: 1.25rem; }
nav a:hover, nav a:focus { text-decoration: underline; }

footer {
  border-top: 1px solid var(--rule);
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--rose);
}

img { max-width: 100%; height: auto; }

:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 2px; }

/* The imprint mark, shown as drawn rather than recoloured. A CSS mask was
   used here while the artwork was one flat tone; it cannot be used now. The
   new artwork separates 'Thrive' from the book stack with a light grey
   outline, and a mask flattens every opaque pixel to a single colour --
   destroying the separation the file exists for. Same image as the books. */
footer .imprint { margin: 0 0 1.1rem; }
footer .imprint img {
  display: block;
  width: 160px;
  height: auto;
}
