/* Influx Records - base styles */

:root {
  --bg: #ffffff;
  --fg: #111111;
  --accent: #111111;
  --header-height: 64px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: inherit;
}

/* Header, mobile-first */

.site-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header-height);
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #eee;
}

.site-title {
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
  margin-right: auto;
}

/* Hamburger button - visible by default (mobile-first) */

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fg);
}

/* Nav is a slide-down panel on small screens, hidden until toggled */

.site-nav {
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: transparent;
  display: none;
}

.site-nav.is-open {
  display: block;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 1rem;
  text-align: right;
}

.site-nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

main {
  padding: 2rem 1rem;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
  padding: 2rem 0;
}

#hero-blob {
  width: clamp(160px, 45vmin, 480px);
  height: clamp(160px, 45vmin, 480px);
}

#hero-blob canvas {
  display: block;
}

/* Wider screens: plain text nav across the header, no hamburger */

@media (min-width: 700px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: block;
    border-bottom: none;
    background: none;
  }

  .site-nav ul {
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 1.5rem;
  }

  .site-nav a {
    text-align: left;
  }
}
