:root {
  --paper: #f4efe3;
  --sheet: #fffdf7;
  --ink: #17202e;
  --muted: #667180;
  --coal: #0e1620;
  --blue: #267ea5;
  --red: #b33d35;
  --gold: #c4922f;
  --green: #2d7769;
  --line: #d8cfbd;
  --soft-blue: #e7f2f5;
  --soft-red: #f6e7e4;
  --soft-gold: #f7edd8;
  --soft-green: #e8f1ec;
  --shadow: 0 20px 50px rgba(23, 32, 46, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
  background:
    linear-gradient(90deg, rgba(14, 22, 32, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(14, 22, 32, 0.032) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
}

a {
  color: inherit;
}

.rail {
  position: fixed;
  top: 22px;
  left: 22px;
  z-index: 10;
  width: 168px;
  padding: 12px;
  border: 1px solid rgba(255, 253, 247, 0.18);
  background: rgba(14, 22, 32, 0.92);
  box-shadow: var(--shadow);
}

.rail a {
  display: block;
  padding: 10px 9px;
  border-bottom: 1px solid rgba(255, 253, 247, 0.12);
  color: #fffdf7;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.rail a:last-child {
  border-bottom: 0;
}

.book {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 70px 150px;
}

.panel {
  margin-bottom: 26px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.94);
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 700px;
  color: #fff7e5;
  background:
    linear-gradient(115deg, rgba(14, 22, 32, 0.98) 0%, rgba(23, 32, 46, 0.94) 52%, rgba(38, 126, 165, 0.82) 100%),
    var(--coal);
}

.hero::after {
  content: "";
  position: absolute;
  right: -130px;
  bottom: -170px;
  width: 560px;
  height: 560px;
  background: url("assets/simbolo-ifc.png") center / contain no-repeat;
  opacity: 0.09;
}

.brandline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.brandline img {
  width: 250px;
  padding: 10px 14px;
  background: #ffffff;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: end;
  min-height: 455px;
  padding: 62px 0 38px;
}

.kicker {
  margin: 0;
  color: var(--gold);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  max-width: 780px;
  font-size: clamp(76px, 9.5vw, 142px);
  line-height: 0.82;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 0.92;
}

h3 {
  margin-bottom: 12px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
}

p,
li {
  font-size: 22px;
  line-height: 1.42;
}

.subtitle {
  max-width: 690px;
  margin-bottom: 0;
  font-size: clamp(28px, 3.8vw, 48px);
  line-height: 1.03;
}

.hero-card {
  border-left: 10px solid var(--gold);
  padding: 30px;
  color: var(--coal);
  background: #fff7e5;
}

.hero-card span {
  display: block;
  margin-bottom: 16px;
  color: var(--red);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-card strong {
  display: block;
  font-size: 38px;
  line-height: 1.02;
}

.thesis-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(255, 247, 229, 0.24);
}

.thesis-strip span {
  color: var(--gold);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 1000;
  text-transform: uppercase;
}

.thesis-strip p {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
}

.use-grid,
.context-grid,
.depth-grid,
.support-deep,
.two-col {
  display: grid;
  gap: 16px;
}

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

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

.depth-grid,
.support-deep {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.two-col {
  grid-template-columns: 1.1fr 0.9fr;
}

.use-grid article,
.context-grid article,
.depth-grid article,
.support-deep article,
.two-col article {
  padding: 22px;
  border: 1px solid var(--line);
  background: #fffaf0;
}

.warning {
  border-left: 8px solid var(--red) !important;
  background: var(--soft-red) !important;
}

.movement-map {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.movement-map div {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  color: #fffdf7;
  background: var(--coal);
}

.movement-map span,
.num {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 1000;
}

.movement-map span {
  color: var(--gold);
  font-size: 18px;
}

.movement-map strong {
  font-size: 23px;
  line-height: 1.05;
}

.movement-map small {
  color: #cfd8df;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
}

.sermon-block h2 {
  max-width: 930px;
}

.script {
  margin-top: 22px;
  padding: 28px;
  border-left: 10px solid var(--coal);
  background: #ffffff;
}

.script h3 {
  color: var(--red);
}

.script p {
  max-width: 880px;
  margin-bottom: 13px;
  font-size: 25px;
  line-height: 1.24;
}

.script p:last-child {
  margin-bottom: 0;
}

.intense {
  color: #fffdf7;
  background: var(--coal);
}

.intense h3 {
  color: var(--gold);
}

.quote-card {
  margin-top: 18px;
  padding: 26px;
  border-left: 10px solid var(--gold);
  background: var(--soft-gold);
}

.quote-card p {
  margin: 0;
  font-size: 31px;
  font-weight: 700;
  line-height: 1.15;
}

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

.diagnostic-grid div {
  min-height: 190px;
  padding: 20px;
  border: 1px solid var(--line);
  background: #fffaf0;
}

.diagnostic-grid span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  color: #fffdf7;
  background: var(--red);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 1000;
}

.diagnostic-grid strong {
  display: block;
  font-size: 26px;
  line-height: 1.05;
}

.diagnostic-grid p {
  margin: 12px 0 0;
}

.passage {
  position: relative;
  overflow: hidden;
}

.passage::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 12px;
  background: var(--blue);
}

.passage.jonah::before {
  background: var(--red);
}

.passage.saul::before {
  background: var(--gold);
}

.passage-head {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-bottom: 28px;
}

.num {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  flex: 0 0 auto;
  color: #fffdf7;
  background: var(--coal);
  font-size: 28px;
}

.chart,
.route-chart,
.balance-chart {
  margin-top: 18px;
  padding: 24px;
  color: #fffdf7;
  background: var(--coal);
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.steps div {
  min-height: 150px;
  padding: 16px;
  border: 1px solid rgba(255, 253, 247, 0.22);
}

.steps span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  color: var(--coal);
  background: var(--gold);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 1000;
}

.steps strong,
.steps small {
  display: block;
}

.steps strong {
  font-size: 23px;
  line-height: 1.05;
}

.steps small {
  margin-top: 10px;
  color: #d6dde3;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
}

.route {
  display: grid;
  grid-template-columns: 1fr 34px 1fr 34px 1fr 34px 1fr 34px 1fr;
  gap: 6px;
  align-items: center;
}

.route span {
  min-height: 78px;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 253, 247, 0.22);
  text-align: center;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 1000;
  text-transform: uppercase;
}

.route i {
  height: 2px;
  background: var(--gold);
}

.route-chart p,
.balance-chart p {
  margin: 18px 0 0;
}

.balance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.balance div {
  min-height: 160px;
  padding: 22px;
  border: 1px solid rgba(255, 253, 247, 0.22);
}

.balance strong,
.balance span {
  display: block;
}

.balance strong {
  color: var(--gold);
  font-size: 31px;
  line-height: 1.02;
}

.balance span {
  margin-top: 16px;
  font-size: 24px;
}

.questions {
  margin-top: 18px;
  padding: 24px;
  border-left: 10px solid var(--green);
  background: var(--soft-green);
}

.questions ul {
  margin-bottom: 0;
  padding-left: 26px;
}

.research-note {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-left: 10px solid var(--blue);
  background: var(--soft-blue);
}

.research-note a {
  color: var(--blue);
  font-weight: 800;
}

.risk-grid,
.study-plan {
  display: grid;
  gap: 16px;
}

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

.risk-grid article,
.study-plan article {
  padding: 22px;
  border: 1px solid var(--line);
  background: #fffaf0;
}

.risk-grid article {
  border-top: 8px solid var(--red);
}

.study-plan {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.study-plan span {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  color: #fffdf7;
  background: var(--coal);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 1000;
}

.pause-box {
  margin-top: 22px;
  padding: 30px;
  color: var(--coal);
  background: var(--soft-gold);
}

.pause-box strong {
  display: block;
  margin-top: 18px;
  font-size: 36px;
  line-height: 1.05;
}

.decision-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.decision-wall span {
  min-height: 80px;
  display: grid;
  place-items: center;
  padding: 14px;
  color: #fffdf7;
  background: var(--red);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 1000;
  text-align: center;
  text-transform: uppercase;
}

.prayer {
  margin-top: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  background: #fffaf0;
}

.prayer p {
  max-width: 820px;
  font-size: 25px;
  line-height: 1.32;
}

.sources ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
  padding-left: 24px;
}

.sources li {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 800;
}

@media (max-width: 1040px) {
  .rail {
    position: static;
    width: min(1180px, calc(100% - 40px));
    margin: 20px auto 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .book {
    padding-left: 0;
  }

  .hero-grid,
  .thesis-strip,
  .use-grid,
  .context-grid,
  .depth-grid,
  .support-deep,
  .two-col,
  .movement-map,
  .diagnostic-grid,
  .steps,
  .balance,
  .decision-wall,
  .risk-grid,
  .study-plan,
  .sources ul {
    grid-template-columns: 1fr;
  }

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

  .route i {
    width: 2px;
    height: 24px;
    justify-self: center;
  }
}

@media print {
  .rail {
    display: none;
  }

  .book {
    width: 100%;
    padding: 0;
  }

  .panel {
    break-inside: avoid;
    box-shadow: none;
  }
}
