:root {
  --bg: #faf9f7;
  --bg-alt: #f1efeB;
  --ink: #1a1d21;
  --muted: #5c6470;
  --line: #e3e0d9;
  --accent: #c2410c;
  --accent-dark: #9a3412;
  --card: #ffffff;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 720px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 960px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { font-weight: 800; font-size: 1.35rem; text-decoration: none; color: var(--ink); letter-spacing: -0.02em; }
.accent { color: var(--accent); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--ink); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 0.95rem; border: 2px solid var(--accent);
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; }
.btn-small {
  padding: 8px 18px !important; border-radius: 999px;
  background: var(--ink); color: #fff !important; font-weight: 600;
}
.btn-small:hover { background: var(--accent); }

/* ---------- banner ---------- */
.banner { border-radius: var(--radius); overflow: hidden; margin-bottom: 36px; border: 1px solid var(--line); }
.banner img { width: 100%; height: 300px; object-fit: cover; display: block; }

/* ---------- hero ---------- */
.hero { padding: 110px 0 90px; border-bottom: 1px solid var(--line); }
.hero-inner { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); font-weight: 500; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.8rem, 7vw, 4.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 20px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 620px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-meta { font-size: 0.9rem; color: var(--muted); }
.hero-meta .dot { margin: 0 8px; }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 36px; }

/* ---------- cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; margin-bottom: 22px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(26, 29, 33, 0.08); }
.card.featured { border-left: 4px solid var(--accent); }
.card h3, .job h3 {
  font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; text-align: left;
}
.card h3 { margin-bottom: 6px; }
.job h3 { margin-bottom: 4px; }
.card .date, .job .date { font-size: 0.85rem; color: var(--muted); margin-bottom: 12px; font-weight: 500; text-align: left; }
.card p { color: var(--muted); margin-bottom: 16px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 22px; }
.grid:last-child { margin-bottom: 0; }
.grid .card { margin-bottom: 0; }
.card.slim { max-width: calc(50% - 11px); }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-family: 'JetBrains Mono', monospace; font-size: 0.75rem;
  background: var(--bg-alt); border: 1px solid var(--line); color: var(--muted);
  padding: 5px 12px; border-radius: 999px;
}

/* ---------- full poster figure ---------- */
.poster-fig { margin: 4px 0 18px; }
.poster-fig img {
  width: 100%; border-radius: 10px; border: 1px solid var(--line);
  cursor: zoom-in; transition: transform 0.18s ease; display: block;
}
.poster-fig img:hover { transform: scale(1.01); }
.poster-fig img + img { margin-top: 12px; }
.poster-fig p { font-size: 0.8rem; color: var(--muted); margin-top: 8px; text-align: center; }

/* ---------- poster link ---------- */
.poster-link { margin-bottom: 18px; }
.poster-link a { font-weight: 600; color: var(--accent); text-decoration: none; font-size: 0.95rem; }
.poster-link a:hover { text-decoration: underline; }

/* ---------- small poster-page thumbnails ---------- */
.thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 8px; }
.thumbs img {
  width: 100%; border-radius: 10px; border: 1px solid var(--line);
  cursor: zoom-in; transition: transform 0.18s ease; display: block;
}
.thumbs img:hover { transform: scale(1.02); }
.thumbs-cap { font-size: 0.8rem; color: var(--muted); margin-bottom: 18px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.gallery img {
  width: 100%; height: 190px; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--line);
  cursor: zoom-in; transition: transform 0.18s ease;
}
.gallery img:hover { transform: scale(1.02); }
.gallery.solo { grid-template-columns: 1fr; }
.gallery.solo img { height: 320px; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(20, 22, 25, 0.92); align-items: center; justify-content: center;
  padding: 24px; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 12px; }

/* ---------- jobs ---------- */
.job { margin-bottom: 36px; }
.job:last-child { margin-bottom: 0; }
.job h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.job ul { margin-top: 10px; padding-left: 20px; color: var(--muted); }
.job ul li { margin-bottom: 6px; }

/* ---------- skills ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.skills-grid h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 14px; font-weight: 700; }

/* ---------- contact ---------- */
.contact { text-align: center; }
.contact .lede { margin-left: auto; margin-right: auto; }
.contact-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 28px 0; }
footer p { font-size: 0.85rem; color: var(--muted); text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); flex-direction: column; padding: 18px 24px 24px;
    border-bottom: 1px solid var(--line); gap: 16px; align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .grid { grid-template-columns: 1fr; }
  .card.slim { max-width: none; }
  .grid .card:last-child { grid-column: auto; }
  .skills-grid { grid-template-columns: 1fr; }
  .hero { padding: 70px 0 60px; }
  .banner img { height: 200px; }
  .section { padding: 60px 0; }
}
