/* Protoboard Studios — shared styles */

:root {
  --bg: #05080c;
  --surface: #0b1219;
  --border: #16303d;
  --cyan: #22c7f0;
  --green: #8ee53f;
  --text: #e8eef3;
  --muted: #93a3b1;
  --max: 68rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  /* faint breadboard dot grid */
  background-image: radial-gradient(circle, rgba(34, 199, 240, 0.09) 1px, transparent 1.5px);
  background-size: 24px 24px;
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

a {
  color: var(--cyan);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--green);
}

a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* logo art sits on pure black; let it melt into the page background */
.logo,
.brand img {
  mix-blend-mode: lighten;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip-link {
  position: absolute;
  left: -999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  padding: 0.5rem 1rem;
  background: var(--surface);
  z-index: 10;
}

/* ---------- Site header (inner pages) ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(5, 8, 12, 0.85);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.site-header .brand img {
  width: 180px;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

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

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  padding: clamp(3.5rem, 12vh, 8rem) 0 clamp(3rem, 8vh, 5rem);
}

.logo-heading {
  margin: 0;
}

.hero .logo {
  width: min(640px, 100%);
  margin: 0 auto;
}

.tagline {
  margin: 2rem auto 0;
  max-width: 36rem;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  color: var(--text);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status::before {
    animation: none;
  }
}

/* ---------- Content sections ---------- */

.section {
  padding: 3rem 0;
}

.section h2 {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* circuit-trace rule after section headings */
.section h2::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--border), transparent);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}

.card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.lead {
  max-width: 44rem;
  color: var(--muted);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
}

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

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

/* ---------- Long-form pages (privacy policy) ---------- */

.prose {
  max-width: 46rem;
  padding: 3rem 0 4rem;
}

.prose h1 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  line-height: 1.2;
}

.prose h2 {
  margin: 2.5rem 0 0.5rem;
  font-size: 1.25rem;
  color: var(--cyan);
}

.prose .meta {
  margin: 0 0 2rem;
  color: var(--muted);
}

.prose li + li {
  margin-top: 0.35rem;
}

.notice {
  margin: 0 0 2rem;
  padding: 1rem 1.25rem;
  border: 1px dashed var(--green);
  border-radius: 10px;
  background: rgba(142, 229, 63, 0.06);
}

.notice strong {
  color: var(--green);
}

.placeholder {
  color: var(--muted);
  font-style: italic;
}

/* ---------- 404 ---------- */

.not-found {
  text-align: center;
  padding: 6rem 0;
}

.not-found .code {
  font-size: clamp(4rem, 14vw, 7rem);
  font-weight: 800;
  line-height: 1;
  margin: 0;
  color: var(--green);
  text-shadow: 0 0 24px rgba(142, 229, 63, 0.35);
}

.not-found p {
  color: var(--muted);
}
