:root {
  color-scheme: light;
  --ink: #25251e;
  --paper: #f5f0e5;
  --wine: #723849;
  --line: #c6bbab;
  --muted: #59584e;
  font-family: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header,
footer,
main {
  max-width: 1180px;
  margin: auto;
  padding: 0 clamp(20px, 5vw, 70px);
}
header,
footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
}
header {
  border-bottom: 1px solid var(--ink);
}
footer {
  border-top: 1px solid var(--line);
  font-size: 0.93rem;
  margin-top: 3rem;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
header a,
footer a {
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
nav {
  display: flex;
  gap: 1.4rem;
}
.brand {
  font:
    italic 2.35rem Georgia,
    serif;
}
.lead {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: clamp(2rem, 4vw, 5rem);
  padding: clamp(3rem, 9vw, 8rem) 0 3.5rem;
  align-items: end;
}
.kicker {
  color: var(--wine);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lead h1,
.pagehead h1,
#reader h1 {
  font:
    normal clamp(3rem, 7.4vw, 6.6rem)/0.97 "Baskervville",
    Georgia,
    serif;
  letter-spacing: -0.052em;
  margin: 1.2rem 0;
}
.lead h1 em {
  font-weight: 400;
}
.intro p:first-child {
  font:
    1.65rem/1.16 Georgia,
    serif;
  margin: 0;
}
.intro span {
  display: inline-block;
  color: var(--wine);
  font-weight: 650;
  margin-top: 0.7rem;
}
.section {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.75rem;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem;
}
h2 {
  font:
    normal 2.05rem/1.1 Georgia,
    serif;
  margin: 0 0 1rem;
}
p,
li,
label {
  line-height: 1.55;
}
.section p {
  margin: 0 0 1rem;
}
form,
label {
  display: grid;
  gap: 0.45rem;
}
form {
  gap: 0.9rem;
  max-width: 40rem;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}
input,
textarea,
select,
button {
  font: inherit;
}
input:not([type="checkbox"]),
textarea,
select {
  width: 100%;
  padding: 0.65rem;
  background: #fffdf6;
  border: 1px solid #857d70;
}
input[type="checkbox"] {
  margin-top: 0.4rem;
}
button {
  width: fit-content;
  padding: 0.65rem 1rem;
  border: 1px solid var(--wine);
  background: var(--wine);
  color: white;
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
textarea:focus-visible {
  outline: 3px solid #b05b1d;
  outline-offset: 3px;
}
.pagehead,
#reader {
  padding-top: 2rem;
}
.block {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0;
  max-width: 54rem;
}
.passage {
  font:
    1.3rem/1.65 Georgia,
    serif;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 46rem;
}
textarea.passage {
  height: 13rem;
  width: 100%;
  resize: vertical;
}
.quote {
  border-left: 3px solid var(--wine);
  padding-left: 1rem;
}
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.75rem 0;
}
.muted {
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
.pagehead h1 {
  font-size: clamp(2.6rem, 6vw, 4.7rem);
}
#reader {
  max-width: 900px;
}
#reader h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  overflow-wrap: anywhere;
}
.library-item {
  display: block;
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
  font-family: Georgia, serif;
  font-size: 1.3rem;
}
@media (max-width: 740px) {
  .lead,
  .section {
    grid-template-columns: 1fr;
  }
  .lead {
    padding-top: 2.5rem;
  }
  .lead h1 {
    font-size: clamp(2.65rem, 9vw, 4.2rem);
  }
  .section {
    gap: 0.65rem;
  }
  header,
  footer {
    gap: 1rem;
  }
  nav {
    gap: 0.8rem;
    font-size: 0.95rem;
  }
}
