@font-face {
  font-family: "Playfair Display";
  src: url("fonts/playfairdisplay-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("fonts/playfairdisplay-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("fonts/inter-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("fonts/inter-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --midnight: #101B2D;
  --secondary: #20334D;
  --gold: #C9A45C;
  --ivory: #F5F1E8;
  --white: #FFFFFF;
  --sleeve: url("assets/continuous-sleeve.webp");
  --line: color-mix(in srgb, var(--midnight) 18%, var(--ivory));
  --display: "Playfair Display", Georgia, serif;
  --sans: Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ivory);
  color: var(--midnight);
  font: 400 1.0625rem/1.75 var(--sans);
}

main { flex: 1; }
.wrap { width: min(100% - 4rem, 75rem); margin-inline: auto; }

a { color: inherit; text-underline-offset: .25em; }
a:hover { text-decoration-thickness: .13em; }
:where(a, button, main):focus-visible {
  outline: .16rem solid var(--focus, var(--midnight));
  outline-offset: .26rem;
}

.skip {
  position: absolute;
  z-index: 1;
  inset: .5rem auto auto .5rem;
  padding: .6rem 1rem;
  background: var(--ivory);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.site-header, .site-footer, .hero {
  --focus: var(--gold);
  background: var(--midnight);
  color: var(--ivory);
}
.site-header { border-bottom: 1px solid var(--secondary); }
.site-footer { border-top: 1px solid var(--secondary); }
.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .9rem 2.5rem;
  padding-block: 1.35rem;
  flex-wrap: wrap;
}
.wordmark {
  color: var(--gold);
  font: 650 1.08rem/1.4 var(--display);
  letter-spacing: .09em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-header .wordmark {
  font-size: clamp(1.125rem, 5vw, 1.95rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .065em;
}
.menu-toggle { display: none; }
nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem 1.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav a {
  display: inline-block;
  min-height: 2rem;
  padding-block: .35rem;
  font: 500 .9375rem/1.5 var(--sans);
  text-decoration: none;
}
nav a:hover, nav a[aria-current="page"] { color: var(--gold); text-decoration: underline; }
.footer-inner p { max-width: 44ch; margin: 0; font: italic 1.125rem/1.6 var(--display); }

.hero {
  --sleeve: url("assets/red-lion-exterior.webp");
  padding-block: clamp(3.75rem, 8vw, 7rem);
}
.hero, .sleeve-masthead {
  background-color: var(--midnight);
  background-image: linear-gradient(90deg, #101b2d 6%, #101b2df0 30%, #101b2dcc 48%, #101b2d55 70%, #101b2d12), var(--sleeve);
  background-position: center, right center;
  background-size: cover, auto 100%;
  background-repeat: no-repeat;
  color: var(--ivory);
}
.hero {
  background-image: linear-gradient(90deg, #101b2de8 0%, #101b2dd9 27%, #101b2d8c 48%, transparent 72%), var(--sleeve);
  background-size: cover;
}
.sleeve-masthead .wrap { padding-block: clamp(3rem, 6vw, 5.5rem); }
.sleeve-masthead h1 { max-width: 17ch; }
.home-book {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(3rem, 6vw, 5.5rem);
}
.kicker {
  margin: 0 0 1.25rem;
  color: var(--secondary);
  font: 600 .875rem/1.5 var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero .kicker, .hero h1, .sleeve-masthead .kicker, .sleeve-masthead h1 { color: var(--gold); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; font-weight: 600; }
h1 { margin: 0; font-size: clamp(2.5rem, 5.7vw, 5.5rem); letter-spacing: -.025em; overflow-wrap: anywhere; }
h2 { margin: 0 0 .8rem; font-size: clamp(1.65rem, 3vw, 2.45rem); letter-spacing: -.015em; }
.interior :where(p, li) { max-inline-size: 65ch; }
blockquote {
  margin: 1.75rem 0;
  padding-inline-start: 1.25rem;
  border-inline-start: .13rem solid var(--gold);
  font: italic 400 clamp(1.3rem, 2.5vw, 1.75rem)/1.55 var(--display);
}
q { font-family: var(--display); font-style: italic; }
.hero h1 { max-width: 15ch; text-wrap: balance; }
.journey-link { color: var(--gold); font-weight: 600; }
.home-book h2 { max-width: 18ch; font-size: clamp(2.15rem, 4.3vw, 3.9rem); }
.intro { max-width: 47ch; margin: 1.6rem 0; font-size: clamp(1.0625rem, 1.7vw, 1.2rem); }
.hero .intro { max-width: 37ch; }
.pledge { margin: 1.6rem 0 .2rem; font-weight: bold; }
.signoff { margin: 0; font-style: italic; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.5rem; margin-top: 2rem; }
.button {
  display: inline-block;
  padding: .85rem 1.2rem;
  background: var(--gold);
  color: var(--midnight);
  font: 650 .95rem/1.45 var(--sans);
  text-decoration: none;
}
.button:hover { background: var(--white); text-decoration: underline; }

.home-cover { display: block; width: min(100%, 23rem); justify-self: center; }
.home-cover img, .book-cover { display: block; width: 100%; height: auto; }

.interior { padding-block: clamp(1.5rem, 3vw, 2.75rem) clamp(3.5rem, 8vw, 7rem); }
.interior > :first-child { margin-block-start: 0; }
.narrow { max-width: 52rem; }
.deck { color: var(--secondary); font-size: clamp(1.2rem, 2.8vw, 1.8rem); font-style: italic; margin: .75rem 0 0; }
.book-grid, .edition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.book-grid { grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); }
.note { color: var(--secondary); }
.book-grid > div > p:first-child { margin-top: 0; }
.ruled, .reader { border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 2.6rem; }
.edition-grid .ruled { margin-top: 0; }
.ruled p { margin: 0 0 1rem; }
.edition-grid .actions { margin-top: 1.25rem; }
.edition-grid .actions p { margin: 0; }
.edition-cover {
  display: block;
  width: 100%;
  max-width: 19rem;
  height: clamp(15rem, 38vw, 23rem);
  object-fit: contain;
  object-position: left bottom;
  margin-bottom: 1.5rem;
}
.button:disabled {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--secondary);
  text-decoration: none;
}
.principles { padding-inline-start: 1.4em; }
.principles li + li { margin-block-start: .45rem; }
.reader iframe { border: 1px solid var(--line); width: 100%; height: clamp(22rem, 75vh, 60rem); }
.reader-toggle { border: 0; cursor: pointer; }

@media (min-width: 52.01rem) {
  .hero h1 { font-size: clamp(2.5rem, 4.845vw, 4.675rem); }
}
@media (max-width: 65rem) {
  .site-header .wordmark { font-size: clamp(1.125rem, 4.55vw, 1.7rem); }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem .6rem;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--gold);
    font: 600 .875rem/1.5 var(--sans);
    cursor: pointer;
  }
  .menu-icon {
    display: inline-block;
    width: .95rem;
    height: .65rem;
    border-block: 1px solid currentColor;
  }
  .menu-icon::before {
    content: "";
    display: block;
    margin-top: .25rem;
    border-top: 1px solid currentColor;
  }
  .site-header nav { flex-basis: 100%; }
  .menu-toggle:not([hidden])[aria-expanded="false"] + nav { display: none; }
  .site-header nav ul { flex-direction: column; }
  .site-header nav a { display: block; min-height: 2.75rem; padding-block: .65rem; }
}
@media (max-width: 52rem) {
  .hero, .sleeve-masthead { background-image: none; padding-bottom: 0; }
  .hero .wrap, .sleeve-masthead .wrap { padding-bottom: 2rem; }
  .hero::after, .sleeve-masthead::after {
    content: "";
    display: block;
    aspect-ratio: 6589 / 3146;
    background: var(--sleeve) center / contain no-repeat;
  }
  .hero::after { aspect-ratio: 1815 / 866; }
  .home-book { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 14ch; }
  .home-cover { justify-self: start; }
}
@media (max-width: 36rem) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { gap: .65rem; }
  nav ul { gap: .15rem 1rem; }
  .book-grid, .edition-grid { grid-template-columns: minmax(0, 1fr); }
  .book-cover { max-width: 17rem; }
}
@media (max-width: 22rem) {
  .header-inner { width: calc(100% - 1rem); gap: .45rem; }
  .menu-toggle { padding-inline: .4rem; }
}
