:root {
  color-scheme: light;
  --bg: #f6f1e8;
  --fg: #2a2622;
  --muted: #7a7066;
  --accent: #b4532a;
  --rule: #e2dccf;
  --card: #fffdf8;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: ui-serif, Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

a:hover {
  border-bottom-color: var(--accent);
}

h1 {
  font-size: 2.4rem;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 28px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

h3 {
  font-size: 1.25rem;
  margin: 0 0 4px;
}

.tagline {
  color: var(--muted);
  margin: 0 0 24px;
  font-style: italic;
}

.bio {
  margin: 0 0 24px;
}

.contact-intro {
  margin: 24px 0 12px;
}

.links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.95rem;
}

.intro {
  margin-bottom: 32px;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 0 24px;
  border: 3px solid var(--card);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.projects {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--rule);
}

.project {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 280px;
  align-items: stretch;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.project:hover {
  border-color: var(--accent);
}

.project-shot {
  display: block;
  background: var(--bg);
  line-height: 0;
  overflow: hidden;
  order: 2;
}

.project-shot img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}

.project-shot:hover img {
  transform: scale(1.02);
}

.project-body {
  padding: 24px 28px 28px;
  order: 1;
  font-size: 0.95rem;
  line-height: 1.55;
}

.project-body p {
  margin: 0 0 8px;
}

.project-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .project {
    grid-template-columns: 1fr;
  }
  .project-shot {
    order: 1;
  }
  .project-body {
    order: 2;
    padding: 20px;
  }
  .project-shot img {
    height: 200px;
    min-height: 0;
  }
}

.kind {
  color: var(--muted);
  font-size: 0.9rem;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  margin-bottom: 12px !important;
}

.why {
  margin-top: 12px !important;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  font-style: italic;
  font-size: 0.95rem;
}

.experience {
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--rule);
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.role {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.role:hover {
  border-color: var(--accent);
}

.role img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.role-body {
  padding: 20px 24px 24px;
}

.role-body h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
}

.role-body p {
  margin: 0 0 8px;
  font-size: 0.95rem;
  line-height: 1.55;
}

.role-body p:last-child {
  margin-bottom: 0;
}

.credit {
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  text-align: right;
}

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

footer {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.85rem;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  text-align: center;
}
