:root {
  --text: #101828;
  --text-muted: #475467;
  --text-faint: #98a2b3;
  --bg: #ffffff;
  --rule: #eaecf0;
  --pad-x: clamp(20px, 4vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ------- Header ------- */
.site-header {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px var(--pad-x);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text);
}

.site-nav {
  display: flex;
  gap: clamp(16px, 3vw, 40px);
}

.site-nav a {
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}
.site-nav a:hover { text-decoration: underline; }

/* ------- Hero ------- */
.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 600px) 1fr;
  grid-template-rows: auto 1fr auto;
  padding: 24px var(--pad-x) 40px;
  gap: 24px;
}

.hero-intro {
  grid-column: 1;
  grid-row: 1;
  margin: 16px 0 0;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.55;
  color: #1d2939;
}

.hero-photo {
  grid-column: 1;
  grid-row: 3;
  margin: 0;
  align-self: end;
}

.hero-photo img {
  display: block;
  width: 100%;
  max-width: 580px;
  height: auto;
}

.hero-socials {
  grid-column: 2;
  grid-row: 3;
  align-self: end;
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(14px, 2vw, 36px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-socials a {
  font-weight: 700;
  font-size: clamp(15px, 1.4vw, 18px);
  text-decoration: none;
  white-space: nowrap;
}
.hero-socials a:hover { text-decoration: underline; }

/* ------- Sections ------- */
.section {
  padding: 120px var(--pad-x) 0;
}
.section:last-of-type { padding-bottom: 48px; }

.section h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 48px;
}
.section h2 + .prose,
.section h2 + .projects-grid { margin-top: 0; }
.section h2:not(:first-child) { margin-top: 120px; }

.prose p {
  max-width: 620px;
  margin: 0 0 24px;
  color: var(--text-muted);
}

.prose a { color: var(--text); font-weight: 500; text-decoration: underline; }

/* ------- Project cards ------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 72px 40px;
}

.pcard-media {
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #fcfcfd;
  aspect-ratio: 16 / 10;
  padding: 40px;
  overflow: hidden;
}

.pcard-media img {
  max-width: 70%;
  max-height: 75%;
  object-fit: contain;
}

a.pcard-media { transition: box-shadow 0.2s ease; }
a.pcard-media:hover { box-shadow: 0 4px 24px rgba(16, 24, 40, 0.08); }

.pcard-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.pcard-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  min-width: 0;
}
.pcard-name svg { flex: 0 0 auto; color: var(--text); }
a.pcard-name:hover { text-decoration: underline; }

.pcard-domain {
  font-size: 17px;
  color: var(--text-faint);
  text-decoration: none;
  white-space: nowrap;
}
.pcard-domain:hover { text-decoration: underline; }

.pcard-desc {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ------- Year list (reading-list format) ------- */
.year-list { margin-top: 56px; }

.year-row {
  display: grid;
  grid-template-columns: 260px minmax(0, 620px);
  gap: 24px;
}

.year-label {
  margin: 0;
  font-weight: 700;
  font-size: 17px;
}

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

.entry-list li { margin-bottom: 36px; }
.entry-list li:last-child { margin-bottom: 0; }

.entry-list a { text-decoration: none; }
.entry-list a:hover strong { text-decoration: underline; }

.entry-list strong {
  font-size: 18px;
  font-weight: 700;
  margin-right: 12px;
}

.entry-list span { color: var(--text-faint); }

.year-row + .year-row { margin-top: 72px; }

.entry-list--stacked strong {
  display: block;
  margin: 0 0 4px;
}

.entry-list--stacked span {
  display: block;
  color: var(--text-muted);
}

.entry-list--stacked li { margin-bottom: 32px; }
.entry-list--stacked li:last-child { margin-bottom: 0; }

/* ------- Logo strip ------- */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px 48px;
  max-width: 760px;
}

.logo-strip img {
  height: 34px;
  width: auto;
  filter: grayscale(1) contrast(0.85);
  opacity: 0.85;
}

/* ------- Playbook tips ------- */
.tips {
  max-width: 620px;
  margin-top: 8px;
}

.tip { margin-bottom: 40px; }
.tip:last-child { margin-bottom: 0; }

.tip strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.tip p {
  margin: 0;
  color: var(--text-muted);
}

/* ------- Footer ------- */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 120px var(--pad-x) 48px;
}

.site-footer p { margin: 0; color: var(--text-muted); font-size: 15px; }

/* ------- Responsive ------- */
@media (max-width: 1000px) {
  .projects-grid { grid-template-columns: 1fr 1fr; gap: 56px 32px; }
}

@media (max-width: 760px) {
  .site-header { padding-block: 16px; gap: 16px; }
  .brand { font-size: 16px; gap: 8px; }
  .dot { width: 11px; height: 11px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 15px; }

  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .hero-intro, .hero-photo, .hero-socials {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }
  .hero-photo { margin-top: 24px; }
  .hero-socials { margin-top: 8px; gap: 16px 20px; justify-content: flex-start; }

  .section { padding-top: 80px; }
  .section h2:not(:first-child) { margin-top: 80px; }

  .projects-grid { grid-template-columns: 1fr; gap: 48px; }

  .year-row { grid-template-columns: 1fr; gap: 16px; }
  .entry-list li { margin-bottom: 24px; }
  .entry-list strong { display: block; margin: 0 0 2px; }

  .logo-strip { gap: 24px 32px; }
  .logo-strip img { height: 26px; }
}

@media (max-width: 480px) {
  .site-header {
    flex-wrap: wrap;
    row-gap: 6px;
  }
  .brand { white-space: nowrap; }
}
