:root {
  --ink: #e8f1ee;
  --slate: #aebdb9;
  --muted: #7c8e8a;
  --line: #243330;
  --paper: #10161a;
  --paper-alt: #141c20;
  --card: #16201f;
  --accent: #9bc7e2;
  --accent-soft: rgba(155, 199, 226, 0.14);
  --radius: 10px;
  --maxw: 1140px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "SF Mono", "Cascadia Code", "Fira Code", ui-monospace, Consolas, monospace;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: inherit;
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 0.5em;
  font-weight: 700;
}

p { margin: 0 0 1em; color: var(--slate); }

a { color: var(--accent); text-decoration: none; }

.accent-text { color: var(--accent); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(16, 22, 26, 0.85);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.logo-mark {
  height: 34px;
  width: auto;
  flex-shrink: 0;
}

.prompt {
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 11px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-small { padding: 9px 16px; font-size: 0.85rem; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Hero */
.hero {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 15% 20%, var(--accent-soft), transparent 45%),
    var(--paper);
}

.hero-inner {
  padding: 110px 24px 90px;
  max-width: 760px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero .lead {
  font-size: 1.05rem;
  color: var(--slate);
  max-width: 600px;
}

/* Sections */
.section {
  padding: 84px 24px;
}

.section-alt {
  background: var(--paper-alt);
  border-top: 1px solid var(--line);
}

.section-title {
  font-size: 1.7rem;
}

.section-intro {
  max-width: 620px;
  font-size: 1.02rem;
}

/* Project grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.project-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.project-icon {
  font-size: 1.6rem;
}

.tech-badge {
  font-size: 0.72rem;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 4px 10px;
  letter-spacing: 0.03em;
}

.project-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.project-card p {
  font-size: 0.92rem;
  margin: 0 0 16px;
}

.project-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.project-link {
  font-size: 0.88rem;
  font-weight: 700;
}

.project-link:hover { text-decoration: underline; }

.project-link-secondary {
  color: var(--muted);
  font-weight: 400;
}

.project-link-secondary:hover { color: var(--slate); }

/* Contact */
.contact-inner {
  max-width: 620px;
}

.contact-details {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 18px;
  font-size: 0.95rem;
  color: var(--slate);
}

.contact-details strong {
  color: var(--ink);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 28px 24px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 860px) {
  .project-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
}

/* Blazor error/reconnect UI (hidden until shown by blazor.web.js) */
#blazor-error-ui {
  background: #2a1f14;
  color: #ffd79a;
  border-top: 1px solid #4a3a22;
  bottom: 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.3);
  display: none;
  left: 0;
  padding: 0.6rem 1.25rem 0.7rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

#blazor-error-ui .reload {
  color: var(--accent);
  font-weight: 700;
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
}
