@font-face {
  font-family: "Literata";
  src: url("/assets/fonts/literata-opsz-normal.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("/assets/fonts/literata-opsz-italic.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --cloth: #1f4a47;      /* bookcloth green */
  --cloth-deep: #163734; /* spine and hinge */
  --foil: #e6d6a3;       /* stamped gold */
  --paper: #fbfbf9;
  --ink: #1c2321;
  --ink-soft: #4a5552;
  --link: #1d5c57;
  --measure: 34rem;
}

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

html {
  font-family: "Literata", Georgia, serif;
  font-size: 100%;
  font-optical-sizing: auto;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.1875rem; /* 19px */
  line-height: 1.6;
}

a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--paper); color: var(--ink); padding: 0.5rem 0.75rem; z-index: 2;
}
.skip:focus { top: 1rem; }

/* The cover: a cloth-bound board with a spine on the left and a blind-stamped frame */
.cover {
  background-color: var(--cloth);
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.05) 0 1px, transparent 1px 3px);
  border-left: clamp(14px, 4vw, 44px) solid var(--cloth-deep);
  box-shadow: inset 6px 0 6px -4px rgba(0,0,0,0.45);
  color: var(--foil);
  padding: clamp(1.25rem, 5vw, 3.5rem);
}
.cover__board {
  max-width: 44rem;
  margin: 0 auto;
  border: 1px solid rgba(230,214,163,0.45);
  outline: 1px solid rgba(230,214,163,0.2);
  outline-offset: 5px;
  padding: clamp(2.5rem, 9vw, 5.5rem) clamp(1.25rem, 5vw, 3rem);
  text-align: center;
}
.cover__title {
  margin: 0;
  font-weight: 600;
  font-size: clamp(2.75rem, 10vw, 5.5rem);
  line-height: 1;
  letter-spacing: 0.01em;
  /* stamped into the cloth: a dark edge above, a faint lift below */
  text-shadow: 0 -1px 0 rgba(0,0,0,0.35), 0 1px 0 rgba(255,255,255,0.08);
}
.cover__for {
  display: block;
  font-style: italic;
  font-weight: 400;
  font-size: 0.42em;
  margin: 0.3em 0 0.25em;
}
.cover__sub {
  margin: 2.25rem auto 0;
  max-width: 26rem;
  font-size: clamp(1.0625rem, 2.4vw, 1.25rem);
  line-height: 1.5;
  color: #f1ead2;
}
.cover :focus-visible { outline-color: var(--foil); }

/* The page */
.page {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 4.5rem) 1rem 1rem;
}
.lead {
  margin: 0 0 3rem;
  font-size: 1.375rem;
  line-height: 1.55;
}
h2 {
  margin: 3rem 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
}
p { margin: 0 0 1rem; }

.offer__list { margin: 0; }
.offer__list > div { margin: 0 0 1.5rem; }
.offer__list dt { font-weight: 600; }
.offer__list dd { margin: 0.2rem 0 0; color: var(--ink-soft); }

.mail { font-size: 1.25rem; font-weight: 500; }

/* The colophon, as at the back of a book */
.colophon {
  max-width: 26rem;
  margin: 4.5rem auto 0;
  padding: 2rem 1rem 4rem;
  text-align: center;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.colophon::before {
  content: "";
  display: block;
  width: 2.5rem;
  margin: 0 auto 2rem;
  border-top: 1px solid currentColor;
}
.colophon__title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-style: italic;
  font-weight: 400;
}
.colophon p { margin: 0 0 0.5rem; }
