@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap");

:root {
  --paper: #f8f6f0;
  --canvas: #fffdf8;
  --ink: #1d222a;
  --muted: #595b60;
  --line: #dcd8ce;
  --red: #ac3024;
  --red-dark: #862219;
  --night: #18212d;
  --night-line: #394653;
  --on-night: #ecedf0;
  --soft-blue: #bfcbdc;
  --sans: "Geist", system-ui, -apple-system, sans-serif;
  --display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --wide: 1200px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body, input, button, select {
  font-family: var(--sans);
}

h1, h2, h3, p, figure, dl, dd {
  margin: 0;
}

h1, h2, h3 {
  font-weight: 400;
}

a {
  color: inherit;
  text-underline-offset: 0.24em;
}

img {
  display: block;
  max-inline-size: 100%;
}

button, input, select {
  font-size: inherit;
}

button, select, input[type="radio"] {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid #2056a3;
  outline-offset: 4px;
}

::selection {
  color: #fff;
  background: var(--red);
}

section[id], .rsvp-card[id] {
  scroll-margin-top: 1.5rem;
}

.skip-link {
  position: fixed;
  z-index: 5;
  inset: 1rem auto auto 1rem;
  transform: translateY(calc(-100% - 1rem));
  padding: 0.65rem 1rem;
  color: white;
  background: var(--night);
}

.skip-link:focus {
  transform: none;
}

.shell {
  width: min(calc(100% - clamp(2rem, 8vw, 7rem)), var(--wide));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 1;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.nav-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 75px;
  gap: 1.5rem;
}

.nav-layout > .button:last-child {
  justify-self: end;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.wordmark-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 29px;
  height: 29px;
  background: var(--red);
  color: white;
  border-radius: 50%;
  font-size: 0.7rem;
  letter-spacing: 0;
}

.wordmark-mark i {
  width: 2px;
  height: 9px;
  background: currentColor;
  border-radius: 2px;
}

.wordmark-mark i:nth-child(2) {
  height: 14px;
}

.wordmark-mark i:last-child {
  height: 6px;
}

.main-nav, .main-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2.8vw, 2.3rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.main-nav a:hover {
  color: var(--red);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 49px;
  padding: 0.72rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.28;
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms, border-color 150ms, color 150ms;
}

.button-small {
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  font-size: 0.79rem;
}

.button-primary {
  border-color: var(--red);
  background: var(--red);
  color: white;
}

.button-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.button-outline {
  border-color: #b0a99c;
  color: var(--ink);
  background: transparent;
}

.button-outline:hover {
  border-color: var(--red);
  color: var(--red);
}

.button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.hero {
  overflow: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(2rem, 5.4vw, 5.4rem);
  padding-block: clamp(4rem, 7vw, 6.4rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--red);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.145em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  flex: 0 0 19px;
  height: 1px;
  background: currentColor;
  content: "";
}

.hero-copy {
  container-type: inline-size;
}

.hero h1 {
  margin-block: 1.5rem 1.55rem;
  font-family: var(--display);
  font-size: 16cqi;
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.048em;
}

.hero h1 > span {
  display: block;
}

.hero h1 .title-accent {
  color: var(--red);
}

.hero h1 em {
  font-weight: inherit;
  padding-inline-end: 0.08em;
}

.subtitle {
  max-width: 32ch;
  font-size: clamp(1.03rem, 1.4vw, 1.24rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.48;
}

.byline {
  margin-top: 1.27rem;
  color: var(--muted);
  font-size: 0.87rem;
}

.byline strong, .byline b {
  color: var(--ink);
  font-weight: 700;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.9rem;
}

.hero-art {
  align-self: center;
  justify-self: center;
  width: min(100%, 353px);
}

.book-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  background:
    radial-gradient(ellipse at 54% 43%, #587498, transparent 66%),
    linear-gradient(141deg, #3b506b, #33465f 75%);
}

.book-stage::before, .book-stage::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
}

.book-stage::before {
  inset: -18%;
  transform: rotate(-9deg);
  background:
    repeating-linear-gradient(0deg, transparent 0 28px, rgb(162 195 249 / 14%) 29px 30px),
    repeating-linear-gradient(90deg, transparent 0 28px, rgb(162 195 249 / 14%) 29px 30px);
  mask-image: radial-gradient(ellipse at 63% 57%, #000 6%, transparent 64%);
}

.book-stage::after {
  inset: 8% 9%;
  border: 1px solid rgb(190 218 255 / 21%);
  border-radius: 50%;
  transform: rotate(-26deg) scale(1.13, 0.76);
  box-shadow: 0 0 0 22px rgb(190 218 255 / 5%), 0 0 0 49px rgb(190 218 255 / 4%);
}

.book-cover {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 305px);
  height: auto;
  filter: drop-shadow(6px 9px 12px rgb(0 0 0 / 52%));
}

.book-caption {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  padding-block: 0.75rem 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.095em;
  line-height: 1.35;
  text-transform: uppercase;
}

.event-strip {
  background: var(--night);
  color: var(--on-night);
}

.strip-layout {
  display: grid;
  grid-template-columns: 1.02fr 0.92fr 1.27fr auto;
  align-items: center;
  min-height: 93px;
  padding-block: 1.15rem;
  gap: 1rem;
}

.strip-layout > :is(.strip-when, .strip-where) {
  padding-inline-start: clamp(1rem, 2.65vw, 2.7rem);
  border-inline-start: 1px solid var(--night-line);
}

.strip-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #f49b85;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.strip-label svg {
  flex: 0 0 auto;
}

.strip-when, .strip-where {
  font-size: 0.875rem;
  line-height: 1.35;
}

.strip-when strong, .strip-where strong {
  display: block;
  font-weight: 700;
}

.strip-when span, .strip-where span {
  color: var(--soft-blue);
}

.strip-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  color: white;
  font-size: 0.83rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #a5837f;
}

.strip-link:hover, .calendar-link:hover {
  color: #f49b85;
}

.event-strip :focus-visible, .launch-copy :focus-visible {
  outline-color: #f49b85;
}

.section {
  padding-block: clamp(4.1rem, 8vw, 7.6rem);
}

.section h2 {
  max-width: 18ch;
  font-family: var(--display);
  font-size: clamp(3.45rem, 6.5vw, 6.25rem);
  letter-spacing: -0.043em;
  line-height: 0.9;
}

.section h2 em {
  color: var(--red);
}

.section .eyebrow + h2 {
  margin-top: 1.25rem;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1fr);
  align-items: start;
  column-gap: clamp(2rem, 7vw, 7rem);
}

.about-copy {
  padding-top: 0.25rem;
}

.about-copy p {
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.68;
}

.about-copy p:first-child {
  color: var(--ink);
  font-weight: 500;
}

.about-copy p + p {
  margin-top: 1rem;
}

.book-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
  padding-block: 1rem;
  border-block: 1px solid var(--line);
}

.book-facts > div {
  flex: 1 0 90px;
}

.book-facts > .book-isbn {
  display: flex;
  flex: 0 0 100%;
  align-items: baseline;
  gap: 0.55rem;
  white-space: nowrap;
}

.book-facts dt, .event-details dt {
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.book-facts dd, .event-details dd {
  font-size: 0.88rem;
  font-weight: 600;
}

.book-isbn dt {
  margin-bottom: 0;
}

.themes {
  background: #eeebe3;
  border-block: 1px solid var(--line);
}

.themes h2 {
  max-width: 24ch;
  font-size: clamp(3.35rem, 5.9vw, 5.5rem);
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.7rem);
  margin-top: clamp(1.9rem, 3.6vw, 3.5rem);
}

.theme-grid article {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding-top: 1.3rem;
  border-top: 2px solid #b6aea0;
}

.theme-grid article:nth-child(2) {
  border-color: #7f97b1;
}

.theme-grid article:nth-child(3) {
  border-color: #b17b72;
}

.theme-grid article > svg {
  margin-bottom: 0.8rem;
  color: var(--red);
}

.theme-grid h3 {
  margin-bottom: 0.6rem;
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.theme-grid p {
  max-width: 38ch;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.editorial-link {
  margin-top: clamp(1.6rem, 3vw, 2.5rem);
  font-size: 0.88rem;
  font-weight: 700;
}

.editorial-link a:hover, .author-copy a:hover {
  color: var(--red);
}

.author-grid {
  display: grid;
  grid-template-columns: min(33%, 300px) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
}

.author-photo {
  width: 100%;
  max-width: 300px;
  height: auto;
}

.author-copy {
  max-width: 64ch;
}

.author-copy h2 + p {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
}

.author-copy p + p {
  margin-top: 1.1rem;
  font-size: 0.86rem;
  font-weight: 700;
}

.launch {
  background: var(--night);
  color: var(--on-night);
}

.launch-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(0, 1fr);
  gap: clamp(2rem, 6.7vw, 6.8rem);
  align-items: start;
}

.launch-copy .eyebrow, .launch-copy h2 em {
  color: #f49b85;
}

.venue-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(2.5rem, 6vw, 5rem);
}

.event-program {
  margin-block: 1.75rem;
}

.event-program h3 {
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
}

.event-program ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.event-program li {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 0.75rem;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--night-line);
}

.event-program time {
  color: #f49b85;
  font-weight: 700;
}

.event-program small {
  display: block;
  margin-top: 0.2rem;
  color: var(--soft-blue);
  font-size: 0.875rem;
}

.venue-photo, .venue-map {
  min-width: 0;
}

.venue-photo img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.venue-photo figcaption, .venue-map p {
  margin-top: 0.65rem;
  color: var(--soft-blue);
  font-size: 0.875rem;
}

.venue-media a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.venue-map h3 {
  margin-bottom: 0.8rem;
  font-size: 1.125rem;
}

.venue-map iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: 4px;
  background: var(--paper);
}

@media (max-width: 640px) {
  .venue-media {
    grid-template-columns: minmax(0, 1fr);
  }
}

.launch-copy h2 {
  max-width: 12ch;
}

.launch-copy h2 + p {
  max-width: 38ch;
  margin-top: 1.35rem;
  color: var(--soft-blue);
}

.event-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 440px;
  margin-block: 1.6rem 1.35rem;
  padding: 0;
  border-top: 1px solid var(--night-line);
  list-style: none;
}

.event-details > :is(li, div) {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--night-line);
  font-size: 0.93rem;
}

.event-details > div:has(dt) {
  display: block;
}

.event-details > li:not(:has(svg)) {
  display: block;
  color: var(--soft-blue);
}

.event-details strong {
  color: white;
  font-weight: 600;
}

.event-details svg {
  flex-shrink: 0;
  color: #f49b85;
}

.event-details dt {
  color: var(--soft-blue);
}

.calendar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  color: white;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration-color: #a5837f;
}

.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
}

.rsvp-card {
  min-width: 0;
  padding: clamp(1.4rem, 3vw, 2.6rem);
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.rsvp-card h2, .rsvp-card h3 {
  font-family: var(--display);
  font-size: clamp(2.15rem, 3.8vw, 3.25rem);
  line-height: 0.96;
  letter-spacing: -0.036em;
}

.rsvp-card h2 + p, .rsvp-card h3 + p {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.rsvp-card form {
  display: grid;
  gap: 1.15rem;
  margin-top: 1.35rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  width: 100%;
  font-size: 0.88rem;
  font-weight: 600;
}

.rsvp-card input:not([type="radio"], [type="checkbox"], [type="hidden"]), .rsvp-card select {
  display: block;
  width: 100%;
  min-height: 45px;
  padding: 0.58rem 0.7rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #bfb9ad;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
}

.rsvp-card input::placeholder {
  color: #6c6c71;
}

.rsvp-card fieldset {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.rsvp-card legend {
  margin-bottom: 0.38rem;
  padding: 0;
  font-size: 0.88rem;
  font-weight: 700;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  min-height: 46px;
  padding: 0.65rem 0.7rem;
  background: #fff;
  border: 1px solid #d3cdc2;
  border-radius: 4px;
  font-size: 0.88rem;
  line-height: 1.4;
  cursor: pointer;
}

.choice:hover {
  border-color: #aa7b73;
}

.choice:has(input:checked) {
  background: #faf1ec;
  border-color: var(--red);
}

.choice:focus-within {
  outline: 3px solid #2056a3;
  outline-offset: 2px;
}

.choice input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 0.08rem 0 0;
  accent-color: var(--red);
}

.choice input:focus-visible {
  outline: 0;
}

.choice strong {
  display: block;
  font-weight: 700;
}

.choice small {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.rsvp-card :is(.button-primary, button[type="submit"]) {
  width: 100%;
}

.form-note {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.form-status {
  color: var(--ink);
  font-size: 0.87rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.form-status:empty {
  display: none;
}

.form-status[data-state="success"], .form-status.success {
  padding: 0.7rem 0.8rem;
  color: #154d33;
  background: #e7f4ec;
  border-radius: 4px;
}

.form-status[data-state="error"], .form-status.error {
  padding: 0.7rem 0.8rem;
  color: #862219;
  background: #faece8;
  border-radius: 4px;
}

.event-support {
  padding-block: clamp(2rem, 5vw, 4rem);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.event-support h2 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  line-height: 1.1;
}

.support-logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: 2rem;
  margin: 1.5rem 0 0;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.support-logos img {
  width: auto;
  height: auto;
  max-width: min(100%, 15rem);
  max-height: 5.5rem;
}

@media (max-width: 640px) {
  .support-logos {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  padding-block: 1.65rem;
  color: var(--muted);
  background: var(--paper);
  font-size: 0.82rem;
}

.footer-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.5rem;
}

.footer-layout nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
}

.footer-layout strong, .footer-layout .wordmark {
  color: var(--ink);
}

.footer-layout a:hover {
  color: var(--red);
}

.organization-back, main.section .calendar-link {
  display: inline-flex;
  color: var(--ink);
  margin-bottom: 1rem;
}

.organization-back:hover, main.section .calendar-link:hover {
  color: var(--red);
}

.organization-panel > * + * {
  margin-top: 1.15rem;
}

.table-scroll, .organization-table {
  max-width: 100%;
  overflow-x: auto;
}

.rsvp-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.rsvp-card :is(th, td) {
  padding: 0.65rem 0.7rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.organization-table :is(th, td):last-child {
  white-space: nowrap;
}

.organization-table .attendance-form {
  margin-top: 0.35rem;
}

.organization-table a {
  display: inline-block;
  margin-inline-end: 0.6rem;
}

.organization-editor {
  max-width: 32rem;
}

.organization-editor .actions {
  margin-top: 0;
}

.organization-editor .actions .button {
  width: auto;
}

@media (max-width: 800px) {
  .nav-layout {
    gap: 1rem;
    min-height: 66px;
  }

  .hero-grid, .about-grid, .author-grid, .launch-grid {
    gap: 2.2rem;
  }

  .hero-grid {
    padding-block: 3.3rem;
  }

  .strip-layout {
    grid-template-columns: 1fr 1fr auto;
  }

  .strip-layout .strip-label {
    grid-column: 1 / -1;
  }

  .strip-layout .strip-when {
    padding-inline-start: 0;
    border-inline-start: 0;
  }
}

@media (max-width: 640px) {
  .nav-layout {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 0.65rem;
    padding-top: 0.72rem;
  }

  .nav-layout > .button:last-child {
    grid-column: 2;
    grid-row: 1;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .main-nav a {
    font-size: 0.82rem;
  }

  .wordmark {
    font-size: 0.89rem;
    line-height: 1.3;
  }

  .hero-grid, .about-grid, .author-grid, .launch-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-grid {
    padding-block: 2.8rem 2.4rem;
  }

  .hero h1 {
    margin-block: 1.2rem;
  }

  .actions {
    margin-top: 1.45rem;
  }

  .strip-layout {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 0.75rem;
  }

  .strip-layout .strip-link {
    grid-column: 1 / -1;
    min-height: 35px;
  }

  .strip-when, .strip-where {
    font-size: 0.81rem;
  }

  .section h2 {
    font-size: clamp(3.15rem, 11vw, 4.5rem);
  }

  .theme-grid {
    grid-template-columns: 1fr;
    gap: 1.45rem;
  }

  .theme-grid article {
    padding-top: 0.95rem;
  }

  .theme-grid h3 {
    font-size: 2.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
