/* ─────────────────────────────────────────────────────────────
   Vantage Point · Brand book stylesheet
   ───────────────────────────────────────────────────────────── */

:root {
  --paper:   #f3efe7;
  --paper-2: #ece7dc;
  --fog:     #faf7f1;
  --ink:     #14171a;
  --ink-2:   #2a2e33;
  --copper:  oklch(0.58 0.13 38);
  --copper-deep: oklch(0.48 0.13 38);
  --slate:   oklch(0.50 0.02 240);
  --walnut:  oklch(0.32 0.04 50);
  --sage:    oklch(0.78 0.04 145);
  --rule:    rgba(20, 23, 26, 0.12);
  --rule-2:  rgba(20, 23, 26, 0.06);
  --mute:    rgba(20, 23, 26, 0.55);
  --mute-d:  rgba(243, 239, 231, 0.6);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

/* ── Layout ─────────────────────────────────────────────────── */

.book {
  max-width: 1440px;
  margin: 0 auto;
  padding: 60px 60px 120px 220px;
  position: relative;
}

.toc {
  position: fixed;
  top: 60px;
  left: 24px;
  width: 160px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--mute);
  text-transform: uppercase;
  line-height: 1.9;
  z-index: 10;
}
.toc .toc-title {
  color: var(--ink);
  font-family: Manrope, sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
}
.toc a {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 2px 0;
  border-left: 1px solid transparent;
  padding-left: 10px;
  margin-left: -10px;
  transition: color 0.15s, border-color 0.15s;
}
.toc a:hover { color: var(--ink); border-left-color: var(--copper); }
.toc .toc-num { color: var(--copper); margin-right: 6px; }

/* ── Page / Section ─────────────────────────────────────────── */

.page {
  padding: 120px 0;
  border-top: 1px solid var(--rule);
  position: relative;
}
.page:first-of-type { padding-top: 80px; border-top: 0; }

.page-num {
  position: absolute;
  top: 30px;
  right: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--mute);
  text-transform: uppercase;
}
.page-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--mute);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.page-label .accent { color: var(--copper); }

.page-title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 72px;
  line-height: 0.98;
  letter-spacing: -0.012em;
  margin: 0 0 24px;
  max-width: 920px;
}
.page-title em { font-style: italic; }

.page-lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--mute);
  max-width: 640px;
  margin: 0 0 64px;
}
.page-lede strong { color: var(--ink); font-weight: 500; }

/* ── Cover ──────────────────────────────────────────────────── */

.cover {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 60px 0 40px;
  border-top: 0;
}
.cover-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--mute);
  text-transform: uppercase;
}
.cover-top .right { text-align: right; line-height: 1.7; }
.cover-mid h1 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 168px;
  line-height: 0.9;
  letter-spacing: -0.025em;
  margin: 0;
}
.cover-mid h1 .italic { font-style: italic; }
.cover-mid .sub {
  margin-top: 36px;
  font-family: 'Instrument Serif', serif;
  font-size: 26px;
  line-height: 1.3;
  font-style: italic;
  color: var(--ink-2);
  max-width: 580px;
}
.cover-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}
.cover-bottom .wm {
  font-family: 'Archivo', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.32em;
}
.cover-bottom .wm .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--copper);
  border-radius: 50%;
  margin: 0 10px;
  vertical-align: 2px;
}
.cover-bottom .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--mute);
  text-transform: uppercase;
}

/* ── Wordmark / lockups ─────────────────────────────────────── */

.wm-h {
  font-family: 'Archivo', sans-serif;
  font-weight: 500;
  letter-spacing: 0.24em;
  line-height: 1;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
}
.wm-h .dot {
  display: inline-block;
  width: 0.34em; height: 0.34em;
  background: var(--copper);
  border-radius: 50%;
  margin: 0 0.7em;
  vertical-align: 0.15em;
}
.wm-h.k { color: var(--paper); }
.wm-h.k .dot { background: var(--copper); }

.wm-stack {
  font-family: 'Archivo', sans-serif;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.0;
  color: var(--ink);
  text-align: center;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45em;
}
.wm-stack .dot {
  display: block;
  width: 0.42em; height: 0.42em;
  background: var(--copper);
  border-radius: 50%;
}
.wm-stack.k { color: var(--paper); }

.mark {
  display: inline-block;
  position: relative;
}
.mark svg { display: block; }

.wm-italic {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  letter-spacing: -0.01em;
  line-height: 0.95;
  color: var(--ink);
}

/* ── Logo system grid ───────────────────────────────────────── */

.logo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.logo-tile {
  background: var(--paper);
  aspect-ratio: 5 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 40px;
  min-width: 0;
  overflow: hidden;
}
.logo-tile.dark { background: var(--ink); }
.logo-tile .tile-meta {
  position: absolute;
  bottom: 14px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--mute);
  text-transform: uppercase;
}
.logo-tile.dark .tile-meta { color: var(--mute-d); }
.logo-tile .tile-meta .accent { color: var(--copper); }

/* ── Clearspace diagram ─────────────────────────────────────── */

.clearspace-box {
  position: relative;
  padding: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.clearspace-box::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px dashed var(--rule);
}
.clearspace-box .x-mark {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--mute);
}
.clearspace-box .x-top    { top: 18px;    left: 50%; transform: translateX(-50%); }
.clearspace-box .x-bottom { bottom: 18px; left: 50%; transform: translateX(-50%); }
.clearspace-box .x-left   { left: 18px;   top: 50%; transform: translateY(-50%); }
.clearspace-box .x-right  { right: 18px;  top: 50%; transform: translateY(-50%); }

/* ── Color palette ──────────────────────────────────────────── */

.swatch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.swatch {
  aspect-ratio: 4 / 5;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  min-width: 0;
  overflow: hidden;
}
.swatch .sw-name {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.01em;
}
.swatch .sw-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 6px;
}
.swatch .sw-vals {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  line-height: 1.7;
}
.swatch .sw-vals span { display: block; }
.swatch .sw-vals .label { color: currentColor; opacity: 0.5; }

.swatch.paper   { background: var(--paper); color: var(--ink); }
.swatch.fog     { background: var(--fog);   color: var(--ink); }
.swatch.ink     { background: var(--ink);   color: var(--paper); }
.swatch.copper  { background: var(--copper); color: var(--paper); }
.swatch.walnut  { background: var(--walnut); color: var(--paper); }
.swatch.slate   { background: var(--slate);  color: var(--paper); }
.swatch.sage    { background: var(--sage);   color: var(--ink); }
.swatch.deep    { background: var(--copper-deep); color: var(--paper); }

/* ── Typography specimen ────────────────────────────────────── */

.type-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 36px 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.type-row:first-of-type { border-top: 0; padding-top: 0; }
.type-meta .name {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.01em;
}
.type-meta .role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--copper);
  text-transform: uppercase;
  margin-top: 6px;
}
.type-meta .note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--mute);
  line-height: 1.5;
}
.type-spec .aa {
  font-size: 80px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.type-spec .alphabet {
  margin-top: 14px;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--mute);
}
.type-spec .sample {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.5;
  max-width: 600px;
  color: var(--ink-2);
}

/* ── Imagery placeholders ───────────────────────────────────── */

.img-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}
.img-stack {
  display: grid;
  gap: 20px;
}
.img-ph {
  position: relative;
  background-image:
    repeating-linear-gradient(135deg,
      #2a2d31 0 14px,
      #1f2226 14px 28px);
  color: #fff;
  overflow: hidden;
}
.img-ph.tall { aspect-ratio: 4 / 5; }
.img-ph.wide { aspect-ratio: 16 / 9; }
.img-ph .ph-label {
  position: absolute;
  top: 16px;
  left: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  opacity: 0.6;
  text-transform: uppercase;
}
.img-ph .ph-coord {
  position: absolute;
  bottom: 16px;
  left: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  opacity: 0.5;
  line-height: 1.6;
}
.img-ph .ph-anno {
  position: absolute;
  bottom: 16px;
  right: 18px;
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}
.img-ph .wm-watermark {
  position: absolute;
  bottom: 20px;
  right: 22px;
  font-family: 'Archivo', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.32em;
  opacity: 0.9;
  text-align: right;
}
.img-ph .wm-watermark .dot {
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--copper);
  border-radius: 50%;
  margin: 0 8px;
  vertical-align: 2px;
}

/* ── Voice / Taglines ───────────────────────────────────────── */

.voice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.tag-list { list-style: none; padding: 0; margin: 0; }
.tag-list li {
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 24px 1fr 80px;
  align-items: baseline;
  gap: 14px;
}
.tag-list .tag-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--copper);
}
.tag-list .tag-text {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.tag-list .tag-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--mute);
  text-transform: uppercase;
  text-align: right;
}

.principle {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 22px;
}
.principle:last-child { border-bottom: 0; margin-bottom: 0; }
.principle .p-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--copper);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.principle h4 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-style: italic;
  font-size: 28px;
  line-height: 1.1;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.principle p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--mute);
}

.copy-sample {
  margin-top: 60px;
  background: var(--fog);
  padding: 32px 36px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  border-left: 2px solid var(--copper);
}
.copy-sample .cs-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--mute);
  text-transform: uppercase;
  line-height: 1.6;
}
.copy-sample .cs-body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
}
.copy-sample .cs-body p { margin: 0 0 10px; }
.copy-sample .cs-body p:last-child { margin: 0; }

/* ── Applications ───────────────────────────────────────────── */

.apps-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}
.app {
  position: relative;
  background: var(--fog);
  overflow: hidden;
  min-width: 0;
}
.app.span-2 { grid-column: span 2; }
.app .app-label {
  position: absolute;
  top: 14px;
  left: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--mute);
  text-transform: uppercase;
  z-index: 2;
}

/* Business card */
.app-cards {
  aspect-ratio: 5 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 40px;
}
.app-cards .card {
  aspect-ratio: 7 / 4;
  flex: 1;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 20px 40px -22px rgba(20,23,26,0.32), 0 2px 4px rgba(20,23,26,0.06);
}
.app-cards .card.front { background: var(--paper); color: var(--ink); }
.app-cards .card.back  { background: var(--ink);   color: var(--paper); }
.app-cards .card-foot  {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--mute);
}
.app-cards .card.back .card-foot { color: var(--mute-d); }
.app-cards .card .name {
  font-family: Manrope, sans-serif;
  font-weight: 600;
  font-size: 13px;
}
.app-cards .card .deets {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.04em;
  line-height: 1.7;
  margin-top: 4px;
}
.app-cards .card.back .deets { color: var(--mute-d); }

/* Email signature */
.app-email {
  aspect-ratio: 5 / 4;
  background: var(--fog);
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-email .sig {
  background: #fff;
  padding: 22px 26px;
  max-width: 100%;
  width: 100%;
  box-shadow: 0 12px 28px -16px rgba(20,23,26,0.18);
  font-size: 12px;
  line-height: 1.55;
  color: #333;
}
.app-email .sig-divider {
  margin: 14px 0;
  border-top: 1px solid var(--rule);
  display: flex;
  gap: 12px;
  padding-top: 14px;
  align-items: center;
}
.app-email .sig-mark {
  width: 34px; height: 34px;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.app-email .sig-name { font-weight: 600; color: var(--ink); font-size: 12px; }
.app-email .sig-co {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--mute);
  margin-top: 2px;
}

/* Watermarked photo */
.app-photo { aspect-ratio: 16 / 9; }

/* Letterhead */
.app-letterhead {
  aspect-ratio: 5 / 4;
  background: var(--paper);
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.app-letterhead .lh-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink);
}
.app-letterhead .lh-meta {
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--mute);
  line-height: 1.7;
  text-transform: uppercase;
}
.app-letterhead .lh-body {
  margin-top: 18px;
  font-size: 10px;
  line-height: 1.7;
  color: var(--ink-2);
}
.app-letterhead .lh-body .lh-line {
  height: 1px;
  background: var(--rule);
  margin: 8px 0;
}
.app-letterhead .lh-body .lh-line.short { width: 45%; }
.app-letterhead .lh-body .lh-line.short2 { width: 60%; }
.app-letterhead .lh-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  letter-spacing: 0.16em;
  color: var(--mute);
  text-transform: uppercase;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

/* IG grid */
.app-ig {
  aspect-ratio: 5 / 6;
  background: #fff;
  padding: 28px;
}
.app-ig .ig-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.app-ig .ig-ava {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.app-ig .ig-handle {
  font-family: Manrope, sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.app-ig .ig-bio {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--mute);
  text-transform: uppercase;
  margin-top: 3px;
}
.app-ig .ig-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.app-ig .ig-tile {
  aspect-ratio: 1;
  background-image: repeating-linear-gradient(135deg, #2a2d31 0 12px, #1f2226 12px 24px);
  position: relative;
}
.app-ig .ig-tile:nth-child(4) { background-image: repeating-linear-gradient(135deg, #3a3530 0 12px, #2b2722 12px 24px); }
.app-ig .ig-tile:nth-child(7) { background-image: repeating-linear-gradient(135deg, #3a3530 0 12px, #2b2722 12px 24px); }
.app-ig .ig-tile:nth-child(2),
.app-ig .ig-tile:nth-child(5),
.app-ig .ig-tile:nth-child(9) {
  background-image: repeating-linear-gradient(135deg, #555047 0 12px, #43403a 12px 24px);
}

/* Vehicle decal */
.app-vehicle {
  aspect-ratio: 16 / 9;
  background: var(--fog);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.app-vehicle .van {
  width: 86%; height: 76%;
  background: #fafaf7;
  border: 1px solid var(--rule);
  box-shadow: 0 14px 40px -24px rgba(0,0,0,0.2);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-vehicle .van::before,
.app-vehicle .van::after {
  content: '';
  position: absolute;
  width: 50px; height: 28px;
  background: oklch(0.88 0.01 240);
  opacity: 0.4;
  top: 18px;
}
.app-vehicle .van::before { left: 22px; }
.app-vehicle .van::after { right: 22px; }
.app-vehicle .wheel {
  position: absolute;
  bottom: -16px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #222;
}
.app-vehicle .wheel.l { left: 14%; }
.app-vehicle .wheel.r { right: 14%; }

/* Website hero */
.app-web {
  aspect-ratio: 16 / 10;
  background: var(--ink);
  position: relative;
  color: var(--paper);
  overflow: hidden;
}
.app-web .hero-bg {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, #2a2d31 0 18px, #1f2226 18px 36px);
  opacity: 0.85;
}
.app-web .hero-nav {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.app-web .hero-nav .links { display: flex; gap: 22px; opacity: 0.85; }
.app-web .hero-body {
  position: absolute;
  bottom: 36px; left: 32px; right: 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.app-web .hero-headline {
  font-family: 'Instrument Serif', serif;
  font-size: 56px;
  line-height: 1.0;
  letter-spacing: -0.015em;
  max-width: 70%;
}
.app-web .hero-headline em { font-style: italic; }
.app-web .hero-coord {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-align: right;
  line-height: 1.7;
  opacity: 0.7;
}

/* Invoice */
.app-invoice {
  aspect-ratio: 5 / 6;
  background: #fff;
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  font-size: 9px;
  color: var(--ink-2);
}
.app-invoice .inv-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink);
}
.app-invoice .inv-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-align: right;
  line-height: 1.7;
}
.app-invoice .inv-title {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
}
.app-invoice .inv-rows {
  margin-top: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  letter-spacing: 0.06em;
  line-height: 1.9;
}
.app-invoice .inv-row {
  display: grid;
  grid-template-columns: 1fr 60px;
  padding: 6px 0;
  border-bottom: 1px solid var(--rule);
}
.app-invoice .inv-total {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.app-invoice .inv-total .lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--mute);
  text-transform: uppercase;
}
.app-invoice .inv-total .amt {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 28px;
  color: var(--ink);
}

/* ── Footer ─────────────────────────────────────────────────── */

.book-foot {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--mute);
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .book { padding-left: 80px; }
  .toc { display: none; }
}
