:root {
  --bg: #08100f;
  --surface: #0f1a18;
  --surface-2: #162521;
  --line: #29413a;
  --text: #edf7f2;
  --muted: #a9bdb5;
  --accent: #54d6ac;
  --accent-2: #f0b85a;
  --danger: #ff6b5f;
  --shadow: rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(84, 214, 172, 0.18);
  background: rgba(8, 16, 15, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(84, 214, 172, 0.7);
  background: #102b25;
  color: var(--accent);
  font-weight: 900;
}

.nav, .site-footer nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav a, .site-footer a {
  color: var(--muted);
  font-size: 0.94rem;
  text-decoration: none;
}

.nav a:hover, .site-footer a:hover, .text-link:hover { color: var(--accent); }

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 42px));
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media, .hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8,16,15,0.96) 0%, rgba(8,16,15,0.84) 40%, rgba(8,16,15,0.35) 76%),
    linear-gradient(0deg, rgba(8,16,15,1) 0%, rgba(8,16,15,0) 28%);
}

.hero-content {
  position: relative;
  max-width: 760px;
  padding: clamp(40px, 8vw, 86px) clamp(18px, 5vw, 64px);
}

.eyebrow, .card-kicker {
  margin: 0 0 12px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 7vw, 5.75rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.75rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.2;
}

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

.hero-copy {
  max-width: 650px;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.signup-form {
  display: flex;
  gap: 10px;
  width: min(100%, 590px);
  margin-top: 28px;
}

input, button, textarea {
  font: inherit;
}

.signup-form input {
  min-width: 0;
  flex: 1;
  padding: 15px 16px;
  border: 1px solid rgba(169, 189, 181, 0.35);
  background: rgba(15, 26, 24, 0.9);
  color: var(--text);
}

.signup-form button, .button {
  border: 0;
  background: var(--accent);
  color: #06100d;
  padding: 15px 18px;
  font-weight: 850;
  cursor: pointer;
  text-decoration: none;
}

.signup-form button:hover, .button:hover {
  background: #8bf0ce;
}

.form-note, .notice {
  margin-top: 10px;
  max-width: 650px;
  font-size: 0.92rem;
}

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

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 72px 0;
}

.issue-strip, .split {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 32px;
  align-items: center;
  border-bottom: 1px solid rgba(169, 189, 181, 0.18);
}

.text-link {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
  justify-self: end;
}

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

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

.card, .panel {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 18px 42px var(--shadow);
  padding: 22px;
  border-radius: 8px;
}

.panel {
  background: var(--surface-2);
}

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

.check-list li {
  padding-left: 24px;
  position: relative;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 10px;
  height: 10px;
  background: var(--accent);
}

.feature-band {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 32px;
  align-items: start;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid rgba(169, 189, 181, 0.22);
}

.timeline strong {
  color: var(--accent);
}

.timeline span {
  color: var(--muted);
}

.page-hero {
  padding: 72px clamp(18px, 5vw, 64px) 42px;
  border-bottom: 1px solid rgba(169, 189, 181, 0.18);
}

.page-hero .inner, .content {
  width: min(960px, 100%);
}

.content {
  margin: 0 auto;
  padding: 56px 18px 82px;
}

.article-list {
  display: grid;
  gap: 16px;
}

.article-row {
  display: grid;
  gap: 8px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(169, 189, 181, 0.18);
}

.tag-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.tag {
  border: 1px solid rgba(84, 214, 172, 0.35);
  color: var(--accent);
  padding: 6px 9px;
  font-size: 0.82rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 34px clamp(18px, 5vw, 64px);
  border-top: 1px solid rgba(169, 189, 181, 0.18);
  background: #050b0a;
}

.site-footer p {
  margin: 6px 0 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-shell {
  width: min(1280px, calc(100% - 36px));
  margin: 0 auto;
  padding: 44px 0 72px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}

.admin-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-stats span, .admin-message {
  border: 1px solid rgba(84, 214, 172, 0.35);
  background: var(--surface);
  padding: 10px 12px;
  color: var(--muted);
}

.admin-stats strong {
  color: var(--accent);
}

.admin-message {
  margin: 0 0 16px;
}

.admin-message.danger {
  border-color: rgba(255, 107, 95, 0.45);
  color: var(--danger);
}

.admin-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.8fr) auto;
  gap: 10px;
  align-items: end;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 14px;
}

.admin-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-form input, .admin-form select, .admin-table input, .admin-table select {
  width: 100%;
  min-width: 130px;
  border: 1px solid rgba(169, 189, 181, 0.35);
  background: rgba(8, 16, 15, 0.85);
  color: var(--text);
  padding: 10px;
}

.admin-form button, .admin-actions button {
  border: 0;
  background: var(--accent);
  color: #06100d;
  padding: 11px 13px;
  font-weight: 850;
  cursor: pointer;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--surface);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1040px;
}

.admin-table th, .admin-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(169, 189, 181, 0.16);
  color: var(--muted);
  text-align: left;
  vertical-align: middle;
  font-size: 0.9rem;
}

.admin-table th {
  color: var(--accent-2);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.admin-actions form {
  display: flex;
  gap: 8px;
}

.admin-actions .danger-button {
  background: var(--danger);
  color: #120302;
}

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

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding-top: 120px;
  }

  .issue-strip, .split, .feature-band, .three {
    grid-template-columns: 1fr;
  }

  .admin-header, .admin-tools {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .admin-form {
    grid-template-columns: 1fr;
  }

  .text-link {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .signup-form {
    flex-direction: column;
  }

  .timeline div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
