/* ==========================================================================
   EDWARD — PORTFOLIO SUBPAGES (About, Work, CareLink, Blog)
   Loaded after ../style.css. Reuses the homepage design tokens and
   components (glass-card, section-tag, section-title, bento, subgrid,
   stack-grid, quote-box, tech-tag, contact-card).
   Palette: bg #0F172A / surface #1E293B / text #F1F5F9 / accent #38BDF8 /
   muted #94A3B8. Type: Inter.
   ========================================================================== */

/* --- Page hero: eyebrow + big title, homepage language, calmer layout --- */
.page-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 148px 24px 44px;
  position: relative;
  z-index: 1;
}

.page-title {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--text-bright);
  margin: 10px 0 16px;
}

.page-intro {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
  max-width: 660px;
  line-height: 1.6;
}

.page-intro strong { color: var(--text-bright); }

/* --- Content sections --- */
.page-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 24px 72px;
  position: relative;
  z-index: 1;
}

.prose { max-width: 760px; }

.prose .about-text { font-size: 16px; }

/* --- Case-study bullets (full sentences, not short specs) --- */
.case-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 820px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

.case-list li { display: flex; gap: 10px; }

.case-list li::before {
  content: '▪';
  color: var(--accent-red);
  flex: none;
}

/* --- Chip row (Work background) --- */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

/* --- Stack cards (Work) --- */
.stack-card .stack-idx {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-red);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 10px;
}

.stack-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 6px;
}

.stack-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --- Blog index rows --- */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 860px;
}

.blog-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  flex-wrap: wrap;
}

.blog-row a.blog-title {
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 700;
  color: var(--text-bright);
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.blog-row a.blog-title:hover { color: var(--accent-red); }

.blog-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
}

/* --- Footer: same two lines as the homepage --- */
.page-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: var(--text-dim);
  position: relative;
  z-index: 1;
}

/* --- Nav: seven links fit the dock; tighten below 1180px --- */
/* The homepage's dock-right is a plain block div, so the status sits above
   the CTA, and .dock-cta is unstyled — CONTACT drops to a second line as a
   default blue link. On subpages keep it one row and styled. */
.dock-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.dock-cta {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
}

.dock-cta:hover { color: var(--text-bright); }

@media (max-width: 1180px) {
  .nav-dock { gap: 12px; padding: 7px 14px; }
  .nav-item { padding: 6px 8px; font-size: 12px; }
  .dock-status { display: none; }
}

@media (max-width: 900px) {
  .dock-cta { display: none; }
}

@media (max-width: 768px) {
  .page-hero { padding: 120px 18px 32px; }
  .page-section { padding: 8px 18px 56px; }
}

/* --- Swarm intro splash: swarm-init.js hardcodes ./favicon.png, which 404s
   from a subfolder (the shared script is not edited and the file is not
   copied per the brief). Hide the broken image; the intro is just the dark
   splash behind the tour. --- */
.build-intro img { display: none; }
