:root {
  --bg: #f5f3ee;
  --surface: #ffffff;
  --text: #111111;
  --muted: #5e5e5e;
  --border: #ddd7cc;
  --accent: #1e7a78;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.site-title a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
}

.site-title a:hover {
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

/* Main layout */

main {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.hero {
  padding: 1rem 0 2rem;
}

.hero h1 {
  font-size: 3.9rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 1.4rem 0;
  max-width: 1100px;
}

.hero p {
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 1100px;
  color: #222222;
  margin: 0;
}

/* General typography */

h1,
h2,
h3 {
  color: var(--text);
}

h2 {
  font-size: 1.8rem;
  line-height: 1.2;
  margin-top: 2.2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.25;
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
}

p,
ul,
ol {
  margin-top: 0;
  margin-bottom: 1.2rem;
}

a {
  color: var(--text);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem 0;
}

figure {
  margin: 2rem 0;
}

figcaption {
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
  margin-top: 0.75rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--surface);
  border: 1px solid var(--border);
}

th,
td {
  text-align: left;
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--border);
}

th {
  background: #f0ece4;
  font-weight: 600;
}

/* Project card on homepage */

.project-showcase-card {
  background: var(--surface);
  border: 1px solid #d9d3c8;
  border-radius: 22px;
  padding: 1.5rem 1.75rem;
  margin: 1.75rem 0;
}

.project-eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.project-showcase-card h2 {
  font-size: 1.65rem;
  line-height: 1.15;
  margin: 0 0 0.9rem 0;
}

.project-showcase-card h2 a {
  color: var(--text);
  text-decoration: none;
}

.project-showcase-card h2 a:hover {
  text-decoration: none;
}

.project-showcase-card p {
  font-size: 1rem;
  line-height: 1.55;
  color: #222222;
  max-width: 900px;
  margin: 0 0 1.25rem 0;
}

.project-open-link {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.project-open-link:hover {
  text-decoration: none;
  opacity: 0.75;
}

/* Project page bits */

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

.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}

.metric-number {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
}

.metric-label {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.callout {
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--accent);
  background: #eef7f6;
}

.download-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.25rem;
  margin: 1.5rem 0 2rem;
}

.download-panel h3 {
  margin-top: 0;
}

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

.download-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  color: var(--text);
  text-decoration: none;
  background: #fbfaf7;
}

.download-card:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.download-card strong,
.download-card span {
  display: block;
}

.download-card strong {
  margin: 0.15rem 0 0.3rem;
}

.download-card span:last-child {
  color: var(--muted);
  font-size: 0.95rem;
}

.download-label {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Mobile */

@media (max-width: 700px) {
  body {
    font-size: 17px;
  }

  .container {
    padding: 0 1rem;
  }

  .header-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .site-title a {
    font-size: 1rem;
  }

  .site-nav a {
    font-size: 0.95rem;
  }

  .hero {
    padding: 0.75rem 0 1.5rem;
  }

  .hero h1 {
    font-size: 2.45rem;
    line-height: 1.08;
    margin-bottom: 1rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .project-showcase-card {
    padding: 1.2rem 1.1rem;
    border-radius: 18px;
  }

  .project-showcase-card h2 {
    font-size: 1.35rem;
  }

  .project-showcase-card p {
    font-size: 0.98rem;
  }

  .metrics-grid,
  .download-grid {
    grid-template-columns: 1fr;
  }
}