:root {
  --ink: #191714;
  --muted: #746c63;
  --paper: #ffffff;
  --surface: #ffffff;
  --bone: #ffffff;
  --taupe: #b3a79b;
  --mocha: #6d5f54;
  --olive: #7b7a45;
  --olive-dark: #57562f;
  --wine: #c58f89;
  --charcoal: #201f1d;
  --line: rgba(25, 23, 20, 0.14);
  --shadow: 0 24px 70px rgba(25, 23, 20, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Helvetica World", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(25, 23, 20, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  width: clamp(142px, 13vw, 210px);
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
  filter: invert(1);
}

.header-spacer {
  min-width: 1px;
}

.header-link,
.button,
.choice-card span,
.choice-card small,
.section-kicker {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.header-link {
  justify-self: end;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: #ffffff;
  background: #000000;
}

.header-link:hover {
  color: #ffffff;
  background: var(--wine);
}

.side-community-link {
  position: fixed;
  z-index: 19;
  top: 50%;
  right: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: #ffffff;
  background: #000000;
  border: 0;
  font-size: 0.76rem;
  font-weight: 800;
  font-family: inherit;
  text-transform: uppercase;
  cursor: pointer;
  transform: translateY(-50%) rotate(-90deg) translateY(-50%);
  transform-origin: right center;
}

.side-community-link:hover {
  background: var(--wine);
}

.hero {
  position: relative;
  min-height: 102vh;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 112px clamp(18px, 6vw, 84px) 88px;
  overflow: hidden;
}

.hero-slideshow,
.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slideshow {
  overflow: hidden;
}

.hero-image {
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(0.98);
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1200ms ease;
}

.hero-image.active {
  opacity: 1;
}

.hero-image-journal {
  object-position: center 72%;
  transform: scale(1.01);
}

.hero-shade {
  background:
    linear-gradient(0deg, rgba(25, 23, 20, 0.34) 0%, rgba(25, 23, 20, 0.16) 48%, rgba(25, 23, 20, 0.04) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0) 30%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  color: var(--bone);
  text-align: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--olive-dark);
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  max-width: none;
  margin: 0 auto 30px;
  font-size: clamp(3.3rem, 7.2vw, 8.8rem);
  line-height: 0.9;
  text-transform: none;
  white-space: nowrap;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.55rem, 4.8vw, 5.4rem);
  line-height: 0.96;
}

.hero-copy {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(244, 239, 231, 0.9);
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  line-height: 1.55;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  margin-top: 0;
  border: 1px solid rgba(25, 23, 20, 0.18);
  border-bottom: 0;
  border-right: 0;
  background: #ffffff;
}

.choice-card {
  display: grid;
  min-height: 190px;
  align-content: space-between;
  padding: 24px;
  background: #ffffff;
  border-right: 1px solid rgba(25, 23, 20, 0.18);
  border-bottom: 1px solid rgba(25, 23, 20, 0.18);
  box-shadow: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.choice-card:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

.choice-card.ebook-card {
  color: var(--bone);
  background: var(--olive-dark);
}

.choice-card span {
  color: var(--olive-dark);
}

.choice-card.ebook-card span,
.choice-card.ebook-card small,
.choice-card.table-card span,
.choice-card.table-card small {
  color: rgba(255, 255, 255, 0.78);
}

.choice-card.table-card {
  color: var(--bone);
  background: var(--wine);
}

.choice-card.table-card span,
.choice-card.table-card small {
  color: rgba(255, 255, 255, 0.78);
}

.choice-card strong {
  display: block;
  margin: 18px 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.25rem, 3.4vw, 3.7rem);
  font-weight: 400;
  line-height: 0.88;
}

.choice-card small {
  color: var(--muted);
  line-height: 1.45;
}

.about-section,
.contact-section {
  padding: clamp(62px, 8vw, 112px) clamp(18px, 6vw, 84px);
}

.about-section {
  background: #11100f;
  color: var(--bone);
}

.about-section .section-kicker {
  color: rgba(255, 255, 255, 0.68);
}

.section-heading {
  max-width: 940px;
  margin-bottom: 40px;
}

.section-quote {
  max-width: 620px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.65;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 0;
  border-right: 0;
}

.about-grid article {
  min-height: 230px;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 28px;
  background: #11100f;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.about-grid h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 400;
  line-height: 0.95;
}

.about-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

.about-grid span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 430px);
  gap: clamp(34px, 7vw, 86px);
  align-items: center;
  background: #ffffff;
}

.contact-panel {
  padding: 28px;
  background: #ffffff;
  border: 1px solid rgba(25, 23, 20, 0.16);
}

.contact-panel p {
  color: var(--muted);
  line-height: 1.72;
}

.contact-panel strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.contact-form label {
  display: grid;
  gap: 7px;
}

.contact-form span {
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(25, 23, 20, 0.18);
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.contact-form input {
  min-height: 46px;
  padding: 0 12px;
}

.contact-form textarea {
  min-height: 130px;
  padding: 12px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(25, 23, 20, 0.22);
  outline-offset: 2px;
}

.contact-form .button {
  width: 100%;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 0;
  background: var(--charcoal);
  color: var(--bone);
  font: inherit;
  cursor: pointer;
}

.button:hover {
  background: var(--wine);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.58);
}

.modal-backdrop.show {
  display: flex;
}

.community-modal {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: clamp(28px, 5vw, 46px);
  background: #ffffff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.community-modal h2 {
  margin-bottom: 16px;
}

.community-modal p {
  color: var(--muted);
  line-height: 1.65;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 6vw, 84px);
  color: rgba(244, 239, 231, 0.82);
  background: var(--charcoal);
}

@media (max-width: 900px) {
  .site-header {
    position: sticky;
    grid-template-columns: auto 1fr;
  }

  .header-spacer {
    display: none;
  }

  .brand {
    justify-self: start;
  }

  .side-community-link {
    top: 50%;
    right: 0;
    bottom: auto;
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.64rem;
    transform: translateY(-50%) rotate(-90deg) translateY(-50%);
  }

  .hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 120px;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(25, 23, 20, 0.66) 0%, rgba(25, 23, 20, 0.3) 48%, rgba(25, 23, 20, 0.1) 100%),
      linear-gradient(180deg, rgba(238, 231, 223, 0.5) 0%, rgba(238, 231, 223, 0) 28%);
  }

  .hero-image-journal {
    object-position: center 82%;
  }

  .choice-grid,
  .about-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .choice-card {
    min-height: 132px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 12px 16px;
  }

  h1 {
    font-size: clamp(2.45rem, 12vw, 4.2rem);
    line-height: 0.9;
    white-space: normal;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .choice-card strong {
    font-size: 2.2rem;
  }

  .header-link {
    font-size: 0.68rem;
    text-align: right;
  }

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