:root {
  --background: #090909;
  --surface: #111111;
  --text: #d4d4d4;
  --text-strong: #f3f3f3;
  --muted: #858585;
  --faint: #555555;
  --line: #242424;
  --content-width: 48rem;
  --side-padding: clamp(1.25rem, 5vw, 2rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "DM Sans", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: #e6e6e6;
  color: #101010;
}

a {
  color: inherit;
  text-decoration-color: rgba(212, 212, 212, 0.3);
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.22em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

a:hover,
a:focus-visible {
  color: var(--text-strong);
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 1px solid var(--text-strong);
  outline-offset: 0.3rem;
}

p,
h1,
h2,
h3,
ol {
  margin: 0;
}

.shell {
  width: min(calc(100% - (var(--side-padding) * 2)), var(--content-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 1rem;
  left: 1rem;
  padding: 0.5rem 0.75rem;
  background: var(--text-strong);
  color: var(--background);
  font-size: 0.875rem;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  padding-block: 2rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  position: relative;
  display: inline-flex;
  text-decoration: none;
}

.wordmark-mark {
  display: inline-block;
  color: var(--text-strong);
  font-family: "Syne", "DM Sans", sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 1;
  transform: skewX(-6deg);
  transform-origin: left center;
  transition: color 160ms ease, letter-spacing 180ms ease, transform 180ms ease;
}

.wordmark:hover .wordmark-mark,
.wordmark:focus-visible .wordmark-mark {
  color: #ffffff;
  letter-spacing: -0.025em;
  transform: skewX(0deg);
}

.site-nav {
  display: flex;
  gap: clamp(1.15rem, 4vw, 2rem);
}

.site-nav a {
  position: relative;
  color: #9e9e9e;
  font-size: 0.875rem;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.15rem;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="true"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.page {
  padding-top: clamp(2rem, 7vw, 4.5rem);
  padding-bottom: clamp(5rem, 12vw, 8rem);
}

.intro {
  max-width: 42rem;
  margin-bottom: clamp(6.5rem, 15vw, 10rem);
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

h1 {
  max-width: 44rem;
  color: var(--text-strong);
  font-size: clamp(1.6rem, 3.25vw, 2.15rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.16;
}

.entry-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.65rem;
  margin-top: 1.35rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.entry-links span,
.entry-meta span {
  color: var(--faint);
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}

.footer-links img {
  width: 0.82rem;
  height: 0.82rem;
}

.content-section + .content-section {
  margin-top: clamp(6rem, 13vw, 9rem);
}

h2 {
  margin-bottom: 2.25rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.entry-list {
  padding: 0;
  list-style: none;
}

.entry-list > li + li {
  margin-top: 0.15rem;
}

.entry {
  position: relative;
  padding-block: 1.85rem;
  border-top: 1px solid var(--line);
}

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

.project-entry {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 1rem;
}

.experience-entry {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: 1rem;
}

.company-logo {
  display: grid;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.08rem;
  place-items: center;
  color: var(--muted);
}

.company-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-placeholder {
  border: 1px solid var(--line);
  border-radius: 0.25rem;
  color: var(--faint);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.entry-marker {
  padding-top: 0.15rem;
  color: var(--faint);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.entry-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
}

h3 {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.5;
}

.entry-date {
  flex: none;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.entry-role {
  flex: none;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.entry-role span {
  color: var(--faint);
}

.project-title-link {
  text-decoration: none;
}

.project-title-link:hover,
.project-title-link:focus-visible {
  text-decoration: underline;
}

.entry-content > p,
.experience-content > p:last-child {
  max-width: 39rem;
  margin-top: 0.8rem;
  color: #a8a8a8;
  font-size: 0.92rem;
  line-height: 1.7;
}

.entry-meta {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.about-copy {
  max-width: 40rem;
  color: #b0b0b0;
}

.about-copy p + p {
  margin-top: 1rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 2rem 3rem;
}

.footer-inner > div:first-child {
  display: flex;
  gap: 0.55rem;
}

.muted {
  color: var(--faint);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

@media (max-width: 38rem) {
  .site-header {
    padding-block: 1.5rem;
  }

  .site-nav {
    gap: 1rem;
  }

  .site-nav a {
    font-size: 0.78rem;
  }

  .page {
    padding-top: 2.5rem;
  }

  .entry-heading {
    display: block;
  }

  .entry-date {
    margin-top: 0.2rem;
  }

  .project-entry {
    grid-template-columns: 1.5rem minmax(0, 1fr);
    gap: 0.65rem;
  }

  .footer-inner {
    display: block;
  }

  .footer-links {
    margin-top: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
