:root {
  color-scheme: dark;
  --bg: #090908;
  --panel: #12110f;
  --panel-2: #191713;
  --text: #f0eee7;
  --muted: #a9a39a;
  --line: #39342b;
  --action: #e86f23;
  --action-dark: #7b2d0c;
  --cool: #9db8ae;
  --shadow: rgba(0, 0, 0, 0.45);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(240, 238, 231, 0.12);
  background: rgba(9, 9, 8, 0.82);
  backdrop-filter: blur(18px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  background: #0d0c0b;
  color: var(--cool);
  font-size: 0.78rem;
  font-weight: 800;
}

.nav {
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.nav a:hover,
.nav a:focus-visible,
.text-action:hover,
.text-action:focus-visible {
  color: var(--text);
}

.hero,
.akte-main {
  position: relative;
}

.hero {
  display: grid;
  min-height: 92vh;
  overflow: hidden;
  padding: 112px clamp(20px, 6vw, 88px) 72px;
  isolation: isolate;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(9, 9, 8, 0.96) 0%, rgba(9, 9, 8, 0.72) 42%, rgba(9, 9, 8, 0.24) 100%),
    linear-gradient(180deg, rgba(9, 9, 8, 0.16) 0%, rgba(9, 9, 8, 0.64) 100%);
}

.hero-content {
  align-self: end;
  max-width: 760px;
  padding-bottom: clamp(18px, 8vh, 72px);
}

.machine-line,
.status-code {
  margin: 0 0 16px;
  color: var(--cool);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 9ch;
  margin-bottom: 22px;
  font-size: clamp(4.7rem, 17vw, 10.5rem);
  line-height: 0.84;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.5rem, 7vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(1.3rem, 2.4vw, 2.2rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  color: #ddd8ce;
  font-size: clamp(1.15rem, 2.2vw, 1.65rem);
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-action,
.text-action {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  font-size: 0.86rem;
  font-weight: 800;
}

.primary-action {
  padding: 0 18px;
  background: var(--action);
  color: #160905;
  box-shadow: 0 0 34px rgba(232, 111, 35, 0.28);
}

.primary-action:hover,
.primary-action:focus-visible {
  background: #ff8132;
}

.text-action {
  color: var(--muted);
}

.band {
  padding: clamp(72px, 12vw, 150px) clamp(20px, 6vw, 88px);
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.dark-band {
  background: var(--panel);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(280px, 1.12fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
}

.copy-stack {
  display: grid;
  gap: 22px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  line-height: 1.55;
}

.copy-stack p,
.profile-block p,
.status-card p {
  margin-bottom: 0;
}

.signal-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 1280px;
  margin: clamp(54px, 8vw, 96px) auto 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.signal-item {
  min-height: 188px;
  padding: 26px;
  background: #0e0d0c;
}

.signal-item span,
.footer,
.status-card .status-code {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0;
}

.signal-item strong {
  display: block;
  margin: 34px 0 14px;
  font-size: 1.35rem;
}

.signal-item p,
.status-card p,
.profile-block p {
  color: var(--muted);
  line-height: 1.5;
}

.status-list {
  display: grid;
  gap: 14px;
}

.status-card {
  border: 1px solid var(--line);
  background: var(--panel-2);
  padding: clamp(22px, 3.5vw, 34px);
}

.status-card:first-child {
  border-color: rgba(232, 111, 35, 0.7);
  box-shadow: inset 4px 0 0 var(--action);
}

.profile-band {
  background: #0d0c0b;
}

.profile-block {
  max-width: 980px;
  margin: 0 auto;
}

.profile-block h2 {
  margin-bottom: 28px;
}

.profile-block p {
  max-width: 740px;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px clamp(20px, 6vw, 88px);
  border-top: 1px solid var(--line);
  background: #070706;
}

.akte-main {
  min-height: 72vh;
  padding: 120px clamp(20px, 6vw, 88px) 72px;
  background: var(--bg);
}

.akte-hero,
.akte-entry,
.akte-group,
.full-list {
  max-width: 1180px;
  margin: 0 auto;
}

.akte-hero {
  padding-bottom: clamp(50px, 8vw, 90px);
}

.akte-hero h1,
.akte-entry h1 {
  max-width: 10ch;
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 10vw, 7.5rem);
  line-height: 0.88;
}

.lead {
  max-width: 760px;
  color: #ddd8ce;
  font-size: clamp(1.08rem, 2vw, 1.5rem);
  line-height: 1.45;
}

.back-link {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--text);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  max-width: 900px;
  margin: 34px 0 0;
  padding: 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.meta-grid div {
  min-width: 0;
  padding: 18px;
  background: #0e0d0c;
}

.meta-grid dt {
  margin-bottom: 10px;
  color: var(--cool);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.68rem;
  font-weight: 800;
}

.meta-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 800;
}

.akte-group {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 1.28fr);
  gap: clamp(28px, 6vw, 82px);
  padding: clamp(46px, 8vw, 82px) 0;
  border-top: 1px solid var(--line);
}

.akte-group h2 {
  font-size: clamp(2rem, 5vw, 4.6rem);
}

.akte-list {
  display: grid;
  gap: 12px;
}

.full-list {
  padding-bottom: 70px;
}

.akte-card {
  display: block;
  border: 1px solid var(--line);
  background: var(--panel-2);
  padding: clamp(20px, 3.5vw, 30px);
}

.akte-card:hover,
.akte-card:focus-visible {
  border-color: rgba(232, 111, 35, 0.72);
}

.akte-card span,
.source-line {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.68rem;
  font-weight: 800;
}

.akte-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 2.8vw, 2.1rem);
  line-height: 1;
}

.akte-card p,
.entry-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.entry-body {
  display: grid;
  gap: 20px;
  max-width: 760px;
  margin-top: clamp(42px, 7vw, 72px);
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
}

.source-line {
  margin: clamp(40px, 6vw, 64px) 0 0;
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    min-height: 74px;
  }

  .nav {
    gap: 12px;
    padding-top: 10px;
    font-size: 0.76rem;
  }

  .hero {
    min-height: 88vh;
    padding-top: 118px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(9, 9, 8, 0.96) 0%, rgba(9, 9, 8, 0.78) 72%, rgba(9, 9, 8, 0.52) 100%),
      linear-gradient(180deg, rgba(9, 9, 8, 0.12) 0%, rgba(9, 9, 8, 0.72) 100%);
  }

  .section-grid,
  .signal-row,
  .akte-group,
  .meta-grid {
    grid-template-columns: 1fr;
  }

  .signal-item {
    min-height: 150px;
  }
}
