/* Sirene Labs — shared styles */
:root {
  --bg: #0a0a0c;
  --ink: #e8e8ea;
  --muted: #8a8a93;
  --faint: #4a4a52;
  --line: #1c1c22;
  --accent: #5eead4;
  --max: 44rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

::selection { background: var(--accent); color: var(--bg); }

.mono {
  font-family: ui-monospace, SFMono-Regular, "Cascadia Mono", Menlo, Consolas, monospace;
}

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

/* ---------- site nav ---------- */
.site-nav {
  width: 100%;
  max-width: var(--max);
  padding: 1.5rem 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem 1.5rem;
  flex-wrap: wrap;
}

.brand {
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: color 160ms ease;
}
.brand:hover { color: var(--accent); }

.site-nav nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
}

.site-nav nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}
.site-nav nav a:hover { color: var(--accent); }
.site-nav nav a[aria-current="page"] { color: var(--accent); }

/* ---------- layout ---------- */
main {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
}

body.home main { justify-content: safe center; }

main.page {
  display: block;
  padding-top: 3.25rem;
  padding-bottom: 3rem;
}

/* ---------- shared components ---------- */
.eyebrow {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

h1 {
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h1 .dot { color: var(--accent); }

h1.page-title {
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
}

.wave {
  display: block;
  width: 100%;
  height: 48px;
  margin: 2.25rem 0;
}

.wave path {
  fill: none;
  stroke: var(--faint);
  stroke-width: 1.25;
}

.wave path.live {
  stroke: var(--accent);
  stroke-dasharray: 90 660;
  animation: drift 9s linear infinite;
}

@keyframes drift {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -750; }
}

@media (prefers-reduced-motion: reduce) {
  .wave path.live { animation: none; stroke-dasharray: none; opacity: 0.5; }
}

.lede {
  font-size: 1.125rem;
  color: var(--ink);
  max-width: 34rem;
  text-wrap: pretty;
}

.sub {
  margin-top: 0.875rem;
  color: var(--muted);
  font-size: 1rem;
  max-width: 34rem;
  text-wrap: pretty;
}

.status {
  margin-top: 3rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.status .key { color: var(--faint); }
.status .val { color: var(--accent); }

/* ---------- prose (about, blog posts) ---------- */
.prose > * + * { margin-top: 1.25rem; }

.prose p, .prose li {
  color: var(--muted);
  max-width: 38rem;
}

.prose p strong { color: var(--ink); font-weight: 600; }

.prose h2 {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 2.75rem;
}

.prose a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--faint);
  transition: border-color 160ms ease;
}
.prose a:hover { border-color: var(--accent); }

.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.5rem; }

.prose time {
  font-size: 0.8125rem;
  color: var(--faint);
  letter-spacing: 0.05em;
}

/* ---------- cards (services, projects) ---------- */
.cards {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem;
  transition: border-color 160ms ease;
}
.card:hover { border-color: var(--faint); }

.card .tag {
  display: inline-block;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.625rem;
}
.card .tag.dim { color: var(--faint); }

.card h2 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.card p { color: var(--muted); font-size: 0.9375rem; }

/* ---------- blog index ---------- */
.post-list {
  margin-top: 2.5rem;
  display: grid;
  gap: 2rem;
}

.post-item time {
  font-size: 0.75rem;
  color: var(--faint);
  letter-spacing: 0.1em;
}

.post-item h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0.375rem 0;
}

.post-item h2 a {
  color: var(--ink);
  text-decoration: none;
  transition: color 160ms ease;
}
.post-item h2 a:hover { color: var(--accent); }

.post-item p { color: var(--muted); font-size: 0.9375rem; }

.feed-link {
  margin-top: 3rem;
  font-size: 0.8125rem;
  color: var(--faint);
}
.feed-link a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.feed-link a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- CTA / contact ---------- */
.cta {
  margin-top: 3rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem;
}

.cta p { color: var(--muted); font-size: 0.9375rem; margin-bottom: 0.75rem; }

.big-link {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--faint);
  transition: border-color 160ms ease;
  overflow-wrap: anywhere;
}
.big-link:hover { border-color: var(--accent); }

/* ---------- footer ---------- */
footer {
  width: 100%;
  max-width: var(--max);
  padding: 2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--faint);
}

footer a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.625rem 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

footer a:hover { color: var(--accent); }
