:root {
  color-scheme: dark;
  --bg: #060605;
  --ink: #f4efe3;
  --muted: #b9ad98;
  --faint: #817763;
  --line: rgba(244, 239, 227, 0.16);
  --panel: rgba(19, 18, 15, 0.72);
  --panel-strong: rgba(28, 25, 20, 0.88);
  --amber: #ffb84d;
  --green: #85f2bc;
  --blue: #78d8ff;
  --rose: #ff7a90;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.48);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 9% 14%, rgba(255, 184, 77, 0.24), transparent 23rem),
    radial-gradient(circle at 88% 7%, rgba(120, 216, 255, 0.15), transparent 28rem),
    radial-gradient(circle at 66% 92%, rgba(133, 242, 188, 0.12), transparent 24rem),
    linear-gradient(135deg, #070706 0%, #0d0b08 48%, #050504 100%);
  color: var(--ink);
}

body::before,
body::after,
.ambient {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(244,239,227,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,239,227,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

body::after {
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

.ambient {
  z-index: -1;
  background:
    conic-gradient(from 220deg at 38% 36%, transparent, rgba(255,184,77,0.08), transparent 27%),
    conic-gradient(from 40deg at 72% 48%, transparent, rgba(120,216,255,0.08), transparent 24%);
  filter: blur(6px);
}

.site-header {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
.site-header nav a,
.button,
.card a,
.back-link { text-decoration: none; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,184,77,0.42);
  border-radius: 12px;
  background: rgba(255,184,77,0.10);
  color: var(--amber);
  box-shadow: 0 0 28px rgba(255,184,77,0.14);
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.site-header nav a,
.button {
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(244,239,227,0.045);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.site-header nav a:hover,
.button:hover {
  transform: translateY(-2px);
  border-color: rgba(255,184,77,0.65);
  background: rgba(255,184,77,0.10);
}

main {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: clamp(24px, 5vw, 70px) 0 72px;
}

.shell,
.card,
.content-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--panel), rgba(8,8,7,0.62));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.72fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: end;
  padding: clamp(30px, 6vw, 76px);
  border-radius: 34px;
  overflow: hidden;
}

.hero::before {
  content: "AMSTRAD 64 / BASIC / C / C++ / WEB / LINUX";
  position: absolute;
  right: -70px;
  top: 24px;
  color: rgba(244,239,227,0.07);
  font-size: clamp(2rem, 7vw, 6.2rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  white-space: nowrap;
  transform: rotate(8deg);
}

.hero-copy,
.console-card { position: relative; z-index: 1; }

.eyebrow,
.card-kicker,
.meta {
  margin: 0;
  color: var(--amber);
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

h1,
h2,
h3,
p { overflow-wrap: anywhere; }

h1 {
  max-width: 12ch;
  margin: 10px 0 0;
  font-family: "Literata", Georgia, serif;
  font-size: clamp(3.4rem, 9vw, 7.9rem);
  line-height: 0.88;
  letter-spacing: -0.075em;
}

h2 {
  margin: 10px 0 0;
  max-width: 25ch;
  font-family: "Literata", Georgia, serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

h3 {
  margin: 8px 0 0;
  font-family: "Literata", Georgia, serif;
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.page-title { max-width: 15ch; }

.lede {
  max-width: 44rem;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.28rem);
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button.primary {
  border-color: rgba(255,184,77,0.62);
  background: linear-gradient(135deg, rgba(255,184,77,0.20), rgba(133,242,188,0.10));
}

.console-card {
  border: 1px solid rgba(133,242,188,0.26);
  border-radius: 24px;
  background: rgba(4, 10, 8, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.035), 0 26px 70px rgba(0,0,0,0.38);
  overflow: hidden;
}

.console-top {
  display: flex;
  gap: 7px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(133,242,188,0.16);
  background: rgba(133,242,188,0.06);
}

.console-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.8;
}

.console-top span:nth-child(2) { background: var(--amber); }
.console-top span:nth-child(3) { background: var(--rose); }

pre {
  margin: 0;
  padding: 20px;
  white-space: pre-wrap;
  color: var(--green);
  font-size: 0.86rem;
  line-height: 1.7;
}

.section-intro {
  display: grid;
  grid-template-columns: 0.4fr 1fr;
  gap: 18px;
  align-items: start;
  margin: clamp(28px, 5vw, 54px) 0 16px;
}

.grid {
  display: grid;
  grid-template-columns: 1.15fr 0.925fr 0.925fr;
  gap: 16px;
}

.card,
.content-card {
  position: relative;
  min-height: 260px;
  padding: 24px;
  border-radius: 26px;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px auto;
  width: 80px;
  height: 80px;
  border-right: 1px solid rgba(255,184,77,0.28);
  border-bottom: 1px solid rgba(255,184,77,0.28);
  border-radius: 0 0 18px 0;
}

.feature-card {
  background: linear-gradient(145deg, rgba(255,184,77,0.13), rgba(28,25,20,0.88));
}

.card p:not(.card-kicker),
.content-card p,
.content-card li {
  color: var(--muted);
  line-height: 1.65;
}

.card a,
.back-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 12px;
  color: var(--amber);
  border-bottom: 1px solid transparent;
  font-weight: 800;
}

.card a:hover,
.back-link:hover {
  color: var(--green);
  border-color: currentColor;
}

.stack {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.list li {
  border-left: 2px solid rgba(255,184,77,0.46);
  padding-left: 14px;
}

code {
  color: var(--green);
  background: rgba(255,255,255,0.055);
  border: 1px solid var(--line);
  border-radius: 0.45em;
  padding: 0.08em 0.34em;
}

.status-dot {
  display: inline-block;
  width: 0.72em;
  height: 0.72em;
  margin-right: 0.45em;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 20px rgba(133,242,188,0.62);
}

@media (max-width: 900px) {
  .hero,
  .section-intro,
  .grid { grid-template-columns: 1fr; }

  .console-card { max-width: 560px; }
}

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

  .site-header nav { justify-content: flex-start; }

  .hero { border-radius: 24px; }

  h1 { font-size: clamp(3.1rem, 17vw, 5.5rem); }
}
