:root {
  --bg: #140026;
  --panel: #1E0033;
  --field: #0E001C;
  --magenta: #FF2E97;
  --cyan: #5EE9F7;
  --yellow: #FFE259;
  --text: #D9C9F0;
  --dim: #9A7FC4;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 2.5rem 1.25rem 4rem;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: .02em;
}

header, main, footer { max-width: 46rem; margin: 0 auto; }

/* Scanlines. Decorative only — never the thing carrying legibility. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  background: repeating-linear-gradient(rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px);
}

.boot {
  color: var(--cyan);
  text-transform: uppercase;
  font-size: .8rem;
  letter-spacing: .12em;
  text-shadow: 0 0 9px rgba(94, 233, 247, .7);
  margin: 0;
  font-family: inherit;
  /* pre-wrap, not pre: the RAM line is 38 characters and would otherwise force
     horizontal scroll on a phone. Wrapping is uglier than the real thing for a
     moment; a sideways-scrolling page is worse. */
  white-space: pre-wrap;
}

/* The machine's own noise sits back so the eye reaches the name. */
.boot .dim {
  color: var(--dim);
  text-shadow: none;
}

h1 {
  color: var(--magenta);
  font-size: clamp(2rem, 9vw, 3.2rem);
  text-transform: uppercase;
  letter-spacing: .18em;
  margin: .6rem 0 .2rem;
  text-shadow: 0 0 20px rgba(255, 46, 151, .9);
}

.tagline { color: var(--dim); margin: 0 0 2.5rem; }

h2 {
  color: var(--yellow);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  border-bottom: 1px solid rgba(255, 226, 89, .28);
  padding-bottom: .4rem;
  margin: 2.75rem 0 1.25rem;
  text-shadow: 0 0 10px rgba(255, 226, 89, .45);
}

.ln { color: var(--dim); margin-right: .5rem; }

.item {
  padding-left: .9rem;
  border-left: 2px solid rgba(255, 46, 151, .45);
  margin-bottom: 1.5rem;
}

/* Headings are plain text, not links. Every destination is a labelled button
   below the description instead — one obvious place to click per item, rather
   than a title that happens to be a link plus buttons doing the same job. */
.item h3 {
  margin: 0 0 .25rem;
  font-size: 1rem;
  letter-spacing: .06em;
  color: var(--magenta);
  text-transform: uppercase;
  text-shadow: 0 0 11px rgba(255, 46, 151, .7);
}

/* LCe is the brand and the lowercase e is load-bearing — the blanket uppercase
   on project titles would render it "LCE". This one heading opts out. */
.item h3.brand-case { text-transform: none; }
.item h3.brand-case .expand {
  color: var(--dim);
  font-weight: 400;
  text-shadow: none;
}

.item p { margin: 0 0 .35rem; }

/* Install badges. Two are apps, one is the library — grouped because they are
   all "get it here", distinguished by their labels rather than by styling. */
.badges {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
  margin-top: .55rem;
}

.badge {
  border: 1px solid rgba(94, 233, 247, .55);
  color: var(--cyan);
  background: rgba(94, 233, 247, .07);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .28rem .6rem;
  border-radius: 2px;
  white-space: nowrap;
}

.badge:hover,
.badge:focus-visible { background: rgba(94, 233, 247, .18); }

/* Body-size text: no glow, no uppercase — both measurably hurt reading. */
.meta { color: var(--cyan); font-size: .78rem; letter-spacing: .07em; }
.hint { color: var(--dim); }

section p { margin: 0 0 .35rem; }

/* The form is collapsed by default behind a terminal prompt. Native <details>
   rather than JS: keyboard-operable and announced as expandable for free. */
#contact-details > summary {
  cursor: pointer;
  list-style: none;
  color: var(--cyan);
  text-transform: uppercase;
  font-size: .8rem;
  letter-spacing: .12em;
  text-shadow: 0 0 9px rgba(94, 233, 247, .7);
  padding: .25rem 0;
  display: inline-block;
}

#contact-details > summary::-webkit-details-marker { display: none; }

#contact-details > summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

#contact-details > summary:hover { text-decoration: underline; }

#contact-details[open] > summary { margin-bottom: .9rem; }

.chev::before {
  content: "\25B8";
  display: inline-block;
  margin-right: .55em;
}

#contact-details[open] .chev::before { content: "\25BE"; }

form {
  background: rgba(30, 0, 51, .75);
  border: 1px solid rgba(255, 46, 151, .4);
  padding: 1.1rem;
}

label {
  display: block;
  margin: .8rem 0 .3rem;
  color: var(--dim);
  font-size: .82rem;
}

input, textarea {
  display: block;
  width: 100%;
  background: var(--field);
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  padding: .5rem .6rem;
  /* Full-opacity --dim measures 6.0:1 against the field background. WCAG 2.2
     SC 1.4.11 needs 3:1 for UI component boundaries, and the field background
     differs from the form background by only 1.05:1 — so this border is the
     sole boundary indicator, not decoration. At .45 alpha it measured 2.03:1. */
  border: 1px solid var(--dim);
}

textarea { resize: vertical; }

input:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

button {
  margin-top: 1rem;
  background: var(--magenta);
  color: var(--bg);
  border: 0;
  font-family: inherit;
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  padding: .6rem 1.4rem;
  cursor: pointer;
}

button:hover { background: #FF52A9; }
button:disabled { opacity: .55; cursor: progress; }

.cursor {
  display: inline-block;
  width: .55em;
  height: 1em;
  margin-left: .3em;
  background: var(--cyan);
  vertical-align: -2px;
  box-shadow: 0 0 9px var(--cyan);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* The Turnstile widget has a fixed ~300px intrinsic width and is injected at
   that size whatever the container. With the default padding chain it needs a
   377px viewport, which breaks 320, 360 AND 375 — the last two being among the
   commonest real phone widths. Two defences: the narrow-viewport rule below
   trims the padding so it fits from ~350px up, and this contains any remaining
   overflow inside the widget rather than letting it drag the whole page into
   horizontal scroll. */
.cf-turnstile {
  margin-top: 1rem;
  max-width: 100%;
  overflow-x: auto;
}

@media (max-width: 30rem) {
  body { padding-left: .75rem; padding-right: .75rem; }
  form { padding: .75rem; }
  /* Keep the boot block's lines intact rather than letting them wrap. */
  .boot { font-size: .68rem; letter-spacing: .06em; }
}

#form-status { margin: .9rem 0 0; min-height: 1.4em; }
#form-status.error { color: var(--magenta); }
#form-status.ok { color: var(--cyan); }

.field-error { color: var(--magenta); font-size: .8rem; margin: .25rem 0 0; }

noscript p {
  margin-top: 1rem;
  padding: .8rem;
  border: 1px dashed var(--dim);
}

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(154, 127, 196, .3);
}

.flinks {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.flink {
  color: var(--cyan);
  text-decoration: none;
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-shadow: 0 0 9px rgba(94, 233, 247, .6);
  /* Vertical padding is invisible but takes the hit area past 24px, so these
     clear WCAG 2.2 SC 2.5.8 outright instead of relying on the spacing
     exception — bracketed text alone is only line-height tall. */
  padding: .4rem .25rem;
}

.flink::before { content: "["; color: var(--dim); margin-right: .35em; }
.flink::after { content: "]"; color: var(--dim); margin-left: .35em; }

.flink:hover,
.flink:focus-visible { text-decoration: underline; }
.flink:hover::before,
.flink:hover::after { color: var(--cyan); }

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

@media (prefers-contrast: more) {
  body::after { background: none; }
  h1, h2, .boot, .item h3 a { text-shadow: none; }
}
