:root {
  --bg: #f4f6f8;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.95);
  --text: #101316;
  --muted: #5f6873;
  --line: rgba(16, 19, 22, 0.12);
  --accent: #0b7a75;
  --accent-soft: rgba(11, 122, 117, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, #d4eceb 0%, transparent 42%),
    radial-gradient(circle at 90% 90%, #d8e4ef 0%, transparent 40%),
    var(--bg);
  padding: 18px;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
  line-height: 1.5;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.site-header {
  position: sticky;
  top: 8px;
  z-index: 20;
}

.topbar {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 18px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  backdrop-filter: blur(10px);
}

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

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.content-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  padding: 20px;
}

.hero {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.badge {
  width: fit-content;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(11, 122, 117, 0.35);
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--accent-soft);
}

h1 {
  font-size: clamp(30px, 6vw, 56px);
  line-height: 1.04;
}

.lead {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
}

.btn {
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--text);
  color: #f9fbfb;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
}

.btn.primary {
  border-color: var(--text);
  background: var(--text);
  color: #f9fbfb;
}

.legend {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: var(--muted);
  font-size: 13px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 2px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
}

.legend-swatch.ready {
  border-color: #2e9f4d;
}

.legend-swatch.progress {
  border-color: #d8a600;
}

.legend-swatch.experiment {
  border-color: #cb3f3f;
}

.projects {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.project {
  text-decoration: none;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
  transition: transform 0.18s ease;
}

.project:hover {
  transform: translateY(-2px);
}

.project.status-ready {
  border-color: #2e9f4d;
}

.project.status-progress {
  border-color: #d8a600;
}

.project.status-experiment {
  border-color: #cb3f3f;
}

.project h2 {
  margin-bottom: 6px;
  font-size: 17px;
}

.project p {
  color: var(--muted);
  font-size: 14px;
}

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

.doc,
.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.card h2,
.doc h2 {
  margin-bottom: 10px;
  font-size: 20px;
}

.card h3 {
  margin: 14px 0 8px;
  font-size: 16px;
}

.doc p,
.card p {
  margin-bottom: 12px;
}

.doc p:last-child,
.card p:last-child {
  margin-bottom: 0;
}

.card ul {
  margin: 0 0 12px;
  padding-left: 20px;
  line-height: 1.5;
}

.card ul:last-child {
  margin-bottom: 0;
}

.actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer .footer-inner {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  backdrop-filter: blur(8px);
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 12px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 760px) {
  body {
    padding: 10px;
  }

  .topbar {
    padding: 10px 12px;
    flex-wrap: wrap;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .content-panel {
    padding: 16px;
  }

  .site-footer .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}