/* lasercom.app: copyright © 2026 Robert Lafon, all rights reserved. */
/* The look of every ordinary page (not the Orrery, which has sky.css).

   Every colour is in the block below, so the whole site can be re-tinted by
   editing a dozen values. Dark on purpose: the Orrery is dark, and the site
   is used outdoors at night by people looking at the sky.

   Layout: one centred column, at most 60em wide, with a 16px gutter on a
   phone. Nothing scrolls sideways. */

:root {
  --void:      #06080d;   /* page background */
  --panel:     #0d121c;   /* cards */
  --panel-2:   #131a28;   /* card hover, top bar */
  --line:      #222c40;   /* borders */

  --ink:       #e2e7f0;   /* body text */
  --ink-dim:   #9aa5b9;   /* secondary text */
  --ink-faint: #677288;   /* quietest text */

  --link:      #84c2ff;
  --hover:     #ffb38a;
  --beam:      #ff4d3d;   /* the accent: a laser line */
  --soon:      #ffce6b;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--link); text-decoration: none; }
a:hover, a:focus-visible { color: var(--hover); text-decoration: underline; }

/* --- top bar ------------------------------------------------------------- */
#top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 12px 16px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
}
#sitename {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.02em;
}
#sitename:hover { color: var(--ink); text-decoration: none; }
/* A short laser line with a bright spot: the site's mark. */
#sitename .beam {
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--beam));
  border-radius: 1px;
  position: relative;
}
#sitename .beam::after {
  content: "";
  position: absolute;
  right: -3px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--beam);
  box-shadow: 0 0 8px 2px rgba(255, 77, 61, 0.6);
}
#top nav { display: flex; gap: 20px; }
#top nav a { color: var(--ink-dim); }
#top nav a:hover { color: var(--hover); }
#top nav a[aria-current="page"] { color: var(--ink); border-bottom: 2px solid var(--beam); }

/* --- the column ------------------------------------------------------------ */
main {
  flex: 1;
  width: 100%;
  max-width: 60em;
  margin: 0 auto;
  padding: 24px 16px 48px;
}
h1 { font-size: 1.9rem; line-height: 1.2; margin: 0.4em 0 0.3em; }
h2 { font-size: 1.2rem; margin: 1.6em 0 0.5em; }
.lede { color: var(--ink-dim); font-size: 1.1rem; margin-top: 0; }
ul.plain { padding-left: 1.2em; }
ul.plain li { margin: 0.5em 0; }

/* --- home page ------------------------------------------------------------- */
.hero { padding: 16px 0 8px; }
.hero h1 { font-size: 2.3rem; }

.cards {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22em), 1fr));
  gap: 16px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
}
.card h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
}
.card p { margin: 0; color: var(--ink-dim); }
.card-live:hover { background: var(--panel-2); }
.card-planned h2 { color: var(--ink-dim); }
.card-planned p { color: var(--ink-faint); }

.tag {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 1px 7px;
  border-radius: 10px;
  border: 1px solid currentColor;
}
.tag-soon { color: var(--soon); }
.tag-planned { color: var(--ink-faint); }

/* --- footer ---------------------------------------------------------------- */
#foot {
  padding: 16px;
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

/* --- the private stats page ------------------------------------------------ */
.metrics { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.metrics li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 16px;
  color: var(--ink-dim);
}
.metrics b { display: block; font-size: 1.6rem; color: var(--ink); }
.chart { margin: 0; }
.chart svg { width: 100%; height: auto; display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.chart rect { fill: var(--link); }
.chart rect:hover { fill: var(--hover); }
.chart figcaption { display: flex; justify-content: space-between; color: var(--ink-faint); font-size: 0.85rem; margin-top: 4px; }
table.figures { border-collapse: collapse; }
table.figures th, table.figures td { padding: 4px 14px 4px 0; text-align: right; }
table.figures td:first-child, table.figures th:first-child { text-align: left; }
table.figures th { color: var(--ink-dim); font-weight: 500; }

/* --- the feedback form ------------------------------------------------------- */
form.feedback { display: flex; flex-direction: column; gap: 6px; max-width: 40em; }
form.feedback label { margin-top: 10px; font-weight: 500; }
form.feedback .opt { color: var(--ink-faint); font-weight: 400; }
form.feedback input, form.feedback textarea {
  font: inherit;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  width: 100%;
}
form.feedback textarea { resize: vertical; min-height: 10em; }
form.feedback input:focus, form.feedback textarea:focus { outline: 2px solid var(--link); outline-offset: 1px; border-color: transparent; }
form.feedback button {
  align-self: flex-start;
  margin-top: 16px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--beam);
  border: none;
  border-radius: 6px;
  padding: 10px 26px;
  cursor: pointer;
}
form.feedback button:hover, form.feedback button:focus-visible { background: #ff6b5c; }
/* The field robots fill in and people never see. Moved off screen rather than
   display:none, which some robots know to skip. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.formerror { color: #ffb4a8; background: rgba(255, 77, 61, 0.12); border: 1px solid rgba(255, 77, 61, 0.4); border-radius: 6px; padding: 10px 14px; }
.note { color: var(--ink-faint); font-size: 0.9rem; }

/* --- feedback on the stats page ---------------------------------------------- */
.fblist { list-style: none; padding: 0; }
.fblist li { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 10px 0; }
.fbmeta { margin: 0 0 6px; color: var(--ink-dim); font-size: 0.85rem; overflow-wrap: anywhere; }
.fbtext { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
#foot a { color: var(--ink-dim); }
