:root {
  color-scheme: dark;
  --bg: #0b0d0f;
  --panel: #14191d;
  --panel-strong: #1d252b;
  --text: #f4f7f8;
  --muted: #aab6bd;
  --line: #2b363e;
  --accent: #76d99a;
  --accent-strong: #3ccf78;
  --warn: #f5b84c;
  --danger: #ff7a68;
  --focus: rgba(118, 217, 154, 0.28);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(118, 217, 154, 0.07), transparent 280px),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: var(--accent);
}

.shell {
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
  padding: 30px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 28px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: 0;
}

.brand-subtitle,
.eyebrow,
.updated,
.fine-print {
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.nav a,
.button-link,
button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.nav a {
  padding: 9px 12px;
}

.nav a:hover,
.button-link:hover,
button:hover {
  border-color: var(--accent);
}

main {
  display: grid;
  gap: 18px;
}

.hero,
.section,
.form-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(20, 25, 29, 0.86);
}

.hero {
  padding: clamp(24px, 5vw, 44px);
}

.section,
.form-section {
  padding: clamp(18px, 4vw, 28px);
}

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

h1 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(34px, 7vw, 62px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: 23px;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 17px;
  letter-spacing: 0;
}

p,
li {
  color: var(--muted);
}

li + li {
  margin-top: 7px;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.button-link {
  display: block;
  padding: 16px;
}

.button-link span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-weight: 650;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f1316;
  color: var(--text);
  font: inherit;
  padding: 12px 13px;
}

textarea {
  min-height: 168px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.field-note {
  color: var(--muted);
  font-size: 14px;
  font-weight: 450;
}

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

button {
  min-height: 46px;
  padding: 11px 16px;
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #07110b;
}

button:disabled {
  cursor: default;
  opacity: 0.58;
}

.status {
  min-height: 24px;
  color: var(--muted);
}

.status.success {
  color: var(--accent);
}

.status.error {
  color: var(--danger);
}

.notice {
  border-left: 3px solid var(--warn);
  padding-left: 14px;
}

footer {
  padding-top: 24px;
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

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

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