@font-face {
  font-family: DM Sans;
  src: url("fonts/dm-sans-regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: DM Sans;
  src: url("fonts/dm-sans-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fbfaf6;
  --ink: #15283b;
  --muted: #465a6d;
  --blue: #174f7b;
  --blue-paper: #e7f2f9;
  --line: #a9bdca;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --page-gutter: clamp(1rem, 2vw, 2rem);
  --section-space: clamp(1.75rem, 3.25vw, 3.5rem);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--paper);
  font: 1rem/1.6 "DM Sans", sans-serif;
}
main { flex: 1; }
a { color: inherit; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.wrap { width: calc(100% - var(--page-gutter) * 2); margin-inline: auto; }
.home-hero .wrap, .admin-page .wrap, .team-page .wrap { width: min(100% - 3rem, 72rem); }
.skip { position: absolute; z-index: 1; top: .5rem; left: .5rem; padding: .6rem 1rem; background: white; transform: translateY(-160%); }
.skip:focus { transform: none; }
.header, .brand, nav, .actions { display: flex; align-items: center; }
.header { justify-content: space-between; gap: .8rem 2rem; padding-block: 1rem; flex-wrap: wrap; }
.header.wrap:has(nav) {
  width: auto;
  margin-inline: var(--page-gutter);
}
.brand { gap: .65rem; font-weight: 700; text-decoration: none; }
.mark { object-fit: contain; display: block; }
nav { gap: .35rem clamp(.55rem, 2vw, 1.6rem); flex-wrap: wrap; }
nav a { padding: .25rem .12rem; text-decoration: none; color: var(--muted); }
nav a:hover, nav a[aria-current="page"] { color: var(--blue); text-decoration: underline; text-underline-offset: .45em; }
nav a[aria-current="page"] { font-weight: 700; text-decoration-thickness: 2px; }
.has-hero-header {
  --home-header-height: 4.125rem;
  scroll-padding-top: calc(var(--home-header-height) + 1rem);
}
.has-hero-header .skip { position: fixed; z-index: 11; }
.has-hero-header .header.wrap {
  position: fixed;
  z-index: 10;
  inset: 0 0 auto;
  margin-inline: 0;
  padding-inline: var(--page-gutter);
  isolation: isolate;
}
.has-hero-header .header::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: white;
  border-bottom: 1px solid #dae4ec;
  opacity: var(--header-opacity, 0);
}
.header.is-over-hero .brand,
.header.is-over-hero nav a { color: #fcfaf4; }
.header.is-over-hero nav a:hover,
.header.is-over-hero nav a[aria-current="page"] { color: #c7e8fd; }
.header.is-over-hero :focus-visible { outline-color: #c7e8fd; }
.hero {
  overflow: hidden;
  border-top: 1px solid #25445b;
  background: #102b42;
  color: #fcfaf4;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  row-gap: clamp(.85rem, 2vw, 2rem);
  min-height: 100vh;
  min-height: 100svh;
  padding-block: clamp(2.5rem, 5vh, 4.5rem) clamp(4.5rem, 9vh, 6.5rem);
  text-align: center;
}
.has-hero-header .hero-grid {
  padding-top: calc(var(--home-header-height) + clamp(1.75rem, 4vh, 3rem));
}
.home-hero { position: relative; isolation: isolate; }
.hero-background, .home-hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-background {
  display: grid;
  grid-template-areas:
    "meeting awards awards"
    "community community club";
  grid-template-columns: 28fr 34fr 38fr;
  grid-template-rows: minmax(0, 56fr) minmax(0, 44fr);
  gap: 2px;
  background: #16344b;
}
.hero-background img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
}
.hero-photo-awards { grid-area: awards; object-position: center 48%; }
.hero-photo-meeting { grid-area: meeting; object-position: center 58%; }
.hero-photo-community { grid-area: community; object-position: center 26%; }
.hero-photo-club { grid-area: club; object-position: center 33%; }
.home-hero::before {
  content: "";
  z-index: 1;
  background: linear-gradient(180deg, rgb(8 23 35 / 76%), rgb(8 23 35 / 47%) 22%, rgb(8 23 35 / 72%) 57%, rgb(8 23 35 / 86%));
}
.hero-scroll {
  position: absolute;
  inset: auto auto clamp(.7rem, 2.6vh, 1.75rem) 50%;
  translate: -50% 0;
  display: grid;
  place-items: center;
  gap: .35rem;
  min-height: 2.75rem;
  padding-inline: .65rem;
  color: #fcfaf4;
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.hero-scroll::after {
  content: "";
  width: .45rem;
  height: .45rem;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  rotate: 45deg;
}
.hero-scroll:hover { color: #c7e8fd; }
.eyebrow { color: var(--blue); font: 700 .875rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .045em; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -.045em; }
h1 { font-size: clamp(2.85rem, 7.5vw, 6rem); }
.hero .eyebrow { color: #b5daf2; }
.hero h1 { font-size: clamp(3.6rem, 9.8vw, 7.8rem); line-height: .89; letter-spacing: -.075em; }
.home-hero h1 { font-size: clamp(3.3rem, 8.8vw, 9rem); line-height: .96; }
.title-clip { display: block; overflow: clip; padding: 0 .1em .07em; }
.title-line { display: inline-block; }
.title-period { color: #85cefa; }
.hero .intro { color: #d2e4ee; margin-block: 1.2rem 1.4rem; }
.home-hero .intro { max-width: 41rem; margin-inline: auto; margin-bottom: 0; text-wrap: balance; }
.home-hero .actions { justify-content: center; }
.hero .button { background: #c7e8fd; color: #102b42; border-color: #c7e8fd; }
.hero .button:hover { background: white; }
.hero .underlined { color: #e1f3ff; }
.hero :focus-visible { outline-color: #c7e8fd; }
h1 em { color: var(--blue); font-style: normal; }
h2 { font-size: clamp(2rem, 5.5vw, 3.6rem); }
.intro { max-width: 30rem; margin-block: 1.55rem; font-size: 1.2rem; color: var(--muted); }
.actions { flex-wrap: wrap; gap: .75rem 1.2rem; }
.button {
  display: inline-block;
  padding: .65rem 1rem;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: white;
  text-decoration: none;
  font-weight: 700;
}
.button:hover { background: var(--ink); }
.button.secondary { background: transparent; color: var(--blue); }
.button.secondary:hover { background: var(--blue-paper); }
.underlined { color: var(--blue); font-weight: 700; text-underline-offset: .23em; }
.values-window {
  --values-gap: clamp(1.25rem, 3.4vw, 3.5rem);
  overflow: hidden;
}
.values-track { display: flex; }
.values-group {
  list-style: none;
  margin: 0;
  padding: .95rem max(1rem, calc((100% - 72rem) / 2));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .4rem var(--values-gap);
  width: 100%;
}
.values-group li {
  font-size: clamp(1rem, 2vw, 1.6rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.045em;
}
.values-band.is-moving .values-track {
  width: max-content;
  transform: translateX(calc(var(--values-distance, 0px) * var(--values-progress, 0)));
}
.values-band.is-moving .values-group {
  width: auto;
  flex: none;
  flex-wrap: nowrap;
  padding: .85rem var(--values-gap) .85rem 0;
  white-space: nowrap;
}
.section { padding-block: var(--section-space); }
.team-page .section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.photo-feature {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 1.5rem clamp(1.25rem, 3vw, 3rem);
}
.home-club p { max-width: 48ch; margin: .9rem 0 0; color: var(--muted); }
.photo-feature .underlined { display: inline-block; margin-top: 1rem; }
.home-club {
  padding-block: var(--section-space);
  border-bottom: 1px solid var(--line);
}
.club-mark {
  display: block;
  width: clamp(6rem, 10vw, 9rem);
  height: auto;
  margin-top: clamp(.9rem, 2vw, 1.4rem);
}
.site-photo { margin: 0; }
.site-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--blue-paper);
}
.home-club .site-photo img { aspect-ratio: 1; object-position: center 45%; }
.site-photo figcaption { margin-top: .55rem; color: var(--muted); }
.club-life { padding-bottom: var(--section-space); }
.club-life h2 { margin-bottom: 1.25rem; }
.club-life-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem clamp(1rem, 3vw, 2rem);
}
.work-heading { display: grid; grid-template-columns: 1fr 3fr; align-items: baseline; gap: .75rem; margin-bottom: 1.1rem; }
.work-heading p { margin: 0; }
.work-list { position: relative; list-style: none; padding: 0; margin: 0 0 1.25rem; border-bottom: 1px solid var(--line); }
.work-list::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--blue);
  transform-origin: left;
  transform: scaleX(var(--rule-progress, 1));
}
.work-list li + li { border-top: 1px solid var(--line); }
.work-list a {
  display: grid;
  grid-template-columns: 1fr 1.45fr 1.5fr;
  align-items: baseline;
  gap: .7rem 1.25rem;
  padding: 1.05rem .4rem;
  text-decoration: none;
}
.work-list a:hover { background: var(--blue-paper); }
.work-list a:hover strong { text-decoration: underline; }
.discipline { font: .875rem/1.5 var(--mono); color: var(--blue); }
.work-list strong { font-size: 1.16rem; }
.work-list strong + span { color: var(--muted); }
.roster-note { color: var(--muted); }
.officer-section { padding-block: clamp(1.15rem, 3vw, 2.5rem); }
.officer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem clamp(1rem, 3vw, 2rem);
  list-style: none;
  padding: 0;
  margin: 0;
}
.officer-grid > li { min-width: 0; }
.officer-portrait {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-top: 3px solid var(--blue);
  background: var(--blue-paper);
  color: var(--blue);
  margin-bottom: 1rem;
}
.officer-portrait span { font: 700 clamp(2rem, 5vw, 3.5rem)/1 var(--mono); }
.officer-portrait img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-position, 50% 50%);
  transform-origin: var(--photo-position, 50% 50%);
  transform: scale(var(--photo-zoom, 1));
}
.officer-grid h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.officer-grid p { margin: .55rem 0 0; max-width: 38ch; color: var(--muted); }
.officer-grid .underlined { display: inline-block; margin-top: .6rem; }
.admin-page [hidden] { display: none; }
.admin-page button { font: inherit; font-weight: 700; cursor: pointer; }
.admin-page button:disabled { opacity: .55; cursor: default; }
.admin-status { color: var(--muted); margin-block: .9rem 1.4rem; }
.admin-login { max-width: 26rem; }
.admin-page label { display: grid; gap: .35rem; font-weight: 700; }
.admin-page input:not([type=range]) {
  width: 100%;
  min-width: 0;
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: .55rem .65rem;
  font: inherit;
  font-weight: 400;
}
.admin-login button { margin-top: 1rem; }
.admin-toolbar { margin-block: 1.25rem 2rem; }
.admin-member {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) minmax(0, 2fr);
  gap: 1.25rem 2rem;
  min-width: 0;
  margin: 0 0 1.35rem;
  padding: clamp(.75rem, 2vw, 1.5rem);
  border: 1px solid var(--line);
}
.admin-member legend { padding-inline: .5rem; font-weight: 700; }
.admin-fields, .admin-crop { display: grid; gap: .75rem; align-content: start; }
.admin-crop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-crop button { justify-self: start; grid-column: 1 / -1; }
.zoom-value { margin-left: .35rem; font-weight: 400; color: var(--muted); }
.admin-photo button { margin-top: .65rem; }
.admin-photo .officer-portrait { margin-bottom: .65rem; }
.about { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 1.5rem clamp(1.25rem, 3vw, 3rem); }
.about > div:last-child p { max-width: 70ch; }
.about-next { padding-bottom: var(--section-space); }
.contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact .site-photo img { aspect-ratio: 4 / 3; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem clamp(1rem, 2vw, 1.75rem); margin-top: 1.5rem; }
.contact-grid article { padding-top: 1rem; border-top: 2px solid var(--blue); }
.contact-grid h2 { font-size: 1.5rem; letter-spacing: -.025em; }
.contact-grid p { margin-top: .6rem; color: var(--muted); }
.footer { color: var(--muted); background: var(--blue-paper); border-top: 1px solid var(--line); padding-block: 2rem; }
.footer .brand { color: var(--ink); }
.footer-grid, .footer-links { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .9rem 1.5rem; }
.footer p { margin: .9rem 0 0; }
.footer-links a { text-underline-offset: .2em; }
@media (min-width: 65rem) {
  .club-life .site-photo img { aspect-ratio: 16 / 9; }
  .home-club .site-photo img { aspect-ratio: 3 / 2; object-position: center 31%; }
}
@media (max-width: 48rem) {
  .about, .work-heading, .photo-feature { grid-template-columns: 1fr; }
  .work-list a { grid-template-columns: 1fr 1.6fr; }
  .work-list strong + span { grid-column: 2; }
  .officer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  .hero-background {
    grid-template-areas:
      "awards awards"
      "meeting community"
      "club club";
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(0, 36fr) minmax(0, 27fr) minmax(0, 37fr);
  }
  .hero-photo-community { object-position: 58% center; }
}
@media (prefers-reduced-motion: reduce) {
  .values-band.is-moving .values-track { width: auto; transform: none !important; }
  .values-band.is-moving .values-group { width: 100%; min-width: 0; flex-wrap: wrap; white-space: normal; }
  .values-group[aria-hidden="true"] { display: none; }
}
@media (max-width: 34rem) {
  .home-hero .wrap, .admin-page .wrap, .team-page .wrap { width: min(100% - 2rem, 72rem); }
  .title-line { display: block; }
  .contact-grid, .work-list a, .officer-grid, .admin-member, .club-life-photos { grid-template-columns: 1fr; }
  .work-list a { gap: .25rem; }
  .work-list strong + span { grid-column: auto; }
}
