/* hefto.net: Hefto's home page, privacy policy and terms. Plain CSS, no web fonts, no scripts, nothing from other
   sites. Colours are the app's Chalk theme (light) and Chalk Dark (dark), from src/index.css. */

:root {
  color-scheme: light dark;
  --canvas: #F4F4F1;
  --panel: #E3E3DE;
  --line: #D2D2CC;
  --ink: #111111;
  --ink-muted: #5A5A56;
  --link: #161616;
  --button: #161616;
  --on-button: #D8F45A;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0D0D0D;
    --panel: #1A1A1A;
    --line: #333333;
    --ink: #F4F4F1;
    --ink-muted: #A5A59F;
    --link: #D8F45A;
    --button: #D8F45A;
    --on-button: #161616;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  overflow-wrap: break-word;
}

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

header.site { padding: 20px 0 8px; }
header.site a { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-height: 48px; }
header.site img { width: 48px; height: 48px; border-radius: 12px; }
header.site span { font-weight: 800; font-size: 1.35rem; letter-spacing: 0.04em; text-transform: uppercase; }

main { padding: 8px 0 32px; }

h1 { font-size: 2rem; line-height: 1.15; margin: 16px 0 8px; text-transform: uppercase; letter-spacing: 0.02em; }
h2 { font-size: 1.3rem; line-height: 1.25; margin: 32px 0 8px; text-transform: uppercase; letter-spacing: 0.02em; scroll-margin-top: 16px; }
p, ul, ol { margin: 0 0 12px; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 6px; }
strong { font-weight: 700; }

a { color: var(--link); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.muted { color: var(--ink-muted); }
.lead { font-size: 1.15rem; }

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; margin: 8px 0 16px;
  border-radius: 16px; background: var(--button); color: var(--on-button); font-weight: 800; font-size: 1.1rem;
  text-decoration: none; text-transform: uppercase; letter-spacing: 0.04em;
}

nav.contents { background: var(--panel); border-radius: 16px; padding: 12px 16px; margin: 16px 0 8px; }
nav.contents p { margin: 0 0 4px; font-weight: 700; }
nav.contents ul { margin: 0; padding-left: 1.1em; }
nav.contents li { margin: 0; }
nav.contents a { display: inline-block; min-height: 32px; padding: 4px 0; }

.table-scroll { overflow-x: auto; margin: 0 0 12px; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 8px; border-bottom: 1px solid var(--line); }
th { font-weight: 700; }

footer.site { border-top: 1px solid var(--line); padding: 16px 0 32px; font-size: 0.95rem; color: var(--ink-muted); }
footer.site a { display: inline-block; min-height: 32px; padding: 4px 0; }
