:root {
  --paper: #e9e3d0;
  --paper-light: #f3eedc;
  --paper-deep: #ddd6c1;
  --ink: #1b1a14;
  --ink-soft: #4d4738;
  --ink-mute: #837e6b;
  --line: #cfc8b2;
  --line-soft: #ddd6c1;
  --navy: #2b557a;
  --navy-soft: #c5d3df;
  --amber: #d9943f;
  --warn: #a8501e;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.screen-bar {
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.bar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.bar-brand img {
  width: 24px;
  height: 24px;
}

.screen-bar > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.screen-button,
.primary-download,
.secondary-download {
  min-height: 38px;
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--navy);
  border-radius: 6px;
  background: var(--navy);
  color: var(--paper-light);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.screen-button + .screen-button,
.secondary-download {
  background: var(--paper-light);
  color: var(--navy);
}

.guide-access-form {
  display: grid;
  gap: 0.09in;
}

.guide-access-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 9.2pt;
  font-weight: 600;
}

.guide-access-form input {
  width: 100%;
  height: 0.42in;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.guide-access-form button {
  min-height: 0.4in;
  border: 1px solid var(--navy);
  border-radius: 6px;
  background: var(--navy);
  color: var(--paper-light);
  font-size: 9.6pt;
  font-weight: 700;
  cursor: pointer;
}

.guide-access-form button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.guide-access-form .status {
  min-height: 0.22in;
  margin: 0;
  color: var(--ink-soft);
  font-size: 8.8pt;
  line-height: 1.35;
}

.sheet {
  width: 8.5in;
  min-height: 11in;
  margin: 0 auto 28px;
  padding: 0.42in 0.52in 0.36in;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(43, 85, 122, 0.055) 0 0.08in, transparent 0.08in 100%),
    var(--paper);
  border: 1px solid rgba(27, 26, 20, 0.08);
  page-break-after: always;
  break-after: page;
}

.sheet::before {
  content: "";
  position: absolute;
  inset: 0.22in;
  border: 1px solid var(--line);
  pointer-events: none;
}

.guide-top,
.guide-hero,
.likely,
.guide-grid,
.send-box,
.guide-footer {
  position: relative;
  z-index: 1;
}

.guide-top {
  min-height: 0.56in;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.25in;
  padding-bottom: 0.18in;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  width: 1.55in;
  height: auto;
  object-fit: contain;
}

.guide-top div {
  text-align: right;
}

.guide-top span,
.guide-top strong,
.eyebrow,
.likely span,
.visual-card figcaption,
.guide-footer,
.card-number,
.guide-card p {
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-top span {
  display: block;
  color: var(--ink-mute);
  font-size: 8.5pt;
}

.guide-top strong {
  display: block;
  margin-top: 3px;
  color: var(--navy);
  font-size: 8.8pt;
  font-weight: 500;
}

.guide-hero {
  padding-top: 0.2in;
}

.eyebrow {
  margin: 0 0 0.06in;
  color: var(--ink-mute);
  font-size: 8.8pt;
}

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

h1 {
  max-width: 7.1in;
  margin: 0 0 0.12in;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 36pt;
  font-style: italic;
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0;
}

.reassurance {
  max-width: 6.85in;
  margin: 0;
  color: var(--ink-soft);
  font-size: 12pt;
  line-height: 1.42;
}

.likely {
  margin-top: 0.2in;
  padding: 0.14in 0.18in;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.72in;
  gap: 0.18in;
  align-items: center;
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.likely-copy {
  display: grid;
  grid-template-columns: 1.15in minmax(0, 1fr);
  gap: 0.18in;
  align-items: start;
}

.likely span {
  color: var(--navy);
  font-size: 8.6pt;
}

.likely-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10.6pt;
  line-height: 1.42;
}

.visual-card {
  margin: 0;
  padding-left: 0.16in;
  border-left: 1px solid var(--line);
}

.visual-card figcaption {
  margin-bottom: 0.045in;
  color: var(--ink-mute);
  font-size: 6.6pt;
  line-height: 1.25;
}

.visual-card svg {
  width: 1.5in;
  height: 0.8in;
  display: block;
  color: var(--ink-soft);
}

.visual-card svg * {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visual-card text {
  fill: var(--navy);
  stroke: none;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.visual-card .accent {
  color: var(--navy);
  stroke: var(--navy);
}

.visual-card .soft {
  color: var(--line);
  stroke: var(--line);
}

.visual-card .warn-line {
  stroke: var(--warn);
}

.visual-card .accent-fill {
  fill: var(--navy);
  stroke: var(--navy);
}

.visual-card .accent-soft {
  fill: rgba(43, 85, 122, 0.13);
  stroke: rgba(43, 85, 122, 0.32);
}

.guide-grid {
  margin-top: 0.22in;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
  gap: 0.24in;
  align-items: start;
}

.steps-panel h2,
.quiet-box h2,
.send-box h2 {
  margin: 0 0 0.1in;
  color: var(--ink);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 20pt;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
}

.steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.12in;
}

.step {
  min-height: 0.64in;
  display: grid;
  grid-template-columns: 0.38in 1fr;
  gap: 0.12in;
  align-items: start;
  padding-bottom: 0.1in;
  border-bottom: 1px solid var(--line-soft);
}

.step span {
  width: 0.34in;
  height: 0.34in;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  color: var(--navy);
  font-family: "Geist Mono", monospace;
  font-size: 8.5pt;
}

.step p {
  margin: 0;
  color: var(--ink);
  font-size: 12.2pt;
  line-height: 1.35;
}

.side-panel {
  display: grid;
  gap: 0.14in;
}

.quiet-box {
  padding: 0.16in 0.17in;
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.caution-box {
  background:
    linear-gradient(180deg, rgba(168, 80, 30, 0.045), rgba(168, 80, 30, 0)),
    var(--paper-light);
}

.quiet-box h2 {
  margin-bottom: 0.08in;
  color: var(--navy);
  font-size: 17pt;
}

.quiet-box ul,
.send-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.075in;
}

.quiet-box li,
.send-box li {
  position: relative;
  padding-left: 0.16in;
  color: var(--ink-soft);
  font-size: 9.9pt;
  line-height: 1.35;
}

.quiet-box li::before,
.send-box li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.43em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--navy);
}

.member-box p {
  margin: 0 0 0.12in;
  color: var(--ink-soft);
  font-size: 9.8pt;
  line-height: 1.4;
}

.locked-preview {
  margin-top: 0.14in;
  padding: 0.14in 0.16in;
  background: var(--paper-light);
  border: 1px dashed var(--navy);
  border-radius: 8px;
}

.locked-preview span {
  display: block;
  margin-bottom: 0.04in;
  color: var(--navy);
  font-size: 9.6pt;
  font-weight: 700;
}

.locked-preview p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 9.8pt;
  line-height: 1.4;
}

.send-box {
  margin-top: auto;
  padding-top: 0.2in;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 0.22in;
  border-top: 1px solid var(--line);
}

.send-box h2 {
  margin-bottom: 0.06in;
  font-size: 19pt;
}

.send-box p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 9.6pt;
  line-height: 1.35;
}

.send-box li {
  color: var(--ink);
  font-size: 10pt;
}

.guide-footer {
  margin-top: 0.18in;
  padding-top: 0.12in;
  display: flex;
  justify-content: space-between;
  gap: 0.2in;
  border-top: 1px solid var(--line);
  color: var(--ink-mute);
  font-size: 8.2pt;
}

.index-page {
  min-height: 100vh;
}

.library-hero,
.guide-library,
.library-footer {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.library-hero {
  padding: 26px 0 30px;
  border-bottom: 1px solid var(--line);
}

.library-nav {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 42px;
}

.library-nav img {
  width: 170px;
  height: auto;
}

.library-nav a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.library-copy {
  max-width: 830px;
  min-width: 0;
}

.library-copy h1 {
  max-width: 760px;
  font-size: 76px;
  line-height: 0.95;
}

.library-copy p:not(.eyebrow) {
  max-width: 690px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.5;
}

.library-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.subscriber-access {
  width: min(1120px, calc(100% - 36px));
  margin: 24px auto 0;
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: 24px;
  align-items: end;
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.subscriber-access h2 {
  margin: 0 0 8px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.02;
}

.subscriber-access p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.45;
}

.subscriber-access .guide-access-form {
  gap: 10px;
}

.subscriber-access .guide-access-form label {
  font-size: 14px;
}

.subscriber-access .guide-access-form input {
  height: 46px;
  font-size: 15px;
}

.subscriber-access .guide-access-form button {
  min-height: 44px;
  font-size: 14px;
}

.subscriber-access .guide-access-form .status {
  min-height: 20px;
  font-size: 13px;
}

.guide-library {
  padding: 26px 0 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.guide-card {
  min-height: 172px;
  padding: 18px;
  display: grid;
  grid-template-columns: 46px 1fr;
  grid-template-rows: 1fr auto;
  gap: 8px 16px;
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.guide-card > div {
  min-width: 0;
}

.card-number {
  color: var(--navy);
  font-size: 13px;
}

.guide-card p {
  margin: 0 0 8px;
  color: var(--ink-mute);
  font-size: 11px;
}

.guide-card h2 {
  margin: 0 0 8px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.04;
  overflow-wrap: break-word;
}

.guide-card span {
  display: block;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.guide-card nav {
  grid-column: 2;
  display: flex;
  gap: 8px;
}

.guide-card nav a {
  min-width: 70px;
  min-height: 34px;
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--navy);
  border-radius: 6px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.guide-card nav a:first-child {
  background: var(--navy);
  color: var(--paper-light);
}

.library-footer {
  padding: 18px 0 34px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-mute);
  font-size: 13px;
}

@media screen and (max-width: 760px) {
  .screen-bar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .screen-bar > div,
  .library-actions,
  .library-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .guide-library {
    grid-template-columns: 1fr;
  }

  .library-hero,
  .subscriber-access,
  .guide-library,
  .library-footer {
    width: min(1120px, calc(100% - 28px));
  }

  .subscriber-access {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 18px;
  }

  .subscriber-access h2 {
    font-size: 28px;
  }

  .sheet {
    width: min(100% - 28px, 8.5in);
    min-height: 0;
    padding: 22px;
    overflow: visible;
  }

  .sheet::before {
    inset: 12px;
  }

  .guide-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .guide-top div {
    text-align: left;
  }

  h1 {
    max-width: 100%;
    font-size: 42px;
  }

  .reassurance {
    max-width: 100%;
    font-size: 16px;
  }

  .likely,
  .likely-copy,
  .guide-grid,
  .send-box {
    grid-template-columns: 1fr;
  }

  .visual-card {
    padding: 12px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .visual-card svg {
    width: min(100%, 2.3in);
    height: auto;
  }

  .step {
    min-height: 0;
  }

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

  .library-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
  }

  .library-copy h1 {
    max-width: 100%;
    font-size: 42px;
    line-height: 0.98;
  }

  .library-copy p:not(.eyebrow) {
    font-size: 16px;
  }

  .guide-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .guide-card h2 {
    font-size: 25px;
  }

  .guide-card nav {
    grid-column: 1;
  }

  .guide-card nav a {
    flex: 1;
  }
}

@media print {
  @page {
    size: Letter;
    margin: 0;
  }

  html,
  body {
    width: 8.5in;
    min-height: 11in;
    background: var(--paper);
  }

  body {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .screen-bar,
  .library-hero,
  .subscriber-access,
  .guide-library,
  .library-footer {
    display: none;
  }

  .sheet {
    margin: 0;
    border: 0;
    box-shadow: none;
  }

  .bundle .screen-bar {
    display: none;
  }
}
