/* ---------- Colors & type: change the whole look here ---------- */
:root {
  --bg: #f7f3ec;          /* warm off-white */
  --surface: #fffdf9;     /* cards */
  --ink: #16233f;         /* navy text */
  --ink-soft: #4a5670;    /* secondary text */
  --accent: #a3552f;      /* understated clay */
  --rule: #e2dacb;        /* hairlines */

  --serif: "Iowan Old Style", "Charter", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --max: 1040px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 10; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.wordmark { font-family: var(--serif); font-size: 19px; text-decoration: none; letter-spacing: .01em; white-space: nowrap; }
nav { display: flex; gap: 26px; }
nav a { text-decoration: none; font-size: 15px; color: var(--ink-soft); }
nav a:hover { color: var(--accent); }

/* ---------- Intro ---------- */
.intro {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 72px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 96px;
}
h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(42px, 6vw, 64px); line-height: 1.05;
  margin: 0 0 28px; letter-spacing: -.01em;
}
.lede { font-size: 19px; color: var(--ink-soft); max-width: 31em; margin-bottom: 32px; }

/* At-a-glance status: where Carlos is now and last summer */
.status { margin: 0; max-width: 31em; border-top: 1px solid var(--rule); }
.status-row {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: 20px;
  padding: 16px 0; border-bottom: 1px solid var(--rule);
}
.status dt {
  font-family: var(--serif); font-style: italic; font-size: 17px;
  color: var(--accent); padding-top: 1px;
}
.status dd { margin: 0; display: grid; gap: 10px; }
.status dd p { margin: 0; line-height: 1.4; }
.status strong { display: block; font-weight: 600; color: var(--ink); }
.status span { display: block; font-size: 15px; color: var(--ink-soft); }
.intro-photo { margin: 0; }
.intro-photo img {
  border-radius: 6px;
  aspect-ratio: 783 / 900;
  object-fit: cover;
  box-shadow: 18px 18px 0 -2px var(--rule);
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-block; padding: 11px 20px;
  border: 1px solid var(--ink); border-radius: 999px;
  font-size: 15px; font-weight: 500; text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }

/* ---------- Sections ---------- */
.section { padding-top: 64px; padding-bottom: 64px; border-top: 1px solid var(--rule); }
.section-label {
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin: 0 0 32px;
}
.subhead {
  font-family: var(--serif); font-weight: 400; font-size: 24px;
  margin: 64px 0 8px;
}

/* ---------- Featured project ---------- */
.feature {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 40px 44px 36px;
}
.feature-meta { font-size: 14px; color: var(--ink-soft); margin-bottom: 8px; }
.feature h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(26px, 3.2vw, 34px); line-height: 1.2; margin: 0 0 32px;
}
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.feature h4 {
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  margin: 0 0 10px; color: var(--ink);
}
.feature-grid p { font-size: 16px; color: var(--ink-soft); margin: 0; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin: 36px 0 0; padding-top: 28px; border-top: 1px solid var(--rule);
}
.stats div { margin: 0; }
.stats dt { font-family: var(--serif); font-size: 30px; line-height: 1.1; color: var(--accent); }
.stats dd { margin: 4px 0 0; font-size: 14px; color: var(--ink-soft); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid; grid-template-columns: 180px 1fr; gap: 28px;
  padding: 22px 0; border-bottom: 1px solid var(--rule);
}
.timeline li:last-child { border-bottom: 0; }
.when { font-size: 14px; color: var(--ink-soft); padding-top: 2px; font-variant-numeric: tabular-nums; }
.role { margin: 0 0 4px; }
.role strong { font-weight: 600; }
.role span { color: var(--ink-soft); }
.role span::before { content: "· "; color: var(--rule); }
.timeline p:not(.role) { font-size: 16px; color: var(--ink-soft); margin: 0; max-width: 46em; }

/* ---------- Community ---------- */
.community-list { display: grid; gap: 56px; }
.community-item {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
}
.community-item figure { margin: 0; }
.community-item:has(.community-photos) { align-items: start; }
.community-photos { display: grid; gap: 28px; }
.community-item img { width: 100%; border-radius: 6px; }   /* full photo, never cropped */
.community-item figcaption { font-size: 14px; color: var(--ink-soft); margin-top: 10px; }
.community-text h3 {
  font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.2; margin: 0 0 6px;
}
.community-role { font-size: 14px; letter-spacing: .02em; color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.community-text p:last-child { color: var(--ink-soft); margin: 0; }

/* ---------- About & contact ---------- */
.prose { max-width: 40em; font-size: 18px; }
.prose p:last-child { margin-bottom: 0; }
.contact-line { font-family: var(--serif); font-size: clamp(24px, 3vw, 32px); line-height: 1.3; max-width: 26em; margin: 0; }
.contact { padding-bottom: 96px; }

.site-footer { border-top: 1px solid var(--rule); padding: 28px 0 40px; font-size: 14px; color: var(--ink-soft); }

/* ---------- Tablet & mobile ---------- */
@media (max-width: 860px) {
  /* Hero keeps text left / photo right down to 680px */
  .intro { gap: 40px; padding-top: 48px; padding-bottom: 72px; }
  .intro-photo img { box-shadow: 10px 10px 0 -2px var(--rule); }
  .feature { padding: 28px 24px; }
  .feature-grid { grid-template-columns: 1fr; gap: 24px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .community-item { grid-template-columns: 1fr; gap: 20px; }
  .community-item--text-first .community-text { order: -1; }
  .community-list { gap: 48px; }
}
@media (max-width: 680px) {
  /* Phones: intro, status and links first; photo after */
  .intro { grid-template-columns: 1fr; gap: 36px; padding-top: 36px; padding-bottom: 56px; }
  .intro-photo { max-width: 240px; }
}
@media (max-width: 600px) {
  .status-row { grid-template-columns: 6.5rem 1fr; gap: 14px; }
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  nav { gap: 18px; }
  .wordmark { font-size: 17px; }
  .lede { font-size: 17px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .section { padding-top: 48px; padding-bottom: 48px; }
  .btn-primary[href^="mailto"] { word-break: break-all; }
}
@media (max-width: 480px) {
  .wm-last { display: none; }
  nav { gap: 14px; }
  nav a { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
