/* larryhartman.com site stylesheet, v2 (2026-11-29: logo lockup with site label)
   From the design "LH Brand Identity v36".
   The :root block is the brand's source of truth. The private tool sites copy
   these values into their own theme files. */

:root {
  /* color */
  --ink: #1B2F5E;        /* Ink blue: headings, text, the LH mark */
  --blue: #0071BC;       /* Revival blue: emphasis words, numbers, the drawn name */
  --amber: #F2A31B;      /* the one button color */
  --amber-ink: #111111;
  --paper: #F2F2F3;      /* page background */
  --mist: #E3EEF8;       /* band behind the stats */
  --muted: #4A5A7E;      /* small print */
  --rule: rgba(27, 47, 94, 0.20);

  /* type */
  --f-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* layout */
  --max: 1280px;
  --pad: 16px;            /* same side padding as the tool sites; 10px on a phone */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }

/* ---------- type ----------
   v3 (2026-12-01): every size and gap below was reduced so a page reads at a glance.
   The splash page keeps its larger type (see .splash). */
.h1, .h2, .h3, .stat__num {
  font-family: var(--f-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--ink);
  text-wrap: balance;
}
.h1 { font-size: clamp(30px, 4vw, 40px); }
.h2 { font-size: clamp(24px, 3vw, 30px); }
.h3 { font-size: 20px; }
.h3--lg { font-size: 24px; }
.em { color: var(--blue); }
.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  line-height: 1.5;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
}
.prose { max-width: 62ch; }
.lede { font-size: 16px; }
.small { font-size: 14px; line-height: 22px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--amber-ink);
  background: var(--amber);
  text-decoration: none;
  padding: 12px 20px;
}
.btn:hover { filter: brightness(0.95); }
.btn--lg { font-size: 18px; padding: 16px 30px; }

/* ---------- header ----------
   Standard header (rule, 2026-12-01): two skinny rows on every page of every Larry Hartman site
   except the splash page. Row 1 is a slim bar (logo, site label, then one or two small controls
   at right); row 2 is underlined tabs. 89px tall on desktop and tablet, 75px on a phone.
   The tool sites (budget, fantasy, crypto) and the admin page use the same sizes. */
.head { border-bottom: 1px solid var(--rule); }
.head__in { display: block; }
.head__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding-block: 6px; }
.head__tools { display: flex; align-items: center; gap: 8px; }
/* Logo lockup: logo, thin rule, then the site label (.COM here; the section name on each subsite). */
.lockup { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ink); }
.lockup__site {
  font-family: var(--f-body); font-size: 13px; font-weight: 600; line-height: 1.6;
  letter-spacing: 0.10em; text-transform: uppercase;
  border-left: 1px solid var(--rule); padding-left: 16px;
}
.head .lockup { gap: 12px; }
.head .lockup__site { font-size: 12px; padding-left: 12px; }
.head__logo img { height: 24px; width: auto; display: block; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; }
.nav a {
  font-size: 16px;
  text-decoration: none;
  padding: 12px 10px;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--blue); }
.head .nav { flex-wrap: nowrap; align-items: stretch; gap: 2px; min-height: 40px; overflow-x: auto; scrollbar-width: none; }
.head .nav::-webkit-scrollbar { display: none; }
.head .nav a { display: flex; align-items: center; padding: 0 9px; font-size: 14px; font-weight: 500; white-space: nowrap; color: var(--ink); }
.head .nav a:first-child { margin-left: -9px; }
.head .nav a:hover { color: var(--blue); border-bottom-color: transparent; }
.head .nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }
.head .btn, .head__out { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; margin: 0; font-size: 13px; font-weight: 600; white-space: nowrap; }
.head__out { color: var(--ink); text-decoration: none; border: 1px solid var(--ink); }
.head__out:hover { color: var(--blue); border-color: var(--blue); }
@media (max-width: 600px) {
  :root { --pad: 10px; }
  .head__bar { min-height: 40px; padding-block: 4px; }
  .head .lockup { gap: 10px; }
  .head__logo img { height: 20px; }
  .head .lockup__site { font-size: 11px; padding-left: 10px; }
  .head__tools { gap: 6px; }
  .head .btn, .head__out { height: 28px; padding: 0 10px; font-size: 12px; }
  .head .nav { min-height: 34px; }
  .head .nav a { font-size: 13px; padding: 0 8px; }
  .head .nav a:first-child { margin-left: -8px; }
}

/* ---------- sections ---------- */
.sec { padding-top: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 12px; }
.sec--last { padding-bottom: clamp(24px, 3vw, 36px); }
.band { background: var(--mist); margin-top: clamp(24px, 3vw, 36px); }
.band .sec { padding-top: 28px; padding-bottom: 32px; }

.hero { display: flex; gap: clamp(20px, 3.5vw, 44px); align-items: flex-start; padding-top: clamp(16px, 2.5vw, 28px); }
.hero__text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.frame { border: 1px solid var(--rule); padding: 6px; }
.hero__photo { flex: none; width: min(260px, 28vw); }
.hero__photo img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 4px; }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { border: 1px solid var(--rule); padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.card__role { font-size: 13px; font-weight: 600; color: var(--blue); }
.card__body { font-size: 14px; line-height: 21px; flex-grow: 1; }
.card__link { font-size: 14px; text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 4px; padding-top: 8px; align-self: flex-start; }

.stat { background: var(--paper); border: 1px solid var(--rule); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.stat__num { font-size: 32px; color: var(--blue); }
.stat__label { font-size: 13px; line-height: 19px; }

.record { display: flex; flex-direction: column; }
.record__row { display: flex; gap: 8px 24px; padding: 8px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.record__when { width: 130px; flex: none; font-size: 13px; font-variant-numeric: tabular-nums; }
.record__co { flex: 1 1 0; font-size: 15px; font-weight: 600; color: var(--blue); line-height: 1.4; }
.record__role { flex: 1 1 0; font-size: 14px; }
.record__wide { flex: 2 1 0; font-size: 14px; }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 36px; margin-top: 4px; }
.pair > div { display: flex; flex-direction: column; gap: 12px; }
.pair p { font-size: 15px; line-height: 23px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--rule); padding-block: 16px 14px; display: flex; flex-direction: column; gap: 12px; }
.foot__top { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: flex-start; }
.foot__brand { flex: 1 1 260px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.foot__brand img { height: 24px; width: auto; }
.foot__brand .lockup { align-self: flex-start; }
.foot__col { width: 160px; display: flex; flex-direction: column; gap: 0; }
.foot__title {
  font-size: 11px; font-weight: 600; letter-spacing: 0.10em; text-transform: uppercase;
  padding-bottom: 4px; border-bottom: 1px solid var(--rule); margin-bottom: 4px;
}
.foot__col a { font-size: 13px; line-height: 1.4; text-decoration: none; padding: 1px 0; }
.foot__col a:hover { text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 4px; }
.legal {
  display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: center;
  font-size: 12.5px; color: var(--muted);
  border-top: 1px solid var(--rule); padding-top: 10px;
}
.legal span { flex: 1 1 0; white-space: nowrap; }
.legal span:nth-child(2) { text-align: center; }
.legal span:nth-child(3) { text-align: right; }

/* ---------- splash ---------- */
.splash { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.splash__main {
  flex-grow: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 30px; text-align: center;
  padding: 48px var(--pad);
}
.splash__mark { height: clamp(140px, 26vh, 210px); width: auto; }
.splash__name { height: auto; width: min(460px, 78vw); }
.splash__rule { width: 72px; border-top: 2px solid var(--blue); }
.splash { font-size: 18px; --pad: clamp(20px, 5vw, 64px); }   /* the splash page keeps its larger type */
.splash .legal { font-size: 14px; }
.splash .h1 { font-size: clamp(34px, 5.4vw, 56px); }
.splash .legal { border-top: 1px solid var(--rule); padding: 20px var(--pad); }

/* ---------- smaller screens ---------- */
@media (max-width: 960px) {
  .cards, .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 14px; }
  .hero { flex-direction: column-reverse; }
  .hero__photo { width: min(150px, 42vw); }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .record__row { flex-wrap: wrap; }
  .record__when { width: 100%; }
  .record__co, .record__role, .record__wide { flex: 1 1 100%; }
  .lockup { gap: 12px; }
  .lockup__site { font-size: 11px; padding-left: 12px; }
  .foot__brand img { height: 20px; }
  .nav a { padding: 10px 8px; }
  .foot__col { width: calc(50% - 24px); min-width: 130px; }
  .legal { flex-direction: column; align-items: flex-start; }
  .legal span { flex: none; text-align: left !important; }
  .splash .legal { align-items: center; }
  .stat__num { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- style guide page ---------- */
.sg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.sg-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sg-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sg-tile { border: 1px solid var(--rule); display: flex; flex-direction: column; }
.sg-stage { flex-grow: 1; min-height: 150px; display: flex; align-items: center; justify-content: center; padding: 32px 24px; }
.sg-stage--white { background: #FFFFFF; }
.sg-stage--ink { background: var(--ink); }
.sg-stage--left { justify-content: flex-start; }
.sg-stage img { max-width: 100%; }
.sg-cap { border-top: 1px solid var(--rule); padding: 12px 16px; font-size: 14px; line-height: 1.5; display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; }
.sg-cap a { text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 3px; }
.sg-sw { height: 96px; border-bottom: 1px solid var(--rule); }
.sg-meta { padding: 12px 16px; font-size: 14px; line-height: 1.5; }
.sg-meta b { display: block; font-size: 14px; }
.sg-meta code, .sg-table code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.sg-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sg-table th, .sg-table td { text-align: left; vertical-align: top; padding: 8px 16px 8px 0; border-bottom: 1px solid var(--rule); }
.sg-table th { font-size: 13px; font-weight: 600; letter-spacing: 0.10em; text-transform: uppercase; }
.sg-scroll { overflow-x: auto; }
.sg-no { position: relative; }
.sg-flag { font-size: 13px; font-weight: 600; letter-spacing: 0.10em; text-transform: uppercase; }
.sg-flag--no { color: #B0403A; }
.sg-flag--yes { color: #2D7A4D; }
.sg-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; max-width: 70ch; }
.sg-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; border: 1px solid var(--rule); padding: 14px 24px; }
.sg-bar .nav { margin-left: auto; }
.sg-headdemo { border: 1px solid var(--rule); padding: 0 16px; margin-top: 12px; }
.sg-note { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.sg-lockup { gap: 22px; flex-wrap: wrap; }
.sg-lockup img { height: 56px; width: auto; }
.sg-lockup .lockup__site { font-size: 18px; padding-left: 22px; }
.btn--line { background: transparent; color: var(--ink); border: 1px solid var(--ink); padding: 8px 16px; }
@media (max-width: 960px) { .sg-grid--3, .sg-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .sg-grid, .sg-grid--3 { grid-template-columns: minmax(0, 1fr); }
  .sg-lockup { gap: 12px; }
  .sg-lockup img { height: 34px; }
  .sg-lockup .lockup__site { font-size: 12px; padding-left: 12px; }
  .sg-stage { padding: 24px 16px; }
}

/* ---------- light and dark switch (v1, 2026-12-01) ----------
   Only pages whose <html> carries class "themed" can go dark (the style guide today). The public
   pages never do. Keep the two dark blocks identical: the first follows the device setting unless the
   switch chose light, the second applies when the switch chose dark. */
:root { --logo-moon: block; --logo-sun: none; }
/* Chart colors (v1, 2026-12-01): the palette the budget charts have used since the start, in the
   order series are assigned. */
:root { --ch-1: #0071BC; --ch-2: #6FB0E0; --ch-3: #B4541A; --ch-4: #1B2F5E; --ch-5: #8A3F12; --ch-6: #2F6B4F; --ch-7: #E7A57C; --ch-8: #8C96AD; --ch-9: #F2A31B; --ch-10: #B9C0CE; }
/* Accent colors (v1, 2026-12-01): ten muted additions for charts and section coding, listed nearest to
   blue first, plus the warning and advisory colors. Modeled on the Colorado School of Mines palette. */
:root { --acc-slate: #5D748B; --acc-steel: #8A99B0; --acc-silver: #81848A; --acc-plum: #6D5B7A; --acc-patina: #62998F; --acc-sage: #6C8A68; --acc-dusty-rose: #B78E9C; --acc-moss: #545A34; --acc-oxide-red: #8F5348; --acc-rust: #886048; --warn: #8F5348; --warn-soft: #F1E6E3; --advise: #F2A31B; --advise-ink: #96600A; --advise-soft: #FBEFD6; }
@media (prefers-color-scheme: dark) {
  :root.themed:not([data-theme="light"]) { color-scheme: dark; --ink: #E6ECF7; --blue: #62B0EA; --paper: #0B1730; --mist: #16274A; --muted: #9FAFCC; --rule: #2A3A5E; --logo-moon: none; --logo-sun: block; --acc-slate: #879CAE; --acc-steel: #8A99B0; --acc-silver: #9A9DA3; --acc-plum: #8A7999; --acc-patina: #8FBDB7; --acc-sage: #A2BE9E; --acc-dusty-rose: #DDB7C3; --acc-moss: #777C52; --acc-oxide-red: #B77F73; --acc-rust: #AE8971; --ch-1: #62B0EA; --ch-2: #2F6FA8; --ch-3: #E39A55; --ch-4: #C9D6EE; --ch-5: #E3756D; --ch-6: #62BD8B; --ch-7: #8A5A34; --ch-8: #7F8BA6; --ch-9: #F2A31B; --ch-10: #52607F; --warn: #B77F73; --warn-soft: #2E2220; --advise: #F2A31B; --advise-ink: #F2A31B; --advise-soft: #2E2413; }
  :root.themed:not([data-theme="light"]) img[src$="/lh-logo.svg"]:not(.sg-stage img) { content: url(/assets/lh-logo-dark.svg); }
}
:root.themed[data-theme="dark"] { color-scheme: dark; --ink: #E6ECF7; --blue: #62B0EA; --paper: #0B1730; --mist: #16274A; --muted: #9FAFCC; --rule: #2A3A5E; --logo-moon: none; --logo-sun: block; --acc-slate: #879CAE; --acc-steel: #8A99B0; --acc-silver: #9A9DA3; --acc-plum: #8A7999; --acc-patina: #8FBDB7; --acc-sage: #A2BE9E; --acc-dusty-rose: #DDB7C3; --acc-moss: #777C52; --acc-oxide-red: #B77F73; --acc-rust: #AE8971; --ch-1: #62B0EA; --ch-2: #2F6FA8; --ch-3: #E39A55; --ch-4: #C9D6EE; --ch-5: #E3756D; --ch-6: #62BD8B; --ch-7: #8A5A34; --ch-8: #7F8BA6; --ch-9: #F2A31B; --ch-10: #52607F; --warn: #B77F73; --warn-soft: #2E2220; --advise: #F2A31B; --advise-ink: #F2A31B; --advise-soft: #2E2413; }
:root.themed[data-theme="dark"] img[src$="/lh-logo.svg"]:not(.sg-stage img) { content: url(/assets/lh-logo-dark.svg); }
.theme-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; background: none; color: var(--ink); border: 1px solid var(--rule); border-radius: 0; cursor: pointer; }
.theme-btn:hover, .theme-btn:focus-visible { border-color: var(--blue); color: var(--blue); }
.theme-btn svg { width: 16px; height: 16px; }
.theme-btn__moon { display: var(--logo-moon); }
.theme-btn__sun { display: var(--logo-sun); }
@media (max-width: 600px) { .theme-btn { width: 28px; height: 28px; } .theme-btn svg { width: 14px; height: 14px; } }
/* Logo and lockup examples always sit on their stated background, whatever the page theme. */
.sg-stage { --ink: #1B2F5E; --blue: #0071BC; --muted: #4A5A7E; --rule: rgba(27, 47, 94, 0.20); background: #F2F2F3; color: var(--ink); }
.sg-stage--ink { background: #1B2F5E; }
.sg-stage--white { background: #FFFFFF; }
/* Warning (red) and advisory (amber) notices, for every site. */
.notice { border-left: 5px solid var(--warn); background: var(--warn-soft); padding: 10px 14px; display: grid; gap: 3px; }
.notice strong { font-family: var(--f-head); font-weight: 600; font-size: 17px; line-height: 1.2; text-transform: uppercase; letter-spacing: 0.03em; color: var(--warn); }
.notice--advise { border-left-color: var(--advise); background: var(--advise-soft); }
.notice--advise strong { color: var(--advise-ink); }
.sg-chips { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.sg-chips i { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; }
.sg-charts { display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 16px; align-items: center; border: 1px solid var(--rule); padding: 14px; margin-top: 10px; }
.sg-charts svg { width: 100%; height: auto; display: block; }
@media (max-width: 760px) { .sg-charts { grid-template-columns: 1fr; } .sg-charts__donut { max-width: 180px; margin: 0 auto; } }
