/* Styles for machen.polsys.net (index.html and privacy.html), served by GitHub Pages from docs/ */

:root {
  --bg: #fbfaf8;
  --text: #1d1d1f;
  --muted: #5f5f66;
  --line: #e4e2de;
  --panel: #ffffff;
  --accent: #d7261e;
  --accent-text: #ffffff;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1b1d;
    --text: #f2f2f4;
    --muted: #a2a2aa;
    --line: #34343a;
    --panel: #242427;
    --accent: #f0544c;
    --accent-text: #1b1b1d;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }

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

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 20px;
}

.brand img { width: 36px; height: 36px; }

nav { display: flex; gap: 18px; font-size: 15px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--text); }

.hero { padding: 40px 0 28px; text-align: center; }
.hero img.icon { width: 112px; height: 112px; }
.hero h1 { font-size: 40px; line-height: 1.15; margin: 14px 0 12px; letter-spacing: -0.02em; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 600px; margin: 0 auto 26px; }

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 10px;
  text-decoration: none;
}

.small { font-size: 14px; color: var(--muted); }
.hero .small { margin-top: 12px; }

.shots {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0 10px;
}
.shots img { width: 100%; max-width: 330px; height: auto; display: block; }

section { padding: 22px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: none; }

h2 { font-size: 24px; letter-spacing: -0.01em; margin: 18px 0 10px; }
h3 { font-size: 18px; margin: 22px 0 6px; }

ul { padding-left: 22px; }
li { margin: 6px 0; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 20px;
}

table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 10px 0; }
th, td { text-align: left; vertical-align: top; padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); }
th { font-weight: 600; }
tr:last-child td { border-bottom: none; }
code { font: 13px/1.4 ui-monospace, Menlo, monospace; overflow-wrap: anywhere; }

footer.site {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding: 22px 0 40px;
  font-size: 14px;
  color: var(--muted);
}
footer.site p { margin: 6px 0; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 30px; }
  .hero p.lead { font-size: 17px; }
  .shots { flex-direction: column; align-items: center; }
  nav { gap: 12px; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  td { border-bottom: none; padding: 2px 0; }
  td:first-child { font-weight: 600; }
  tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
}
