/* ============================================================
   HOME PAGE
   Page-specific layout: About, Pillars, Featured Work,
   Writing, Experience, Contact.
   ============================================================ */

/* ── ABOUT ──────────────────────────────────────────────── */
.about-text p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.about-text p:last-child { margin-bottom: 0; }

.about-aside h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  color: var(--ink);
}
.about-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.25rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--light-gray);
  font-size: 0.95rem;
}
.about-stat:last-child { border-bottom: none; }
.about-stat-label {
  color: var(--warm-gray);
  flex-shrink: 0;           /* label never gets squeezed by a long value */
}
.about-stat-value {
  font-weight: 600;
  color: var(--ink);
  text-align: right;        /* wrapped lines stay right-aligned under the value */
  min-width: 0;             /* allow shrink-to-fit so flex wrapping behaves */
}

/* ── PILLARS (How I Work) ───────────────────────────────── */
.pillars {
  margin-top: 2.5rem;
  gap: 2.5rem;
}
.pillar { background: var(--cream); }
.pillar-number {
  font-family: var(--serif);
  font-size: 2.5rem;
  color: var(--teal);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 1rem;
}
.pillar h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.pillar p {
  font-size: 0.95rem;
  color: var(--warm-gray);
  line-height: 1.65;
}

/* ── FEATURED WORK ──────────────────────────────────────── */
.project-list { margin-top: 2.5rem; }

.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.project-card:first-child { padding-top: 0; }
.project-card:last-child { border-bottom: none; }

/* Alternate image/text sides using CSS Grid `order` —
   leaves text direction untouched (no rtl bleed). */
.project-card:nth-child(even) .project-img  { order: 2; }
.project-card:nth-child(even) .project-meta { order: 1; }

.project-img {
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: var(--light-gray);
  position: relative;
}
.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease-slow);
}
/* Mouse hover AND keyboard focus-within (link inside card) */
.project-card:hover .project-img img,
.project-card:focus-within .project-img img { transform: scale(1.03); }

/* Placeholder used when a project has no thumbnail yet.
   Defaults to teal; add a .placeholder--* modifier for variety. */
.project-img--placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.35rem;
  padding: 1rem;
  text-align: center;
  background: linear-gradient(135deg, var(--teal), #3cc4b1);
}
.placeholder--teal  { background: linear-gradient(135deg, #1a9e8f, #3cc4b1); }
.placeholder--coral { background: linear-gradient(135deg, #e8614d, #f0a07a); }
.placeholder--navy  { background: linear-gradient(135deg, #2c3e6b, #5b7fb5); }
.placeholder--ink   { background: linear-gradient(135deg, #1a1a2e, #3a3a52); }

.project-title {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--ink);
  margin: 0.5rem 0 0.75rem;
  line-height: 1.3;
}
.project-desc {
  font-size: 0.95rem;
  color: var(--warm-gray);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
/* Secondary button treatment — outlined pill so the CTA reads as the
   primary action on the card without shouting like a filled teal button.
   Overrides the plain text-link styling that .link-arrow normally provides. */
.project-cta.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  padding: 0.65rem 1.4rem;
  border: 1px solid rgba(26, 158, 143, 0.4);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--teal-deep);
  font-size: 0.9rem;
  font-weight: 500;
  transition:
    background var(--ease-default),
    color var(--ease-default),
    border-color var(--ease-default),
    gap var(--ease-default);
}
.project-cta.link-arrow:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
  gap: 0.7rem;
}

.view-archive {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--warm-gray);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 0.25rem;
  transition: color var(--ease-default), border-color var(--ease-default);
}
.view-archive:hover {
  color: var(--teal);
  border-color: var(--teal);
}

/* ── WRITING ────────────────────────────────────────────── */
.writing-grid {
  margin-top: 2.5rem;
}
.writing-card {
  padding: 2rem;
  border-radius: 10px;
  background: var(--cream);
  border: 1px solid rgba(0, 0, 0, 0.03);
  color: inherit;
  display: block;
  transition: transform var(--ease-default), box-shadow var(--ease-default);
  overflow: hidden;              /* so thumbnail's full-bleed corners clip to the card radius */
}
/* Full-bleed thumbnail at the top of the card. Negative margins escape the
   card's 2rem padding; border-radius on the card crops the image corners. */
.writing-img {
  display: block;
  width: calc(100% + 4rem);
  max-width: none;                /* defeat base.css img { max-width: 100% } reset */
  margin: -2rem -2rem 1.5rem;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--light-gray);  /* neutral fallback if SVG fails to load */
}
.writing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  color: inherit;
}
/* Static variant for non-linked cards (e.g. the workshop).
   Kills the hover affordance so users don't misread it as clickable. */
.writing-card--static { cursor: default; }
.writing-card--static:hover {
  transform: none;
  box-shadow: none;
}
.writing-type {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.writing-card h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  line-height: 1.35;
}
.writing-card p {
  font-size: 0.85rem;
  color: var(--warm-gray);
  line-height: 1.6;
}

/* ── EXPERIENCE ─────────────────────────────────────────── */
/* Semantic ordered list; list-style removed globally in base.css */
.exp-timeline {
  margin-top: 2.5rem;
  padding: 0;
}
.exp-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  align-items: baseline;
}
.exp-item:last-child { border-bottom: none; }
.exp-dates {
  font-size: 0.85rem;
  color: var(--warm-gray);
  font-weight: 500;
}
.exp-company {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin-bottom: 0.15rem;
}
.exp-role {
  font-size: 0.9rem;
  color: var(--teal-deep);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.exp-detail {
  font-size: 0.9rem;
  color: var(--warm-gray);
  line-height: 1.6;
}

/* ── CONTACT ────────────────────────────────────────────── */
.contact { text-align: center; }
.contact .section-heading { color: var(--white); }
.contact .section-label { color: rgba(255, 255, 255, 0.4); }
.contact-text {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 500px;
  margin: 0 auto 2rem;
}
.contact-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .project-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  /* Reset image/meta order so all cards read image-then-text on mobile */
  .project-card:nth-child(even) .project-img,
  .project-card:nth-child(even) .project-meta { order: initial; }

  .exp-item { grid-template-columns: 1fr; gap: 0.5rem; padding: 1.5rem 0; }
  .exp-dates {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: var(--radius-pill);
    background: var(--teal-light);
    color: var(--teal-deep);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
  }
}
