/* ==========================================================================
   tranchecapital.net — the public site (home, privacy, terms).
   Three static pages. No build step, no framework, no third-party request.

   The palette is the product's own (client/src/styles.css): ink navy on cream
   paper with a brass accent. The TYPEFACES deliberately are not. The app pairs
   Cormorant Garamond with Inter from Google Fonts; a privacy policy that loads
   its own fonts from fonts.gstatic.com hands every reader's IP address to a
   third party, and would then have to disclose that in its own sub-processor
   list. A system stack costs one typeface and buys a page that makes no
   outbound request at all — which is a claim the policy can then make plainly.
   ========================================================================== */

:root {
  --ink: #0E1B2C;
  --ink2: #16263C;
  --paper: #F6F4EF;
  --card: #FFFFFF;
  --line: #E4E0D6;
  --txt: #28313D;
  --mut: #6B7482;
  --brass: #A8873B;
  --brassbg: #F4EEDD;
  --r: 10px;
  --measure: 44rem; /* ~75 characters — legal text is read, not skimmed */
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--paper);
  color: var(--txt);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* Sticky footer: short pages (the home page is one) otherwise leave the
     footer stranded mid-screen with paper below it. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }

h1, h2, h3, .serif {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

a { color: var(--ink2); text-decoration-color: var(--brass); text-underline-offset: 3px; }
a:hover { color: var(--brass); }

/* ---------- masthead ---------- */
.masthead {
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.masthead .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-block: 1.1rem;
}
.wordmark {
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-size: 1.22rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.wordmark:hover { color: var(--ink); }
.wordmark b { font-weight: 600; }
.wordmark span { color: var(--brass); font-weight: 600; }

nav { display: flex; gap: 1.4rem; font-size: 0.9rem; }
nav a { color: var(--mut); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }
nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--brass); }

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: 62rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
main { padding-block: 3.5rem 4.5rem; }
.prose { max-width: var(--measure); }

/* Paragraph rhythm belongs to prose in general, not only to the legal
   documents — the home page runs prose under its own headings too. */
.prose p { margin-bottom: 1rem; }
.prose h2 { font-size: 1.28rem; margin-top: 2.4rem; margin-bottom: 0.7rem; }

/* ---------- home ---------- */
.lede {
  font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem);
  margin-bottom: 1.1rem;
}
.standfirst {
  font-size: 1.14rem;
  color: var(--ink2);
  max-width: 38rem;
}
.eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.cards {
  display: grid;
  /* 20rem, not 15rem: at this container width 15rem yields three columns and
     strands the fourth card alone on a second row. 20rem gives a clean 2x2 on
     desktop and collapses to one column on a phone. */
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 1.1rem;
  margin-top: 2.6rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.3rem 1.35rem;
}
.card h3 { font-size: 1.06rem; margin-bottom: 0.4rem; }
.card p { font-size: 0.93rem; color: var(--mut); margin: 0; }

.rule { border: 0; border-top: 1px solid var(--line); margin-block: 3rem; }

/* ---------- legal documents ---------- */
.doc h1 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.5rem); }
.doc h2 {
  font-size: 1.28rem;
  margin-top: 2.6rem;
  margin-bottom: 0.7rem;
  padding-top: 0.2rem;
}
.doc h3 { font-size: 1.03rem; margin-top: 1.7rem; margin-bottom: 0.4rem; }
.doc p, .doc ul, .doc ol, .doc table { margin-bottom: 1rem; }
.doc ul, .doc ol { padding-left: 1.3rem; }
.doc li { margin-bottom: 0.4rem; }
.doc strong { color: var(--ink); }

.updated {
  font-size: 0.86rem;
  color: var(--mut);
  margin-top: 0.7rem;
  margin-bottom: 2rem;
}

.callout {
  background: var(--brassbg);
  border-left: 3px solid var(--brass);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 1rem 1.2rem;
  margin-block: 1.6rem;
  font-size: 0.95rem;
}
.callout p:last-child { margin-bottom: 0; }

/* Tables carry the scope justifications; they must survive a phone. */
.table-scroll { overflow-x: auto; margin-bottom: 1.2rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; min-width: 32rem; }
th, td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink); font-weight: 600; background: var(--card); }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.08em 0.34em;
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  background: var(--card);
  padding-block: 1.8rem 2.4rem;
  font-size: 0.87rem;
  color: var(--mut);
}
footer .wrap { display: flex; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; }
footer a { color: var(--mut); }
footer nav { gap: 1.2rem; }
