:root {
  --bg: #0b0b0b;
  --panel: #121212;
  --panel-soft: #171717;
  --ink: #ededed;
  --text: #d4d4cf;
  --muted: #9a9890;
  --line: rgba(234, 234, 234, 0.12);
  --line-strong: rgba(234, 234, 234, 0.22);
  --shadow: 0 16px 42px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", sans-serif;
}

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

code,
.brand-note,
.header-links,
.fact-label,
.details dt {
  font-family: "IBM Plex Mono", monospace;
}

.shell {
  width: min(100% - 32px, 920px);
  margin: 0 auto;
  padding: 24px 0 48px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-strong);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
}

.brand-logo {
  width: 52px;
  height: 52px;
  display: block;
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-name {
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-note {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.header-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-links a {
  transition: color 140ms ease;
}

.header-links a:hover {
  color: var(--ink);
}

.main {
  padding-top: 28px;
}

.intro {
  padding: 10px 0 24px;
  border-bottom: 1px solid var(--line);
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(3.4rem, 10vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
  font-weight: 800;
}

.summary {
  max-width: 36ch;
  margin: 1rem 0 0;
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
  line-height: 1.85;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.fact {
  padding: 1.15rem 1.2rem;
}

.fact + .fact {
  border-left: 1px solid var(--line);
}

.fact-label {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fact-value {
  margin: 0;
  color: var(--ink);
  font-size: 1.06rem;
  font-weight: 700;
}

.fact-value code {
  padding: 0.08em 0.3em;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}

.section {
  margin-top: 18px;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  box-shadow: var(--shadow);
}

.section h2 {
  margin: 0 0 0.8rem;
  color: var(--ink);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.section p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.85;
}

.details {
  display: grid;
  gap: 0.9rem;
  margin: 0;
}

.details div {
  display: grid;
  grid-template-columns: minmax(120px, 170px) minmax(0, 1fr);
  gap: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.details div:first-child {
  padding-top: 0;
  border-top: 0;
}

.details dt,
.details dd {
  margin: 0;
}

.details dt {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.details dd {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.8;
}

.details dd a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 0.95rem 1.2rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.button:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #0b0b0b;
}

.button-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #0b0b0b;
}

.button-primary:hover {
  background: transparent;
  color: var(--ink);
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 24px, 920px);
    padding-top: 18px;
  }

  .header {
    align-items: flex-start;
    flex-direction: column;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .fact + .fact {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .details div {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
