:root {
  --bg: #f8f7f2;
  --surface: #fffdf8;
  --surface-soft: #efede6;
  --ink: #171513;
  --muted: #6f6a61;
  --quiet: #9d988f;
  --line: #dfdbd0;
  --accent: #9b5f42;
  --accent-soft: #eadbd1;
  --radius: 8px;
  --shadow: 0 18px 44px rgba(24, 22, 18, 0.08);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Instrument Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

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

button,
input,
select {
  font: inherit;
}

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

h1 {
  font-size: clamp(3.15rem, 7.2vw, 7rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.93;
  margin-bottom: 30px;
  max-width: 1040px;
}

h2 {
  font-size: clamp(2.1rem, 4.6vw, 4.7rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.96;
  margin-bottom: 20px;
  max-width: 880px;
}

h3 {
  font-size: 1.08rem;
  line-height: 1.2;
  margin-bottom: 10px;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(248, 247, 242, 0.82);
  border-bottom: 1px solid rgba(33, 29, 24, 0.09);
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: none;
  min-height: 76px;
  padding: 0 max(28px, calc((100vw - 1180px) / 2));
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand,
.top-nav,
.button {
  align-items: center;
  display: flex;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  background: #24211d;
  border-radius: 6px;
  color: var(--surface);
  display: grid;
  font-size: 0.72rem;
  height: 32px;
  place-items: center;
  width: 32px;
}

.top-nav {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  gap: 24px;
}

.top-nav a:hover,
.top-nav .nav-action {
  color: var(--ink);
}

.top-nav .nav-action {
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--surface);
  padding: 8px 14px;
}

.kicker,
.hello,
.eyebrow {
  color: var(--accent);
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.button {
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
  justify-content: center;
  min-height: 50px;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
  padding: 0 19px;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.page-shell,
.home-hero,
.section,
.process-section,
.home-cta,
.site-footer {
  margin: 0 auto;
  max-width: 1180px;
}

.home-hero {
  align-items: end;
  display: grid;
  gap: 64px;
  grid-template-columns: minmax(0, 1fr) 336px;
  min-height: min(760px, calc(100vh - 76px));
  padding: 118px 28px 76px;
}

.home-hero-copy p,
.agenda-intro p:not(.kicker),
.books-hero p:not(.kicker),
.section-heading,
.scheduler-heading p:not(.eyebrow),
.book-featured p,
.books-note p,
.agenda-note p,
.summary-note,
.prep-grid p,
.service-grid p,
.process-rail p,
.home-cta p,
.book-card p {
  color: var(--muted);
  font-size: 1.05rem;
}

.home-hero-copy p {
  font-size: 1.18rem;
  max-width: 690px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-console {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.console-top {
  color: var(--quiet);
  display: flex;
  font-size: 0.76rem;
  font-weight: 800;
  justify-content: space-between;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.console-item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.console-item span,
.service-grid span,
.prep-grid span {
  color: var(--quiet);
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  margin-bottom: 26px;
}

.console-item strong {
  display: block;
  font-size: 1.75rem;
  line-height: 1;
}

.console-item p {
  color: var(--muted);
  margin: 8px 0 0;
}

.signal-strip {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0 auto;
  max-width: 1180px;
}

.signal-strip span {
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
  padding: 18px 28px;
  text-align: center;
}

.signal-strip span:last-child {
  border-right: 0;
}

.section {
  padding: 104px 28px;
}

.section-heading {
  max-width: 780px;
}

.section-heading h2 {
  color: var(--ink);
}

.service-grid,
.prep-grid,
.book-grid {
  display: grid;
  gap: 1px;
}

.service-grid {
  background: transparent;
  border-top: 1px solid var(--line);
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 42px;
}

.service-grid article,
.prep-grid article {
  background: transparent;
  border-right: 1px solid var(--line);
  min-height: 230px;
  padding: 28px 24px 24px 0;
}

.service-grid article:last-child,
.prep-grid article:last-child {
  border-right: 0;
}

.service-grid h3,
.prep-grid h3 {
  font-size: 1.22rem;
}

.management-section {
  padding-top: 0;
}

.compact-grid article {
  min-height: 190px;
}

.process-section {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 54px;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.75fr);
  padding: 86px 28px;
}

.process-rail {
  display: grid;
  gap: 0;
}

.process-rail div {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.process-rail div:first-child {
  border-top: 1px solid var(--line);
}

.process-rail span {
  display: block;
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.home-cta {
  padding: 96px 28px;
}

.home-cta h2 {
  max-width: 900px;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  padding: 28px;
}

.site-footer span {
  color: var(--ink);
  font-weight: 800;
}

.site-footer div {
  display: flex;
  gap: 18px;
}

.native-agenda,
.books-shell {
  padding: 90px 28px 108px;
}

.agenda-intro,
.native-scheduler,
.books-hero {
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr) 312px;
}

.agenda-intro > div,
.books-hero > div {
  padding-right: 20px;
}

.agenda-note,
.books-note,
.scheduler-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink);
  padding: 24px;
}

.agenda-note span,
.books-note span {
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 800;
  margin-bottom: 34px;
  padding: 6px 12px;
  text-transform: uppercase;
}

.agenda-note strong,
.books-note strong {
  display: block;
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
  line-height: 1;
  margin-bottom: 18px;
}

.scheduler-summary h2,
.book-featured-copy h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  line-height: 1;
}

.book-featured-copy p:not(.eyebrow) {
  max-width: 360px;
}

.native-scheduler {
  align-items: start;
  margin-top: 68px;
}

.scheduler-main {
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.slot-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.slot-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
  min-height: 172px;
  padding: 20px;
  text-align: left;
}

.slot-card:hover,
.slot-card.is-selected {
  border-color: var(--ink);
  box-shadow: var(--shadow);
}

.slot-card span {
  color: var(--accent);
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  margin-bottom: 34px;
  text-transform: uppercase;
}

.slot-card strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1;
  margin-bottom: 10px;
}

.slot-card small {
  color: var(--muted);
}

.scheduler-summary .eyebrow {
  color: var(--accent);
}

.scheduler-summary dl {
  display: grid;
  gap: 0;
  margin: 28px 0;
}

.scheduler-summary dl div {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.scheduler-summary dt {
  color: var(--quiet);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.scheduler-summary dd {
  font-size: 1.06rem;
  font-weight: 800;
  margin: 4px 0 0;
}

.confirm-button {
  background: var(--ink);
  color: var(--surface);
  width: 100%;
}

.primary-booking-cta {
  border-radius: var(--radius);
  font-size: 1.03rem;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 14px 0 20px;
}

.cta-icon {
  align-items: center;
  background: var(--surface);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 1.2rem;
  height: 38px;
  justify-content: center;
  order: 2;
  width: 38px;
}

.summary-note {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 14px 0 0;
}

.agenda-prep {
  padding-top: 76px;
}

.prep-grid {
  background: transparent;
  border-top: 1px solid var(--line);
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.book-featured {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 38px;
  grid-template-columns: 0.42fr 1fr;
  margin-top: 64px;
  padding: 28px;
}

.featured-book-card {
  display: grid;
  gap: 30px;
  grid-template-columns: 190px minmax(0, 1fr);
}

.book-cover {
  align-items: center;
  background: #ebe7dc;
  border-radius: var(--radius);
  display: flex;
  justify-content: center;
  min-height: 250px;
  padding: 16px;
}

.book-cover-image img {
  border-radius: 5px;
  box-shadow: 0 18px 34px rgba(17, 19, 26, 0.18);
  display: block;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.cover-fallback-title {
  display: none;
}

.book-cover-fallback {
  background: var(--ink);
  color: var(--surface);
}

.book-cover-fallback .cover-fallback-title {
  display: block;
  font-size: 1.25rem;
  line-height: 1.05;
}

.book-meta {
  color: var(--accent);
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.book-actions,
.mini-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.soft-action {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-weight: 800;
  min-height: 50px;
  padding: 0 18px;
}

.books-library {
  padding: 88px 0 0;
}

.book-controls {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  margin-top: 32px;
}

.book-controls label {
  display: block;
  font-weight: 800;
  margin-bottom: 8px;
}

.book-controls input,
.book-controls select {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  min-height: 54px;
  padding: 0 16px;
  width: 100%;
}

.category-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.category-menu button {
  background: rgba(255, 253, 248, 0.68);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  min-height: 36px;
  padding: 0 12px;
}

.category-menu button.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}

.book-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
  gap: 16px;
}

.book-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  padding: 16px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.book-card:hover {
  border-color: rgba(23, 21, 19, 0.24);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.book-card .book-cover {
  aspect-ratio: 4 / 5;
  min-height: 0;
}

.book-card-body {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 2px 0 0;
}

.book-card-body h3 {
  font-size: 1.26rem;
  letter-spacing: 0;
}

.book-card-body p {
  flex: 1;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.tag-row span {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 5px 8px;
}

.mini-actions a {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
  min-height: 36px;
  padding: 0 10px;
}

.mini-actions a[href*="amzn"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}

.mini-actions span {
  align-items: center;
  color: var(--quiet);
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 800;
  min-height: 36px;
}

.books-newsletter {
  border-top: 1px solid var(--line);
  margin-top: 76px;
  padding-top: 42px;
}

.newsletter-form {
  margin-top: 24px;
  max-width: 680px;
}

.newsletter-form label {
  display: block;
  font-weight: 800;
  margin-bottom: 8px;
}

.newsletter-form div {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.newsletter-form input,
.newsletter-form button {
  border-radius: var(--radius);
  min-height: 50px;
}

.newsletter-form input {
  border: 1px solid var(--line);
  padding: 0 14px;
}

.newsletter-form button {
  background: var(--ink);
  border: 0;
  color: var(--surface);
  cursor: pointer;
  font-weight: 800;
  padding: 0 18px;
}

.roadmap-shell {
  padding: 90px 28px 108px;
}

.roadmap-hero {
  align-items: end;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr) 300px;
}

.roadmap-hero p:not(.kicker),
.roadmap-current p,
.roadmap-loop p,
.timeline-body p {
  color: var(--muted);
  font-size: 1.05rem;
}

.roadmap-scorecard {
  background: var(--ink);
  border-radius: var(--radius);
  color: var(--surface);
  padding: 24px;
}

.roadmap-scorecard span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 800;
  margin-bottom: 42px;
  padding: 6px 12px;
  text-transform: uppercase;
}

.roadmap-scorecard strong {
  display: block;
  font-size: clamp(4rem, 8vw, 6rem);
  letter-spacing: 0;
  line-height: 0.85;
  margin-bottom: 18px;
}

.roadmap-scorecard p {
  color: rgba(255, 255, 255, 0.64);
  margin: 0;
}

.roadmap-current,
.roadmap-worklog,
.roadmap-loop {
  margin-top: 88px;
}

.roadmap-summary-grid,
.loop-steps {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
}

.loop-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.roadmap-summary-grid article,
.loop-steps article {
  border-right: 1px solid var(--line);
  min-height: 210px;
  padding: 26px 22px 22px 0;
}

.roadmap-summary-grid article:last-child,
.loop-steps article:last-child {
  border-right: 0;
}

.roadmap-summary-grid span,
.loop-steps span,
.timeline-meta span,
.timeline-meta strong {
  color: var(--quiet);
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  margin-bottom: 26px;
  text-transform: uppercase;
}

.loop-steps span,
.timeline-meta strong {
  color: var(--accent);
}

.timeline-list {
  border-top: 1px solid var(--line);
  margin-top: 34px;
}

.timeline-item {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 42px;
  grid-template-columns: 220px minmax(0, 1fr);
  padding: 28px 0;
}

.timeline-meta strong {
  margin-bottom: 0;
}

.timeline-body h3 {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1;
  margin-bottom: 12px;
}

@media (max-width: 980px) {
  .top-nav a:not(.nav-action) {
    display: none;
  }

  .home-hero,
  .agenda-intro,
  .native-scheduler,
  .books-hero,
  .roadmap-hero,
  .book-featured,
  .featured-book-card,
  .process-section,
  .book-controls,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .prep-grid,
  .slot-grid,
  .roadmap-summary-grid,
  .loop-steps {
    grid-template-columns: 1fr;
  }

  .book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signal-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .brand span:last-child {
    display: none;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.4rem);
  }

  h2 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .home-hero,
  .section,
  .native-agenda,
  .books-shell,
  .home-cta,
  .process-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .roadmap-shell {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

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

  .book-card {
    grid-template-columns: 1fr;
  }

  .book-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form div {
    grid-template-columns: 1fr;
  }

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