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

html {
  scroll-padding-block-start: 1rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.5 var(--body);
}

a {
  font: inherit;
}

a {
  color: var(--rust);
  text-underline-offset: .22em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a[target="_blank"]::after {
  content: "↗" / "";
  margin-inline-start: .25em;
  font-size: .8em;
}

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

[hidden] {
  display: none !important;
}

:where(h1,h2,h3,p,figure,ul) {
  margin: 0;
}

svg, img {
  display: block;
}

.frame {
  max-width: var(--canvas);
  margin-inline: auto;
}

.skip {
  position: absolute;
  inset: .5rem auto auto .5rem;
  padding: .5rem .8rem;
  background: var(--paper);
  z-index: 2;
  transform: translateY(-180%);
}

.skip:focus {
  transform: none;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  margin-inline: var(--gutter);
  border-bottom: 1px solid var(--ink);
}

.signature {
  display: grid;
  justify-items: start;
  gap: .42rem;
}

.wordmark {
  display: grid;
  place-items: center;
  aspect-ratio: 3.26;
  width: clamp(12.75rem, 23vw, 20.25rem);
  text-decoration: none;
}

.wordmark img {
  width: 100%;
  height: auto;
  /* The folded lettering carries most of its ink below the ascender. */
  transform: translateY(-11.4%);
}

.descriptor {
  font-family: var(--display);
  font-size: clamp(.98rem, 1.5vw, 1.25rem);
  line-height: 1.25;
  color: var(--rust);
}

.masthead nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(.8rem, 2.4vw, 2.5rem);
}

.masthead nav a {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}

.masthead nav a:is(:hover,:focus-visible) {
  color: var(--rust);
  text-decoration: underline;
}

.session {
  display: grid;
  grid-template-columns: 55% 45%;
  grid-template-rows: auto auto auto auto;
  align-items: stretch;
}

.reading {
  grid-column: 1;
  grid-row: 1;
  padding: clamp(1.65rem,4vw,4rem) var(--gutter) 1.3rem;
}

.reading-labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
  margin-bottom: 1.25rem;
}

.eyebrow {
  font-size: .94rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--rust);
}

#book-title {
  max-width: 16ch;
  text-wrap: balance;
  font: 500 clamp(2.8rem,5.5vw,5.6rem)/1.04 var(--display);
  letter-spacing: -.039em;
  overflow-wrap: anywhere;
}

#book-author {
  margin-top: .8rem;
  font-size: clamp(1.08rem,1.5vw,1.4rem);
}

#book-author:empty {
  display: none;
}

.assignment {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .3rem .7rem;
  margin-top: 1.4rem;
  font-size: 1.03rem;
}

.assignment .eyebrow {
  font-size: inherit;
}

#reading-range {
  font-weight: 600;
}

.club-intro {
  max-width: 50ch;
  margin-top: 1.25rem;
  font-size: clamp(1.05rem,1.5vw,1.35rem);
  line-height: 1.48;
}

.question {
  grid-column: 1;
  grid-row: 2;
  padding: .4rem var(--gutter) clamp(1.65rem,3vw,3.1rem);
}

.question-inner {
  max-width: 40rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.15rem;
}

#discussion-question {
  margin-top: .55rem;
  max-width: 31ch;
  font: 400 clamp(1.45rem,2.15vw,2.2rem)/1.24 var(--display);
  text-wrap: pretty;
}

.spiral {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: relative;
  min-height: clamp(22rem,34vw,33rem);
  overflow: hidden;
}

.spiral img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.meeting {
  grid-column: 1/-1;
  grid-row: 3;
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(0,1fr) minmax(13rem,auto);
  align-items: center;
  gap: 1.5rem;
  background: var(--marigold);
  padding: clamp(1.65rem,3.2vw,3.4rem) var(--gutter);
}

.meeting-head {
  display: grid;
  align-content: center;
  gap: .65rem;
}

.meeting-head h2 {
  font: 600 1rem/1.3 var(--body);
  color: var(--ink);
}

#meeting-date {
  font: 500 clamp(1.7rem,3vw,3.2rem)/1.08 var(--display);
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

#club-announcements {
  border-top: 1px solid var(--rule);
  padding-block: 1.1rem 1.4rem;
}

#club-announcements p {
  margin-block: .55rem;
  max-width: 44ch;
}

#club-announcements a {
  display: inline-block;
  padding-block: .4rem;
  font-weight: 600;
}

.meeting-facts {
  display: grid;
  align-content: center;
  gap: .35rem;
  padding-inline-start: clamp(1rem,2.8vw,3rem);
  border-inline-start: 1px solid var(--rule);
}

.meeting-facts:not(:has(> :not([hidden]):not(:empty))) {
  display: none;
}

#meeting-time {
  font-size: clamp(1.05rem,1.6vw,1.5rem);
  font-weight: 600;
}

#meeting-meta {
  font-size: 1rem;
}

#booking {
  justify-self: end;
  max-width: 23rem;
  display: grid;
  gap: .45rem;
  justify-items: start;
  font-size: 1rem;
}

.meeting:not(:has(.meeting-facts > :not([hidden]):not(:empty))) #booking {
  grid-column: 2 / -1;
}

#booking a {
  min-height: 46px;
  border: 1px solid var(--rust);
  border-radius: 0;
  background: var(--rust);
  color: var(--paper);
  padding: .6rem 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
}

#booking a:hover {
  background: var(--ink);
  border-color: var(--ink);
}

#registration-note {
  max-width: 31ch;
  font-size: .96rem;
}

#booking #follow-jump {
  background: transparent;
  border: 0;
  min-height: 2.5rem;
  padding: .25rem 0;
  color: var(--ink);
  text-decoration: underline;
}

#next-book {
  grid-column: 1/-1;
  grid-row: 4;
  margin: 0 var(--gutter);
  padding-block: 1.2rem;
  border-bottom: 1px solid var(--subtle-rule);
  line-height: 1.5;
}

#next-book:empty {
  display:none;
}

#next-book-title {
  font: 500 1.5rem/1.3 var(--display);
}

.below {
  padding: clamp(2rem,4vw,4rem) var(--gutter) clamp(2.5rem,5vw,5rem);
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
  gap: clamp(2rem,6vw,7rem);
}

.below h2, .welcome summary {
  font: 500 clamp(1.55rem,2.4vw,2.4rem)/1.16 var(--display);
  letter-spacing: -.025em;
}

.welcome {
  align-self: start;
  border-block: 1px solid var(--rule);
}

.welcome summary {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: center;
  padding-block: 1.1rem;
  cursor: pointer;
  min-height: 48px;
  list-style: none;
}

.welcome summary::-webkit-details-marker {
  display: none;
}

.welcome summary::after {
  content: "+";
  font: 400 1.55rem/1 var(--body);
  color: var(--rust);
}

.welcome[open] summary::after {
  content: "−";
}

.welcome p {
  max-width: 44ch;
  padding-bottom: 1.1rem;
}

.club-details {
  min-width: 0;
}

.club-details .welcome + .welcome {
  border-top: 0;
}

#feedback-frame {
  display: block;
  width: 100%;
  height: min(39rem, 75vh);
  border: 0;
  background: var(--paper);
}

#contact-organizer {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  margin-bottom: .45rem;
}

.past {
  border-top: 1px solid var(--rule);
  padding-top: 1.1rem;
}

#shelf {
  list-style: none;
  padding: 0;
  margin-top: .8rem;
}

#shelf li {
  padding-block: .75rem;
  border-bottom: 1px solid var(--subtle-rule);
}

#shelf h3 {
  font: 400 clamp(1.15rem,1.6vw,1.6rem)/1.2 var(--display);
}

#shelf p {
  font-size: .98rem;
  margin-top: .3rem;
}

#shelf a {
  font-size: .98rem;
  font-weight: 600;
}

#bookclubs-invite {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

@media (max-width: 53rem) {
  .masthead {
    padding-block: 1rem;
  }
  .meeting {
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  }
  #booking {
    grid-column: 1/-1;
    justify-self: start;
    justify-content: flex-start;
  }
  .session {
    grid-template-columns: 56% 44%;
  }
  #book-title {
    font-size: clamp(2.6rem,6.8vw,4.1rem);
  }
}

@media (max-width: 40rem) {
  .masthead {
    align-items: flex-start;
    flex-direction: column;
    padding: 1.06rem 0 0;
    gap: .22rem;
  }
  .signature {
    gap: .28rem;
  }
  .wordmark {
    width: min(15.6rem, 85vw);
  }
  .descriptor {
    font-size: 1rem;
  }
  .masthead nav {
    gap: 1.4rem;
    font-size: .94rem;
  }
  .session {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: auto auto auto auto auto;
  }
  .reading {
    grid-column: 1;
    grid-row: 1;
    padding: 1.4rem var(--gutter) 1.35rem;
  }
  .reading-labels {
    margin-bottom: .7rem;
  }
  #book-title {
    max-width: 17ch;
    font-size: clamp(2.45rem,10vw,3.7rem);
    line-height: 1.03;
  }
  #book-author {
    margin-top: .45rem;
    font-size: 1.08rem;
  }
  .assignment {
    margin-top: .7rem;
    font-size: .98rem;
  }
  .club-intro {
    margin-top: .7rem;
    max-width: 40ch;
  }
  .spiral {
    grid-column: 1;
    grid-row: 2;
    min-height: 0;
    height: clamp(9.8rem,43vw,15.5rem);
  }
  .meeting {
    grid-column: 1;
    grid-row: 3;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: .55rem;
    padding: 1.15rem var(--gutter) 1.35rem;
  }
  .meeting-head {
    gap: .2rem;
  }
  #meeting-date {
    font-size: 1.88rem;
  }
  .meeting-facts {
    border: 0;
    padding: 0;
    gap: .08rem;
  }
  #meeting-time {
    font-size: 1.11rem;
  }
  #meeting-meta {
    font-size: .96rem;
  }
  #booking {
    display: grid;
    width: 100%;
    max-width: none;
    margin-top: .3rem;
    justify-content: start;
  }
  .question {
    grid-column: 1;
    grid-row: 4;
    padding: 1.4rem var(--gutter) 0;
  }
  .question-inner {
    max-width: none;
    padding-top: 0;
    border: 0;
  }
  #discussion-question {
    font-size: 1.65rem;
  }
  #next-book {
    grid-column: 1;
    grid-row: 5;
  }
  .below {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 1.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
  }
}

.reading-main {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(1rem, 2vw, 2rem);
}

.reading-copy {
  flex: 1;
  min-width: 0;
}

#book-cover {
  flex: none;
  width: clamp(4.5rem, 8.5vw, 8rem);
  aspect-ratio: 2 / 3;
  object-fit: contain;
  object-position: center top;
}

.reading-main:has(#book-cover:not([hidden])) #book-title {
  font-size: clamp(2.3rem, 3.8vw, 4.25rem);
}

.book-purchase {
  margin-top: 1rem;
}

.book-purchase:has(#book-buy[hidden]):has(#affiliate-note[hidden]) {
  display: none;
}

#book-buy {
  font-weight: 600;
}

#affiliate-note {
  max-width: 44ch;
  margin-top: .35rem;
  font-size: .92rem;
}

#booking:has(#call-registration:not([hidden])) #booking-fallback {
  display: none;
}

@media (max-width: 40rem) {
  #book-cover {
    width: clamp(4.25rem, 18vw, 6rem);
  }
}

#analytics-choice {
  margin: 0 var(--gutter) 2rem;
  max-width: 51ch;
  font-size: .95rem;
}
#analytics-choice summary, #analytics-choice label {
  cursor: pointer;
}
#analytics-choice summary {
  color: var(--rust);
  width: fit-content;
}
#analytics-choice p {
  margin-block: .5rem;
}
#analytics-choice label {
  display: block;
  padding-block: .2rem;
}
#analytics-choice input {
  accent-color: var(--rust);
}

#reading-plan {
  margin-inline: var(--gutter);
  padding-top: clamp(2rem, 4vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.65fr);
  gap: clamp(1rem, 4vw, 4rem);
}
.plan-intro h2 {
  font: 500 clamp(1.75rem, 3.25vw, 3.4rem)/1.05 var(--display);
  letter-spacing: -.025em;
  margin-block: .4rem .7rem;
}
.plan-intro p, .plan-intro a {max-width: 36ch;}
.plan-intro a, .plan-action a {display: inline-flex; align-items: center; min-height: 44px; font-weight: 600;}
#plan-dates {list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule);}
#plan-dates li {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.6fr) minmax(0, .8fr);
  align-items: center;
  column-gap: 1rem;
  padding-block: .85rem;
  border-bottom: 1px solid var(--subtle-rule);
}
#plan-dates h3 {font: 400 clamp(1.2rem, 1.7vw, 1.55rem)/1.22 var(--display);}
.plan-date, .plan-action {font-size: .91rem;}
.plan-date time, .plan-hour {display: block;}
.plan-hour {margin-top: .12rem;}
@media (max-width: 55rem) {
  #reading-plan {grid-template-columns: minmax(0, 1fr);}
}
@media (max-width: 36rem) {
  #plan-dates li {grid-template-columns: minmax(0, 1fr) auto; row-gap: .3rem;}
  .plan-date {grid-column: 1/-1; display: flex; flex-wrap: wrap; gap: .25rem .65rem;}
  .plan-hour {margin-top: 0;}
  #plan-dates h3 {padding-right: .3rem;}
}
