/* Field & Harbor Press, Washington, D.C.
   Navy #0D1B2E, warm gold #C8A968, cream #F4EFE6.
   Gold stays in the marks. Text and rules are navy on cream. */

@font-face {
  font-family: "Bebas Neue";
  src: url("/assets/fonts/bebas-neue-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --navy: #0d1b2e;
  --cream: #f4efe6;
  --serif: "Source Serif 4", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --display: "Bebas Neue", "Arial Narrow", "Franklin Gothic Medium", sans-serif;
  --pad: clamp(1.15rem, 3.2vw, 2.4rem);
  --measure: 38rem;
}

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

html {
  color-scheme: light;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.65;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  border-top: 0.55rem solid var(--navy);
}

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

/* One axis only. Do not set a competing height on the marks. */
.header-wordmark,
.footer-seal {
  object-fit: contain;
}

::selection {
  background: var(--navy);
  color: var(--cream);
}

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

a:link,
a:visited {
  color: var(--navy);
  text-underline-offset: 0.18em;
}

.skip {
  position: absolute;
  left: var(--pad);
  top: 0.7rem;
  transform: translateY(-160%);
  background: var(--navy);
  color: var(--cream);
  padding: 0.55rem 0.85rem;
  z-index: 2;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.45rem var(--pad) 0.15rem;
}

.mark-link {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
  /* Clear space is already in the file; a little more keeps the mark off the nav. */
  padding: 0.35rem 0.45rem 0.35rem 0;
}

.header-wordmark {
  display: block;
  width: clamp(10.5rem, 28vw, 14.5rem);
  height: auto;
}

.header-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  min-width: 0;
}

.place,
.city {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.3;
}

.place {
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.15rem 1rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration-thickness: 2px;
}

.sheet {
  width: min(46rem, 100%);
  margin-inline: auto;
  padding: clamp(2.25rem, 6vh, 4.5rem) var(--pad) 4.75rem;
  flex: 1;
}

.home .sheet {
  width: min(46rem, 100%);
  padding-top: clamp(2.5rem, 8vh, 5rem);
  text-align: center;
}

.home .author {
  margin-top: 0;
  font-size: clamp(2rem, 8vw, 3.25rem);
  letter-spacing: 0.18em;
  text-indent: 0.18em;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
  font-family: var(--display);
}

.author {
  margin: 0.85rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 400;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  line-height: 1;
}

.city {
  margin-top: 0.85rem;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
}

.lede,
.intro {
  max-width: 34rem;
  margin: 1.35rem 0 0;
}

.home .lede {
  margin-inline: auto;
}

.rule {
  width: 4.75rem;
  height: 0;
  margin: 2.35rem 0 0;
  border: 0;
  border-top: 1px solid var(--navy);
  border-bottom: 1px solid var(--navy);
  padding-bottom: 4px;
}

.home .rule {
  margin-inline: auto;
}

.kicker {
  margin: 0 0 0.9rem;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  line-height: 1;
}

.home .kicker {
  margin-top: 1.75rem;
  text-indent: 0.26em;
}

.title-block {
  margin: 0;
}

.book-link {
  display: inline-block;
  color: inherit;
  text-decoration: none;
  max-width: 100%;
}

.book-title,
.page-title,
.line-name {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.92;
  text-wrap: balance;
}

.book-title {
  display: block;
  font-size: clamp(2.5rem, 7vw, 3.5rem);
}

.home .book-title {
  font-size: clamp(2.35rem, 6.5vw, 3.15rem);
}

.page-title {
  font-size: clamp(3.4rem, 11vw, 5.25rem);
  letter-spacing: 0.03em;
  line-height: 0.88;
}

.feature .book-title,
.review-page .book-title {
  font-size: clamp(3rem, 9vw, 4.7rem);
  line-height: 0.9;
}

.name-title {
  margin-top: 0.85rem;
  letter-spacing: 0.08em;
  line-height: 0.88;
}

.book-link .book-title,
.catalog a .book-title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
}

.book-link:hover .book-title,
.book-link:focus-visible .book-title,
.catalog a:hover .book-title,
.catalog a:focus-visible .book-title {
  text-decoration-thickness: 2px;
}

.edition {
  display: block;
  margin: 0.75rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.byline,
.note,
.status {
  margin: 0.7rem 0 0;
}

.prose p,
.feature p,
.title-block p {
  margin: 0.85rem 0 0;
}

.paths {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.75rem;
  margin: 1.85rem 0 0;
}

.section {
  margin-top: 3.25rem;
}

.feature {
  margin-top: 1.75rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--navy);
  scroll-margin-top: 1.25rem;
}

.reserve {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--navy);
}

.reserve li {
  margin: 0;
  padding: 1.35rem 0 1.45rem;
  border-bottom: 1px solid var(--navy);
}

.line-name {
  font-size: clamp(1.7rem, 4vw, 2.15rem);
}

.reserve .status {
  margin-top: 0.55rem;
  font-style: italic;
}

.catalog {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
}

.catalog li {
  padding: 1.25rem 0 1.35rem;
  border-top: 1px solid var(--navy);
  border-bottom: 1px solid var(--navy);
}

.catalog a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.meta {
  display: block;
  margin-top: 0.6rem;
  font-style: italic;
}

.catalog .status {
  display: block;
}

cite {
  font-style: italic;
}

.site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-top: auto;
  padding: 1.15rem var(--pad) 1.45rem;
  border-top: 1px solid var(--navy);
}

.footer-copy {
  min-width: 0;
}

.footer-seal {
  display: block;
  width: 5.75rem;
  height: auto;
  flex: 0 0 auto;
  margin-left: auto;
}

.imprint-line {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.2rem;
  margin-bottom: 0.7rem;
}

.footer-nav a {
  color: inherit;
}

.footer-nav a[aria-current="page"] {
  text-decoration-thickness: 2px;
}

.site-footer .legal {
  margin: 0;
  font-size: 0.98rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 42rem) {
  .site-header {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "mark place"
      "nav nav";
    align-items: center;
    row-gap: 0.2rem;
  }

  .mark-link {
    grid-area: mark;
  }

  .header-side {
    display: contents;
  }

  .place {
    grid-area: place;
    justify-self: end;
  }

  .site-nav {
    grid-area: nav;
    justify-content: flex-start;
  }

  .site-footer {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .footer-copy {
    flex: 1 1 100%;
  }

  .footer-seal {
    width: 5.25rem;
    margin-left: auto;
  }
}

@media (min-width: 52rem) {
  .header-wordmark {
    width: 14.5rem;
  }

  .footer-seal {
    width: 7rem;
  }

  .site-nav a {
    font-size: 1.28rem;
    letter-spacing: 0.16em;
  }

  .reserve {
    grid-template-columns: repeat(3, 1fr);
  }

  .reserve li {
    display: flex;
    flex-direction: column;
    min-height: 8.75rem;
    padding: 1.4rem 1.15rem 1.5rem;
    border-left: 1px solid var(--navy);
  }

  .reserve .status {
    margin-top: auto;
  }

  .reserve li:first-child {
    border-left: 0;
    padding-left: 0;
  }
}

@media print {
  body {
    background: #fff;
    border-top: 0;
  }

  .skip,
  .site-nav,
  .footer-nav {
    display: none;
  }

  a {
    text-decoration: none;
  }
}
