/* Xeroware — a desert at night, wired. One theme (we're .dev): plum-black
   sky, sun-orange signals, teal links and grid. No scripts, no web fonts,
   nothing loaded from anywhere else. */

:root {
  color-scheme: dark;

  --bg: #0b060d;
  --bg-raised: #150a17;
  --ink: #f3e9e4;
  --ink-2: #b9a6b1;
  --line: #2d1729;
  --sun: #ff8a4a;
  --ember: #e2304f;
  --signal: #5fe0d2;

  --mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", Menlo,
    Consolas, "Liberation Mono", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --measure: 44rem;
  --gutter: clamp(16px, 4vw, 40px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

/* Inner pages: a faint ember glow at the top, like a horizon out of view. */
body:not(.home) {
  background:
    radial-gradient(1100px 380px at 72% -140px, rgba(226, 48, 79, 0.22), transparent 70%),
    radial-gradient(700px 260px at 72% -120px, rgba(255, 138, 74, 0.16), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
}

a {
  color: var(--signal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: var(--gutter);
  top: 0.75rem;
  background: var(--bg-raised);
  padding: 0.5rem 0.75rem;
  z-index: 5;
}

/* ---- instrument labels ------------------------------------------------ */

.label,
.site-nav,
.footer,
.meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.label a {
  color: inherit;
  text-decoration-color: var(--line);
}

.label a:hover {
  color: var(--ink);
  text-decoration-color: var(--sun);
}

/* ---- header ------------------------------------------------------------ */

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 1.25rem var(--gutter);
}

.home .site-header {
  max-width: none;
  width: 100%;
  margin: 0;
}

.wordmark {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  /* A faint signal ghost on the name. */
  text-shadow:
    -1px 0 rgba(95, 224, 210, 0.45),
    1px 0 rgba(226, 48, 79, 0.45);
}

.site-nav {
  display: flex;
  gap: 1.4rem;
}

.site-nav a {
  color: var(--ink-2);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--sun);
}

/* ---- home: the night scene -------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* The scene sinks into the page at the bottom. */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14%;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: -1;
  pointer-events: none;
}

.hero-copy {
  padding: clamp(1.5rem, 9vh, 7rem) var(--gutter) 0;
  max-width: 40rem;
}

.hero-copy h1 {
  font-weight: 300;
  font-size: clamp(2.2rem, 6.4vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0.7rem 0 1rem;
  max-width: 13ch;
  text-shadow: 0 0 28px rgba(255, 138, 74, 0.18);
}

.hero-copy .lede {
  color: var(--ink-2);
  font-size: 1.1rem;
  margin: 0;
  max-width: 30rem;
}

.readout {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.4rem;
  margin: 1.4rem 0 0;
}

.readout span::before {
  content: "◦ ";
  color: var(--sun);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0 0;
}

.cta a {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid rgba(95, 224, 210, 0.55);
  background: rgba(11, 6, 13, 0.55);
  border-radius: 2px;
  padding: 0.65rem 1rem;
}

.cta a::after {
  content: " →";
  color: var(--signal);
}

.cta a:hover {
  border-color: var(--signal);
  box-shadow: 0 0 18px rgba(95, 224, 210, 0.25);
}

/* A cursor at the end of the headline, as if it were still being typed. */
.typing::after {
  content: "";
  display: inline-block;
  width: 0.06em;
  height: 0.8em;
  margin-left: 0.14em;
  vertical-align: -0.03em;
  background: var(--sun);
  box-shadow: 0 0 10px rgba(255, 138, 74, 0.6);
  animation: caret 1.6s steps(1, end) infinite;
}

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

/* Heat: the sun's slices drift; a few stars breathe. */
.slice {
  animation: drift 16s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(10px);
  }
}

.stars .twinkle {
  animation: twinkle 6s ease-in-out infinite alternate;
}

@keyframes twinkle {
  to {
    opacity: 0.15;
  }
}

.net line {
  stroke-width: 1.2;
  opacity: 0.55;
}

.net circle {
  opacity: 0.95;
}

@media (prefers-reduced-motion: reduce) {
  .slice,
  .stars .twinkle,
  .typing::after {
    animation: none;
  }
}

/* ---- inner pages ------------------------------------------------------ */

main {
  display: block;
}

.section,
.prose {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(1.5rem, 6vw, 3rem) var(--gutter) 0;
}

/* Section headings read like code comments. */
.section > h2,
.prose h2 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 2.6rem 0 1.1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.section > h2::before,
.prose h2::before {
  content: "// ";
  color: var(--sun);
}

.prose h1,
.app-head h1 {
  font-weight: 300;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 1rem;
}

.prose h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.8rem 0 0.4rem;
}

.prose p,
.section p {
  max-width: 40rem;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li {
  margin: 0.35rem 0;
}

.prose li::marker {
  color: var(--sun);
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-2);
  margin: 0;
}

.email {
  font-family: var(--mono);
  font-size: 1rem;
}

.more {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.more::after {
  content: " →";
}

/* Cards and app listings */
.card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 138, 74, 0.05), transparent 40%), var(--bg-raised);
  border-radius: 4px;
  padding: clamp(1.1rem, 4vw, 1.75rem);
}

.card h3 {
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.2;
  margin: 0.6rem 0 0.5rem;
}

.prose .card h3 {
  font-size: 1.6rem;
  margin: 0.6rem 0 0.5rem;
}

.card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.card h3 a:hover {
  text-decoration: underline;
  text-decoration-color: var(--sun);
}

.status {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sun);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
}

.availability {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  margin: 1.4rem 0 0;
}

.prose .app-list,
.prose .links,
.links {
  list-style: none;
  padding-left: 0;
}

.prose .app-list > li,
.prose .links > li {
  margin: 0;
}

.app-list {
  margin: 1.75rem 0 1.25rem;
  display: grid;
  gap: 1.25rem;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin: 1rem 0 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

/* App page */
.app-head {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(1.5rem, 6vw, 3rem) var(--gutter) 0;
}

.app-head h1 {
  font-size: clamp(2.6rem, 8vw, 4rem);
}

.shots {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  margin: 0 calc(-1 * var(--gutter));
  padding: 0.25rem var(--gutter) 1rem;
  scroll-snap-type: x mandatory;
}

.shots img {
  flex: 0 0 auto;
  width: min(62vw, 220px);
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  scroll-snap-align: start;
}

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.features li {
  padding-left: 1.4rem;
  position: relative;
}

.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 0.55rem;
  height: 1px;
  background: var(--sun);
}

.features strong {
  font-weight: 600;
}

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

.footer {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: clamp(3rem, 8vw, 5rem) auto 0;
  padding: 1.5rem var(--gutter) 2.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.7rem;
  line-height: 1.8;
}

.home .footer {
  max-width: none;
  margin-top: 0;
}

.footer a {
  color: var(--ink-2);
}

.footer .motto {
  color: var(--sun);
}

/* 404 */
.lost {
  min-height: 50vh;
}
