:root {
  --bg: #020617;
  --bg-soft: #0b1220;
  --panel: #0f172a;
  --panel-2: #111827;
  --line: #1f2937;
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.14);
  --danger: #f87171;
  --warning: #fbbf24;
}

* { box-sizing: border-box; }

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

a { color: inherit; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 5%;
  background: rgba(2, 6, 23, 0.9);
  border-bottom: 1px solid rgba(56, 189, 248, 0.18);
  backdrop-filter: blur(14px);
}

.brand {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav ul {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.site-nav a:not(.brand) {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0;
  padding: 7px 11px;
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.page {
  width: min(1120px, 90vw);
  margin: 0 auto;
  padding: 74px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 68px);
  padding: 70px 5%;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.15), transparent 30%), linear-gradient(135deg, #020617, #0b1220);
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1, h2, h3 { line-height: 1.15; }

h1 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  margin: 14px 0 18px;
}

h2 {
  color: var(--accent);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

p { color: #d1d5db; }

.lead {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 690px;
}

.actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  border-radius: 8px;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #020617;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary {
  background: transparent;
  color: var(--accent);
}

.hero-photo {
  width: min(360px, 100%);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid rgba(56, 189, 248, 0.65);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
  justify-self: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 22px;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.card h3 { color: var(--accent); margin-top: 0; }

.split {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.portrait {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.metric {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0 8px;
  font-weight: 700;
}

.bar {
  height: 8px;
  border-radius: 999px;
  background: #1f2937;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.blog-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 34px;
  align-items: start;
}

.post-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  margin-bottom: 18px;
}

.meta { color: var(--muted); font-size: 0.92rem; }

.link-action,
.danger-link,
.warning-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
}

.link-action { color: var(--accent); }
.danger-link { color: var(--danger); }
.warning-link { color: var(--warning); }

.admin-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 28px;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.08);
}

.admin-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed #334155;
}

.form-field,
input,
textarea,
select {
  width: 100%;
  padding: 12px;
  margin: 8px 0 16px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #0b1220;
  color: var(--text);
  font: inherit;
}

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

.notice { color: var(--accent); font-weight: 750; }
.error { color: var(--danger); font-weight: 750; }

.article {
  max-width: 790px;
  margin: 0 auto;
}

.article-body {
  color: #d1d5db;
  font-size: 1.08rem;
}

.site-footer {
  margin-top: 60px;
  padding: 54px 5% 24px;
  background: #0f172a;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  width: min(1120px, 90vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 34px;
}

.site-footer h3,
.site-footer h4 { color: var(--accent); }

.site-footer ul { list-style: none; padding: 0; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.mail-link { color: var(--accent) !important; }
.copyright { text-align: center; color: #64748b; margin-top: 42px; font-size: 0.85rem; }

@media (max-width: 860px) {
  .site-nav { align-items: flex-start; flex-direction: column; }
  .hero, .split, .blog-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 44px; }
  .admin-strip { align-items: flex-start; flex-direction: column; }
}
