:root {
  color-scheme: dark;
  --bg: #0d1114;
  --surface: #12191e;
  --ink: #eef3f4;
  --muted: #aab6ba;
  --line: #2a363c;
  --accent: #95c0cf;
  --accent-strong: #d8e5e8;
  --focus: #d6a85c;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.48;
}

a {
  color: inherit;
}

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

.page-shell {
  width: min(1160px, calc(100% - 64px));
  margin: 0 auto;
  padding: 22px 0 12px;
}

.topline {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 8px;
  font-size: clamp(3.65rem, 8vw, 6.2rem);
  line-height: 0.96;
  font-weight: 760;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 40px;
  align-items: end;
  padding: 24px 0 22px;
  border-bottom: 1px solid var(--line);
}

.motto {
  margin-bottom: 0;
  color: var(--accent-strong);
  font-size: clamp(1.5rem, 2.4vw, 2.15rem);
  font-weight: 650;
}

.lede {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 1rem;
}

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

.button {
  display: inline-flex;
  width: 244px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent-strong);
  background: transparent;
  color: var(--accent-strong);
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    color 120ms ease;
}

.button:hover {
  background: #182229;
  border-color: var(--accent);
  color: #ffffff;
}

.button:active {
  background: #20303a;
}

.section {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.section h2 {
  margin-bottom: 12px;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  line-height: 1.1;
}

.builds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.builds h2 {
  grid-column: 1 / -1;
}

article {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 16px;
}

article h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}

article p,
.plain p,
.boundary p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

article p + p {
  margin-top: 10px;
}

.lower-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.plain {
  background: transparent;
}

.site-footer {
  width: min(1160px, calc(100% - 64px));
  margin: 0 auto;
  padding: 10px 0 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

@media (max-width: 1060px) {
  .page-shell {
    width: min(100% - 48px, 1160px);
  }

  .builds {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .button {
    width: 202px;
    padding-right: 12px;
    padding-left: 12px;
    font-size: 0.86rem;
  }

  .actions {
    gap: 8px;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 28px, 1160px);
    padding: 28px 0 10px;
  }

  .topline {
    flex-direction: column;
    gap: 6px;
    padding-bottom: 14px;
  }

  .hero,
  .builds,
  .lower-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 22px;
    padding: 28px 0 24px;
  }

  .section {
    padding: 24px 0;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    width: min(100% - 28px, 1160px);
  }
}
