/* Atinio public site — minimal editorial design. */

:root {
  --bg: #f4f1ea;
  --surface: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a48;
  --text-muted: #7a7a78;
  --accent: #1a4d4d;
  --border: #e2ddd0;
  --code-bg: #efeae0;
  --max-width: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --surface: #121a2c;
    --text-primary: #e6e7ea;
    --text-secondary: #b6b8be;
    --text-muted: #898d95;
    --accent: #7dd3c8;
    --border: #1e2940;
    --code-bg: #1a2238;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px 80px;
}

header.site-header {
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
}

header.site-header .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

header.site-header .brand {
  font-family: Georgia, "Playfair Display", serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}

header.site-header nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
}

header.site-header nav a {
  color: var(--text-secondary);
  text-decoration: none;
}

header.site-header nav a:hover {
  color: var(--accent);
}

h1 {
  font-family: Georgia, "Playfair Display", serif;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 600;
}

.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 32px;
}

h2 {
  font-family: Georgia, "Playfair Display", serif;
  font-size: 22px;
  margin: 40px 0 12px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 17px;
  margin: 28px 0 10px;
  color: var(--text-primary);
}

p {
  margin: 0 0 14px;
  color: var(--text-secondary);
}

ul, ol {
  margin: 0 0 14px;
  padding-left: 24px;
  color: var(--text-secondary);
}

li {
  margin-bottom: 6px;
}

li strong {
  color: var(--text-primary);
}

strong {
  color: var(--text-primary);
}

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

code {
  font-family: "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.88em;
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-primary);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

th, td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: var(--code-bg);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 13px;
}

tr:last-child td {
  border-bottom: none;
}

footer.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px 48px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

footer.site-footer a {
  color: var(--text-secondary);
}

.meta {
  display: inline-block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding: 6px 10px;
  background: var(--code-bg);
  border-radius: 4px;
}

@media (max-width: 600px) {
  main { padding: 32px 20px 60px; }
  h1 { font-size: 28px; }
  h2 { font-size: 20px; }
  .lead { font-size: 16px; }
  table { font-size: 13px; }
  th, td { padding: 8px 10px; }
}
