@font-face {
  font-family: Manrope;
  src: url("assets/Manrope.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: SourceSerif;
  src: url("assets/SourceSerif4.ttf") format("truetype");
  font-display: swap;
}

:root {
  --navy: #091520;
  --panel: #112631;
  --ivory: #f2eee5;
  --muted: #b9ced0;
  --brass: #c6b895;
  --teal: #86bdb8;
  --line: #47616b;
  --ink: #19313a;
  --paper: #e9e3d8;
  --max: 1180px;
  color: var(--ivory);
  background: var(--navy);
  font-family: Manrope, Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: inherit; }

.skip-link { position: absolute; top: -4rem; left: 1rem; z-index: 10; padding: .65rem 1rem; color: var(--navy); background: var(--ivory); }
.skip-link:focus { top: 1rem; }
.masthead { max-width: var(--max); min-height: 84px; margin: auto; padding: 18px 28px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .72rem; color: var(--ivory); font: 500 1.6rem/1 SourceSerif, Georgia, serif; text-decoration: none; }
.brand img { object-fit: contain; }
nav { display: flex; gap: 1.4rem; font-size: .86rem; }
nav a, .footer-links a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a:focus-visible, .footer-links a:hover, .footer-links a:focus-visible { color: var(--brass); }

.hero { max-width: var(--max); min-height: 620px; margin: 0 auto; padding: 80px 28px 92px; display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); align-items: center; gap: 4.5rem; }
.eyebrow, .card-label { margin: 0 0 .85rem; color: var(--brass); font-size: .73rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: SourceSerif, Georgia, serif; font-weight: 500; letter-spacing: -.025em; }
h1 { max-width: 640px; margin-bottom: 1.1rem; font-size: clamp(3.3rem, 6vw, 5.8rem); line-height: .96; }
h2 { font-size: clamp(2.2rem, 3.8vw, 3.75rem); line-height: 1.03; }
h3 { font-size: 1.72rem; line-height: 1.1; }
.lede { max-width: 570px; color: var(--muted); font-size: 1.16rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 1rem; }
.button { display: inline-block; padding: .72rem 1rem; border: 1px solid var(--brass); font-size: .86rem; font-weight: 700; text-decoration: none; }
.button.primary { color: var(--navy); background: var(--brass); }
.button.quiet { color: var(--ivory); }
.button:hover, .button:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.microcopy { color: var(--muted); font-size: .77rem; }
.hero-art { position: relative; margin: 0; }
.hero-art::before { position: absolute; inset: -16px 20px 18px -14px; z-index: -1; border: 1px solid var(--line); content: ""; }
.hero-art img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--panel); }

.statement { padding: 102px max(28px, calc((100vw - var(--max)) / 2)); color: var(--ink); background: var(--ivory); }
.statement h2 { max-width: 820px; margin-bottom: 1.2rem; }
.statement p:last-child { max-width: 690px; margin-bottom: 0; font-size: 1.08rem; }
.statement .eyebrow { color: #6c6048; }

.workflow { max-width: var(--max); margin: auto; padding: 110px 28px; }
.section-intro { max-width: 760px; }
.section-intro h2 { margin-bottom: 0; }
.steps { margin: 4.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; list-style: none; }
.steps li { min-height: 254px; padding: 1.35rem 1.3rem; border-top: 1px solid var(--brass); background: rgba(17, 38, 49, .55); }
.step-number { display: block; margin-bottom: 3rem; color: var(--teal); font-size: .8rem; font-weight: 700; letter-spacing: .12em; }
.steps h3 { margin-bottom: .65rem; }
.steps p { color: var(--muted); font-size: .89rem; }

.formats { padding: 108px max(28px, calc((100vw - var(--max)) / 2)); color: var(--ink); background: var(--paper); }
.wide { max-width: 800px; }
.wide p:last-child { max-width: 670px; }
.formats .eyebrow { color: #6c6048; }
.format-grid { margin-top: 3.8rem; display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.format-card { min-height: 260px; padding: 30px; background: #f7f3eb; border: 1px solid #d4cbb9; }
.format-card.reading { grid-row: span 2; }
.format-card.mobile { grid-row: span 2; }
.format-card h3 { margin-bottom: .65rem; }
.format-card p:not(.card-label) { max-width: 480px; margin-bottom: 1.2rem; }
.format-card img { width: 100%; margin-top: 1.8rem; border: 1px solid #bfb5a3; box-shadow: 9px 11px 0 #d4cbb9; }
.format-card.mobile img { max-width: 330px; margin-inline: auto; }
.card-label { color: #6c6048; }

.proof { max-width: var(--max); margin: auto; padding: 105px 28px; display: grid; grid-template-columns: .82fr 1.18fr; gap: 4.5rem; align-items: start; }
.proof h2 { margin-bottom: 0; }
.proof > p { max-width: 650px; color: var(--muted); font-size: 1.04rem; }
.text-link { color: var(--brass); font-size: .9rem; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.text-link:hover, .text-link:focus-visible { color: var(--teal); }

.start { padding: 95px max(28px, calc((100vw - var(--max)) / 2)); display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: 4rem; color: var(--ink); background: var(--ivory); }
.start .eyebrow { color: #6c6048; }
.start h2 { margin-bottom: .9rem; }
.start .text-link { color: var(--ink); }
.terminal { min-width: 0; overflow-x: auto; padding: 1.45rem; color: var(--ivory); background: var(--navy); border: 1px solid var(--line); box-shadow: 10px 10px 0 #cfc6b4; }
.terminal pre { margin: 0; font: .8rem/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; }

footer { max-width: var(--max); min-height: 156px; margin: auto; padding: 42px 28px; display: grid; grid-template-columns: 1fr auto auto; gap: 2rem; align-items: center; color: var(--muted); font-size: .83rem; }
.footer-brand { font-size: 1.3rem; }
footer p { margin: 0; }
.footer-links { display: flex; gap: 1rem; }

@media (max-width: 820px) {
  .hero { min-height: 0; padding-top: 52px; grid-template-columns: 1fr; gap: 3rem; }
  .hero-art { max-width: 650px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .proof, .start { grid-template-columns: 1fr; gap: 1.5rem; }
  .format-grid { grid-template-columns: 1fr 1fr; }
  .format-card.reading, .format-card.mobile { grid-row: auto; }
  footer { grid-template-columns: 1fr 1fr; }
  footer p { display: none; }
  .footer-links { justify-content: flex-end; }
}

@media (max-width: 560px) {
  .masthead { padding: 15px 20px; }
  .masthead nav { gap: .8rem; font-size: .72rem; }
  .masthead nav a:nth-child(2) { display: none; }
  .brand { font-size: 1.4rem; }
  .hero, .workflow, .proof { padding-inline: 20px; }
  .hero { padding-top: 40px; padding-bottom: 62px; }
  h1 { font-size: clamp(3.2rem, 16vw, 4.25rem); }
  h2 { font-size: 2.4rem; }
  .statement, .formats, .start { padding: 72px 20px; }
  .workflow { padding-block: 75px; }
  .steps, .format-grid { grid-template-columns: 1fr; }
  .steps { gap: 10px; margin-top: 2.5rem; }
  .steps li { min-height: 0; }
  .step-number { margin-bottom: 1.8rem; }
  .format-grid { margin-top: 2.5rem; }
  .format-card { min-height: 0; padding: 23px; }
  .proof { padding-block: 72px; }
  .terminal { margin-inline: -2px; padding: 1rem; }
  .terminal pre { font-size: .69rem; }
  footer { padding: 32px 20px; grid-template-columns: 1fr; gap: 1.25rem; }
  .footer-links { justify-content: flex-start; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
