/* [dvn] v0.1 — quiet, typography-led, monochrome */
@font-face {
  font-family: "DejaVu Sans";
  src: url("assets/fonts/DejaVuSans-Book.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DejaVu Sans";
  src: url("assets/fonts/DejaVuSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/JetBrainsMono-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --text: #f0f0f0;
  --muted: #a0a0a0;
  --subtle: #777;
  --line: #292929;
  --accent: #E42022;
  --ok: #34d399;
  --content-width: 760px;
  --page-gutter: clamp(1.25rem, 5vw, 3rem);
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", "DejaVu Sans Mono", monospace;
  --sans: "DejaVu Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

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

::selection {
  background: #eaeaea;
  color: #0a0a0a;
}

.shell {
  width: min(100% - (var(--page-gutter) * 2), var(--content-width));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 10;
  top: .75rem;
  left: var(--page-gutter);
  padding: .5rem .75rem;
  transform: translateY(-160%);
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -.09em;
  text-decoration: none;
  line-height: 1;
}

.wordmark img {
  display: block;
  height: 1.35rem;
  width: auto;
}

.logo-inline {
  display: inline-block;
  height: 1em;
  width: auto;
  vertical-align: -0.12em;
}

.site-nav {
  display: flex;
  gap: clamp(1rem, 4vw, 1.8rem);
}

.site-nav a,
.back-to-top {
  color: var(--muted);
  font-size: .82rem;
  text-decoration: none;
  transition: color 150ms ease;
}

.site-nav a:hover,
.back-to-top:hover {
  color: var(--text);
}

.hero {
  padding-block: clamp(5.5rem, 14vw, 9rem) clamp(4.5rem, 10vw, 6.5rem);
}

.eyebrow {
  margin: 0;
  color: var(--subtle);
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .09em;
  line-height: 1.5;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: .35rem;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 1px;
}

.eyebrow-separator {
  padding-inline: .4rem;
  color: #555;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-block: 1.7rem 1.4rem;
  font-size: clamp(2.65rem, 8vw, 5rem);
  font-weight: 540;
  letter-spacing: -.075em;
  line-height: 1.04;
}

.hero-accent {
  color: var(--accent);
}

.hero-line {
  display: inline-block;
  animation: hero-rise .7s cubic-bezier(.2, .7, .2, 1) both;
}

.hero-line.hero-accent {
  animation-delay: .24s;
}

.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
}

.glitch::before {
  color: #f0f0f0;
  animation: glitch-a 1.2s steps(1, end) .15s both;
}

.glitch::after {
  color: #fff;
  animation: glitch-b 1.2s steps(1, end) .15s both;
}

.glitch:hover::before {
  animation: glitch-hover-a .45s steps(2, end) both;
}

.glitch:hover::after {
  animation: glitch-hover-b .45s steps(2, end) both;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Entrance burst: slices flash, then park hidden */
@keyframes glitch-a {
  0% {
    opacity: .9;
    clip-path: inset(8% 0 68% 0);
    transform: translate(-5px, -2px);
  }

  8% {
    opacity: .9;
    clip-path: inset(62% 0 4% 0);
    transform: translate(5px, 2px);
  }

  16% {
    opacity: .9;
    clip-path: inset(28% 0 42% 0);
    transform: translate(-3px, 1px);
  }

  24%,
  100% {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transform: none;
  }
}

@keyframes glitch-b {
  0% {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
  }

  6% {
    opacity: .8;
    clip-path: inset(70% 0 8% 0);
    transform: translate(4px, -1px);
  }

  14% {
    opacity: .8;
    clip-path: inset(12% 0 74% 0);
    transform: translate(-4px, 2px);
  }

  22%,
  100% {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transform: none;
  }
}

/* Short re-burst on hover */
@keyframes glitch-hover-a {
  0% {
    opacity: .9;
    clip-path: inset(15% 0 60% 0);
    transform: translate(-3px, -1px);
  }

  50% {
    opacity: .9;
    clip-path: inset(65% 0 10% 0);
    transform: translate(3px, 1px);
  }

  100% {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transform: none;
  }
}

@keyframes glitch-hover-b {
  0% {
    opacity: .8;
    clip-path: inset(60% 0 15% 0);
    transform: translate(3px, 1px);
  }

  50% {
    opacity: .8;
    clip-path: inset(10% 0 70% 0);
    transform: translate(-3px, -1px);
  }

  100% {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transform: none;
  }
}

.hero-copy {
  max-width: 590px;
  margin-bottom: 1.7rem;
  color: #b2b2b2;
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.85;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding-block: .25rem;
  font-size: .88rem;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.text-link span {
  transition: transform 150ms ease;
}

.text-link:hover span {
  transform: translate(2px, 2px);
}

.muted-link {
  color: var(--muted);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.25rem;
  margin-top: 4.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .07em;
}

.section {
  padding-block: 4rem;
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin-block: .7rem 0;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: 1.2;
}

.project-list {
  border-top: 1px solid var(--line);
}

.project {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) 1.25rem;
  gap: 1rem;
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--line);
}

.project-number,
.project-status {
  color: var(--subtle);
  font-family: var(--mono);
  font-size: .67rem;
  letter-spacing: .04em;
}

.project-number {
  padding-top: .25rem;
}

.project h3 {
  margin-bottom: .35rem;
  font-size: 1.05rem;
  font-weight: 550;
  letter-spacing: -.025em;
}

.project p:not(.project-status) {
  max-width: 550px;
  margin-bottom: .8rem;
  color: var(--muted);
  font-size: .91rem;
}

.project-status {
  margin-bottom: 0;
}

.project-mark {
  color: var(--subtle);
  transition: color 150ms ease, transform 150ms ease;
}

.project:hover .project-mark {
  color: var(--accent);
  transform: translate(2px, -2px);
}

a.project-link {
  text-decoration: none;
  color: inherit;
}

a.project-link .project-body {
  display: block;
}

.project-title {
  display: block;
  margin-bottom: .8rem;
  font-size: .91rem;
  color: var(--text);
  text-decoration: none;
}

.project-static {
  grid-template-columns: 2.5rem minmax(0, 1fr);
}

.section-note {
  margin: 1rem 0 0;
  color: var(--subtle);
  font-size: .8rem;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 2rem;
}

.about-section .section-heading {
  margin-bottom: 0;
}

.about-copy p {
  color: var(--muted);
  font-size: .95rem;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.elsewhere-list {
  border-top: 1px solid var(--line);
}

.elsewhere-list a {
  display: grid;
  grid-template-columns: 1fr 1.5fr auto;
  align-items: center;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.elsewhere-list a>span:first-child {
  font-size: .92rem;
}

.elsewhere-list a>span:last-child {
  color: var(--subtle);
  transition: transform 150ms ease, color 150ms ease;
}

.elsewhere-list a:hover>span:last-child {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.link-detail {
  color: var(--subtle);
  font-size: .82rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem 2.5rem;
  border-top: 1px solid var(--line);
}

.footer-wordmark {
  font-size: .95rem;
}

.footer-wordmark img {
  height: 1.1rem;
}

.site-footer p {
  margin: 0;
  color: var(--subtle);
  font-size: .75rem;
}

.back-to-top {
  white-space: nowrap;
}

@media (max-width: 600px) {
  .site-header {
    align-items: flex-start;
  }

  .site-nav {
    gap: .9rem;
  }

  .site-nav a {
    font-size: .76rem;
  }

  .hero {
    padding-top: 5rem;
  }

  .hero-meta {
    margin-top: 3.2rem;
  }

  .section {
    padding-block: 3.25rem;
  }

  .project {
    grid-template-columns: 1.7rem minmax(0, 1fr) .8rem;
    gap: .65rem;
  }

  .project-static {
    grid-template-columns: 1.7rem minmax(0, 1fr);
  }

  .about-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .elsewhere-list a {
    grid-template-columns: 1fr auto;
    gap: .2rem 1rem;
  }

  .link-detail {
    grid-column: 1;
    grid-row: 2;
  }

  .elsewhere-list a>span:last-child {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .site-footer {
    flex-wrap: wrap;
  }

  .site-footer p {
    order: 3;
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* [dvn] status-page — extensions only. Base above is verbatim from dvn-landing-v0.1.
   Uses same tokens: --bg #0a0a0a, --text #f0f0f0, --muted, --subtle, --line, --accent #E42022 */

.status-banner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #101010;
}

.status-banner strong {
  font-size: 1.02rem;
  font-weight: 550;
  letter-spacing: -0.02em;
}

.status-banner p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.status-banner .banner-meta {
  flex-shrink: 0;
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.07em;
}

.status-dot.is-up { background: #d6d6d6; }
.status-dot.is-down { background: var(--accent); }
.status-dot.is-degraded { background: #b58900; }
.status-dot.is-maintenance { background: var(--muted); }
.status-dot.is-unknown { background: var(--subtle); }

.status-banner.is-down { border-color: var(--accent); }
.status-banner.is-degraded { border-color: #5a4a12; }

.service-list { border-top: 1px solid var(--line); }

.service {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.service-number {
  padding-top: 0.25rem;
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 0.67rem;
}

.service h3 {
  margin: 0 0 0.3rem;
  font-size: 1.02rem;
  font-weight: 550;
  letter-spacing: -0.025em;
}

.service .service-sub {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.87rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
}

.service-state {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 0.2rem;
}

.service-state[data-state="operational"] { color: #d6d6d6; }
.service-state[data-state="downtime"] { color: var(--accent); }
.service-state[data-state="degraded"] { color: #d8b93a; }
.service-state[data-state="maintenance"] { color: var(--muted); }

.uptime-block { margin-top: 1.6rem; }

.uptime-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
}

.uptime-bars {
  display: flex;
  gap: 1px;
  align-items: stretch;
  margin-top: 0.75rem;
}

.day-bar {
  flex: 1 1 0;
  min-width: 0;
  height: 2rem;
  border-radius: 1px;
  background: #1c1c1c;
  border: none;
}

.day-bar:first-child { border-radius: 4px 1px 1px 4px; }
.day-bar:last-child { border-radius: 1px 4px 4px 1px; }

.day-bar[data-status="operational"] { background: var(--ok); }
.day-bar[data-status="operational"]:hover { filter: brightness(1.2); }
.day-bar[data-status="downtime"] { background: var(--accent); }
.day-bar[data-status="degraded"] { background: #d8b93a; }
.day-bar[data-status="maintenance"] { background: var(--subtle); }
.day-bar[data-status="not_monitored"] { background: #26262b; }

/* betteruptime-style resource rows + axis + response chart */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-top: 1rem;
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
}

.tick-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 0.35rem;
  vertical-align: 0;
}

.tick-dot.is-ok { background: var(--ok); }
.tick-dot.is-down { background: var(--accent); }
.tick-dot.is-degraded { background: #d8b93a; }
.tick-dot.is-na { background: #26262b; border: 1px solid #333; }

/* range controls */
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1rem;
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.controls label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.controls select {
  background: #0d0d0d;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.35rem 0.5rem;
  font: inherit;
  cursor: pointer;
}

.controls select:hover,
.controls select:focus-visible {
  color: var(--text);
  border-color: var(--subtle);
  outline: none;
}

/* hover tooltip (betteruptime-style tick + chart tooltips) */
.tip {
  position: fixed;
  z-index: 50;
  max-width: 260px;
  padding: 0.45rem 0.6rem;
  background: #141414;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.5;
  white-space: nowrap;
  pointer-events: none;
}

.tip .tip-date { color: var(--muted); }

.resource-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.25rem;
}

.resource-head h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 550;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uptime-pct { color: var(--ok); font-size: 0.85rem; white-space: nowrap; }
.uptime-pct.is-bad { color: var(--accent); }

.tick-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.03em;
}

.response-block { margin-top: 1rem; }
.response-block > p {
  margin: 0 0 0.4rem 0.1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

canvas.response {
  display: block;
  width: 100%;
  height: 150px;
}

.uptime-legend {
  display: flex;
  gap: 1rem;
  margin-top: 0.7rem;
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.05em;
}

.incident { padding-block: 1.3rem; border-bottom: 1px solid var(--line); }
.incident h3 { margin: 0 0 0.3rem; font-size: 0.98rem; }
.incident p { margin: 0.3rem 0; color: var(--muted); font-size: 0.88rem; }
.incident .incident-meta {
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
}

.refresh-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.2rem;
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}

.refresh-row button {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.45rem 0.8rem;
  font: inherit;
  cursor: pointer;
}

.refresh-row button:hover { color: var(--text); border-color: var(--subtle); }

.skeleton { color: var(--subtle); font-family: var(--mono); font-size: 0.8rem; }

@media (max-width: 600px) {
  .status-banner { flex-direction: column; align-items: flex-start; }
  .service { grid-template-columns: 1.7rem minmax(0, 1fr); }
  .service-state { grid-column: 2; padding-top: 0; }
  .uptime-bars { gap: 1px; }
  .day-bar { height: 1.7rem; }
}

/* combined single-page charts — same tokens, no new palette */
.chart-block {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0f0f0f;
}

.chart-block canvas {
  display: block;
  width: 100%;
  height: 120px;
}

.service-card {
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.service-top {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
}

.service-charts { margin-top: 1rem; }

.spark-wrap { margin-top: 0.9rem; }

.spark-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
}

canvas.spark {
  display: block;
  width: 100%;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #0d0d0d;
}

.service-card .uptime-bars { margin-top: 0.2rem; }

@media (max-width: 600px) {
  .service-top { grid-template-columns: minmax(0, 1fr) auto; }
  .chart-block canvas { height: 96px; }
}

/* actual status page — minimal, same tokens */
.header-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.status-title {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 550;
  letter-spacing: -0.04em;
}

.status-sub {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.service-top {
  grid-template-columns: minmax(0, 1fr) auto;
}

.service-top h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 550;
  letter-spacing: -0.02em;
}

.incident-list .muted,
.muted {
  color: var(--subtle);
  font-size: 0.88rem;
}

.incident-list .incident {
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}

.incident-list .incident h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}

.incident-list .incident-meta {
  margin: 0;
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 0.68rem;
}