/* Typography: Libre Caslon Text ≈ Adobe Caslon Pro; Crimson Text ≈ Minion Pro */

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

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

body {
  margin: 0;
  min-height: 100dvh;
  font-family: "Crimson Text", "Minion Pro", Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #f4f0e8;
  background-color: #1a1f24;
}

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100dvh;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3rem);
  background-image: url("https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&w=2000&q=80");
  background-size: cover;
  background-position: center 35%;
  background-attachment: fixed;
}

.page__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12, 16, 20, 0.55) 0%,
    rgba(12, 16, 20, 0.72) 45%,
    rgba(12, 16, 20, 0.85) 100%
  );
  pointer-events: none;
}

.hero,
.projects,
.footer {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  margin-inline: auto;
  width: 100%;
}

/* —— Hero —— */

.hero {
  text-align: center;
  margin-bottom: clamp(2.5rem, 8vw, 4rem);
}

.hero__eyebrow {
  margin: 0 0 0.75rem;
  font-family: "Crimson Text", "Minion Pro", Georgia, serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 240, 232, 0.75);
}

.hero__title {
  margin: 0 0 1rem;
  font-family: "Libre Caslon Text", "Adobe Caslon Pro", Caslon, Georgia, serif;
  font-size: clamp(2.5rem, 8vw, 3.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.hero__lead {
  margin: 0 auto;
  max-width: 28rem;
  font-size: clamp(1.125rem, 2.5vw, 1.35rem);
  color: rgba(244, 240, 232, 0.9);
}

/* —— Projects —— */

.projects__heading {
  margin: 0 0 1.25rem;
  font-family: "Libre Caslon Text", "Adobe Caslon Pro", Caslon, Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.04em;
}

.projects__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project__link {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: inherit;
  background: rgba(244, 240, 232, 0.08);
  border: 1px solid rgba(244, 240, 232, 0.18);
  border-radius: 2px;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.project__link:hover,
.project__link:focus-visible {
  background: rgba(244, 240, 232, 0.14);
  border-color: rgba(244, 240, 232, 0.35);
  transform: translateY(-1px);
  outline: none;
}

.project__link:focus-visible {
  box-shadow: 0 0 0 2px rgba(244, 240, 232, 0.5);
}

.project__logo {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
}

.project__body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.project__name {
  display: block;
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto,
    sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.project__desc {
  display: block;
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto,
    sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(244, 240, 232, 0.85);
}

/* —— Footer —— */

.footer {
  margin-top: clamp(2.5rem, 8vw, 4rem);
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(244, 240, 232, 0.5);
}

/* —— Responsive tweaks —— */

@media (max-width: 480px) {
  .page {
    background-attachment: scroll;
  }

  .project__link {
    padding: 1rem 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project__link {
    transition: none;
  }

  .project__link:hover,
  .project__link:focus-visible {
    transform: none;
  }
}
