:root {
  --bg: #ffffff;
  --fg: #3a2a1f;
  --muted: #7a6a58;
  --muted2: #9c8a74;
  --border: #ece6da;
  --tint1: #faf3ea;
  --tint2: #fbf0e0;
  --tint3: #f6ece0;
  --tint-border: #ecd9c2;
  --placeholder: #c9b79c;

  --rust: #b5502e;
  --maroon: #7a2e2e;
  --ochre: #8a5a1f;
  --amber: #c8862b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Lora', Georgia, serif;
  line-height: 1.5;
}

.mono { font-family: 'Space Mono', 'Courier New', monospace; }

a { text-decoration: none; color: inherit; }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 80px;
}

@media (max-width: 900px) {
  .wrap { padding: 0 32px; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 20px; }
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 30px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--tint-border);
  display: block;
}

.brand span {
  font-size: 17px;
}

.nav {
  display: flex;
  gap: 26px;
  font-size: 13px;
  flex-wrap: wrap;
}

.nav a {
  border-bottom: 1px solid transparent;
}

.nav a:hover,
.nav a.current {
  border-bottom-color: currentColor;
}

.divider {
  border-top: 1px solid var(--border);
}

/* Color utilities */
.c-rust { color: var(--rust); }
.c-maroon { color: var(--maroon); }
.c-ochre { color: var(--ochre); }
.c-amber { color: var(--amber); }

/* Pill buttons */
.pill {
  display: inline-flex;
  padding: 9px 18px;
  border: 1px solid currentColor;
  border-radius: 3px;
  font-size: 12px;
  letter-spacing: 0.03em;
}

.pill:hover {
  background: currentColor;
  color: var(--bg);
}

/* Home hero */
.home-hero {
  padding: 60px 0 50px;
}

.home-hero p {
  margin: 0;
  max-width: 660px;
  font-size: 26px;
  line-height: 1.5;
}

/* Home page feature rows (full-bleed hover) */
.feature-row {
  display: block;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.feature-row-pad {
  padding: 60px 0;
}

.feature-row.theme-maroon { color: var(--maroon); }
.feature-row.theme-ochre { color: var(--ochre); }
.feature-row.theme-rust { color: var(--rust); }

.feature-row.theme-maroon:hover { background: var(--maroon); color: #ffffff; }
.feature-row.theme-ochre:hover { background: var(--ochre); color: #ffffff; }
.feature-row.theme-rust:hover { background: var(--rust); color: #ffffff; }

.feature-row h2 {
  margin: 0 0 22px;
  font-size: 34px;
  font-weight: 400;
  color: inherit;
}

.feature-row .row-eyebrow {
  color: inherit;
}

.pill-static {
  display: inline-flex;
  padding: 9px 18px;
  border: 1px solid currentColor;
  border-radius: 3px;
  font-size: 12px;
  letter-spacing: 0.03em;
}

/* Alternating text + media rows */
.row {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 60px 0;
}

@media (max-width: 820px) {
  .row {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 44px 0;
  }
  .row-media { width: 100%; }
}

.row-content {
  flex: 1;
  min-width: 0;
}

.row-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  border-bottom: 1px solid currentColor;
}

.row h2 {
  margin: 0 0 22px;
  font-size: 34px;
  font-weight: 400;
}

.row-desc {
  margin: 0;
  max-width: 480px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.row-media {
  flex: 1;
  min-width: 0;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.row-media.tint1 { background: var(--tint1); }
.row-media.tint2 { background: var(--tint2); }
.row-media.tint3 { background: var(--tint3); }

.row-media span {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--placeholder);
}

/* Page title */
.page-title {
  padding: 60px 0 50px;
}

.page-title h1 {
  margin: 0;
  font-size: 44px;
  font-weight: 400;
}

.page-links {
  display: flex;
  gap: 22px;
  font-size: 13px;
  margin-top: 18px;
}

.page-links a {
  border-bottom: 1px solid currentColor;
  color: var(--maroon);
}

/* CV / background sections */
.cv-section {
  padding: 56px 0;
}

.cv-eyebrow {
  margin: 0 0 34px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
}

.job {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.job:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
}

.job-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  color: var(--rust);
}

.job.edu .job-header h2 {
  font-size: 22px;
}

.job-location {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted2);
}

.job-dates {
  margin: 0;
  font-size: 12px;
  color: var(--muted2);
  white-space: nowrap;
}

.job-desc {
  margin: 14px 0 0;
  max-width: 760px;
  font-style: italic;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.job-role {
  margin: 12px 0 0;
  font-weight: 600;
  font-size: 15px;
}

.job ul {
  margin: 16px 0 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.7;
}

.bullet-group {
  margin-top: 20px;
}

.bullet-group .label {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--rust);
}

.bullet-group ul {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.7;
}

/* Additional info cards */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 820px) {
  .info-grid { grid-template-columns: 1fr; }
}

.info-card {
  background: var(--tint1);
  border: 1px solid var(--tint-border);
  border-radius: 4px;
  padding: 20px;
}

.info-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--maroon);
}

.info-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* Under-construction badge (Projects page) */
.badge-construction {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px dashed currentColor;
  border-radius: 3px;
  padding: 4px 10px;
  margin-bottom: 16px;
}

.row-note {
  margin: 0 0 16px;
  font-size: 12px;
  font-style: italic;
  color: var(--muted2);
}

/* Essays page */
.essays-body {
  padding: 70px 0;
}

.essays-body > p.intro {
  margin: 0 0 28px;
  font-size: 26px;
  line-height: 1.5;
}

.recent-posts {
  margin-top: 56px;
}

.recent-posts-label {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
}

.post-card {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.post-date {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted2);
}

.post-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 400;
  color: var(--maroon);
}

.post-card h3 a:hover {
  text-decoration: underline;
}

.post-card .excerpt {
  margin: 0;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 40px;
  margin-top: 20px;
}

.footer-links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
}

.footer-links a {
  border-bottom: 1px solid currentColor;
  color: var(--maroon);
}

.copyright {
  margin: 24px 0 0;
  padding-bottom: 36px;
  font-size: 13px;
  color: var(--muted2);
}
