:root {
  --bg: #f6f3ee;
  --bg-alt: #efeae2;
  --ink: #1c1916;
  --muted: #5c564e;
  --line: #d9d2c8;
  --accent: #8c3b24;
  --card: #fffdf9;
  --shadow: 0 12px 30px rgba(28, 25, 22, 0.06);
  --radius: 14px;
  --max: 920px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-weight: 400;
}

h1,
h2,
h3 {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  margin: 0.2rem 0 1rem;
}

h2 {
  font-size: 1.6rem;
  margin: 0;
}

h3 {
  font-size: 1.25rem;
  margin: 0.2rem 0 0.6rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--accent);
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

@media (max-width: 640px) {
  .wrap {
    width: min(var(--max), calc(100% - 1.8rem));
  }
}

.hero {
  padding: 4.5rem 0 3.5rem;
}

@media (max-width: 640px) {
  .hero {
    padding: 3rem 0 2.25rem;
  }
}

.hero-inner {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

@media (min-width: 760px) {
  .hero-inner {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 2.75rem;
    align-items: center;
  }
}

.portrait {
  width: 140px;
  height: 140px;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 12%;
  border-radius: 50%;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--card);
  justify-self: start;
}

@media (min-width: 760px) {
  .portrait {
    width: 200px;
    height: 200px;
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.lede {
  font-size: 1rem;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: var(--ink);
  color: var(--bg);
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
}

.button-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.section {
  padding: 4rem 0;
}

@media (max-width: 640px) {
  .section {
    padding: 3rem 0;
  }
}

.section-alt {
  background: var(--bg-alt);
}

.split {
  display: grid;
  gap: 1.25rem 3rem;
}

@media (min-width: 720px) {
  .split {
    grid-template-columns: 8rem 1fr;
  }
}

.prose {
  max-width: 38rem;
}

.section-head {
  margin-bottom: 2rem;
  max-width: 36rem;
}

.section-head p {
  color: var(--muted);
  margin-top: 0.5rem;
}

.project-list {
  display: flex;
  flex-direction: column;
}

.project-entry {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  transition: padding-left 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.project-entry:last-child {
  border-bottom: 1px solid var(--line);
}

@media (hover: hover) {
  .project-entry:hover {
    padding-left: 0.75rem;
    border-top-color: var(--accent);
  }

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

.project-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-bottom: 0.5rem;
}

.project-entry-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.project-index {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}

.project-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 500;
}

.project-entry-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
}

.project-action-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s ease;
}

.project-action-link:hover {
  color: var(--accent);
  text-decoration: none;
}

.project-action-link .arrow {
  display: inline-block;
  font-size: 0.85em;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-action-link:hover .arrow {
  transform: translate(2px, -2px);
}

.action-subtle {
  color: var(--muted);
}

.action-divider {
  color: var(--line);
  font-weight: 300;
  user-select: none;
}

.project-entry-title {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 600;
  margin: 0.25rem 0 0.75rem;
  letter-spacing: -0.03em;
}

.project-entry-title a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.project-entry-title a:hover {
  color: var(--accent);
}

.project-entry-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 50rem;
  margin: 0 0 1.2rem;
}

.project-entry-tech {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
}

.project-entry-tech span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  background: rgba(28, 25, 22, 0.04);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.project-entry:hover .project-entry-tech span {
  border-color: rgba(140, 59, 36, 0.15);
  color: var(--ink);
}

.skills-grid {
  display: grid;
  gap: 2.25rem 2.5rem;
}

@media (min-width: 560px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.skill-quadrant {
  display: flex;
  flex-direction: column;
}

.skill-quadrant-header {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.85rem;
}

.skill-num {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}

.skill-quadrant-header h3 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

.skill-stack {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.skill-stack li {
  font-size: 0.88rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  transition: color 0.15s ease, transform 0.15s ease;
}

.skill-stack li::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--line);
  flex-shrink: 0;
  transition: background-color 0.15s ease;
}

@media (hover: hover) {
  .skill-stack li:hover {
    color: var(--ink);
    transform: translateX(2px);
  }

  .skill-stack li:hover::before {
    background-color: var(--accent);
  }
}

.contact p {
  color: var(--muted);
  max-width: 32rem;
}

.contact-meta {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-links {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.contact-links a {
  word-break: break-all;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.footer-inner p {
  margin: 0;
}

.footer-quote {
  font-style: italic;
  color: var(--muted);
  opacity: 0.9;
}
