/* Flightdeck Beacon — Vector Eight / Beacon identity, see assets/brand/README.md */

:root {
  --night: #020304;
  --interior: #0C131D;
  --airframe: #EEF5FF;
  --command: #1256A3;
  --command-light: #4C9AE8;   /* link text; true Command is 2.8:1 on Night */
  --attention: #F5A623;
  --secondary: #617083;
  --body: #C7D2DF;
  --rule: #18212D;
  --done: #238636;            /* the rgb_done the HA script actually sends */
  --sans: Inter, "Helvetica Neue", Arial, sans-serif;
  --mono: SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  overflow-wrap: break-word;
  background-color: var(--night);
  /* the social preview's console grid, at its 11% */
  background-image:
    linear-gradient(to right, rgba(18, 86, 163, .11) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(18, 86, 163, .11) 1px, transparent 1px);
  background-size: 128px 128px;
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1.5rem 6rem; }

/* ---- hero ---- */

.hero { padding: 5rem 0 2.5rem; }
.hero-lockup { display: flex; align-items: center; gap: 1.75rem; }
.hero-mark { width: 84px; height: 84px; flex: none; }  /* flat, no glow */
.hero-wordmark {
  margin: 0;
  font-size: clamp(1.9rem, 6vw, 2.9rem);
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--airframe);
}
.hero-sub {
  margin: .55rem 0 0;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .34em;
  color: var(--secondary);
}

/* The lamp vocabulary. Kept in the layout, not derived from the README table,
   so a reordered table can never silently relabel a colour. */
.states { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 2.75rem 0 0; padding: 0; list-style: none; }
.states li { display: flex; align-items: center; gap: .6rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .18em; color: var(--secondary); }
.dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.dot-off { background: transparent; box-shadow: inset 0 0 0 2px var(--rule); }
.dot-working { background: var(--command); animation: sparkle 2.4s ease-in-out infinite; }
.dot-blocked { background: var(--attention); }
.dot-done { background: var(--done); }

@keyframes sparkle { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dot-working { animation: none; opacity: .8; } }

.hero-rule { margin: 3rem 0 0; height: 4px; border-radius: 2px; background: var(--rule); position: relative; }
.hero-rule::before { content: ""; position: absolute; inset: 0 34% 0 0; border-radius: 2px; background: var(--command); }
.hero-rule::after { content: ""; position: absolute; top: -5px; left: 66%; width: 14px; height: 14px; border-radius: 50%; background: var(--attention); }

/* ---- prose ---- */

.prose > p:first-of-type { font-size: 1.22rem; line-height: 1.55; color: var(--airframe); }

h2 {
  margin: 3.25rem 0 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--secondary);
}

a { color: var(--command-light); text-decoration: none; border-bottom: 1px solid rgba(76, 154, 232, .35); }
a:hover { border-bottom-color: var(--command-light); }

strong { color: var(--airframe); font-weight: 600; }

code {
  font-family: var(--mono);
  overflow-wrap: anywhere;
  font-size: .87em;
  background: var(--interior);
  color: var(--airframe);
  padding: .16em .42em;
  border-radius: 4px;
  border: 1px solid var(--rule);
}
a code { color: inherit; }

table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: .95rem; }
th {
  text-align: left;
  padding: 0 1rem .7rem 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--secondary);
}
td { padding: .8rem 1rem .8rem 0; border-bottom: 1px solid rgba(24, 33, 45, .6); vertical-align: top; }
td:first-child { color: var(--airframe); }

ol { padding-left: 1.3rem; }
ol > li { margin-bottom: 1.4rem; }
ol > li::marker { font-family: var(--mono); font-size: .85rem; color: var(--command-light); }


/* ---- footer ---- */

.foot {
  margin-top: 4.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--secondary);
}
.foot a { border-bottom: none; }

@media (min-width: 34.001rem) {
  td:first-child { white-space: nowrap; }
}

@media (max-width: 34rem) {
  .hero { padding-top: 3.25rem; }
  .hero-lockup { gap: 1.15rem; }
  .hero-mark { width: 60px; height: 60px; }
  .states { gap: 1rem 1.25rem; }
}
