/* baschen.is — shared styles for the home, privacy and terms pages.
   Same palette as games.baschen.is. */
:root {
  --bg: #0c0d11;
  --panel: #14171e;
  --panel-2: #191d25;
  --line: #242935;
  --line-soft: #1b1f28;
  --bone: #ece6d9;
  --muted: #8d93a3;
  --muted-2: #6f7586;
  --accent: #d8a44a;
  --link: #e3b867;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f3ec;
    --panel: #fffdf8;
    --panel-2: #fffdf8;
    --line: #ddd6c7;
    --line-soft: #e7e1d4;
    --bone: #1d1c19;
    --muted: #5c5a54;
    --muted-2: #77736a;
    --accent: #9a6a12;
    --link: #8a5c0c;
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }

a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--bone); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- top bar ---------- */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 28px 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.top a { color: var(--muted); text-decoration: none; }
.top a:hover { color: var(--bone); }
.top .brand { color: var(--bone); }
.top nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- masthead ---------- */
.mast { padding: 56px 0 8px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 18px;
}
h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -.02em;
  margin: 0 0 20px;
}
h1 em { font-style: italic; color: var(--accent); }
.lede { max-width: 62ch; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.125rem); margin: 0 0 32px; }
.rule { height: 1px; background: linear-gradient(90deg, var(--line) 0%, var(--line) 30%, transparent 100%); }

/* ---------- home: project cards ---------- */
.sec-head {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 500;
  margin: 44px 0 20px;
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: border-color .2s, transform .2s;
}
a.card:hover, a.card:focus-visible { border-color: var(--line); transform: translateY(-2px); color: inherit; }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; line-height: 1.2; margin: 0; }
.card .host { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--accent); margin: -4px 0 0; }
.card p { margin: 0; color: var(--muted); font-size: .9375rem; }
.card .tags { margin-top: auto; padding-top: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }

/* ---------- legal pages ---------- */
.doc { padding: 8px 0 24px; }
.doc .meta { font-family: var(--mono); font-size: 12px; color: var(--muted-2); letter-spacing: .04em; margin: 0 0 28px; }
.doc h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 44px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.doc h3 { font-size: 1rem; font-weight: 600; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--bone); font-weight: 600; }
.doc ul { padding-left: 1.25em; }
.doc li + li { margin-top: 6px; }
.summary {
  padding: 18px 22px;
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: var(--panel);
}
.summary p { margin: 0; }
.summary p + p { margin-top: 8px; }
.toc { columns: 2; column-gap: 32px; padding-left: 1.25em; font-size: .95rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 12px 0; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); color: var(--muted); }
th { color: var(--bone); font-weight: 600; font-size: .85rem; }

/* ---------- footer ---------- */
footer {
  margin-top: 72px;
  padding: 26px 0 56px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--muted-2);
}
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--bone); }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .mast { padding-top: 32px; }
  .toc { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
