/* =========================================================
   Fairport Crew Club
   Hand-written. No build step.
   Colors come from the club's oar blades and the Erie Canal.
   ========================================================= */

:root {
  --ink: #0b2436;
  --canal: #123a4c;
  --water: #e5eef0;
  --white: #ffffff;
  --oar: #c8102e;
  --oar-dark: #9c0c24;
  --stripe: #1d4f9f;
  --buoy: #f4b942;
  --text: #1b2c38;
  --muted: #4d5f6b;
  --line: #cfdce0;
  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --page: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3 {
  margin: 0 0 .5em;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.04;
  color: var(--ink);
}
h1 { font-size: clamp(3rem, 8vw, 5.5rem); letter-spacing: -.005em; }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
h3 { font-size: clamp(1.55rem, 2.6vw, 1.95rem); line-height: 1.12; }
p, ul, ol, dl, address { margin: 0 0 1.1rem; }
address { font-style: normal; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: .4rem; }
strong { font-weight: 600; }
a { color: var(--canal); }
a:hover { color: var(--oar); }
main :is(p, li, dd) a:not(.button) { text-underline-offset: .15em; }
:focus-visible { outline: 3px solid var(--buoy); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--page)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section-water { background: var(--water); }
.measure { max-width: 42rem; }
.lead { font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.45; }
.small { font-size: 1rem; color: var(--muted); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .6rem 1rem;
  color: var(--ink);
  background: var(--buoy);
}
.skip-link:focus { top: .5rem; }

/* Buttons take the outline of an oar blade: square at the shaft, rounded at the tip. */
.button {
  display: inline-block;
  padding: .7rem 1.6rem .75rem 1.15rem;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.15;
  text-decoration: none;
  color: var(--white);
  background: var(--oar);
  border: 2px solid var(--oar);
  border-radius: 3px 1.5rem 1.5rem 3px;
  transition: background-color 150ms, border-color 150ms, color 150ms;
}
.button:hover { color: var(--white); background: var(--oar-dark); border-color: var(--oar-dark); }
.button-quiet { color: var(--ink); background: transparent; border-color: var(--ink); }
.button-quiet:hover { color: var(--white); background: var(--ink); border-color: var(--ink); }
.on-dark .button-quiet, .button-light { color: var(--white); border-color: var(--white); background: transparent; }
.on-dark .button-quiet:hover, .button-light:hover { color: var(--ink); background: var(--white); border-color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: var(--ink);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--white); }
.brand img { width: 46px; height: 46px; padding: 2px; object-fit: contain; background: var(--white); border-radius: 50%; }
.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 11px;
  color: var(--white);
  cursor: pointer;
  background: none;
  border: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(.65rem, 1.5vw, 1.35rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links li { margin: 0; }
.nav-links a:not(.button) {
  display: block;
  padding: .35rem 0 .2rem;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.nav-links a:not(.button):hover { border-bottom-color: var(--white); }
.nav-links a[aria-current="page"]:not(.button) { border-bottom-color: var(--oar); }
.nav-links .button { padding: .4rem 1.1rem .45rem .8rem; font-size: 1.15rem; white-space: nowrap; }

/* Home hero */
.hero { color: var(--white); background: var(--ink); }
.hero-media { position: relative; }
.hero-photo { width: 100%; height: clamp(260px, 33vw, 480px); object-fit: cover; object-position: 72% 60%; }
.hero-logo {
  position: absolute;
  top: 50%;
  left: max(var(--gutter), calc((100vw - var(--page)) / 2));
  width: auto;
  height: 88%;
  transform: translateY(-50%);
  filter: drop-shadow(0 3px 10px rgba(11, 36, 54, .45));
}
.hero-copy { padding-block: clamp(2rem, 5vw, 3.5rem); }
.hero h1 { margin-bottom: .25em; font-size: clamp(3.4rem, 8vw, 6.5rem); line-height: .95; color: var(--white); }
.hero p { max-width: 36rem; margin-bottom: 0; font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.35; }

/* Next-up bar */
.next-up { color: var(--white); background: var(--oar); }
.next-up .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem 2rem; padding-block: 1rem; }
.next-up p { margin: 0; font-size: 1.2rem; font-weight: 500; }
.next-up strong { font-family: var(--display); font-size: 1.5rem; font-weight: 700; }
.next-up a { font-family: var(--display); font-size: 1.3rem; font-weight: 600; color: var(--white); text-underline-offset: .15em; }
.next-up a:hover { color: var(--white); text-decoration-thickness: 3px; }

/* The rowing year: seasons as lanes, each bar drawn as a club oar blade */
.year-section { color: var(--white); background: var(--canal); }
.year-section h2, .year-section p { color: var(--white); }
.year { position: relative; margin: 2.5rem 0 0; padding: 0; list-style: none; }
.year-months, .lane a { display: grid; grid-template-columns: 15.5rem 1fr; column-gap: 1.5rem; }
.months {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 500;
  color: #c6d9df;
}
.lane {
  margin: 0;
  background-image: radial-gradient(circle, var(--buoy) 3px, transparent 3.6px);
  background-position: 0 0;
  background-size: 18px 8px;
  background-repeat: repeat-x;
}
.lane a {
  align-items: center;
  padding-block: 1.45rem 1.25rem;
  color: var(--white);
  text-decoration: none;
}
.lane:last-child { padding-bottom: 8px; background-image: radial-gradient(circle, var(--buoy) 3px, transparent 3.6px), radial-gradient(circle, var(--buoy) 3px, transparent 3.6px); background-position: 0 0, 0 100%; background-size: 18px 8px, 18px 8px; background-repeat: repeat-x, repeat-x; }
.lane-name { display: block; font-family: var(--display); font-size: 1.65rem; font-weight: 700; line-height: 1.1; }
.lane-when { display: block; font-size: 1.02rem; color: #d7e5e9; }
.lane a:hover .lane-name { text-decoration: underline; text-underline-offset: .15em; }
.track { position: relative; display: block; height: 2.6rem; }
.blade {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--from) / 12 * 100%);
  width: calc((var(--to) - var(--from)) / 12 * 100%);
  background: linear-gradient(90deg, var(--oar) 0 calc(100% - 3.1rem), var(--white) 0 calc(100% - 2.35rem), var(--stripe) 0 calc(100% - 1.6rem), var(--oar) 0);
  clip-path: polygon(0 18%, calc(100% - 1rem) 0, 100% 28%, 100% 72%, calc(100% - 1rem) 100%, 0 82%);
  transition: filter 150ms;
}
.lane a:hover .blade { filter: brightness(1.12); }
.blade-short { background: linear-gradient(90deg, var(--oar) 0 42%, var(--white) 0 58%, var(--stripe) 0 74%, var(--oar) 0); clip-path: polygon(0 18%, calc(100% - .5rem) 0, 100% 28%, 100% 72%, calc(100% - .5rem) 100%, 0 82%); }

/* Photo and text side by side */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 4.5rem); }
.split > img { width: 100%; }
.split-flip > img { order: 2; }
.split h2:last-child, .split p:last-child { margin-bottom: 0; }

/* Video band */
.video-section { color: var(--white); background: var(--ink); }
.video-section h2 { color: var(--white); }
.video-layout { display: grid; grid-template-columns: 1fr 2.1fr; align-items: end; gap: clamp(1.5rem, 4vw, 3.5rem); }
.club-video { width: 100%; height: auto; background: var(--canal); }

/* Plain link lists */
.columns-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 3.5rem); }
.columns-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(2rem, 4vw, 3.5rem); }
.link-list { margin: 0; padding: 0; list-style: none; }
.link-list li { margin: 0; border-top: 1px solid var(--line); }
.link-list li:last-child { border-bottom: 1px solid var(--line); }
.link-list a { display: block; padding: .7rem 0; font-weight: 500; text-decoration: none; }
.link-list a:hover { text-decoration: underline; text-underline-offset: .15em; }

.doc-link::before {
  content: "";
  display: inline-block;
  width: .85em;
  height: 1.05em;
  margin-right: .35em;
  vertical-align: -.12em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 24'%3E%3Cpath fill-rule='evenodd' d='M2 0h10l8 8v16H0V0h2zm9 2v7h7l-7-7zM4 13v2h12v-2H4zm0 5v2h12v-2H4z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 24'%3E%3Cpath fill-rule='evenodd' d='M2 0h10l8 8v16H0V0h2zm9 2v7h7l-7-7zM4 13v2h12v-2H4zm0 5v2h12v-2H4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Inner page heading: the photo is cut to the angle of a blade */
.page-head { color: var(--white); background: var(--ink); }
.page-head-inner { display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch; min-height: 21rem; }
.page-head-copy { align-self: center; padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3.5rem) clamp(2.5rem, 6vw, 4.5rem) max(var(--gutter), calc((100vw - var(--page)) / 2)); }
.page-head h1 { color: var(--white); }
.page-head p { max-width: 34rem; margin-bottom: 0; font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.4; }
.page-head p + p { margin-top: .75rem; }
.page-head a:not(.button) { color: var(--white); }
.page-head-photo { position: relative; min-height: 15rem; }
.page-head-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(11% 0, 100% 0, 100% 100%, 0 100%);
}

/* Season pages: story plus a fact sheet */
.with-facts { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; align-items: start; gap: clamp(2rem, 6vw, 5rem); }
.facts { position: sticky; top: 6rem; padding: 1.6rem 1.6rem 1.8rem; background: var(--water); border-top: 6px solid var(--oar); }
.facts h2 { font-size: 1.9rem; }
.facts dl { margin: 0; }
.facts dt { font-family: var(--display); font-size: 1.2rem; font-weight: 600; color: var(--ink); }
.facts dd { margin: 0 0 .85rem; font-size: 1.05rem; line-height: 1.4; }
.facts .button { margin-top: .5rem; }
.prose h2 { margin-top: 2.25rem; font-size: clamp(2rem, 3.6vw, 2.6rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5rem; }
.prose { max-width: 42rem; }
.season-photo { width: 100%; margin-bottom: 2rem; }

/* Season rows on the programs page */
.season-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: center; gap: clamp(1.5rem, 5vw, 4rem); padding-block: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.season-row:first-child { border-top: 0; padding-top: 0; }
.season-row img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.season-row h2 { font-size: clamp(2rem, 3.6vw, 2.6rem); margin-bottom: .2em; }
.season-when { font-weight: 600; color: var(--canal); }

/* Questions */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.8rem; line-height: .9; color: var(--oar); }
.faq details[open] summary::after { content: "\2212"; }
.faq-body { max-width: 42rem; padding-bottom: .75rem; }

.glossary { margin: 0; }
.glossary div { display: grid; grid-template-columns: 11rem 1fr; gap: 1.5rem; padding-block: .8rem; border-top: 1px solid var(--line); }
.glossary dt { font-family: var(--display); font-size: 1.3rem; font-weight: 600; line-height: 1.2; color: var(--ink); }
.glossary dd { margin: 0; }

/* Registration steps are a true sequence, so they are numbered. */
.steps { max-width: 46rem; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps > li { position: relative; margin: 0; padding: 0 0 2.25rem 4.5rem; counter-increment: step; }
.steps > li::before {
  content: counter(step);
  position: absolute;
  top: -.35rem;
  left: 0;
  font-family: var(--display);
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--oar);
}
.steps h2 { margin-bottom: .3em; font-size: clamp(1.7rem, 3vw, 2.1rem); }

/* Regatta lists */
.regatta { display: grid; grid-template-columns: 16rem 1fr; gap: 1.5rem; padding-block: 1.25rem; border-top: 1px solid var(--line); }
.regatta h3 { margin: 0; }
.regatta p { margin-bottom: .35rem; }
.feature { color: var(--white); background: var(--canal); }
.feature h2, .feature h3, .feature a:not(.button) { color: var(--white); }

/* Places */
.place { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(1.5rem, 5vw, 4rem); padding-block: 2rem; border-top: 1px solid var(--line); }
.place:first-child { padding-top: 0; border-top: 0; }
.place h2 { margin-bottom: .15em; font-size: clamp(2rem, 3.4vw, 2.5rem); }
.place .use { font-weight: 600; color: var(--canal); }
.place p:last-child { margin-bottom: 0; }

/* People */
.coaches { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.coach img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; margin-bottom: 1rem; }
/* A club logo standing in for a coach photo: show all of it, not a crop. */
.coach img.coach-logo { object-fit: contain; object-position: center; padding: 12%; background: var(--white); }
.coach-no-photo { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 5; margin-bottom: 1rem; font-family: var(--display); font-size: 5rem; font-weight: 700; color: var(--white); background: var(--canal); }
.coach h3 { margin-bottom: .25em; }
.board { margin: 0; padding: 0; list-style: none; }
.board li { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 1rem; margin: 0; padding-block: .75rem; border-top: 1px solid var(--line); }
.board li:last-child { border-bottom: 1px solid var(--line); }
.board .name { font-family: var(--display); font-size: 1.4rem; font-weight: 600; line-height: 1.2; color: var(--ink); }
.founder { display: grid; grid-template-columns: 11rem minmax(0, 1fr); align-items: start; gap: 2rem; margin-top: 3.5rem; }
.founder img { width: 100%; }

/* Support */
.image-link { display: block; margin-bottom: 1rem; border: 1px solid var(--line); }
a.image-link:hover { border-color: var(--oar); }
.image-link img { width: 100%; aspect-ratio: 2 / 1; object-fit: contain; background: var(--white); }

/* Calendar and contact blocks */
.contact-block h2 { font-size: 1.9rem; }
.contact-block p:last-child, .contact-block address:last-child { margin-bottom: 0; }

/* Closing call to action */
.closing { color: var(--white); background: var(--oar); }
.closing .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 3rem; padding-block: 2.75rem; }
.closing h2 { margin: 0; color: var(--white); }
.closing .button { color: var(--oar); background: var(--white); border-color: var(--white); }
.closing .button:hover { color: var(--white); background: var(--ink); border-color: var(--ink); }

/* Footer */
.site-footer { font-size: 1.02rem; color: #d7e5e9; background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 2rem; padding-block: 3.5rem 2.5rem; }
.site-footer h2 { margin-bottom: .55rem; font-size: 1.35rem; color: var(--white); }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: .25rem; }
.site-footer a { color: #d7e5e9; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-legal { padding-block: 1.25rem; font-size: .95rem; border-top: 1px solid var(--canal); }
.footer-legal p { margin: 0; }

@media (max-width: 1180px) {
  .coaches { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem var(--gutter) 1.25rem;
    background: var(--ink);
    border-top: 1px solid var(--canal);
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.button) { padding: .7rem 0; font-size: 1.2rem; border-bottom: 1px solid var(--canal); }
  .nav-links a:not(.button):hover, .nav-links a[aria-current="page"]:not(.button) { color: var(--buoy); border-bottom-color: var(--canal); }
  .nav-links .button { display: block; margin-top: 1rem; text-align: center; }
}

@media (max-width: 820px) {
  body { font-size: 1.0625rem; }
  .hero-photo { object-position: 30% 60%; }
  .year-months, .lane a { grid-template-columns: 1fr; }
  .months { grid-column: 1; font-size: .95rem; }
  .months span { overflow: hidden; width: 1ch; }
  .lane a { row-gap: .6rem; }
  .blade { background: linear-gradient(90deg, var(--oar) 0 calc(100% - 1.5rem), var(--white) 0 calc(100% - 1.15rem), var(--stripe) 0 calc(100% - .8rem), var(--oar) 0); clip-path: polygon(0 18%, calc(100% - .5rem) 0, 100% 28%, 100% 72%, calc(100% - .5rem) 100%, 0 82%); }
  .blade-short { background: var(--oar); }
  .track { height: 2rem; }
  .split, .video-layout, .page-head-inner, .with-facts, .season-row, .columns-3, .columns-2, .place, .coaches { grid-template-columns: minmax(0, 1fr); }
  .split-flip > img { order: 0; }
  .page-head-copy { padding-inline: var(--gutter); }
  .page-head-inner { min-height: 0; }
  .page-head-photo { height: 13rem; min-height: 0; }
  .page-head-photo img { clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%); }
  .facts { position: static; }
  .regatta, .glossary div { grid-template-columns: minmax(0, 1fr); gap: .35rem; }
  .board li { grid-template-columns: 1fr auto; }
  .board .role { grid-column: 1; grid-row: 2; }
  .board .email { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-about { grid-column: 1 / -1; }
  .coach { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; }
  .coach img, .coach-no-photo { margin-bottom: 0; }
  .coach-no-photo { font-size: 2.6rem; }
  .founder { grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .site-header, .nav-toggle, .skip-link, .closing, .next-up .button, video { display: none !important; }
  .page-head, .feature, .year-section, .site-footer { color: #000; background: none; }
  a { text-decoration: underline; }
}
