/* ============================================================
   DAY LAW · POWERED BY LAW ALL DAY — STRATEGIC PARTNER DECK
   Single parchment theme, oxblood + aged brass on warm paper.
   Mirrors the structural shape of the Capital Consortium deck
   (PitchDeck-FamilyOffice) but inherits the Day Law dashboard's
   parchment token system. NO theme toggle.
   ============================================================ */

@import url("tokens.css");

/* Web-loaded serif fallback for systems without Iowan Old Style —
   serves as a closer match to the dashboard typography than Cormorant. */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  /* Layout */
  --slide-pad-x: clamp(48px, 7vw, 120px);
  --slide-pad-y: clamp(56px, 8vh, 96px);
  --max-content: 1280px;

  /* Fonts — fall back to Cormorant/Inter/JetBrains if Iowan Old Style isn't on the system */
  --font-display: "Iowan Old Style", "Apple Garamond", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans:    -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono:    ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  scroll-snap-type: y proximity;
  overflow-y: scroll;
}

/* Soft warm vignette — keeps the page from looking flat under print */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at top,    rgba(107,29,44,0.04), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(163,123,58,0.03), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Slide ---------- */
.slide {
  position: relative;
  min-height: 100vh;
  width: 100%;
  padding: var(--slide-pad-y) var(--slide-pad-x);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--hairline);
  background: var(--bg);
}
.slide.cover { overflow: hidden; }

.slide-inner {
  width: 100%;
  max-width: var(--max-content);
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* ---------- Slide chrome (top brand strip) ---------- */
.slide-chrome {
  position: absolute;
  top: 28px; left: var(--slide-pad-x); right: var(--slide-pad-x);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}
.slide-chrome .section-num { color: var(--brand); }
.slide-chrome .brand-mark::before {
  content: ''; display: inline-block; width: 14px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  vertical-align: middle; margin-right: 10px;
}
.slide-chrome .brand-mark {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 14px; letter-spacing: -0.01em; text-transform: none; color: var(--ink);
}
.slide-chrome .brand-mark .dot { color: var(--brand); font-weight: 600; }

/* ---------- Slide footer ---------- */
.slide-footer {
  position: absolute;
  bottom: 28px;
  left: var(--slide-pad-x); right: var(--slide-pad-x);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}
.slide-footer .confidential { color: var(--gold); }
.slide-footer .powered-by { font-family: var(--font-display); font-style: italic; font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--muted); }
.slide-footer .powered-by em { color: var(--ink); font-style: normal; font-weight: 500; }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  font-weight: 600;
}
h1.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--ink);
}
h1.display em {
  font-style: italic;
  color: var(--brand);
  font-weight: 500;
}
h2.headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h2.headline em { font-style: italic; color: var(--brand); font-weight: 500; }
h3.subhead {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0;
  color: var(--ink);
  text-transform: none;
}
.lede {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(19px, 1.9vw, 24px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 780px;
}
.lede em { font-style: italic; color: var(--brand); }
p { color: var(--ink-2); max-width: 68ch; }
p + p { margin-top: 14px; }
strong { color: var(--ink); font-weight: 600; }
em.brand { font-style: normal; color: var(--brand); font-weight: 500; }

/* ---------- Hairline rule (brass gradient) ---------- */
.rule {
  height: 1px; width: 100%;
  background: linear-gradient(90deg, transparent, var(--gold) 15%, var(--gold) 85%, transparent);
  opacity: 0.6;
  margin: 36px 0;
}
.rule.short {
  width: 28px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 1; margin: 24px 0;
}

/* ---------- Cover slide ---------- */
.slide.cover {
  justify-content: flex-start;
  align-items: flex-start;
  min-height: 100vh;
  padding-top: 96px;
  padding-bottom: 200px;
  background: var(--bg);
}
.slide.cover .signoff { margin-bottom: 24px; }

/* Wordmark — exact dashboard cadence */
.cover .wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 56px;
  letter-spacing: -0.015em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 8px;
}
.cover .wordmark .dot { color: var(--brand); font-weight: 600; font-style: normal; padding: 0 0.06em; }
.cover .brand-rule {
  width: 56px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-bottom: 36px;
}

.cover .for-attention {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--muted);
  margin-top: 48px;
}
.cover .for-attention .target {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--brand);
  margin-top: 8px;
}

.cover .signoff {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
  display: flex; justify-content: space-between; padding-top: 36px;
  border-top: 1px solid var(--hairline);
  align-items: baseline;
}
.cover .signoff .firm { color: var(--ink-2); }

/* Oversized Sentinel watermark on the cover — bleeds off the right margin */
.cover-sentinel {
  position: absolute;
  right: -5%;
  bottom: -12%;
  width: 62%;
  max-width: 720px;
  opacity: 0.06;
  color: var(--gold);
  pointer-events: none;
  z-index: 0;
}
.cover-sentinel svg { width: 100%; height: auto; display: block; }

/* Small Sentinel sigil inline on the wordmark line */
.cover .sentinel-sigil {
  display: inline-block;
  width: 44px; height: 44px;
  color: var(--brand);
  vertical-align: middle;
  margin-right: 16px;
}
.cover .sentinel-sigil svg { width: 100%; height: 100%; display: block; }

/* ---------- Stat blocks ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
  margin: 40px 0;
  border: 1px solid var(--border);
}
.stat {
  background: var(--surface);
  padding: 32px 28px;
}
.stat .num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1;
  color: var(--brand);
  letter-spacing: -0.015em;
  font-feature-settings: "lnum" 1, "tnum" 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.stat .num em { font-style: italic; color: var(--brand); font-weight: 500; }
.stat .num .unit { font-size: 0.5em; color: var(--muted); margin-left: 4px; font-weight: 400; }
.stat .label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold);
  margin-top: 14px;
  font-weight: 600;
}
.stat .sub {
  font-family: var(--font-sans);
  font-size: 13px; color: var(--muted);
  margin-top: 6px;
}

/* ---------- Two-column layout ---------- */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  margin-top: 48px;
}
.two-col.tight { gap: 40px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Dash bullet list ---------- */
ul.dash { list-style: none; padding: 0; margin: 16px 0; }
ul.dash li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  color: var(--ink-2);
}
ul.dash li::before {
  content: '';
  position: absolute; left: 0; top: 0.7em;
  width: 16px; height: 1px;
  background: var(--gold);
}

/* ---------- Term card ---------- */
.term-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid var(--brand);
  padding: 24px 28px;
  border-radius: 0 4px 4px 0;
}
.term-card .term {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.term-card .value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  color: var(--ink);
  margin-top: 8px;
  line-height: 1.15;
  letter-spacing: -0.005em;
  font-feature-settings: "lnum" 1, "tnum" 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.term-card .detail { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.5; }

/* ---------- Team card grid ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 40px;
}
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } }
.team-card {
  background: var(--surface);
  padding: 32px 28px;
  display: flex; flex-direction: column;
}
.team-card.placeholder { background: var(--surface-2); }
.team-card .role-tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.team-card .name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  margin-top: 12px;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.team-card .name .dot { color: var(--brand); font-weight: 600; font-style: normal; }
.team-card.placeholder .name { color: var(--muted); font-style: italic; }
.team-card .blurb {
  font-size: 13.5px;
  color: var(--ink-2);
  margin-top: 14px;
  line-height: 1.55;
}
.team-card .domain {
  margin-top: auto; padding-top: 22px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Table ---------- */
.tr-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
  font-size: 14px;
}
.tr-table thead th {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gold);
  font-weight: 600;
}
.tr-table thead th.num { text-align: right; }
.tr-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-2);
}
.tr-table tbody td.num { font-family: var(--font-mono); color: var(--ink); text-align: right; }
.tr-table tbody tr:hover td { background: rgba(107,29,44,0.03); }

/* ---------- TOC ---------- */
.toc-list {
  list-style: none;
  border-top: 1px solid var(--hairline);
  margin-top: 40px;
}
.toc-list li {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}
.toc-list .toc-num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--gold); font-weight: 600; }
.toc-list .toc-title { font-family: var(--font-display); font-weight: 500; font-size: 22px; color: var(--ink); letter-spacing: -0.005em; }
.toc-list .toc-page { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.15em; }

/* ---------- Use-of-funds bar (slide 12 ask) ---------- */
.uof-bar {
  display: flex;
  width: 100%;
  height: 56px;
  margin: 24px 0 18px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.uof-bar .seg {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--on-brand); font-weight: 600;
  border-right: 1px solid rgba(255,255,255,0.18);
}
.uof-bar .seg:last-child { border-right: none; }
.uof-bar .seg-1 { background: var(--brand); }
.uof-bar .seg-2 { background: var(--brand-2); }
.uof-bar .seg-3 { background: #a14056; }
.uof-bar .seg-4 { background: var(--gold); color: var(--ink); }
.uof-bar .seg-5 { background: #b8965a; color: var(--ink); }
.uof-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px 24px;
  margin-top: 12px;
}
.uof-legend .item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--ink-2);
}
.uof-legend .swatch {
  flex: 0 0 12px; width: 12px; height: 12px;
  margin-top: 5px;
}
.uof-legend .lbl { font-family: var(--font-sans); font-weight: 500; color: var(--ink); }
.uof-legend .amt { font-family: var(--font-mono); color: var(--brand); font-weight: 600; margin-left: 6px; }
.uof-legend .desc { color: var(--muted); font-size: 12px; margin-top: 2px; }

/* ---------- Module / feature triptych ---------- */
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
@media (max-width: 900px) { .module-grid { grid-template-columns: 1fr; } }
.module-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px 22px;
  border-radius: 4px;
}
.module-card .mod-num {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--gold); font-weight: 600;
}
.module-card .mod-title {
  font-family: var(--font-display); font-weight: 500; font-size: 20px;
  color: var(--ink); margin-top: 10px; line-height: 1.2; letter-spacing: -0.005em;
}
.module-card .mod-body {
  font-size: 13px; color: var(--ink-2); margin-top: 12px; line-height: 1.55;
}
.module-card .mod-tags {
  margin-top: 14px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Disclaimer ---------- */
.disclaimer {
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1.65;
  color: var(--muted);
  letter-spacing: 0.01em;
  max-width: 880px;
}
.disclaimer strong { color: var(--ink-2); font-weight: 600; }

/* ---------- Print / export (14×8.5in landscape) ---------- */
@page {
  size: 14in 8.5in;
  margin: 0;
}

@media print {
  html, body {
    background: var(--bg) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    color-adjust: exact;
  }
  body {
    scroll-snap-type: none;
    overflow: visible;
  }
  .slide {
    page-break-after: always;
    page-break-inside: avoid;
    break-after: page;
    min-height: 0;
    height: 8.5in;
    width: 14in;
    padding: 0.55in 0.85in;
    overflow: hidden;
    border-bottom: none;
    background: var(--bg);
  }
  .slide.cover {
    height: 8.5in;
    padding-top: 0.6in;
    padding-bottom: 1.2in;
  }
  .slide:last-child { page-break-after: auto; }
  body::before { display: none; }
  .slide-footer { bottom: 0.35in; left: 0.85in; right: 0.85in; }
  .slide-chrome { top: 0.35in; left: 0.85in; right: 0.85in; }
  /* Tighten oversized type for print */
  h1.display { font-size: 52px; line-height: 1.06; }
  h2.headline { font-size: 36px; line-height: 1.12; }
  .lede { font-size: 18px; }
  .stat .num { font-size: 40px; }
  .term-card .value { font-size: 22px; }
  .team-card .name { font-size: 19px; }
  .team-card .blurb { font-size: 12.5px; }
  .module-card .mod-title { font-size: 17px; }
  .module-card .mod-body { font-size: 12px; }
  .cover .wordmark { font-size: 48px; }
  .cover .for-attention .target { font-size: 24px; }
  .toc-list .toc-title { font-size: 19px; }
  .uof-bar { height: 40px; }
  .uof-bar .seg { font-size: 10px; }
  .uof-legend .item { font-size: 12px; }
  /* Force accent colors to print at full saturation */
  .stat .num, .eyebrow, .section-num, em.brand,
  .term-card .term, .toc-list .toc-num, .team-card .role-tag,
  .module-card .mod-num, .tr-table thead th, .slide-footer .confidential,
  .stat .label, .uof-legend .amt {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  /* Sentinel watermark prints lighter so it doesn't fight the text */
  .cover-sentinel { opacity: 0.045; }
}
