/* Shared by the inner pages (About, Work, Stack, Contact) and the pages at the root (the
   under construction front page and the 404): page header, numbered sections, photo frames.
   Loads after styles.css. */
/* Hero */
.ab-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 64px;
  align-items: start;
  padding-top: 88px;
}
.ab-hero__eyebrow {
  color: var(--brand);
}
.ab-hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(35px, 4.9vw, 67px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 14ch;
}
.ab-hero__title em {
  font-style: italic;
  color: var(--brand);
}
.ab-hero__lede {
  margin-top: 28px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 58ch;
}
/* Sections: numbered label on the left, content on the right */
.ab-sec {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: 32px;
  padding-top: var(--space);
}
.ab-sec__label {
  margin: 0;
}
.ab-sec__label span {
  color: var(--brand);
  margin-right: 6px;
}
/* Stack */
.stack {
  margin: 0;
  border-top: 1px solid var(--line);
}
.stack div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 32px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.stack dt {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
}
.stack dd {
  margin: 0;
  color: var(--muted);
  max-width: 56ch;
}
/* Page header without a photo (Work) */
.ab-hero--solo {
  grid-template-columns: 1fr;
}
.ab-hero--solo .ab-hero__title {
  max-width: 16ch;
}
/* Under construction (index.html while the portfolio isn't public yet) */
.uc-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}
.uc-page .foot {
  margin-top: auto;
}
.uc {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px 80px;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 96px;
}
.uc__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(39px, 5.6vw, 77px);
  line-height: 1;
  letter-spacing: -0.035em;
}
.uc__title em {
  font-style: italic;
  color: var(--brand);
}
.uc__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.uc__card {
  padding: 32px;
  background: var(--soft);
  border-radius: var(--radius-lg);
}
.uc__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.uc__head .label {
  margin: 0;
}
.uc__pct {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 35px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.uc__bar {
  height: 8px;
  margin-top: 20px;
  border-radius: 9999px;
  background: var(--tint);
  overflow: hidden;
}
.uc__bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--brand);
  transition: width 1.2s var(--ease);
}
.uc__status {
  min-height: 3em;
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}
.uc__list {
  list-style: none;
  margin: 16px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  font-size: 15px;
  color: var(--ink);
}
.uc__list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.uc__list li::before {
  content: '';
  flex: none;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--muted);
  border-radius: 4px;
  transform: translateY(2px);
}
.uc__list li.done {
  color: var(--muted);
  text-decoration: line-through;
}
.uc__list li.done::before {
  border-color: var(--brand);
  background: var(--brand)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 7.2 2.3 2.3 4.7-4.9'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}
/* 404 */
.nf {
  min-height: calc(100vh - 300px);
  min-height: calc(100svh - 300px);
  padding-top: 120px;
}
.nf__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(35px, 5.3vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 14ch;
}
.nf__title em {
  font-style: italic;
  color: var(--brand);
}
.nf__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
/* Work, Stack and Contact: empty until José fills them */
@media (max-width: 860px) {
  .ab-hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 48px;
  }
  .ab-sec {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .nf {
    padding-top: 64px;
  }
  .uc {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 48px;
    padding-bottom: 56px;
  }
  .uc__card {
    padding: 24px;
  }
  .stack div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
