:root {
  --ink: #102f32;
  --muted: #546a6c;
  --paper: #f6f4ee;
  --white: #ffffff;
  --mint: #dbece6;
  --green: #2f766e;
  --line: #cbd8d4;
  --warm: #edba70;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

button,
textarea,
input {
  font: inherit;
}

.hero {
  padding: 76px 24px 60px;
  background: var(--ink);
  color: var(--white);
}

.hero-inner,
.section,
.feedback-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.kicker,
.eyebrow {
  margin: 0 0 12px;
  color: #88c1b4;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero-copy {
  max-width: 800px;
  margin: 30px 0 0;
  color: #c8d9d8;
  font-size: 21px;
  line-height: 1.55;
}

.book-title {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  align-items: baseline;
  max-width: 820px;
  margin-top: 34px;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.book-title span {
  color: #88c1b4;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.book-title strong {
  font-size: 19px;
}

.hero nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 38px;
}

.hero nav a {
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.section {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 36px;
  padding: 86px 24px;
  border-bottom: 1px solid var(--line);
}

.section-number {
  padding-top: 2px;
  color: #8ea4a1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
}

.section-content h2,
.feedback h2 {
  max-width: 850px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.lead {
  max-width: 850px;
  margin: 24px 0 38px;
  color: #395356;
  font-size: 21px;
  line-height: 1.58;
}

.reader-grid,
.integration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.reader-grid article,
.integration-grid article {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.reader-grid article > span {
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reader-grid h3,
.integration-grid h3,
.page-types h3 {
  margin: 10px 0 12px;
  font-size: 19px;
  line-height: 1.3;
}

.reader-grid p,
.integration-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.decision {
  max-width: 900px;
  margin-top: 26px;
  padding: 22px 24px;
  border-left: 5px solid var(--green);
  border-radius: 0 10px 10px 0;
  background: var(--mint);
}

.decision strong {
  display: block;
  margin-bottom: 5px;
}

.decision p {
  margin: 0;
}

.route-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.route-table > div {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.5fr);
}

.route-table > div + div {
  border-top: 1px solid var(--line);
}

.route-table b,
.route-table span {
  padding: 17px 20px;
}

.route-table b {
  font-size: 15px;
  line-height: 1.45;
}

.route-table span {
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

.route-head {
  background: var(--ink);
  color: var(--white);
}

.route-head span {
  border: 0;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.route-head span + span {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.route-output {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  margin-top: 24px;
  padding: 28px;
  border-radius: 12px;
  background: #e7c994;
}

.route-output span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.route-output h3 {
  margin: 5px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  font-weight: 500;
}

.route-output ul {
  margin: 0;
  padding-left: 20px;
}

.route-output li + li {
  margin-top: 5px;
}

.movements {
  display: grid;
  gap: 14px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.movements li {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 10px 30px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.movements li > div {
  grid-row: 1 / span 3;
}

.movements li > div b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
}

.movements li > div span {
  display: block;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
}

.movements h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.45;
}

.movements p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.exercise-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.exercise-card-head {
  display: grid;
  gap: 6px;
  padding: 24px 28px;
  background: var(--ink);
  color: var(--white);
}

.exercise-card-head span {
  color: #88c1b4;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.exercise-card-head strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 500;
}

.exercise-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.exercise-fields > div {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.exercise-fields > div:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.exercise-fields > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.exercise-fields b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green);
  font-size: 13px;
}

.exercise-fields span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.exercise-fields strong {
  display: block;
  color: var(--ink);
}

.page-types {
  margin-top: 26px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.page-types h3 {
  margin-top: 0;
}

.page-types ol {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.page-types li {
  padding: 16px;
  border-radius: 9px;
  background: var(--paper);
}

.page-types b,
.page-types span {
  display: block;
}

.page-types span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.source-list {
  overflow: hidden;
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.source-list > div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 18px 22px;
}

.source-list > div + div {
  border-top: 1px solid var(--line);
}

.source-list span {
  color: var(--muted);
  font-size: 15px;
}

.feedback {
  padding: 86px 24px 110px;
  background: var(--ink);
  color: var(--white);
}

.feedback h2 {
  max-width: 900px;
}

.feedback-inner > p:not(.eyebrow) {
  max-width: 740px;
  color: #c8d9d8;
}

#feedback-form {
  max-width: 900px;
  margin-top: 34px;
}

#feedback-form fieldset {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  margin: 0;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

#feedback-form legend {
  float: left;
  padding: 0 20px 0 0;
  font-weight: 700;
}

#feedback-form label:has(input[type="radio"]) {
  cursor: pointer;
}

#feedback-form input[type="radio"] {
  position: absolute;
  opacity: 0;
}

#feedback-form input[type="radio"] + span {
  display: block;
  min-width: 96px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 750;
}

#feedback-form input[type="radio"]:checked + span {
  border-color: var(--warm);
  background: var(--warm);
  color: var(--ink);
}

.comment-label {
  display: grid;
  gap: 8px;
  margin-top: 26px;
  font-weight: 750;
}

.comment-label textarea {
  width: 100%;
  resize: vertical;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  line-height: 1.55;
}

#feedback-form button {
  margin-top: 20px;
  padding: 13px 20px;
  border: 0;
  border-radius: 9px;
  background: var(--warm);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

#feedback-form button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.form-error {
  min-height: 1.5em;
  margin: 12px 0 0;
  color: #ffb8a6;
  font-weight: 700;
}

.saved {
  display: inline-block;
  margin-left: 14px;
  color: #aee0cf;
  font-weight: 750;
}

@media (max-width: 850px) {
  .reader-grid,
  .integration-grid {
    grid-template-columns: 1fr;
  }

  .page-types ol {
    grid-template-columns: repeat(2, 1fr);
  }

  .movements li,
  .route-output {
    grid-template-columns: 1fr;
  }

  .movements li > div {
    grid-row: auto;
  }
}

@media (max-width: 650px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding: 46px 18px 42px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-copy,
  .lead {
    font-size: 18px;
  }

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

  .section {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 58px 18px;
  }

  .section-number {
    font-size: 25px;
  }

  .section-content h2,
  .feedback h2 {
    font-size: 39px;
  }

  .route-table > div,
  .source-list > div {
    grid-template-columns: 1fr;
  }

  .route-table span {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .route-head {
    display: none !important;
  }

  .exercise-fields,
  .page-types ol {
    grid-template-columns: 1fr;
  }

  .exercise-fields > div,
  .exercise-fields > div:nth-child(odd),
  .exercise-fields > div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .exercise-fields > div:last-child {
    border-bottom: 0;
  }

  .source-list > div {
    gap: 5px;
  }

  .feedback {
    padding: 62px 18px 80px;
  }

  #feedback-form fieldset {
    grid-template-columns: 1fr 1fr;
  }

  #feedback-form legend {
    float: none;
    grid-column: 1 / -1;
    width: 100%;
    margin-bottom: 6px;
    padding: 0;
  }

  #feedback-form input[type="radio"] + span {
    min-width: 0;
  }

  .saved {
    display: block;
    margin: 12px 0 0;
  }
}

