:root {
  color-scheme: dark;
  --bg: #071525;
  --panel: #0f2740;
  --panel-strong: #143452;
  --text: #f2f7fb;
  --muted: #b6c7d6;
  --accent: #57c7ff;
  --accent-dark: #f1c36d;
  --tag: #f1c36d;
  --border: #2b4d6d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(87, 199, 255, 0.18) 0, transparent 30rem),
    linear-gradient(180deg, #0b2036 0%, var(--bg) 42rem);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; }

.site-header,
.site-footer,
.section-shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  font-weight: 800;
  text-decoration: none;
  font-size: 1.05rem;
}

nav {
  display: flex;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}
nav a { text-decoration: none; }
nav a:hover { color: var(--accent); }

.hero {
  padding: 3.25rem 0 2.75rem;
}

.hero-card {
  max-width: 760px;
  padding: 1.6rem;
  background: rgba(15, 39, 64, 0.86);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-statement {
  margin: 0;
  color: var(--text);
  font-size: 1.55rem;
  font-weight: 750;
  line-height: 1.45;
}

.about-card {
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.7;
}

.about-card p:first-child {
  margin-top: 0;
  font-weight: 650;
}

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

.more-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent-dark);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.more-link:hover {
  color: var(--accent);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--tag);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 { line-height: 1.08; letter-spacing: 0; margin: 0; }

h1 { max-width: 920px; font-size: 3rem; }
h2 { font-size: 2.35rem; }
h3 { font-size: 1.7rem; }

.prose-card,
.project-card,
.content-card {
  background: rgba(15, 39, 64, 0.86);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.prose-card { padding: 2rem; color: var(--muted); font-size: 1.05rem; }
.prose-card p:first-child { color: var(--text); font-weight: 650; }
.prose-card p:last-child { margin-bottom: 0; }

.section-heading { max-width: 760px; margin-bottom: 1.5rem; }
.section-heading p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.project-card { min-height: 310px; padding: 1.6rem; display: flex; flex-direction: column; justify-content: space-between; }
.project-card.featured { background: linear-gradient(135deg, rgba(20, 52, 82, 0.96) 0%, rgba(9, 58, 91, 0.9) 100%); }
.project-tag { color: var(--tag); font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; }
.project-card p:not(.project-tag) { color: var(--muted); }
.text-link { color: var(--accent-dark); font-weight: 850; text-decoration: none; }
.text-link::after { content: " →"; }

.page-hero { padding: 4rem 0 2rem; }
.page-hero p { max-width: 760px; color: var(--muted); font-size: 1.08rem; }
.page-hero .eyebrow { color: var(--tag); }
.content-card { padding: 2rem; margin: 1rem 0 4rem; }
.content-card h2 { font-size: 1.7rem; margin-top: 2rem; }
.content-card h2:first-child { margin-top: 0; }
.content-card li + li { margin-top: 0.5rem; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 3rem 0;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}

@media (max-width: 760px) {
  .site-header, .site-footer { align-items: flex-start; flex-direction: column; }
  .hero { padding-top: 2.75rem; }
  .hero-statement { font-size: 1.25rem; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.8rem; }
  .project-grid { grid-template-columns: 1fr; }
}
