:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #dbe3ea;
  --accent: #1d4ed8;
  --accent-soft: #e8f0ff;
  --max-width: 980px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(var(--max-width), 92%);
  margin: 0 auto;
}

.narrow {
  width: min(780px, 92%);
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
}

.site-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-size: 0.98rem;
}

.nav a.active,
.nav a:hover {
  color: var(--text);
}

.hero {
  padding: 4.5rem 0 2.5rem;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

h1, h2, h3 {
  line-height: 1.25;
  margin-top: 0;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.subtitle {
  font-size: 1.08rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.intro {
  max-width: 760px;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.72rem 1.15rem;
  border-radius: 8px;
  font-size: 0.96rem;
  border: 1px solid var(--accent);
}

.button:hover {
  text-decoration: none;
  opacity: 0.95;
}

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

.section {
  padding: 1.8rem 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.3rem 1.4rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.grid.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.page-header {
  padding: 3rem 0 1rem;
}

.project-card h2 {
  margin-bottom: 0.5rem;
}

.meta {
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 0.8rem;
}

.blog-post {
  padding: 3rem 0 4rem;
}

.blog-post h2 {
  margin-top: 2rem;
}

.blog-post ul {
  padding-left: 1.3rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
  margin-top: 3rem;
}

.site-footer .container {
  padding: 1.2rem 0;
  color: var(--muted);
  font-size: 0.94rem;
}

@media (max-width: 720px) {
  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0;
  }

  .nav {
    margin-top: 0.5rem;
    gap: 1rem;
  }

  .grid.two-col {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2rem;
  }
}

figure {
  margin: 28px 0;
  text-align: center;
}

figure img {
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

figcaption {
  margin-top: 8px;
  font-size: 0.92rem;
  color: #64748b;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.96rem;
}

th, td {
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  text-align: left;
}

th {
  background: #f8fafc;
  font-weight: 700;
}
