/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, p, ul, li, figure { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Theme ---------- */
:root {
  --bg: #faf9f6;
  --ink: #1c1c1a;
  --muted: #6b6b64;
  --line: #e3e1da;
  --accent: #2f5d4e;
  --accent-soft: #eef2f0;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}

/* ---------- Site header / nav ---------- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.site-header .brand {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
}

.site-header .back {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}

.site-header .back:hover { color: var(--accent); }

/* ---------- Hero (home page) ---------- */
.hero h1 {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.hero .tagline {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 2.25rem;
}

.bio p { margin-bottom: 1.1rem; }

.bio ul {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.bio li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.85rem;
  color: var(--ink);
}

.bio li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Project nav grid ---------- */
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 3rem 0 1.25rem;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.project-card {
  display: block;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

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

.project-card .name {
  font-family: var(--serif);
  font-size: 1.05rem;
  display: block;
  margin-bottom: 0.3rem;
}

.project-card .blurb {
  font-size: 0.88rem;
  color: var(--muted);
}

.project-card.soon {
  opacity: 0.55;
}

.project-card.soon:hover {
  border-color: var(--line);
  transform: none;
}

.tag-soon {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
  margin-left: 0.4rem;
  vertical-align: middle;
}

/* ---------- Project page ---------- */
.project-page h1 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 1.75rem;
  line-height: 1.3;
}

.project-page figure {
  margin: 0 0 2rem;
}

.project-page figure.figure-inline {
  margin: 0 0 1.75rem;
}

.project-page figure img,
.project-page figure video {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #000;
}

.project-page figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.project-page p { margin-bottom: 1.2rem; }

.project-page ul {
  margin: 0 0 1.2rem 0;
  padding-left: 1.2rem;
}

.project-page li { margin-bottom: 0.5rem; }

.external-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

.external-link:hover { opacity: 0.75; }

.coming-soon {
  padding: 2.5rem 0;
  color: var(--muted);
  font-style: italic;
}

/* ---------- Page footer nav ---------- */
.page-footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.page-footer a {
  text-decoration: none;
  color: var(--muted);
}

.page-footer a:hover { color: var(--accent); }

/* ---------- Site footer ---------- */
.site-footer {
  margin-top: 4rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .wrap { padding: 2.5rem 1.25rem 4rem; }
  .hero h1 { font-size: 1.9rem; }
  .project-grid { grid-template-columns: 1fr; }
}
