:root {
  color-scheme: dark;
  --ink: #2d2634;
  --page-ink: #ffffff;
  --page-muted: #a3a3a3;
  --paper: #0a0a0a;
  --dot: #232323;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}
html {
  /* Sized to read like the old layout at 90% browser zoom. */
  font-size: 90%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--page-ink);
  background-color: var(--paper);
  background-image: radial-gradient(var(--dot) 0.9px, transparent 0.9px);
  background-size: 1.75rem 1.75rem;
  font-size: 1rem;
  line-height: 1.5;
  text-transform: lowercase;
}
a {
  color: inherit;
}
a:focus-visible {
  outline: 3px solid #e9cf72;
  outline-offset: 4px;
  border-radius: 4px;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 5;
  padding: 0.6rem 0.9rem;
  background: var(--ink);
  color: white;
}
.skip-link:focus {
  top: 1rem;
}

.page {
  width: min(100% - 36px, 36rem);
  margin: 0 auto;
  padding: 4rem 0 3.25rem;
}
.intro {
  padding-bottom: 3rem;
}
h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.55rem, 5vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
  font-weight: 680;
}
.name-dot {
  color: #e9cf72;
}
.intro p {
  max-width: 49ch;
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.5;
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.social-links a,
footer a {
  text-decoration-thickness: 1px;
  text-decoration-color: #6b6b6b;
  text-underline-offset: 4px;
}
.social-links a:hover,
footer a:hover {
  text-decoration-color: currentColor;
}

.section {
  margin-bottom: 2.75rem;
}
.section-label {
  margin: 0 0 0.75rem;
  color: var(--page-muted);
  font-size: 0.8rem;
  letter-spacing: 0.045em;
  font-weight: 750;
}
.focus-card,
.project-card,
.experience-card,
.contact-card {
  overflow: hidden;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 14px 32px rgba(8, 5, 14, 0.45),
    0 3px 8px rgba(8, 5, 14, 0.3);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.focus-card:hover,
.project-card:hover,
.experience-card:hover,
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 20px 40px rgba(8, 5, 14, 0.55),
    0 4px 10px rgba(8, 5, 14, 0.35);
}
.color-sun {
  background: #f5e7a8;
}
.color-plum {
  background: #ddd3f1;
}
.color-sage {
  background: #cfe6dc;
}
.color-clay {
  background: #f6d3ba;
}

.focus-card {
  padding: 1.4rem 1.5rem 1.5rem;
}
.focus-spark {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.9rem;
  line-height: 1;
  color: #5f4a22;
}
.focus-card p {
  max-width: 37ch;
  margin: 0 0 1.1rem;
  font-size: 1.2rem;
  line-height: 1.38;
  letter-spacing: -0.02em;
}
.focus-card strong {
  font-weight: 700;
}
.focus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.focus-tags span {
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.77rem;
  font-weight: 600;
}

.project-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.project-row + .project-row {
  border-top: 1px solid rgba(69, 51, 93, 0.14);
}
.project-row:hover {
  background: rgba(255, 255, 255, 0.35);
}
.project-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.project-copy strong {
  font-size: 1.06rem;
  line-height: 1.25;
  font-weight: 700;
}
.project-copy small {
  margin: 0.2rem 0 0.4rem;
  color: #3b2e53;
  font-size: 0.82rem;
  font-weight: 600;
}
.project-copy > span {
  color: #3b2e53;
  line-height: 1.45;
}
.arrow {
  flex: none;
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.15s ease;
}
.project-row:hover .arrow {
  transform: translate(2px, -2px);
}

.experience-item {
  padding: 1.25rem 1.5rem;
}
.experience-item + .experience-item {
  border-top: 1px solid rgba(31, 74, 60, 0.14);
}
.experience-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.1rem 1rem;
}
.experience-head h3 {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.25;
  font-weight: 700;
}
.experience-head time {
  color: #2f5446;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}
.experience-role {
  margin: 0.2rem 0 0.4rem;
  color: #2f5446;
  font-size: 0.82rem;
  font-weight: 600;
}
.experience-summary {
  margin: 0;
  color: #243f35;
  line-height: 1.45;
}

.contact-card {
  padding: 1.4rem 1.5rem 1.5rem;
}
.contact-card p {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}
.contact-card a {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 680;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.contact-card a span {
  padding-left: 3px;
}
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1.1rem;
  color: var(--page-muted);
  font-size: 0.78rem;
}

@media (max-width: 520px) {
  .page {
    width: calc(100% - 32px);
    padding-top: 2.75rem;
  }
  .intro {
    padding-bottom: 2.5rem;
  }
  .section {
    margin-bottom: 2.25rem;
  }
  .project-row {
    gap: 0.75rem;
  }
  .project-row,
  .experience-item,
  .focus-card,
  .contact-card {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .project-row,
  .arrow,
  .focus-card,
  .project-card,
  .experience-card,
  .contact-card {
    transition: none;
  }
  .focus-card:hover,
  .project-card:hover,
  .experience-card:hover,
  .contact-card:hover {
    transform: none;
  }
}
