/* advisor.grsft.com: the app's home, privacy, terms and support pages. GRS red is the only
   accent; light and dark follow the reader's system. */

:root {
  color-scheme: light dark;
  --red: #e30613;
  --red-text: #c20612;
  --bg: #ffffff;
  --bg-alt: #f7f5f0;
  --text: #171819;
  --text-2: #5c5852;
  --line: #dddcd8;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --red-text: #ff5a63;
    --bg: #131211;
    --bg-alt: #1e1c1b;
    --text: #f7f5f0;
    --text-2: #b9b3aa;
    --line: #3a3734;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav.site { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; }
nav.site a { color: var(--text-2); text-decoration: none; padding: 6px 0; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

main { padding: 32px 0 48px; }
h1 { font-size: clamp(28px, 5vw, 36px); line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
h2 { font-size: 21px; line-height: 1.3; margin: 36px 0 8px; }
h3 { font-size: 17px; margin: 24px 0 6px; }
p, ul, ol, table, blockquote { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }
li { margin: 4px 0; }
a { color: var(--red-text); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
strong { font-weight: 650; }

.lede { font-size: 18px; color: var(--text); }
.meta { color: var(--text-2); font-size: 14px; }
.tagline { color: var(--text-2); margin-top: -4px; }

blockquote { border-left: 3px solid var(--red); background: var(--bg-alt); padding: 12px 16px; border-radius: 0 8px 8px 0; }

.panel { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 0 0 16px; }
.panel h3 { margin-top: 0; }
.urgent { border-left: 4px solid var(--red); }

code { font: 14px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }

.table-scroll { overflow-x: auto; margin: 0 0 14px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
th { font-weight: 650; }
.table-scroll table { min-width: 560px; margin: 0; }

footer.site { border-top: 1px solid var(--line); color: var(--text-2); font-size: 14px; }
footer.site .wrap { padding-top: 20px; padding-bottom: 32px; }
footer.site a { color: var(--text-2); }
