@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond-Italic.ttf") format("truetype");
  font-weight: 400 700;
  font-style: italic;
  font-display: block;
}

:root {
  --paper: #f4efe4;
  --ink: #1a1a1a;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "EB Garamond", "Iowan Old Style", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

.sheet {
  max-width: 38rem;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 5rem;
}

nav {
  margin: 0 0 3.5rem;
  font-size: 1.05rem;
}

nav a {
  color: inherit;
  text-decoration: none;
  margin-right: 1.35rem;
}

nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

h1 {
  margin: 0 0 1.75rem;
  font-size: 2.35rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

h2 {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.2;
}

p {
  margin: 0 0 1.15rem;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.titles {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
}

.titles li {
  margin: 0 0 0.7rem;
}

.titles a,
.mail {
  color: inherit;
}

.titles a {
  font-style: italic;
}

.book {
  margin: 0 0 2.75rem;
}

.status {
  margin: 0.45rem 0 0.85rem;
  font-size: 1rem;
  font-variant: small-caps;
  letter-spacing: 0.06em;
  text-align: left;
}

.button,
.note button {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.28rem 0.85rem 0.35rem;
  border: 1px solid var(--ink);
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 1.1rem;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.note {
  margin-top: 2.5rem;
}

.note h2 {
  margin: 0 0 1rem;
  font-size: 1.45rem;
  font-style: normal;
  font-weight: 500;
}

.note label,
.note legend,
.note .thanks,
.note .send-error {
  text-align: left;
}

.note fieldset {
  margin: 0 0 1.2rem;
  padding: 0;
  border: 0;
}

.note legend {
  margin-bottom: 0.45rem;
  padding: 0;
}

.note .field {
  display: block;
  margin: 0 0 1.1rem;
}

.note input[type="text"],
.note input[type="email"] {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.3rem 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.note input[type="text"]:focus,
.note input[type="email"]:focus {
  outline: 0;
  border-bottom-width: 2px;
}

.note .choices label {
  display: block;
  margin: 0.15rem 0;
  font-style: italic;
}

.note input[type="checkbox"] {
  margin-right: 0.45rem;
  accent-color: var(--ink);
}

.note .thanks,
.note .send-error {
  margin-top: 0.5rem;
}

.note button:disabled {
  opacity: 0.55;
}

footer {
  margin-top: 4.5rem;
  font-size: 1rem;
  text-align: left;
}

@media (min-width: 800px) {
  .sheet {
    padding-top: 6.5rem;
    padding-bottom: 6rem;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .sheet {
    max-width: none;
    padding: 0;
  }

  nav {
    display: none;
  }

  a {
    color: inherit;
    text-decoration: none;
  }
}
