/* Shared layout for the four section pages. */

:root {
  color-scheme: light;
  --ink: #1c1917;
  --muted: #3f3c38;
  --paper: #ffffff;
  --frame: #f3f0ea;
  --line: #e4dfd6;
  --rule: #ddd7ce;
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", "Liberation Serif", Georgia, "Times New Roman", serif;
  --sans: Inter, "Liberation Sans", "Segoe UI", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.6;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--paper);
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  z-index: 3;
}

.skip:focus {
  top: 1rem;
}

.top {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.35rem 1.25rem;
  padding: 1.75rem 1.25rem 0;
  text-align: center;
}

.owner-link {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

.brand {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  text-decoration-color: rgba(28, 25, 23, 0.35);
}

.brand:hover,
.brand:focus-visible {
  text-decoration-color: currentColor;
}

.wrap {
  width: min(100% - 2.5rem, 68rem);
  margin: 0 auto;
  padding-bottom: 5.5rem;
}

.kicker {
  margin: 2.25rem 0 0.35rem;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0.2rem 0 1.75rem;
  text-align: center;
  font-weight: 400;
  font-size: clamp(3.25rem, 8vw, 5.25rem);
  letter-spacing: -0.035em;
  line-height: 0.98;
}

h2 {
  margin: 0 0 0.8rem;
  font-weight: 400;
  font-size: clamp(2.1rem, 4vw, 2.85rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h3 {
  margin: 0 0 0.7rem;
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h4 {
  margin: 2rem 0 0.8rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

p {
  margin: 0;
}

.summary {
  max-width: 38rem;
  margin: 0 0 1.75rem;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  line-height: 1.45;
}

.center-note {
  text-align: center;
  margin: -0.75rem auto 1.75rem;
}

.hero {
  width: min(100%, 20rem);
  margin: 0.25rem auto 2.75rem;
}

.hero.is-video {
  width: min(100%, 42rem);
}

.hero img,
.portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 12%;
  display: block;
  background: var(--frame);
  box-shadow: 0 0 0 1px var(--line);
}

.section-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 2rem;
  margin: 0 0 1rem;
  padding: 0.35rem 0 0.85rem;
  border-bottom: 1px solid #eeeae4;
}

.section-nav a {
  display: inline-block;
  padding: 0.65rem 0.35rem;
  color: inherit;
  font-size: clamp(1.28rem, 2.5vw, 1.55rem);
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  text-decoration-color: rgba(28, 25, 23, 0.35);
}

.section-nav a:hover,
.section-nav a:focus-visible {
  text-decoration-color: currentColor;
}

.block {
  margin-top: 4.75rem;
}

.lead {
  max-width: 36rem;
  margin: 0 0 1.5rem;
  font-size: 1.28rem;
  line-height: 1.5;
}

.nested {
  margin-top: 3.25rem;
  padding: 0.15rem 0 0.15rem 1.35rem;
  border-left: 1px solid var(--rule);
}

.timeline {
  --rail: 1.5rem;
  margin-top: 2.25rem;
  padding-left: var(--rail);
  border-left: 1px solid var(--rule);
}

.station {
  position: relative;
}

.station + .station {
  margin-top: 3.25rem;
}

.station::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
  left: calc(var(--rail) * -1);
  top: 0.55rem;
  transform: translateX(-50%);
}

.sports {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}

.sport h4 {
  margin: 0.8rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  text-align: center;
}

.mark {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--frame);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--line);
}

.mark svg {
  width: 38%;
  height: 38%;
}

.mark.is-filled {
  background: transparent;
}

.mark.is-filled img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.frames {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 15rem));
  gap: 1rem;
  justify-content: start;
}

.portrait-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
}

.portrait,
.portrait-row .slot-photo {
  width: min(100%, 15rem);
}

.videos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 24rem));
  gap: 1rem;
  justify-content: start;
}

.videos-single {
  grid-template-columns: minmax(0, 28rem);
}

.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 16.5rem));
  gap: 1rem;
  justify-content: start;
  width: min(100%, 36rem);
}

.solo {
  width: min(100%, 16.5rem);
}

.note-wide {
  width: min(100%, 36rem);
}

.slot {
  display: grid;
  place-items: center;
  background: var(--frame);
  box-shadow: inset 0 0 0 1px var(--line);
  min-width: 0;
}

.slot-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
}

.slot-video {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.slot-note {
  min-height: 8.25rem;
  aspect-ratio: auto;
}

.slot-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.play {
  width: 2.75rem;
  height: 2.75rem;
  color: var(--ink);
}

.slot.is-filled {
  position: relative;
  display: block;
  background: transparent;
  box-shadow: none;
}

.slot-photo.is-filled,
.slot-video.is-filled,
.hero.is-video .slot-video {
  box-shadow: none;
}

.slot.is-filled img,
.slot.is-filled video,
.slot.is-filled iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
  background: var(--frame);
  box-shadow: 0 0 0 1px var(--line);
}

.slot-note.is-filled {
  min-height: 0;
  background: transparent;
  box-shadow: none;
}

.slot-note.is-filled p {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.65;
  max-width: 40rem;
}

.modules {
  display: grid;
  justify-items: center;
  gap: 1.15rem;
  margin-top: 0.5rem;
}

.modules .pair,
.modules .videos {
  width: min(100%, 40rem);
}

.modules .pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 16.5rem));
  gap: 1rem;
  justify-content: center;
}

.modules .note-wide,
.modules .videos {
  justify-self: center;
}

#academics,
#athletics,
#singing,
#internships,
#modules {
  scroll-margin-top: 1.25rem;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

:focus:not(:focus-visible) {
  outline: none;
}

::selection {
  background: #e7e1d6;
  color: var(--ink);
}

img,
svg,
video {
  max-width: 100%;
}

.slot.is-filled img,
.slot.is-filled video,
.mark.is-filled img {
  height: 100%;
}

p,
h1,
h2,
h3,
h4 {
  overflow-wrap: break-word;
}

@media (prefers-reduced-motion: no-preference) {
  .brand,
  .section-nav a {
    transition: text-decoration-color 180ms ease;
  }
}

@media (min-width: 861px) {
  .section-nav {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(255, 255, 255, 0.94);
  }

  #academics,
  #athletics,
  #singing,
  #internships,
  h3 {
    scroll-margin-top: 5.25rem;
  }
}

@media (max-width: 860px) {
  .sports {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .frames,
  .videos,
  .videos-single,
  .pair,
  .modules .pair,
  .modules .videos {
    grid-template-columns: minmax(0, 18.5rem);
    width: min(100%, 18.5rem);
  }

  .portrait,
  .portrait-row .slot-photo,
  .solo,
  .note-wide {
    width: min(100%, 18.5rem);
  }
}

.dated {
  margin-top: 0.85rem;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.wide-figure {
  width: min(100%, 40rem);
  margin: 0 0 1rem;
}

.wide-figure img,
.wide-figure .slot {
  width: 100%;
  height: auto;
  display: block;
  background: var(--frame);
  box-shadow: 0 0 0 1px var(--line);
}

.wide-figure img.contain {
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.wide-figure img.cover {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 30%;
}

.slot-banner {
  width: min(100%, 28rem);
  aspect-ratio: 5 / 2;
}

.caption {
  margin: 0.5rem 0 0;
  max-width: 40rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted);
}

details.archive {
  margin-top: 1.6rem;
  max-width: 42rem;
}

details.archive summary {
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1.4;
}

.archive-body {
  margin-top: 0.85rem;
}

.archive-body p,
.archive-body li {
  font-size: 1.05rem;
  line-height: 1.55;
}

.archive-body ul {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
}

.archive-body li {
  margin: 0.4rem 0;
}

.archive-body a,
.sources a {
  color: inherit;
}

.score-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin-top: 0.75rem;
}

.score-table th,
.score-table td {
  text-align: left;
  padding: 0.4rem 0.35rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.team-grid,
.still-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.85rem;
  margin-top: 0.8rem;
}

.team-grid img,
.still-row img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  background: var(--frame);
  box-shadow: 0 0 0 1px var(--line);
}

.still-row img {
  aspect-ratio: 1;
  object-fit: contain;
}

@media (max-width: 560px) {
  .section-nav {
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
  }

  .wrap {
    width: min(100% - 2rem, 68rem);
  }

  .nested {
    padding-left: 1rem;
  }

  h1 {
    margin-bottom: 1.35rem;
  }
}
