/* /resume/ — builds on collection.css, which supplies the page shell,
   .eyebrow, .prose, .badge and the palette. */

#content.resume {
  max-width: 1000px;
}

/* ---------------------------------------------------------------------------
   Header
   --------------------------------------------------------------------------- */
.resume-headline {
  color: var(--accent-clr);
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 1.1rem;
}

.resume-summary {
  max-width: 62ch;
  font-size: 0.98rem;
}

.resume-summary p:last-child {
  margin-bottom: 0;
}

.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.6rem 0 1.2rem;
}

.btn {
  display: inline-block;
  color: var(--text-clr);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--line-clr);
  border-radius: 0.4em;
  padding: 0.6em 1.1em;
  transition: background 160ms ease, border-color 160ms ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--hover-clr);
  border-color: var(--accent-clr);
}

.btn.primary {
  background: var(--accent-clr);
  border-color: var(--accent-clr);
  color: #fff;
}

.btn.primary:hover,
.btn.primary:focus-visible {
  filter: brightness(1.12);
  background: var(--accent-clr);
}

.resume-contact {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.3rem;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--secondary-text-clr);
}

.resume-contact a {
  color: var(--secondary-text-clr);
  text-decoration: none;
  border-bottom: 1px solid var(--line-clr);
  transition: color 150ms ease, border-color 150ms ease;
}

.resume-contact a:hover,
.resume-contact a:focus-visible {
  color: var(--accent-clr);
  border-color: var(--accent-clr);
}

/* ---------------------------------------------------------------------------
   Sections
   --------------------------------------------------------------------------- */
.resume-section {
  margin-top: clamp(2.6rem, 6vh, 4rem);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--secondary-text-clr);
  margin: 0 0 1.6rem;
}

.section-label::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--line-clr);
}

/* ---------------------------------------------------------------------------
   Experience: a spine down the left, one node per role.

   The duration badge is real information -- it makes the shape of a career
   legible at a glance, which a list of date ranges does not.
   --------------------------------------------------------------------------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

/* The spine itself. Stops short at the bottom so it reads as a run of roles
   rather than an arrow pointing at nothing. */
.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.55rem;
  bottom: 1.6rem;
  width: 1px;
  background: linear-gradient(
    to bottom,
    var(--accent-clr) 0%,
    var(--line-clr) 22%,
    var(--line-clr) 100%
  );
}

.tl-item {
  position: relative;
  padding: 0 0 2.4rem 2.1rem;
}

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-dot {
  position: absolute;
  left: 0;
  top: 0.42rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--base-clr);
  border: 2px solid var(--line-clr);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.tl-item.is-current .tl-dot {
  border-color: var(--accent-clr);
  box-shadow: 0 0 0 4px rgba(94, 99, 255, 0.16);
}

.tl-item:hover .tl-dot {
  border-color: var(--accent-clr);
}

.tl-dates {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.7rem;
  margin: 0 0 0.35rem;
  font-size: 0.76rem;
  color: var(--secondary-text-clr);
  letter-spacing: 0.04em;
}

.tl-range {
  font-variant-numeric: tabular-nums;
}

.tl-duration {
  border: 1px solid var(--line-clr);
  border-radius: 0.3em;
  padding: 0.1em 0.45em;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
}

.tl-title {
  color: var(--text-clr);
  font-size: clamp(1.05rem, 2.6vw, 1.2rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 0.2rem;
}

.tl-org {
  color: var(--accent-clr);
  font-size: 0.92rem;
  font-weight: 500;
  margin: 0 0 0.7rem;
}

.tl-detail {
  font-size: 0.94rem;
  line-height: 1.7;
  max-width: 68ch;
}

.tl-detail ul {
  padding-left: 1.15rem;
}

.tl-detail > ul > li {
  margin-bottom: 0.5rem;
}

/* Nested bullets step down in weight rather than repeating the same dot. */
.tl-detail ul ul {
  margin: 0.4rem 0 0.2rem;
  padding-left: 1.1rem;
  list-style: none;
}

.tl-detail ul ul > li {
  position: relative;
  padding-left: 0.9rem;
  color: var(--secondary-text-clr);
  font-size: 0.92em;
  margin-bottom: 0.3rem;
}

.tl-detail ul ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 1px;
  background: var(--line-clr);
}

/* ---------------------------------------------------------------------------
   Education
   --------------------------------------------------------------------------- */
.school-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.4rem;
}

.school {
  border-left: 2px solid var(--line-clr);
  padding: 0.1rem 0 0.1rem 1.1rem;
  transition: border-color 170ms ease;
}

.school:hover {
  border-color: var(--accent-clr);
}

.school-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.9rem;
}

.school-credential {
  color: var(--text-clr);
  font-size: 1.02rem;
  font-weight: 600;
  margin: 0;
}

.school-years {
  font-size: 0.76rem;
  color: var(--secondary-text-clr);
  font-variant-numeric: tabular-nums;
}

.school-meta {
  color: var(--secondary-text-clr);
  font-size: 0.88rem;
  margin: 0.25rem 0 0;
}

.school-note {
  margin-left: 0.6rem;
  border: 1px solid var(--line-clr);
  border-radius: 0.3em;
  padding: 0.08em 0.45em;
  font-size: 0.76rem;
}

.school-detail {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  color: var(--secondary-text-clr);
}

.school-detail p:last-child,
.school-detail ul:last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------------------------------------
   Skills: a four-segment meter per skill.

   Four segments because the model has four levels -- the meter is the data,
   not decoration.
   --------------------------------------------------------------------------- */
.skill-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.6rem 2.4rem;
}

.skill-group-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-clr);
  margin: 0 0 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line-clr);
}

.skill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.skill {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.88rem;
}

.skill-name {
  color: var(--text-clr);
  min-width: 0;
  overflow-wrap: anywhere;
}

.meter {
  display: inline-flex;
  gap: 3px;
}

.seg {
  width: 16px;
  height: 5px;
  border-radius: 1px;
  background: var(--hover-clr);
  border: 1px solid var(--line-clr);
}

.seg.on {
  background: var(--accent-clr);
  border-color: var(--accent-clr);
}

.skill-level {
  font-size: 0.72rem;
  color: var(--secondary-text-clr);
  min-width: 6.2em;
  text-align: right;
}

/* ---------------------------------------------------------------------------
   Narrow screens
   --------------------------------------------------------------------------- */
@media (max-width: 800px) {
  .skill {
    grid-template-columns: 1fr auto;
    gap: 0.4rem 0.7rem;
  }

  /* The word already says the level; the meter carries it visually. */
  .skill-level {
    display: none;
  }

  .tl-item {
    padding-left: 1.7rem;
    padding-bottom: 2rem;
  }

  .resume-actions .btn {
    flex: 1 1 auto;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tl-dot,
  .school,
  .btn,
  .resume-contact a {
    transition: none;
  }
}
