/* BHS Crew public site. Tokens and components follow the approved style guide. */
:root {
  --black: #0E0E0E;
  --charcoal: #161616;
  --panel: #1C1C1C;
  --panel-2: #242424;
  --line: #333333;
  --red: #C8102E;
  --gold: #EDB11C;
  --white: #FFFFFF;
  --bar: #F5F5F5;
  --ink: #111111;
  --text: #F2F2F2;
  --text-soft: #D0D0D0;
  --text-mute: #A8A8A8;
  --outline: #7A7A7A;
  --display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  /* Side margin of every full-width block. Phones: a small fixed margin. Desktop: content takes 80% of the window, capped at 1440px. */
  --side: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}
@media (min-width: 1000px) { :root { --side: max(10%, calc((100% - 1440px) / 2)); } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--black); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .8; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
img, video { max-width: 100%; display: block; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--black); padding: 10px 16px; z-index: 10; }
.skip:focus { left: 0; }

/* headings use the large-size drawing of the display face at every size */
.display, h1, h2, h3 { font-family: var(--display); font-variation-settings: 'opsz' 96; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h1 { font-weight: 300; font-size: clamp(56px, 11vw, 132px); line-height: .95; letter-spacing: -.03em; color: var(--white); }
.page-title h1 { font-size: clamp(52px, 9.5vw, 120px); }
h2 { font-weight: 400; font-size: clamp(32px, 4.5vw, 44px); line-height: 1.05; }
h3 { font-weight: 500; font-size: 26px; line-height: 1.12; letter-spacing: -.01em; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0; }
.mute { color: var(--text-mute); }
.soft { color: var(--text-soft); }
.lede { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.45; color: var(--text-soft); max-width: 36em; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 1em; }
.prose { font-size: 18px; line-height: 1.7; color: var(--text-soft); max-width: 44em; }
.prose ul { margin: 0; padding-left: 1.2em; }
.prose a, .link { color: var(--gold); border-bottom: 1px solid var(--gold); }

/* header bar */
.bar { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; padding: 18px var(--side); background: var(--bar); color: var(--ink); border-bottom: 4px solid var(--red); }
.wordmark { font-weight: 800; font-size: 22px; letter-spacing: .04em; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; font-family: var(--mono); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.nav a[aria-current="page"] { border-bottom: 2px solid var(--ink); }
.nav .signin { padding: 10px 18px; background: var(--ink); color: var(--bar); }

/* buttons and tags */
.btn { display: inline-block; padding: 15px 28px; font-weight: 700; font-size: 16px; line-height: 1.2; border: 0; cursor: pointer; font-family: var(--body); }
.btn-gold { background: var(--gold); color: var(--black); }
.btn-line { border: 2px solid var(--outline); color: var(--text); font-weight: 600; padding: 13px 26px; background: transparent; }
.btn-white { border: 2px solid var(--white); color: var(--white); padding: 13px 26px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.tag { display: inline-block; padding: 3px 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.tag-red { background: var(--red); color: var(--white); }
.tag-gold { background: var(--gold); color: var(--black); }
.tag-line { border: 1px solid var(--outline); color: var(--text); }

/* media frames */
.frame { position: relative; overflow: hidden; background: var(--panel-2); }
.frame img, .frame video { width: 100%; height: 100%; object-fit: cover; }
.frame.empty { background-image: repeating-linear-gradient(180deg, transparent 0 56px, rgba(255,255,255,.1) 56px 57px); }
.frame .cap { position: absolute; left: 14px; bottom: 12px; right: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); }
.frame figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; background: linear-gradient(transparent, rgba(0,0,0,.7)); font-size: 14px; color: var(--text); }
figure { margin: 0; }

/* layout */
.section { padding: 56px var(--side); }
.section + .section { border-top: 1px solid var(--line); }
.section.flush-top { border-top: 0; }
.split { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }
.split.top { align-items: flex-start; }
.row-head { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: baseline; }
.row-head .link { font-family: var(--mono); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }

/* masthead */
.masthead { display: flex; flex-wrap: wrap; background: var(--charcoal); padding: 0 var(--side); }
.masthead .copy { flex: 1 1 520px; min-width: 0; padding: 48px 40px 52px 0; }
.masthead h1 { margin-top: 16px; }
.masthead .lede { margin-top: 24px; }
.masthead .btn-row { margin-top: 28px; }
.masthead .media { flex: 1 1 480px; min-width: 0; min-height: 420px; border-left: 4px solid var(--red); }
.masthead .media .frame { height: 100%; min-height: 420px; }
.page-title { display: flex; flex-wrap: wrap; background: var(--charcoal); padding: 0 var(--side); }
.page-title .copy { flex: 1 1 560px; min-width: 0; padding: 44px 40px 48px 0; }
.page-title h1 { margin-top: 14px; }
.page-title .lede { margin-top: 22px; }
.page-title .btn-row { margin-top: 28px; }
.page-title .media { flex: 1 1 420px; min-width: 0; min-height: 360px; border-left: 4px solid var(--red); }
.page-title .media .frame { height: 100%; min-height: 360px; }
.page-title.no-media .copy { flex-basis: 100%; }

/* cards and tiles */
.tiles { display: flex; flex-wrap: wrap; gap: 12px; }
.tile { flex: 1 1 190px; min-width: 0; padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--red); }
.tile .k { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-mute); }
.tile .v { margin-top: 6px; font-size: 19px; font-weight: 600; }
.cards { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.card { flex: 1 1 240px; min-width: 0; padding: 20px; background: var(--panel); border-top: 3px solid var(--red); }
.card .k { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.card h3 { margin-top: 10px; }
.card p { margin-top: 6px; color: var(--text-soft); font-size: 16px; line-height: 1.5; }
.card.gold-top { border-top-color: var(--gold); }

/* lists */
.rows { margin-top: 24px; border-top: 2px solid var(--text); }
.rows > * { padding: 18px 0; border-bottom: 1px solid var(--line); }
.rows .k { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); }
.rows .v { margin-top: 6px; font-size: 19px; line-height: 1.5; }
.event { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: flex-start; }
.event .when { flex: 0 0 110px; }
.event .when .dow { font-family: var(--mono); font-size: 13px; letter-spacing: .12em; color: var(--text-mute); }
.event .when .num { font-family: var(--display); font-variation-settings: 'opsz' 96; font-weight: 300; font-size: 64px; line-height: 1; letter-spacing: -.03em; }
.event .what { flex: 1 1 280px; min-width: 0; }
.event .what h3 { margin-top: 8px; font-size: 30px; }
.event .what p { margin-top: 6px; color: var(--text-soft); font-size: 16px; }
.event.regatta .num { color: var(--red); }
.month-label { margin-top: 36px; font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); }
.month-label:first-of-type { margin-top: 0; }

/* red bands */
.band-red { background: var(--red); color: var(--white); padding: 48px var(--side); }
.band-red .eyebrow { color: var(--white); }
.band-red h2 { color: var(--white); }
.band-red .rows { border-top-color: var(--white); }
.band-red .rows > * { border-bottom-color: rgba(255,255,255,.45); }
.band-red .btn-gold { color: var(--black); }
.band-red .lede { color: var(--white); }
.giving { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.giving > * { flex: 1 1 380px; min-width: 0; }
.giving h2 { font-size: clamp(48px, 7vw, 72px); line-height: .95; letter-spacing: -.03em; }
.course-top { display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 13px; }
.course { position: relative; margin-top: 8px; height: 40px; border-top: 3px solid var(--white); border-bottom: 3px solid var(--white); background-image: repeating-linear-gradient(90deg, transparent 0 24.9%, var(--white) 24.9% 25%); }
.course i { position: absolute; left: 0; top: 5px; height: 24px; background: var(--gold); min-width: 24px; }
.course-note { margin-top: 8px; font-family: var(--mono); font-size: 13px; }
.help-row { display: flex; flex-wrap: wrap; gap: 6px 28px; align-items: baseline; }
.help-row .w { flex: 0 0 200px; font-family: var(--mono); font-size: 14px; font-weight: 600; text-transform: uppercase; }
.help-row .t { flex: 1 1 300px; min-width: 0; font-family: var(--display); font-variation-settings: 'opsz' 96; font-size: 26px; font-weight: 500; line-height: 1.15; }
.help-row .n { flex: 0 0 auto; }
.help-row .who { flex: 1 1 100%; font-size: 15px; }

/* family box */
.private { padding: 28px; border: 1px dashed var(--outline); background: var(--charcoal); }
.private .eyebrow { color: var(--text-mute); display: flex; gap: 10px; align-items: center; }
.private h3 { margin-top: 14px; font-size: 28px; }
.private p { margin-top: 10px; color: var(--text-soft); }
.private .btn { margin-top: 18px; }

/* progress course label colors on dark pages */
.timeline { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.timeline .card { flex: 1 1 240px; }

/* calendar */
.filters { display: flex; flex-wrap: wrap; gap: 10px; padding: 28px var(--side) 0; font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.filters a { padding: 10px 20px; border: 2px solid var(--outline); }
.filters a[aria-current="true"] { background: var(--text); color: var(--black); border-color: var(--text); font-weight: 600; }
.cal-layout { display: flex; flex-wrap: wrap; gap: 56px; padding: 36px var(--side) 72px; align-items: flex-start; }
.cal-layout .list { flex: 3 1 520px; min-width: 0; }
.cal-layout aside { flex: 2 1 320px; min-width: 300px; max-width: 440px; }
.mgrid-head { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--display); font-variation-settings: 'opsz' 96; font-size: 30px; }
.mgrid-head a { font-family: var(--mono); font-size: 15px; color: var(--text-mute); padding: 0 6px; }
.mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 12px; text-align: center; }
.mgrid .dow { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--text-mute); padding-bottom: 4px; }
.mgrid .d { padding: 10px 0; font-size: 16px; }
.mgrid .d.out { color: #666; }
.mgrid .d.today { font-weight: 700; border-bottom: 2px solid var(--gold); }
.mgrid .d.team { border: 1px solid var(--text); font-weight: 600; }
.mgrid .d.fundraiser { background: var(--gold); color: var(--black); font-weight: 700; }
.mgrid .d.regatta { background: var(--red); color: var(--white); font-weight: 700; }
.legend { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--text-mute); }
.give-box { margin-top: 28px; padding: 24px; background: var(--red); color: var(--white); }
.give-box p { margin-top: 10px; font-size: 20px; font-weight: 600; line-height: 1.4; }
.give-box .btn { margin-top: 16px; padding: 12px 24px; }

/* newsletter */
.issue { display: flex; flex-wrap: wrap; gap: 56px; padding: 56px var(--side) 72px; align-items: flex-start; }
.issue .toc { flex: 1 1 220px; max-width: 260px; min-width: 200px; position: sticky; top: 24px; }
.issue .toc ul { list-style: none; margin: 14px 0 0; padding: 0; border-top: 2px solid var(--text); font-size: 17px; }
.issue .toc li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
.issue article { flex: 3 1 560px; min-width: 0; max-width: 760px; }
.issue article section + section { margin-top: 64px; }
.issue article h2 { margin-top: 8px; font-size: 40px; }
.issue .prose { margin-top: 18px; }
.issue .frame { margin-top: 24px; }
.photo-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.photo-grid .frame { flex: 1 1 220px; min-height: 220px; margin: 0; }
.link-list { margin-top: 14px; border-top: 2px solid var(--text); font-size: 19px; }
.link-list a { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); }
.archive { list-style: none; margin: 24px 0 0; padding: 0; border-top: 2px solid var(--text); }
.archive li a { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-variation-settings: 'opsz' 96; font-size: 30px; font-weight: 400; }

/* forms (family sign-in) */
.form { max-width: 460px; }
.form label { display: block; margin-top: 18px; font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); }
.form input[type=password], .form input[type=text] { width: 100%; margin-top: 8px; padding: 14px; font-size: 18px; background: var(--panel); color: var(--text); border: 2px solid var(--outline); font-family: var(--body); }
.form .btn { margin-top: 22px; }
.notice { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--gold); color: var(--gold); }

/* footer */
.foot { padding: 28px var(--side); border-top: 4px solid var(--red); display: flex; flex-wrap: wrap; gap: 10px 40px; justify-content: space-between; font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-mute); }
.foot b { color: var(--text); font-weight: 600; }
.foot a { border-bottom: 1px solid var(--outline); }

@media (max-width: 720px) {
  .masthead .copy, .page-title .copy { padding-right: 0; }
  .masthead .media, .page-title .media { border-left: 0; border-top: 4px solid var(--red); min-height: 260px; }
  .masthead .media .frame, .page-title .media .frame { min-height: 260px; }
  .event .when { flex-basis: 100%; display: flex; gap: 12px; align-items: baseline; }
  .event .when .num { font-size: 48px; }
  .issue .toc { position: static; max-width: none; }
  .help-row .w { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } video { animation: none; } }

/* newsletter sections: any number of sections, any amount of text, any number of photos */
.issue article .sec + .sec, .issue article .sec + section, .issue article section + .sec { margin-top: 64px; }
.issue article .is-help { padding: 36px; background: var(--red); color: var(--white); }
.issue article .is-help h2 { color: var(--white); }
.issue .is-help .rows { border-top-color: var(--white); }
.issue .is-help .rows > * { border-bottom-color: rgba(255,255,255,.45); }
.auto-note { margin-top: 14px; font-size: 14px; }
.help-row .t.plain { font-family: var(--body); font-variation-settings: normal; font-size: 19px; font-weight: 500; }
.help-row .from { font-family: var(--body); font-size: 15px; font-weight: 400; }
.help-row .from a { border-bottom: 1px solid currentColor; }
.shot { margin: 24px 0 0; }
.shot img { display: block; max-width: 100%; max-height: 640px; width: auto; height: auto; }
.shot figcaption, .tile figcaption { font-size: 14px; color: var(--text-mute); padding-top: 8px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 24px; }
.tile { margin: 0; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--panel-2); }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: var(--text); }
.beside { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; margin-top: 18px; }
.beside .text { flex: 1 1 320px; min-width: 0; }
.beside .text .prose { margin-top: 0; }
.beside .shot { flex: 1 1 280px; min-width: 0; margin: 0; }
.issue-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 72px; padding-top: 24px; border-top: 2px solid var(--text); }
.issue-nav a { display: flex; flex-direction: column; gap: 4px; }
.issue-nav a.r { text-align: right; margin-left: auto; }
.issue-nav .k { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-mute); }
.issue-nav .v { font-family: var(--display); font-variation-settings: 'opsz' 96; font-size: 28px; line-height: 1.1; }
h2.year { margin-top: 40px; font-size: 40px; }
h2.year:first-of-type { margin-top: 0; }
.archive li a .t { flex: 1; color: var(--text-mute); font-family: var(--body); font-variation-settings: normal; font-size: 16px; }
