:root {
  --ink: #1f1a1a;
  --sand: #f0ebe5;
  --stone: #d4c7bc;
  --rose: #f7e6e7;
  --slate: #e5eef4;
  --tan: #e8d8ca;
  --accent: #c1866a;
  --muted: #7a6f6a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--sand);
  color: var(--ink);
  padding: 24px;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'DM Sans', serif;
  margin: 0;
}

p {
  margin: 0;
  line-height: 1.6;
}

main.layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch;
}

.hero-banner {
  grid-column: 1 / -1;
  display: grid;
  gap: clamp(18px, 3vw, 28px);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: center;
  padding: clamp(28px, 4vw, 44px);
  background: linear-gradient(135deg, #f9f1eb 0%, #f3e6df 100%);
  border-radius: 22px;
  border: 1px solid #e7d7cb;
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  overflow: hidden;
}

.hero-copy {
  display: grid;
  gap: 16px;
  max-width: 640px;
}

.hero-title {
  font-size: clamp(36px, 5vw, 52px);
  margin: 0;
  line-height: 1.08;
}

.hero-lead {
  font-size: 19px;
  color: #3e3633;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-media {
  justify-self: center;
  width: min(100%, 440px);
  background: #fff;
  border-radius: 26px;
  padding: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

.hero-media img {
  width: 100%;
  display: block;
  border-radius: 20px;
  border: 12px solid #fff7f2;
}

.card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.05);
}

.nav-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  background: var(--sand);
  border: 1px solid #cbbcb0;
}

.brand {
  font-size: 26px;
  letter-spacing: -0.5px;
}

.tagline {
  margin-top: 4px;
  color: var(--muted);
}

.nav-links {
  display: grid;
  gap: 6px;
  margin-top: 18px;
}

.nav-links .text-link {
  font-weight: 600;
}

.button {
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.button.ghost {
  background: transparent;
  color: var(--ink);
}

.muted-card {
  background: var(--tan);
}

.accent-card {
  background: #fff6f3;
  border-color: #f0c8b6;
}

.outline-card {
  border: 2px solid var(--ink);
  background: #fdfbf9;
}

.list-card {
  background: #f8f6f3;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
  margin: 8px 0 0;
}

.pill-list li {
  padding: 8px 12px;
  background: #fff;
  border-radius: 999px;
  border: 1px solid #e0d6cd;
  font-weight: 600;
  color: #403936;
}

.neutral-card {
  background: #fff;
}

.stacked-list, .timeline {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 10px;
  color: #413a36;
}

.timeline h4 {
  margin: 0 0 4px;
}

.outline-card .text-link {
  margin-top: 8px;
  display: inline-block;
}

.chat-card {
  display: grid;
  gap: 14px;
}

.preset-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-button {
  border: 1px solid #e0d6cd;
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
  color: #403936;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pill-button:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.chat-window {
  border: 1px solid #ebe2d8;
  border-radius: 12px;
  background: #fdfbf9;
  padding: 12px;
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow: auto;
}

.chat-message {
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #eee0d5;
  display: grid;
  gap: 6px;
}

.chat-message.user {
  background: #e9f0f8;
  border-color: #d2e0ee;
}

.chat-message .label {
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.chat-form input {
  border: 1px solid #d8cbc0;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 16px;
}

.chat-form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.contact-card {
  background: var(--stone);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 10px;
}

.contact-list span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.3px;
}

.contact-list a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

.showcase-card {
  display: grid;
  gap: 12px;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  outline: none;
}

.showcase-card:hover, .showcase-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.project-thumb {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e0d6cd;
}

.project-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.project-meta .title {
  margin: 4px 0;
}

.project-blurb {
  padding: 12px;
  border-radius: 10px;
  background: #f8f4ef;
  border: 1px solid #e0d6cd;
  color: #3f3936;
}

.showcase-card.open {
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.text-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(0,0,0,0.15);
  padding-bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.text-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 6px;
}

.title {
  margin-bottom: 8px;
}

.copy {
  color: #463f3c;
}

@media (max-width: 720px) {
  body {
    padding: 14px;
  }

  .headline {
    font-size: 30px;
  }

  .brand {
    font-size: 24px;
  }
}

@media (min-width: 1080px) {
  main.layout {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Resume page */
body.resume-page {
  background: #fdfbf9;
  color: var(--ink);
  padding: clamp(18px, 4vw, 32px);
}

.resume-header {
  max-width: 920px;
  margin: 0 auto clamp(16px, 4vw, 28px);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  padding: clamp(18px, 4vw, 32px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

.resume-header h1 {
  font-size: clamp(32px, 4vw, 44px);
  margin: 6px 0 10px;
}

.resume-viewer {
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  min-height: 70vh;
}

.resume-viewer object {
  width: 100%;
  height: min(88vh, 1200px);
  display: block;
  border: none;
  background: #f7f2ec;
}

.resume-viewer p {
  padding: 18px;
}
