:root {
  --canvas: #e8e6e1;
  --card: #f7f6f3;
  --ink: #111111;
  --muted: #8a8782;
  --line: rgba(17, 17, 17, 0.08);
  --green: #19a34a;
  --radius: 28px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 5;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.8rem;
}

.skip-link:focus {
  top: 1rem;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 6;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--ink);
}

.frame {
  width: min(720px, calc(100% - 1.5rem));
  margin: 0.85rem auto 2.5rem;
  display: grid;
  gap: 0.75rem;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.5rem;
}

.bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  position: sticky;
  top: 0.75rem;
  z-index: 4;
}

.brand {
  text-decoration: none;
}

.mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 auto 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.nav {
  display: flex;
  gap: 0.85rem;
}

.nav a {
  text-decoration: none;
  font-size: 0.88rem;
  color: var(--muted);
}

.nav a:hover {
  color: var(--ink);
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.intro h1,
.card-head h2 {
  margin: 0;
  font-size: clamp(2.1rem, 7vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 700;
}

.lede {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.photo {
  padding: 0.55rem;
  overflow: hidden;
}

.photo img {
  width: 100%;
  display: block;
  border-radius: 22px;
  object-fit: cover;
}

.photo.closer img {
  aspect-ratio: 4 / 5;
  object-position: 50% 42%;
  filter: contrast(1.05);
}

.photo figcaption {
  margin: 0.7rem 0.4rem 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.card-head {
  margin-bottom: 1.1rem;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  display: grid;
  gap: 0.15rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
}

.timeline time {
  color: var(--muted);
  font-size: 0.88rem;
}

.timeline strong {
  display: block;
  font-weight: 600;
}

.timeline span {
  color: var(--muted);
}

.edu {
  display: grid;
  gap: 0.85rem;
}

.edu article {
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.edu strong {
  font-size: 1.05rem;
}

.edu p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.mail {
  display: inline-block;
  max-width: 100%;
  margin-top: 0.35rem;
  overflow-wrap: anywhere;
  font-size: clamp(1.2rem, 5.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.mail:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.links {
  display: flex;
  gap: 1rem;
  margin: 1rem 0 0;
}

.links a {
  color: var(--muted);
  text-decoration: none;
}

.legal-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0.6rem 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.legal-row a {
  color: var(--muted);
  text-decoration: none;
}

.legal {
  width: min(720px, calc(100% - 1.5rem));
  margin: 0.85rem auto 2.5rem;
}

.legal .card {
  padding: 1.6rem 1.5rem 2rem;
}

.legal h1 {
  margin-top: 0;
  letter-spacing: -0.04em;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.intro.reveal {
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.08s forwards;
}

.photo.reveal:not(.closer) {
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.16s forwards;
}

.reveal.is-visible {
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  .bar {
    flex-wrap: wrap;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    padding-top: 0.15rem;
  }

  .legal-row {
    flex-direction: column;
  }
}

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

  .reveal,
  .intro.reveal,
  .photo.reveal {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
