/* =========================================================
   Garner Legacy: Home, the record and ALPHA sections.
   Enqueued by gl_enqueue_page_css('home'), which WordPress prints BEFORE
   layout.css, so any rule that overrides layout.css needs more specificity.
   Tokens come from base.css. Space scale used here: 4, 8, 12, 16,
   24, 32, 48, 64, 96 (px), written in rem against the 17px root.
   ========================================================= */

/* =========================================================
   The Record
   Leads with the head-coaching record and the award; honors and
   counts sit beside it; the NFL career supports underneath.
   ========================================================= */
.record {
  padding: var(--section-y) 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.record__bg { position: absolute; inset: 0; z-index: 0; }
.record__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.2;
  filter: grayscale(0.35) contrast(1.1) brightness(0.7);
}
.record::after {
  content: '';
  position: absolute; inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(10,11,13,0.45) 0%, rgba(10,11,13,0.92) 75%),
    linear-gradient(180deg, var(--gl-black), rgba(10,11,13,0.55) 28%, rgba(10,11,13,0.6) 72%, var(--gl-black));
}
.record > :not(.record__bg) { position: relative; z-index: 3; }

.record__body {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .record__body {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }
}

/* The number */
.record__lead { display: grid; gap: 0.75rem; align-content: end; }
.record__num {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(5rem, 10.5vw, 9.75rem);
  line-height: 0.82;
  letter-spacing: -0.045em;
  color: var(--gl-ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  margin-left: -0.04em; /* optical: the 1 carries side bearing */
}
.record__bar {
  display: inline-block;
  width: 0.32em;
  height: 0.08em;
  background: var(--gl-red);
  vertical-align: 0.3em;
  margin: 0 0.08em;
  border-radius: 1px;
}
.record__label {
  margin: 0.25rem 0 0;
  font: 700 var(--fs-eyebrow)/1.4 var(--ff-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gl-ink-dim);
}
.record__award {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--gl-red);
  max-width: 22ch;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--gl-ink);
}
.record__award-year { color: var(--gl-red-text); }

/* Honors */
.record__side { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); }
.record__honors {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--gl-line);
}
.record__honors li {
  display: grid;
  grid-template-columns: 4.25rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--gl-line);
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.45;
  color: var(--gl-ink);
}
.record__yr {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--gl-red-text);
  font-variant-numeric: tabular-nums;
}

/* Counts: all-conference and All-America */
.record__counts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1.5rem 2rem;
}
.record__counts div { display: grid; gap: 0.4rem; align-content: start; }
.record__counts dd {
  margin: 0;
  order: -1;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 5.5vw, 4.25rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--gl-ink);
  font-variant-numeric: tabular-nums;
}
.record__counts dt {
  font: 500 var(--fs-small)/1.4 var(--ff-body);
  color: var(--gl-ink-dim);
  max-width: 26ch;
}

/* NFL career, the supporting line */
.record__nfl {
  max-width: var(--wrap);
  margin: clamp(3rem, 7vw, 5rem) auto 0;
  padding-inline: var(--gutter);
  display: grid;
  gap: 1rem;
}
.record__nfl-k {
  margin: 0;
  font: 700 var(--fs-eyebrow)/1 var(--ff-body);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gl-ink-mute);
}
.record__nfl-list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--gl-line);
}
@media (min-width: 760px) {
  .record__nfl-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.record__nfl-list div {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  padding: 1.1rem 1rem 0.25rem 0;
}
.record__nfl-list dd {
  margin: 0;
  order: -1;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--gl-ink);
  font-variant-numeric: tabular-nums;
}
.record__nfl-list dt {
  font: 500 var(--fs-small)/1.35 var(--ff-body);
  color: var(--gl-ink-dim);
}

/* =========================================================
   ALPHA: the five letters are the structure.
   Desktop reads across (A L P H A); phones read down.
   ========================================================= */
.alpha-std {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--gl-line);
}
.alpha-std__head .section-lede {
  color: var(--gl-ink);
  font-size: var(--fs-lede);
  max-width: 44ch;
}

.alpha-std__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--wrap) - 2 * var(--gutter));
  display: grid;
  grid-template-columns: 1fr;
}
.alpha-std__item {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  grid-template-rows: auto auto;
  column-gap: 1.25rem;
  align-items: baseline;
  padding: 1.5rem 0;
  border-top: 1px solid var(--gl-line);
}
.alpha-std__item:last-child { border-bottom: 1px solid var(--gl-line); }
.alpha-std__letter {
  grid-row: 1 / span 2;
  align-self: start;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 4.25rem;
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: var(--gl-ink);
  transition: color 240ms var(--ease);
}
.alpha-std__word {
  margin: 0;
  font: 700 0.8rem/1.2 var(--ff-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gl-red-text);
}
.alpha-std__def strong { font-weight: 600; }
.alpha-std__line { display: block; }
.record__honors li span:last-child, .record__counts dt { text-wrap: pretty; }
.alpha-std__def { text-wrap: balance; }
.alpha-std__head .section-lede,
.alpha-std__note { text-wrap: pretty; }
.alpha-std__def {
  margin: 0.5rem 0 0;
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 1.6vw, 1.4rem);
  line-height: 1.3;
  color: var(--gl-ink);
  max-width: 22ch;
}

@media (min-width: 1100px) {
  .alpha-std__list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 1px solid var(--gl-line);
    border-bottom: 1px solid var(--gl-line);
  }
  .alpha-std__item {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    align-content: start;
    row-gap: 0;
    padding: clamp(1.5rem, 2.5vw, 2.25rem) clamp(0.9rem, 1.6vw, 1.5rem) clamp(2rem, 3vw, 2.75rem);
    border-top: 0;
    border-left: 1px solid var(--gl-line);
  }
  .alpha-std__item:last-child { border-bottom: 0; border-right: 1px solid var(--gl-line); }
  .alpha-std__letter {
    grid-row: auto;
    font-size: clamp(5rem, 10.5vw, 9.5rem);
    line-height: 0.78;
    margin-left: -0.05em;
  }
  .alpha-std__letter::after {
    content: '';
    display: block;
    width: 2.25rem;
    height: 4px;
    margin: clamp(1rem, 2vw, 1.5rem) 0 clamp(1rem, 2vw, 1.4rem) 0.05em;
    background: var(--gl-red);
    border-radius: 1px;
  }
  .alpha-std__def {
    margin-top: 0.75rem;
    font-size: clamp(1.1rem, 1.3vw, 1.3rem);
  }
}
@media (hover: hover) and (pointer: fine) {
  .alpha-std__item:hover .alpha-std__letter { color: var(--gl-red-text); }
}

.alpha-std__foot {
  max-width: var(--wrap);
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  padding-inline: var(--gutter);
  display: grid;
  gap: 1.5rem;
  justify-items: start;
}
@media (min-width: 960px) {
  .alpha-std__foot {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    column-gap: 4rem;
  }
  .alpha-std__foot .linkout { justify-self: end; }
}
.alpha-std__note {
  margin: 0;
  max-width: 60ch;
  font-size: clamp(1.0625rem, 1.4vw, 1.2rem);
  line-height: 1.7;
  color: var(--gl-ink-dim);
}

/* =========================================================
   Hero title: "Leadership." is about 7.1em wide in Unbounded 800, wider
   than any phone at the old 3.5rem floor, so the hero clipped it to
   "Leadershi". Cap the size by the space actually available.
   ========================================================= */
.hero .hero__title {
  font-size: min(var(--fs-hero), calc((100vw - 2 * var(--gutter)) / 7.4));
}

/* =========================================================
   Pull quote: his sentence is longer than the old line.
   ========================================================= */
.quote .quote__body { max-width: 34ch; }
.quote .quote__text {
  max-width: 26ch;
  font-size: clamp(1.75rem, 4.4vw, 3.4rem);
  line-height: 1.1;
}
