:root {
  --red: #701616;
  --cream: #e5ddd1;
  --cream-bright: #f3ece1;
  --button: #dac9b1;
  --button-text: #3f362c;
  --ink: #1a140f;
  --header: #0b0d0b;
  --page: #121412;
  --light: #4e524e;
  --panel: #363432;
  --muted: #cbbfae;
  --line: rgba(229, 221, 209, 0.18);
  --serif: "Libre Baskerville", Palatino, "Palatino Linotype", Georgia, serif;
  --display: "Playfair Display", Palatino, Georgia, serif;
  --content: 1080px;
  --gutter: 1.5rem;
  --content-pad-x: clamp(1.3rem, 5vw, 4.2rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.55;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--cream-bright);
  outline-offset: 3px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.7rem;
  padding: 1.7rem 1.5rem 0.4rem;
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.45vw, 1.45rem);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.main-nav a {
  text-decoration: none;
  color: var(--cream-bright);
  padding: 0.15rem 0.1rem;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: #fff;
}

.main-nav a[aria-current="page"] {
  box-shadow: inset 0 -1px 0 var(--cream);
}

.nav-toggle {
  display: none;
}

.home {
  background: #050403 url("../background.png") center center / contain no-repeat;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.home::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.42) 0%,
    rgba(0, 0, 0, 0.12) 38%,
    rgba(0, 0, 0, 0) 62%
  );
}

.home > * {
  position: relative;
  z-index: 1;
}

.hero {
  --text-inset: calc(
    (100% - min(var(--content), calc(100% - 2 * var(--gutter)))) / 2 +
      var(--content-pad-x)
  );
  flex: 1;
  width: min(40rem, calc(100% - var(--text-inset) - var(--gutter)));
  margin-left: var(--text-inset);
  padding: clamp(1.2rem, 4vh, 3.2rem) 0 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  position: relative;
  margin: 0 0 1.1rem;
  font-family: var(--display);
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: -0.02em;
}

.hero .sg {
  position: relative;
  display: block;
  width: fit-content;
  color: var(--red);
  font-size: clamp(3.25rem, 6.1vw, 5.7rem);
}

.hero .ph {
  display: block;
  color: var(--cream);
  font-weight: 500;
  font-size: clamp(3rem, 5.6vw, 5.25rem);
}

.key {
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

.hero .key {
  position: absolute;
  width: 0.78em;
  height: auto;
  left: calc(100% + 0.2em);
  top: calc(-0.38em + 10px);
}

.lede {
  margin: 0.35rem 0 0;
  max-width: 36rem;
  color: var(--cream);
  font-size: clamp(1.02rem, 1.35vw, 1.28rem);
  line-height: 1.45;
}

.subscribe {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-top: 1.6rem;
  max-width: 36rem;
}

.subscribe input {
  flex: 1.55;
  height: 3.15rem;
  border: 0;
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
  padding: 0 0.9rem;
}

.subscribe button,
.thanks {
  flex: 1;
  height: 3.15rem;
  border: 0;
  border-radius: 0.75rem;
  background: var(--button);
  color: var(--button-text);
  font-family: var(--display);
  font-size: 1.35rem;
  cursor: pointer;
}

.subscribe button:hover {
  background: #e6d6c0;
}

.thanks {
  display: none;
  align-items: center;
  justify-content: center;
  margin: 1.6rem 0 0;
  max-width: 36rem;
  cursor: default;
  text-align: center;
  padding: 0 1rem;
}

.thanks.show {
  display: flex;
}

.years {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.35rem;
  padding: 0.5rem 0.6rem clamp(1.2rem, 4vh, 2.6rem);
}

.chevron {
  width: 3.2rem;
  height: 5.5rem;
  margin-bottom: 1.4rem;
  border: 0;
  background: transparent;
  color: rgba(214, 214, 214, 0.72);
  cursor: pointer;
  padding: 0;
}

.chevron svg {
  width: 100%;
  height: 100%;
  display: block;
}

.chevron:hover {
  color: #fff;
}

.chevron:disabled {
  opacity: 0.28;
  cursor: default;
}

.scroller {
  display: flex;
  justify-content: safe center;
  gap: clamp(0.7rem, 1.6vw, 1.35rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 1.2rem 0.25rem 0.4rem;
}

.scroller::-webkit-scrollbar {
  display: none;
}

.book {
  flex: 0 0 auto;
  scroll-snap-align: center;
  text-decoration: none;
  filter: drop-shadow(0 16px 14px rgba(255, 196, 130, 0.28))
    drop-shadow(0 10px 16px rgba(0, 0, 0, 0.55));
  transition: transform 0.2s ease;
}

.book:hover {
  transform: translateY(-6px);
}

.book img {
  height: clamp(168px, 27vh, 268px);
  width: auto;
  display: block;
}

.subpage {
  background: radial-gradient(
    ellipse 130% 100% at 100% 108%,
    var(--light) 0%,
    #2c302e 36%,
    var(--page) 74%
  );
  min-height: 100vh;
}

.subpage .site-header {
  background: var(--header);
}

.subpage .main-nav {
  padding: 1.35rem 1.25rem;
}

.panel {
  width: min(var(--content), calc(100% - 2 * var(--gutter)));
  margin: 1.75rem auto 3rem;
  background: linear-gradient(
    160deg,
    #141614 0%,
    #141614 20%,
    #322e2c 68%,
    #463f38 90%
  );
  border-radius: 8px;
  padding: clamp(1.6rem, 4vw, 3.4rem) var(--content-pad-x) 3.5rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.panel-title {
  margin: 0.4rem 0 2.2rem;
  text-align: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  color: #fff;
  letter-spacing: -0.02em;
}

.panel-title .red {
  color: var(--red);
}

.panel-title .key {
  position: static;
  display: inline-block;
  width: 0.95em;
  vertical-align: -0.18em;
  margin-left: 0.35rem;
  transform: none;
}

.panel h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  color: var(--cream-bright);
  margin: 2.1rem 0 0.55rem;
}

.panel p,
.panel li {
  color: var(--cream);
}

.panel p {
  margin: 0.45rem 0 0.8rem;
  max-width: 68ch;
}

.panel ul,
.panel ol {
  margin: 0.4rem 0 1rem;
  padding-left: 1.2rem;
  max-width: 68ch;
}

.panel li {
  margin: 0.35rem 0;
}

.lead-in {
  font-size: 1.12rem;
}

.headed {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.panel .headed {
  margin-top: 1.85rem;
}

.section-mark {
  flex: 0 0 12.6rem;
  width: 12.6rem;
  height: 12.6rem;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.headed-body {
  flex: 1;
  min-width: 0;
}

.headed-body h2,
.headed-body dt {
  margin-top: 0.15rem;
}

.faq dt {
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--cream-bright);
  margin-top: 1.35rem;
}

.faq dd {
  margin: 0.3rem 0 0;
  max-width: 68ch;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.6rem 1.2rem;
  margin-top: 0.5rem;
}

.archive-card {
  text-decoration: none;
  color: var(--cream);
}

.archive-card img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.45));
}

.archive-card h2 {
  font-size: 1.2rem;
  margin: 0.75rem 0 0.15rem;
}

.archive-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.year-block {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1.3rem;
  align-items: center;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}

.year-block img {
  width: 150px;
  height: auto;
}

.year-block h2 {
  margin-top: 0;
}

.resource-list {
  list-style: none;
  padding: 0;
}

.resource-list a {
  color: var(--cream-bright);
  text-underline-offset: 0.18em;
}

.resource-list a:hover {
  color: #fff;
}

.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0 1rem 2rem;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
    margin: 0.85rem auto 0;
    background: transparent;
    color: var(--cream-bright);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-family: var(--display);
    font-size: 1rem;
    padding: 0.35rem 0.9rem;
    cursor: pointer;
  }

  .main-nav {
    display: none;
    padding-top: 0.8rem;
    gap: 0.45rem 1.1rem;
  }

  .main-nav.open {
    display: flex;
  }

  .home .nav-toggle {
    position: relative;
    z-index: 1;
  }

  .hero {
    padding-top: 1.2rem;
  }

  .subscribe {
    flex-direction: column;
    align-items: stretch;
  }

  .subscribe button,
  .subscribe input,
  .thanks {
    width: 100%;
    flex: none;
  }

  .year-block {
    grid-template-columns: 110px 1fr;
  }

  .chevron {
    width: 2.2rem;
  }
}

@media (max-width: 560px) {
  .hero .sg {
    font-size: 2.6rem;
  }
  .hero .ph {
    font-size: 2.35rem;
  }
  .hero {
    --text-inset: calc(0.6rem + var(--content-pad-x));
  }
  .panel {
    width: calc(100% - 1.2rem);
  }
}

@media (max-width: 820px) {
  .headed {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .section-mark {
    flex-basis: 10.5rem;
    width: 10.5rem;
    height: 10.5rem;
  }
}

