:root {
  --bg: #f4f0e7;
  --bg-deep: #efe4d6;
  --ink: #1f1b16;
  --muted: #48595c;
  --accent: #3c93d2;
  --accent-soft: #a8d2f4;
  --card: #fffdf8;
  --shadow: 0 28px 60px rgba(40, 28, 16, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #ffffff 0%, var(--bg) 38%, var(--bg-deep) 100%);
  min-height: 100vh;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 64px;
  position: relative;
}

.page::before {
  content: "";
  position: absolute;
  inset: -40px 0 auto 0;
  height: 260px;
  background: linear-gradient(110deg, rgba(58, 212, 127, 0.2), rgba(168, 204, 244, 0.8));
  filter: blur(0px);
  z-index: -1;
  border-radius: 32px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) auto;
  gap: 28px;
  align-items: center;
  padding: 40px;
  border-radius: 28px;
  background: rgba(248, 255, 248, 0.9);
  box-shadow: var(--shadow);
  animation: rise 700ms ease-out both;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  color: var(--muted);
}

.hero__title {
  font-family: "Fraunces", "Georgia", serif;
  font-size: clamp(2.8rem, 4vw, 4.2rem);
  line-height: 1.05;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 34ch;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 0.95rem;
  color: var(--muted);
}

.hero__card-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 12px;
}

.hero__card ul {
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 0.95rem;
}

.hero__card li::before {
  content: "•";
  color: var(--accent);
  margin-right: 8px;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3.5fr);
  gap: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(31, 27, 22, 0.08);
  animation: fadeIn 800ms ease-out both;
}

.section:nth-child(2) {
  animation-delay: 120ms;
}

.section:nth-child(3) {
  animation-delay: 240ms;
}

.section:nth-child(4) {
  animation-delay: 360ms;
}

.section__title h2 {
  font-family: "Fraunces", "Georgia", serif;
  font-size: 2rem;
  margin-bottom: 8px;
}

.section__title p {
  color: var(--muted);
  line-height: 1.5;
}

.section__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.entry {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px rgba(31, 27, 22, 0.05);
}

.entry h3 {
  font-size: 1.1rem;
}

.entry p {
  color: var(--muted);
  line-height: 1.6;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  padding: 20px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
  min-height: 180px;
}

.card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  width: fit-content;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.card__button:hover,
.card__button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(60, 147, 210, 0.25);
}

.card h3 {
  font-size: 1.15rem;
}

.card p {
  color: var(--muted);
  line-height: 1.5;
}

.card span {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--accent);
}

.footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: center;
}

.page-nav__link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(31, 27, 22, 0.15);
  transition: background 150ms ease, transform 150ms ease;
}

.page-nav__link:hover,
.page-nav__link:focus-visible {
  background: rgba(60, 147, 210, 0.12);
  transform: translateY(-1px);
}

.project__placeholder {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  text-align: center;
}

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

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

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .page {
    padding: 32px 18px 48px;
    gap: 48px;
  }

  .hero {
    padding: 28px;
  }

  .hero__meta {
    flex-direction: column;
  }
}

/* right-side headshot layout */
.hero__headshot-frame {
  display: grid;
  place-items: center;
  width: 180px;
  height: 180px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(6, 135, 255, 0.18), rgba(168, 225, 244, 0.7));
  padding: 0;
}

.hero__headshot {
  width: 100%;
  height: 100%;
  border-radius: 99px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.hero__headshot--wide {
  height: auto;
  border-radius: 16px;
  object-fit: cover;
}

.page--detail .hero {
  grid-template-columns: 1fr;
  text-align: left;
}

.page--detail .hero__subtitle {
  max-width: 54ch;
}

.page--detail .hero__headshot-frame {
  width: min(520px, 100%);
  height: auto;
  padding: 16px;
  margin: 0 auto;
}

.page--detail .section {
  grid-template-columns: 1fr;
}

.page--detail .section__title,
.page--detail .section__body {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.comparison-pair {
  background: var(--card);
  border-radius: 18px;
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 18px;
  box-shadow: inset 0 0 0 1px rgba(31, 27, 22, 0.06);
}

.comparison-pair__media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.comparison-pair__media figure {
  display: grid;
  gap: 10px;
}

.comparison-pair__media img {
  width: 100%;
  border-radius: 12px;
  display: block;
  object-fit: cover;
}

.comparison-pair__media figcaption {
  font-size: 0.9rem;
  color: var(--muted);
}

.comparison-pair__copy h3 {
  font-family: "Fraunces", "Georgia", serif;
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.comparison-pair__copy p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .comparison-pair {
    grid-template-columns: 1fr;
  }

  .comparison-pair__media {
    grid-template-columns: 1fr;
  }
}
