/* heatsink.pro: the public pages (front page, privacy policy, not invited).
   Tokens follow the calculator's own (heatsink/web/style.css), so the site and the app match. */

:root {
  color-scheme: light;
  --page: #f9f9f7;
  --surface: #fcfcfb;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #6f6d68;
  --rule: #e1e0d9;
  --axis: #c3c2b7;
  --accent: #1d63c2;
  --accent-ink: #ffffff;
  --metal-fin: #b9bec6;
  --metal-base: #9aa1ab;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 8px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0d0d0d;
    --surface: #1a1a19;
    --ink: #f0efec;
    --ink-2: #c3c2b7;
    --muted: #9b9992;
    --rule: #2c2c2a;
    --axis: #383835;
    --accent: #5e9ff2;
    --accent-ink: #0d0d0d;
    --metal-fin: #6b717a;
    --metal-base: #565c65;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d0d0d;
  --surface: #1a1a19;
  --ink: #f0efec;
  --ink-2: #c3c2b7;
  --muted: #9b9992;
  --rule: #2c2c2a;
  --axis: #383835;
  --accent: #5e9ff2;
  --accent-ink: #0d0d0d;
  --metal-fin: #6b717a;
  --metal-base: #565c65;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.6 var(--font);
}
main, .site-header, footer { max-width: 44rem; margin: 0 auto; padding: 0 16px; }

/* Header: mark, name, beta tag */
.site-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-top: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}
.site-header a.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.mark { width: 26px; height: 26px; flex: none; }
.tag {
  font: 600 0.78rem/1 var(--mono);
  color: var(--ink-2);
  border: 1px solid var(--axis);
  border-radius: 999px;
  padding: 0.3rem 0.55rem;
}

main { padding-top: 2.5rem; }
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 0.75rem; letter-spacing: -0.015em; }
h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 2.75rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--rule);
}
h3 { font-size: 1rem; margin: 1.5rem 0 0.25rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }
li { margin: 0 0 0.4rem; }
li::marker { color: var(--muted); }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 38rem; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
a { color: var(--accent); text-underline-offset: 2px; }

/* Access panel on the front page */
.access {
  margin: 2rem 0 0;
  padding: 1.25rem 1.25rem 0.25rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}
.btn {
  display: inline-block;
  font: 600 0.95rem/1 var(--font);
  color: var(--accent-ink);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 0.7rem 1rem;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.06); }
.btn:focus-visible, .linkish:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin: 0 0 1rem; }

/* Feature list: two columns on wide screens */
.features { list-style: none; padding: 0; display: grid; gap: 0.25rem 2rem; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
.features li { padding-left: 1rem; position: relative; }
.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--metal-base);
}
.planned li::before { background: none; border: 1px solid var(--axis); }

footer {
  margin-top: 4rem;
  padding-top: 1rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}
footer p { margin: 0 0 0.5rem; }

/* Sign-out buttons that look like links */
.linkish {
  font: inherit;
  color: var(--accent);
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
form.inline { display: inline; }
.access h3:first-child { margin-top: 0; }
