:root {
  --paper: #fbf7f2;
  --paper-2: #f5eee6;
  --ink: #2a2a28;
  --muted: #847c71;
  --line: #ece3d8;
  --green: #2c5240;
  --green-2: #3e6f54;
  --green-soft: #e6efe8;
  --rose: #c9697a;
  --rose-soft: #f8e8ec;
  --white: #fff;
  --shadow: 0 22px 70px rgba(44, 82, 64, .1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, Inter, Segoe UI, Arial, sans-serif;
  letter-spacing: 0;
}

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

.shell { max-width: 1180px; margin: 0 auto; padding: 26px 24px 64px; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 52px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--green);
  font-weight: 900;
  font-size: 22px;
  cursor: pointer;
  user-select: none;
}

.mark {
  width: 46px;
  height: 46px;
  display: inline-block;
  flex: 0 0 auto;
  background: url("/assets/sitehunter-favicon.png") center / contain no-repeat;
}

.dot { color: var(--rose); }
.navlinks { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.navlinks a { color: var(--muted); font-weight: 800; font-size: 14px; }
.navlinks a:hover { color: var(--green); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 18px;
  font-weight: 850;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.btn.primary { background: var(--green); color: white; border-color: var(--green); }
.btn.rose { background: var(--rose); color: white; border-color: var(--rose); }
.btn.full { width: 100%; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: 42px;
  align-items: center;
}

.eyebrow {
  color: var(--rose);
  text-transform: uppercase;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

h1, h2, h3 { color: var(--green); letter-spacing: 0; }
h1 { margin: 0; font-size: clamp(42px, 7vw, 76px); line-height: .97; }
h2 { margin: 0 0 14px; font-size: clamp(30px, 4vw, 48px); line-height: 1.04; }
h3 { margin: 0 0 8px; font-size: 22px; }

.lead {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
  max-width: 720px;
}

.section-lead {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  max-width: 780px;
}

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

.beta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.beta-strip span, .status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 12px;
  background: var(--rose-soft);
  color: #9a3045;
  border: 1px solid #f1c5cf;
  font-size: 13px;
  font-weight: 900;
}

.panel, .card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.panel { padding: 24px; }
.panel p, .card p { color: var(--muted); line-height: 1.5; margin: 0; }

.step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.num {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 900;
}

.step strong { display: block; color: var(--ink); margin-bottom: 2px; }
.step span { color: var(--muted); font-size: 14px; line-height: 1.45; }

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

.card {
  padding: 20px;
  min-height: 148px;
}

.card strong { color: var(--green); display: block; margin-bottom: 8px; }
.card small { color: var(--rose); font-weight: 900; text-transform: uppercase; letter-spacing: .8px; }

.band {
  margin-top: 64px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.58);
}

.kpi {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 12px;
  padding: 18px;
}

.kpi .value {
  color: var(--green);
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.kpi .label { color: var(--muted); margin-top: 8px; }

.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: start;
}

.table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line);
}

.table th, .table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.table th { color: var(--muted); font-size: 13px; font-weight: 850; }

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

input, select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f4ede5;
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
}

textarea { min-height: 120px; padding-top: 12px; resize: vertical; }

.notice {
  background: #fff7cc;
  border: 1px solid #f0e7a8;
  color: var(--green);
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 800;
}

.error {
  background: #ffe5e9;
  border: 1px solid #f4b7c2;
  color: #9a3045;
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 800;
}

.success {
  background: var(--green-soft);
  border: 1px solid #c8dfcf;
  color: var(--green);
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 800;
}

.muted { color: var(--muted); }
.mt { margin-top: 24px; }
.hidden { display: none !important; }
.danger { color: #9a3045; }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.admin-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-side {
  border-right: 1px solid var(--line);
  padding: 28px 20px;
  background: rgba(255,255,255,.42);
}
.admin-main { padding: 34px clamp(22px, 4vw, 56px) 56px; }
.admin-menu { display: grid; gap: 8px; margin-top: 34px; }
.admin-menu a {
  color: var(--ink);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 800;
}
.admin-menu a:hover, .admin-menu a.active { background: var(--green-soft); color: var(--green); }
.section { scroll-margin-top: 24px; margin-top: 34px; }
.metric-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}
.status-pill.off { background: #f6e5e8; color: #9a3045; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-actions .btn { padding: 9px 12px; min-height: 36px; font-size: 13px; }
.log-box {
  max-height: 380px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}
.log-line {
  display: grid;
  grid-template-columns: 140px 1fr 140px;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.log-line strong { color: var(--ink); }
.release-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.release-meta {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}
.release-meta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .7px;
}
.release-meta strong {
  color: var(--green);
  font-size: 18px;
}
.release-content p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}
.release-list {
  display: grid;
  gap: 18px;
}
.release-entry {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(44, 82, 64, .06);
}
.release-entry.current {
  border-left-color: var(--rose);
}
.release-version {
  display: grid;
  gap: 7px;
}
.release-version strong {
  color: var(--green);
  font-size: 30px;
  line-height: 1;
}
.release-version span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}
.release-version em {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--rose-soft);
  color: #9a3045;
  border: 1px solid #f1c5cf;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}
.release-body p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}
.release-body ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--ink);
  line-height: 1.55;
}
.release-body li + li {
  margin-top: 4px;
}
.release-body code {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 1px 6px;
  background: #f4ede5;
  color: var(--green);
  font-size: .92em;
}
.release-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.release-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}
footer { color: var(--muted); margin-top: 54px; font-size: 13px; }

@media (max-width: 900px) {
  .hero, .grid-2, .grid-3, .grid-4, .split, .release-card, .release-entry { grid-template-columns: 1fr; }
  .admin-shell, .metric-row { grid-template-columns: 1fr; }
  .nav { align-items: flex-start; flex-direction: column; padding-bottom: 36px; }
  .shell { padding: 22px 18px 44px; }
  .band { padding: 24px; }
}
