/* Cryptell "financial paper" styles for the static pages (FAQ, Insights, articles, privacy). */
:root {
  --bg: #f6f1e7;
  --bg-alt: #efe7d8;
  --card: #fbf8f1;
  --ink: #1c1915;
  --sub: #4a443b;
  --muted: #7a7163;
  --line: #d8cdb9;
  --link: #0d5c61;
  --red: #b0291f;
  --green: #0e7a4b;
  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, "Noto Serif", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #16140f;
  --bg-alt: #1d1a14;
  --card: #1f1c16;
  --ink: #ede6d8;
  --sub: #c3b9a7;
  --muted: #918775;
  --line: #3b352b;
  --link: #66bdb8;
  --red: #f0776e;
  --green: #4cc38a;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  background: var(--bg);
  color: var(--ink);
  margin: 0;
}

body {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
}

main, .wrap {
  margin: 0 auto;
  max-width: 760px;
  padding: 0 20px 56px;
}

a { color: var(--link); }

/* Masthead injected at the top of every static page */
.masthead {
  border-bottom: 1px solid var(--ink);
  border-top: 3px solid var(--ink);
  margin: 16px auto 28px;
  max-width: 1180px;
  padding: 10px 20px;
  text-align: center;
}
.masthead a.wordmark {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.1;
  text-decoration: none;
}
.masthead nav {
  display: flex;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 14px;
  gap: 4px 20px;
  justify-content: center;
  margin-top: 6px;
}
.masthead nav a { color: var(--ink); font-weight: 600; text-decoration: none; }
.masthead nav a:hover { text-decoration: underline; }

/* The article pages ship their own small nav; the masthead replaces it. */
.top { display: none !important; }

.eyebrow {
  color: var(--red);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 6vw, 50px);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.08;
  margin: 6px 0 14px;
}

h2 {
  border-top: 2px solid var(--ink);
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.2;
  margin: 36px 0 10px;
  padding-top: 12px;
}

p, li { color: var(--sub); font-size: 18px; }
strong { color: var(--ink); }

.meta, .updated {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 22px;
}

/* Cards become plain sections */
.card {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
}

/* Insights index */
.grid { display: grid; gap: 0; margin-top: 18px; }
.grid .card {
  border-top: 1px solid var(--line);
  color: inherit;
  display: block;
  padding: 18px 0;
  text-decoration: none;
}
.grid .card:first-child { border-top: 2px solid var(--ink); }
.grid .card h2 { border: 0; font-size: 26px; margin: 4px 0 6px; padding: 0; }
.grid .card:hover h2 { text-decoration: underline; }
.grid .card p { margin: 0 0 6px; }
.signals { color: var(--muted); font-family: var(--sans); font-size: 13px; font-weight: 700; }
.back { display: inline-block; font-family: var(--sans); font-size: 15px; font-weight: 700; margin-top: 30px; }

/* Article furniture */
.tldr, .note {
  background: none;
  border: 0;
  border-left: 3px solid var(--ink);
  border-radius: 0;
  margin: 24px 0;
  padding: 2px 0 2px 18px;
}
.tldr p, .note p { color: var(--ink); font-style: italic; }

table { border-collapse: collapse; font-family: var(--sans); margin: 18px 0; width: 100%; }
th, td { border-bottom: 1px solid var(--line); color: var(--sub); font-size: 15px; padding: 10px 8px; text-align: left; vertical-align: top; }
th { border-bottom: 1px solid var(--ink); color: var(--ink); font-size: 13px; }

.signal-grid {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--ink);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin: 22px 0;
}
.signal { background: none; border: 0; border-radius: 0; border-right: 1px solid var(--line); padding: 10px 12px; }
.signal:last-child { border-right: 0; }
.signal strong { color: var(--muted); display: block; font-family: var(--sans); font-size: 12px; text-transform: none; }
.signal span { color: var(--ink); display: block; font-family: var(--sans); font-size: 18px; font-weight: 800; margin-top: 2px; }

.related { list-style: none; margin: 10px 0 0; padding: 0; }
.related li { border-top: 1px solid var(--line); padding: 10px 0; }
.related a { color: var(--ink); font-weight: 700; text-decoration: none; }
.related a:hover { text-decoration: underline; }

/* Newsletter box */
.cta {
  background: var(--bg-alt);
  border: 0;
  border-radius: 0;
  border-top: 3px solid var(--ink);
  margin: 36px 0;
  padding: 18px 20px 20px;
}
.cta h2 { border: 0; font-size: 26px; margin: 0 0 6px; padding: 0; }
.cta form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.cta input[type="email"] {
  background: var(--card);
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  flex: 1 1 220px;
  font-family: var(--sans);
  font-size: 15px;
  min-height: 46px;
  padding: 0 14px;
}
.cta button {
  background: var(--ink);
  border: 0;
  border-radius: 0;
  color: var(--bg);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 800;
  min-height: 46px;
  padding: 0 22px;
}
.hidden { display: none; }

/* Ad slot: hidden until the visitor accepts advertising (consent.js reveals it) */
.ad-slot {
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  border-top: 1px solid var(--line);
  margin: 28px auto;
  max-width: 970px;
  overflow: hidden;
  padding: 6px 0 10px;
}
.ad-slot::before {
  color: var(--muted);
  content: "Advertisement";
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  margin-bottom: 6px;
  text-align: center;
}
.ad-slot iframe { border: 0; display: block; height: 120px; margin: auto; max-width: 970px; min-height: 120px; min-width: 300px; width: 100%; }

/* Footer injected at the bottom of every static page */
.page-footer {
  border-top: 3px solid var(--ink);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  margin: 40px auto 0;
  max-width: 1180px;
  padding: 14px 20px 40px;
}
.page-footer a { color: var(--ink); font-weight: 600; margin-right: 14px; text-decoration: none; }
.page-footer a:hover { text-decoration: underline; }

/* Thanks page */
body.thanks main { padding-top: 10px; text-align: center; }
