/* ============================================================
   COMPONENTS
   Shared by the home page, the resume, and any page added later.
   Everything here is either lifted from the original stylesheet
   or built from a component that already existed.
   ============================================================ */

/* ---------- SECTION HEADINGS ---------- */
.section-title {
  font-family: 'Instrument Serif', serif; font-style: italic; font-size: var(--fs-display); color: var(--dark);
  text-align: center; letter-spacing: 0.02em; line-height: 1.3;
  margin: 0 auto; width: var(--w-wide); max-width: calc(100% - 144px);
}
.section-title--sm { font-size: var(--fs-h2); }

/* Kicker + title pair, reusing the case-study kicker treatment. */
.section-head {
  width: var(--w-wide); max-width: calc(100% - 144px);
  margin: 0 auto 56px; text-align: center;
}
.section-head .section-kicker {
  font-size: var(--fs-kicker); font-weight: 300; letter-spacing: var(--ls-kicker);
  text-transform: uppercase; color: var(--muted); margin-bottom: 16px;
}
.section-head .section-title { margin-bottom: 14px; }
.section-head .section-intro {
  font-size: 16px; font-weight: 300; color: rgba(28, 28, 28, 0.6);
  line-height: 1.6; max-width: 520px; margin: 0 auto;
}

/* ---------- TECH TAGS ---------- */
.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-tag {
  border: 1px solid rgba(28, 28, 28, 0.2); padding: 6px 12px;
  font-size: 12px; font-weight: 300; color: var(--dark); white-space: nowrap;
}
.tech-tag--onlight { border-color: rgba(255, 255, 255, 0.3); color: rgba(255, 255, 255, 0.85); }

/* ---------- LINK ROW (GitHub / Demo / Prototype) ---------- */
/* Built from .exp-card-link so the underline treatment matches the carousel. */
.link-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.link-row a {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 300; color: var(--dark);
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  border-bottom: 1px solid rgba(28, 28, 28, 0.3); padding-bottom: 2px;
  transition: color var(--dur-hover), border-color var(--dur-hover), opacity var(--dur-hover);
}
.link-row a:hover { border-color: var(--dark); opacity: 0.65; }
.link-row a svg { flex-shrink: 0; }
.link-row--onlight a { color: rgba(255, 255, 255, 0.85); border-bottom-color: rgba(255, 255, 255, 0.35); }
.link-row--onlight a:hover { color: var(--white); border-color: var(--white); }

/* ---------- WORK CARD (secondary projects) ---------- */
.work-card {
  display: block; text-decoration: none; margin: 0 auto 28px;
  width: var(--w-card); max-width: calc(100% - 88px);
  border: 1px solid rgba(28, 28, 28, 0.15); padding: 36px;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.work-card:hover { border-color: rgba(28, 28, 28, 0.45); background: rgba(255, 255, 255, 0.35); }
.work-card-tag {
  font-size: var(--fs-kicker); font-weight: 300; color: rgba(28, 28, 28, 0.45);
  letter-spacing: 0.25em; text-transform: uppercase; margin-bottom: 14px;
}
.work-card h3 {
  font-family: 'Instrument Serif', serif; font-style: italic; font-size: 30px; font-weight: 400; color: var(--dark);
  letter-spacing: 0.02em; line-height: 1.25; margin-bottom: 12px;
}
.work-card p { font-size: 14px; font-weight: 300; color: rgba(28, 28, 28, 0.6); line-height: 1.6; max-width: 520px; }
.work-card-link {
  display: inline-block; margin-top: 20px;
  font-size: 12px; font-weight: 300; color: var(--dark);
  letter-spacing: var(--ls-btn); text-transform: uppercase;
  border-bottom: 1px solid rgba(28, 28, 28, 0.3); padding-bottom: 2px;
}

/* ---------- EXPERIENCE / RESUME ROW ---------- */
.worked-list { width: var(--w-card); max-width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.worked-item { position: relative; padding-bottom: 24px; border-bottom: 1px solid rgba(28, 28, 28, 0.15); }
.worked-item:first-child { padding-top: 0; }
.worked-row { display: flex; align-items: flex-start; justify-content: space-between; }
.worked-company { font-size: var(--fs-h2); font-weight: 500; color: var(--dark); line-height: 1; }
.worked-role {
  font-size: 14px; font-weight: 300; color: rgba(28, 28, 28, 0.6);
  margin-top: 8px; letter-spacing: 0.04em;
}
.worked-date {
  font-size: 12px; font-weight: 300; color: var(--dark); letter-spacing: 0.46em;
  white-space: nowrap; width: 155px; padding-top: 10px; text-align: right;
}
.worked-desc { font-size: 16px; font-weight: 300; color: var(--dark); line-height: 1.3; margin-top: 18px; width: 319px; }

/* ---------- BUTTONS ---------- */
.book-call-btn {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 20px; padding: 14px 28px;
  background: var(--brand-blue); color: var(--white);
  font-size: var(--fs-meta); font-weight: 300; letter-spacing: var(--ls-btn);
  text-transform: uppercase; text-decoration: none;
  transition: background var(--dur-hover), opacity var(--dur-hover);
}
.book-call-btn:hover { background: var(--brand-blue-hover); }
.book-call-btn svg { flex-shrink: 0; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px;
  border: 1px solid rgba(28, 28, 28, 0.3); color: var(--dark);
  font-size: var(--fs-meta); font-weight: 300; letter-spacing: var(--ls-btn);
  text-transform: uppercase; text-decoration: none;
  transition: border-color var(--dur-hover), background var(--dur-hover);
}
.btn-ghost:hover { border-color: var(--dark); background: rgba(255, 255, 255, 0.4); }

/* ---------- COMING SOON ---------- */
.coming-soon-banner {
  margin: 0 auto; width: var(--w-card); max-width: calc(100% - 88px);
  border: 1px solid rgba(28, 28, 28, 0.15); padding: 28px 36px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.coming-soon-text {
  font-size: 14px; font-weight: 300; color: rgba(28, 28, 28, 0.45);
  letter-spacing: 0.2em; text-transform: uppercase;
}
.coming-soon-badge {
  font-size: var(--fs-kicker); font-weight: 300; color: var(--dark);
  letter-spacing: 0.25em; text-transform: uppercase;
  border: 1px solid var(--dark); padding: 6px 14px; white-space: nowrap; opacity: 0.7;
}

/* A scaffold slot the user still has to fill in. Deliberately obvious. */
.todo-slot {
  border: 1px dashed rgba(28, 28, 28, 0.3); background: rgba(28, 28, 28, 0.02);
  padding: 20px 24px; margin-top: 18px;
}
.todo-slot p {
  font-size: 12px; font-weight: 300; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(28, 28, 28, 0.45); line-height: 1.7;
}

@media (max-width: 860px) {
  .section-title { max-width: calc(100% - 48px); font-size: 34px; }
  .section-title--sm { font-size: 26px; }
  .section-head { max-width: calc(100% - 48px); margin-bottom: 36px; }
  .work-card, .coming-soon-banner { max-width: calc(100% - 48px); padding: 28px 24px; }
  .coming-soon-banner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .worked-row { flex-direction: column; gap: 6px; }
  .worked-date { width: auto; text-align: left; padding-top: 0; letter-spacing: 0.28em; }
  .worked-desc { width: 100%; }
}
