:root {
  color-scheme: light;
  --ink: #0f1b1d;
  --muted: #4c5b60;
  --accent: #c2572d;
  --accent-2: #1e6b6e;
  --paper: #f7f1e8;
  --paper-2: #fffaf2;
  --border: rgba(15, 27, 29, 0.12);
  --shadow: rgba(15, 27, 29, 0.18);
}

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

body {
  font-family: "Work Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(30, 107, 110, 0.18), transparent 60%),
    radial-gradient(900px 600px at 90% 0%, rgba(194, 87, 45, 0.2), transparent 60%),
    linear-gradient(180deg, #f2ece2 0%, #e5ded3 100%);
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  padding: 24px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(0deg, rgba(15, 27, 29, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 27, 29, 0.035) 1px, transparent 1px);
  background-size: 28px 28px, 28px 28px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.page {
  max-width: 980px;
  margin: 32px auto 56px;
  padding: 40px 48px 48px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 28px 80px var(--shadow);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.page::before {
  content: "";
  position: absolute;
  inset: -80px -140px auto auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at 30% 30%, rgba(30, 107, 110, 0.25), transparent 70%);
  transform: rotate(-8deg);
  pointer-events: none;
}

.page::after {
  content: "";
  position: absolute;
  bottom: -120px;
  left: -120px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle at 60% 40%, rgba(194, 87, 45, 0.2), transparent 70%);
  pointer-events: none;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
}

.hero-title h1 {
  font-family: "Fraunces", "Georgia", serif;
  font-size: clamp(2.1rem, 3vw, 2.8rem);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-2);
  font-weight: 600;
}

.contact {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.contact a {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact a:hover,
.contact a:focus-visible {
  border-color: rgba(30, 107, 110, 0.6);
  box-shadow: 0 8px 20px rgba(30, 107, 110, 0.15);
  transform: translateY(-1px);
}

.content {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 36px;
  margin-top: 28px;
}

.section {
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.6s ease forwards;
  animation-delay: var(--delay, 0s);
}

.section:last-child {
  margin-bottom: 0;
}

.section h2 {
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  position: relative;
}

.section h2::after {
  content: "";
  display: block;
  height: 2px;
  width: 48px;
  background: var(--accent-2);
  margin-top: 8px;
}

.delay-1 {
  --delay: 0.05s;
}

.delay-2 {
  --delay: 0.12s;
}

.delay-3 {
  --delay: 0.2s;
}

.delay-4 {
  --delay: 0.28s;
}

.delay-5 {
  --delay: 0.36s;
}

.item {
  margin-bottom: 16px;
}

.item:last-child {
  margin-bottom: 0;
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.item-header h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

.meta {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.95rem;
}

.stack {
  margin: 6px 0 12px;
  color: var(--muted);
  font-size: 0.95rem;
  font-style: italic;
}

.list {
  padding-left: 18px;
}

.list li {
  margin-bottom: 8px;
}

.list li:last-child {
  margin-bottom: 0;
}

.project {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 12px 30px rgba(15, 27, 29, 0.08);
  margin-bottom: 20px;
}

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

.skill-group {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 14px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(15, 27, 29, 0.15);
}

.skill-group:last-child {
  border-bottom: none;
}

.skill-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  font-weight: 600;
}

.skill-value {
  font-size: 0.95rem;
  color: var(--ink);
}

a {
  color: inherit;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .section {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .contact a {
    transition: none;
  }
}

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

  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact {
    justify-content: flex-start;
  }

  .page {
    padding: 32px 28px 36px;
  }
}

@media (max-width: 600px) {
  body {
    padding: 16px;
  }

  .page {
    padding: 28px 20px 32px;
  }

  .skill-group {
    grid-template-columns: 1fr;
  }

  .contact a {
    font-size: 0.85rem;
  }
}