/* =========================================================
   Tokens
   ========================================================= */
:root {
  --ink: #1a1a1a;
  --ink-soft: rgba(26, 26, 26, 0.6);
  --paper: #f5f5f4;
  --accent: #8a8a86;
  --accent-strong: #45453f;
  --accent-soft: rgba(138, 138, 134, 0.16);
  --line: rgba(138, 138, 134, 0.32);
  --line-strong: rgba(138, 138, 134, 0.55);

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;

  --fs-name: clamp(2.25rem, 1.2rem + 4.5vw, 4rem);
  --fs-role: clamp(0.95rem, 0.85rem + 0.4vw, 1.15rem);
  --fs-section: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem);
  --fs-project-title: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  --space-page-y: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  --space-page-x: clamp(1.5rem, 0.8rem + 3vw, 4rem);
  --space-hero-gap: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  --space-project-gap: clamp(1rem, 0.6rem + 1.5vw, 2.5rem);
  --space-project-y: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);

  --max-width: 1180px;
}

/* =========================================================
   Reset
   ========================================================= */
* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(
      620px circle at 10% -8%,
      rgba(138, 138, 134, 0.14),
      transparent 60%
    ),
    radial-gradient(680px circle at 102% 6%, rgba(138, 138, 134, 0.08), transparent 55%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.2s ease, color 0.2s ease;
}

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

a:focus-visible,
*:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* =========================================================
   Layout
   ========================================================= */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: var(--space-page-y) var(--space-page-x);
}

/* =========================================================
   Hero (top section)
   ========================================================= */
.hero {
  display: grid;
  grid-template-columns: clamp(120px, 18vw, 200px) 1fr;
  align-items: start;
  gap: var(--space-hero-gap);
  padding-bottom: clamp(2.5rem, 1.8rem + 3vw, 4rem);
}

.photo-frame {
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  box-shadow: 0 24px 48px -24px rgba(26, 26, 26, 0.35),
    0 10px 24px -16px rgba(26, 26, 26, 0.16);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.02);
}

.identity {
  padding-top: 0.25rem;
  min-width: 0;
}

.eyebrow-role {
  font-family: var(--font-body);
  font-size: var(--fs-role);
  color: var(--accent-strong);
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 0.4rem;
}

.name {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: var(--fs-name);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: clamp(1rem, 0.8rem + 1vw, 1.5rem);
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0;
  row-gap: 0.5rem;
  font-size: var(--fs-small);
  color: var(--ink-soft);
  margin-bottom: clamp(1.25rem, 1rem + 1vw, 2rem);
}

.contact-list li {
  padding-inline: 0.85rem;
  border-left: 1px solid var(--line);
}

.contact-list li:first-child {
  padding-left: 0;
  border-left: none;
}

.contact-list a {
  border-bottom: 1px solid var(--line-strong);
}

.summary {
  max-width: 62ch;
  color: var(--ink);
}

/* =========================================================
   Work (bottom section)
   ========================================================= */
.section-heading {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: var(--fs-section);
  letter-spacing: -0.01em;
  padding-bottom: clamp(1rem, 0.8rem + 0.6vw, 1.5rem);
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: 0;
}

.project-list {
  display: block;
}

.project {
  display: grid;
  grid-template-columns: minmax(150px, 210px) 1fr;
  gap: var(--space-project-gap);
  padding-block: var(--space-project-y);
  border-bottom: 1px solid var(--line);
}

.project:last-child {
  border-bottom: none;
}

.project-meta {
  min-width: 0;
}

.project-title {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: var(--fs-project-title);
  line-height: 1.25;
  margin-bottom: 0.7rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-size: 0.75rem;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.22rem 0.6rem;
  line-height: 1.4;
}

.project-body {
  min-width: 0;
  max-width: 68ch;
}

.project-highlights li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.5rem;
}

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

.project-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  background: var(--accent-strong);
  border-radius: 50%;
}

/* =========================================================
   Responsive: tablet
   ========================================================= */
@media (max-width: 860px) {
  .project {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .tag-list {
    margin-top: 0.1rem;
  }
}

/* =========================================================
   Responsive: mobile
   ========================================================= */
@media (max-width: 640px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .photo-frame {
    width: clamp(110px, 32vw, 160px);
  }

  .contact-list {
    flex-direction: column;
  }

  .contact-list li {
    padding-inline: 0;
    border-left: none;
    padding-top: 0.1rem;
  }
}

/* =========================================================
   Motion — one quiet entrance for the hero only
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .photo-frame,
  .identity > * {
    opacity: 0;
    animation: rise 0.6s ease-out forwards;
  }

  .photo-frame {
    animation-delay: 0.05s;
  }

  .eyebrow-role {
    animation-delay: 0.1s;
  }

  .name {
    animation-delay: 0.18s;
  }

  .contact-list {
    animation-delay: 0.26s;
  }

  .summary {
    animation-delay: 0.34s;
  }

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