/* Personal landing page */

:root {
  --bg: #0f0f14;
  --bg-elevated: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.14);
  --text: #eceae4;
  --text-muted: rgba(236, 234, 228, 0.52);
  --accent: #c9b896;
  --accent-soft: rgba(201, 184, 150, 0.12);
  --orb-one: rgba(201, 184, 150, 0.07);
  --orb-two: rgba(120, 140, 180, 0.05);
  --radius: 18px;
  --max-width: 560px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Ambient background */

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.ambient-orb--one {
  width: 480px;
  height: 480px;
  top: -120px;
  right: -80px;
  background: var(--orb-one);
}

.ambient-orb--two {
  width: 360px;
  height: 360px;
  bottom: 10%;
  left: -100px;
  background: var(--orb-two);
}

/* Layout */

.page {
  position: relative;
  width: min(100% - 48px, var(--max-width));
  margin-inline: auto;
  padding: clamp(72px, 14vh, 120px) 0 clamp(48px, 8vh, 80px);
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 10vh, 88px);
  min-height: 100dvh;
}

/* Intro */

.intro {
  animation: fade-up 0.8s ease both;
}

.eyebrow {
  margin: 0 0 20px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0 0 24px;
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-size: clamp(2.75rem, 8vw, 4rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0;
  max-width: 44ch;
  font-size: 1.0625rem;
  color: var(--text-muted);
}

/* Work section */

.work {
  animation: fade-up 0.8s 0.12s ease both;
}

.work h2 {
  margin: 0 0 20px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Project card */

.project-card {
  display: block;
  padding: 28px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}

.project-card:hover {
  border-color: var(--border-hover);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.project-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.project-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.project-card__label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.project-card__arrow {
  font-size: 1.125rem;
  color: var(--text-muted);
  transition: transform 0.25s ease, color 0.25s ease;
}

.project-card:hover .project-card__arrow {
  transform: translateX(4px);
  color: var(--accent);
}

.project-card__title {
  margin: 0 0 10px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.625rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.project-card__desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Footer */

.footer {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  animation: fade-up 0.8s 0.24s ease both;
}

.footer a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

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

.footer__sep {
  margin-inline: 10px;
  opacity: 0.4;
}

/* Motion */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro,
  .work,
  .footer {
    animation: none;
  }

  .project-card {
    transition: none;
  }

  .project-card:hover {
    transform: none;
  }
}

@media (max-width: 480px) {
  .page {
    width: min(100% - 36px, var(--max-width));
  }

  .project-card {
    padding: 24px;
  }
}
