/* globalpokerbot.com — minimal single-column longform essay
   Paper/ink + deep-teal. Overrides Bamboo tokens and re-asserts in dark mode. */

@import url("https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,600;8..60,700&family=Inter:wght@400;500;600&display=swap");

:root {
  color-scheme: light;
  --paper: #f6f1e7;
  --paper-2: #efe8da;
  --ink: #23211c;
  --ink-soft: #4a473f;
  --accent: #11534f;      /* deep teal */
  --accent-2: #0d423f;
  --rule: #ddd4c2;
  /* override Bamboo tokens */
  --b-txt: var(--ink);
  --b-bg-1: var(--paper);
  --b-bg-2: var(--paper-2);
  --b-line: var(--rule);
  --b-link: var(--accent);
  --b-btn-bg: var(--accent);
  --b-btn-txt: #f7f3ea;
  --b-focus: #7fb2ad;
  --b-font-main: "Inter", system-ui, sans-serif;
}

/* dark-mode is on here; force the same paper palette so screenshots are true */
@media (prefers-color-scheme: dark) {
  :root {
    --b-txt: var(--ink);
    --b-bg-1: var(--paper);
    --b-bg-2: var(--paper-2);
    --b-line: var(--rule);
  }
}

html, body { overflow-x: hidden; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  max-width: 660px;            /* narrow reading column */
  padding: 0 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.72;
}
*, ::before, ::after { box-sizing: border-box; }
img, svg, table, pre, figure { max-width: 100%; }

/* body copy = refined serif; UI = quiet sans */
p, li, dd, blockquote, figcaption, details { font-family: "Source Serif 4", Georgia, serif; }
p { color: var(--ink); }

h1, h2, h3 { font-family: "Inter", system-ui, sans-serif; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; overflow-wrap: anywhere; }
h1 { font-size: 2rem; line-height: 1.18; margin-top: 0.4rem; font-weight: 600; }
h2 { font-size: 1.28rem; margin-top: 2.6rem; font-weight: 600; }
h3 { font-size: 1.06rem; margin-top: 1.9rem; font-weight: 600; }

a { color: var(--accent); }
a:hover { text-decoration: underline; }

/* masthead */
.masthead { padding: 1.6rem 0 1.1rem; border-bottom: 1px solid var(--rule); margin-bottom: 2rem; }
.brand { display: flex; align-items: center; gap: .55rem; font-family: "Inter", sans-serif; font-weight: 600; color: var(--ink); font-size: 1rem; letter-spacing: -0.01em; }
.brand svg { width: 22px; height: 22px; flex: none; }
.brand a { color: var(--ink); }
nav.topnav { margin-top: .85rem; display: flex; flex-wrap: wrap; gap: 1.1rem; font-family: "Inter", sans-serif; font-size: .9rem; }
nav.topnav a { color: var(--ink-soft); }
nav.topnav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

/* kicker / lede for text-only hero */
.kicker { font-family: "Inter", sans-serif; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: .75rem; }
.lede { font-family: "Source Serif 4", Georgia, serif; font-size: 1.22rem; line-height: 1.55; color: var(--ink-soft); margin: 1.1rem 0 2rem; }

/* answer-first summary aside */
.summary { background: var(--paper-2); border-left: 3px solid var(--accent); border-radius: 0 .3rem .3rem 0; padding: 1rem 1.2rem; margin: 0 0 2rem; }
.summary p { margin: 0; font-size: 1rem; line-height: 1.6; }
.summary .lbl { font-family: "Inter", sans-serif; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 600; display: block; margin-bottom: .4rem; }

/* footnote-ish asides */
.aside { font-family: "Source Serif 4", Georgia, serif; font-size: .94rem; color: var(--ink-soft); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: .85rem 0; margin: 2rem 0; font-style: italic; }

/* inline image, small */
figure.inline { margin: 2rem 0; }
figure.inline img { width: 100%; border-radius: .35rem; display: block; }
figure.inline figcaption { font-family: "Inter", sans-serif; font-size: .8rem; color: var(--ink-soft); margin-top: .5rem; font-style: normal; }

/* svg diagram figure */
figure.diagram { margin: 2.2rem 0; }
figure.diagram svg { width: 100%; height: auto; display: block; }
figure.diagram figcaption { font-family: "Inter", sans-serif; font-size: .8rem; color: var(--ink-soft); margin-top: .55rem; }

/* tables (re-assert light, wrap on mobile) */
.tablewrap { overflow-x: auto; margin: 0 0 1.6rem; }
table { background: var(--paper); color: var(--ink); border-collapse: collapse; width: 100%; font-family: "Inter", sans-serif; font-size: .92rem; }
th, td { background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--rule); padding: .55rem .6rem .55rem 0; vertical-align: top; }
th { text-align: left; font-weight: 600; }

/* CTA */
.cta { margin: 2.6rem 0 1rem; padding: 1.4rem 1.5rem; background: var(--accent); border-radius: .4rem; color: #f4efe4; }
.cta p { color: #f4efe4; margin: 0 0 1rem; font-family: "Source Serif 4", serif; }
.cta .lbl { font-family: "Inter", sans-serif; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85; display: block; margin-bottom: .45rem; }
.cta a.btn { display: inline-block; background: #f4efe4; color: var(--accent-2); font-family: "Inter", sans-serif; font-weight: 600; font-size: .92rem; padding: .6rem 1.2rem; border-radius: .3rem; text-decoration: none; }
.cta a.btn:hover { opacity: .9; text-decoration: none; }

/* author block */
.author { display: flex; gap: .9rem; align-items: center; margin: 2.4rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--rule); }
.author img { width: 52px; height: 52px; border-radius: 50%; flex: none; object-fit: cover; }
.author .who { font-family: "Inter", sans-serif; }
.author .who b { display: block; font-weight: 600; color: var(--ink); font-size: .95rem; }
.author .who span { font-size: .85rem; color: var(--ink-soft); }
.author .who a { font-size: .82rem; }

/* footer */
footer.site { margin: 3rem 0 2.4rem; padding-top: 1.3rem; border-top: 1px solid var(--rule); font-family: "Inter", sans-serif; font-size: .82rem; color: var(--ink-soft); }
footer.site nav { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: .7rem; }
footer.site a { color: var(--ink-soft); }

/* breadcrumb */
.crumb { font-family: "Inter", sans-serif; font-size: .8rem; color: var(--ink-soft); margin: 0 0 1.4rem; }
.crumb a { color: var(--ink-soft); }

ul, ol { padding-left: 1.4rem; }
li { margin-bottom: .4rem; }

@media (max-width: 480px) {
  body { font-size: 1rem; padding: 0 1.1rem; }
  h1 { font-size: 1.7rem; }
  .lede { font-size: 1.12rem; }
}
nav.topnav { align-items: center; }
nav.topnav .hdr-btn { margin-left: auto; background: var(--accent); color: #fff; padding: .4rem 1.05rem; border-radius: .3rem; font-weight: 600; text-decoration: none; }
nav.topnav .hdr-btn:hover { opacity: .9; color: #fff; }
