/* Shared look for tidesi.org. Theme follows the visitor's system setting. */
:root {
  --bg: #f3f6f7; --ink: #0d1419; --soft: #5c6b75;
  --p1: #bae6fd; --p2: #7dd3fc; --p3: #0ea5e9; --p4: #0369a1; --foam: #8fd6fb;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0a0e12; --ink: #e9f2f7; --soft: #7f8f9b;
          --p1: #bae6fd; --p2: #7dd3fc; --p3: #38bdf8; --p4: #0c5c8a; --foam: #f0f9ff; }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-family: 'Familjen Grotesk', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }

.top { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center;
       padding: 30px 40px 0; font: 400 12px 'IBM Plex Mono', ui-monospace, monospace; color: var(--soft); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
         font: 600 18px 'Familjen Grotesk', system-ui, sans-serif; letter-spacing: -.03em; }
.top nav a { text-decoration: none; margin-left: 22px; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }

.foot { position: absolute; left: 40px; right: 40px; bottom: 16px; z-index: 3; display: flex; justify-content: space-between;
        font: 400 11px 'IBM Plex Mono', ui-monospace, monospace; color: var(--bg); opacity: .85; }
canvas { image-rendering: pixelated; display: block; }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  .top { padding: 22px 20px 0; } .foot { left: 20px; right: 20px; }
}
