/* Shared by the standalone homepage and Jekyll content pages. */
@font-face {
    font-family: "Work Sans";
    src: url("../fonts/WorkSans-Variable.woff") format("woff");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}
@font-face {
    font-family: Spectral;
    src: url("../fonts/Spectral-SemiBold.woff") format("woff");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: Spectral;
    src: url("../fonts/Spectral-Bold.woff") format("woff");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}
:root {
    --font-body: "Work Sans", system-ui, sans-serif;
    --font-heading: Spectral, Georgia, serif;
    --brand: #8f001a;
    --brand-hover: #6d0014;
    --ink: #2d2d2c;
    --muted: #5e5d59;
    --surface: #fff;
    --surface-quiet: #f2f2f2;
    --border: #d8d5cf;
    --text-title: clamp(2rem, 1.5rem + 2vw, 3rem);
    --text-section: clamp(1.5rem, 1.25rem + 1vw, 2rem);
    --text-subheading: clamp(1.25rem, 1.125rem + .5vw, 1.5rem);
    --text-body: clamp(1rem, .975rem + .125vw, 1.125rem);
    --radius-card: 1rem;
    --radius-control: .5rem;
    --shadow-rest: 0 .25rem 1rem rgb(45 45 44 / 6%);
    --shadow-hover: 0 .6rem 1.5rem rgb(45 45 44 / 13%);
    --motion-duration: 180ms;
    --motion-ease: cubic-bezier(.2, .7, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
body { font-family: var(--font-body); font-size: var(--text-body); }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
}
h1 { font-size: var(--text-title); }
h2 { font-size: var(--text-section); }
h3, h4 { font-size: var(--text-subheading); }
.content-page main > h1,
.content-page hgroup h1,
.faq-header h1 { text-align: left; font-weight: 600; }
.content-page h1::after { margin: .9rem 0 0; height: .2rem; width: 3rem; }
.content-page main > p { margin-inline: 0; max-width: 72ch; }
.content-page main > hgroup,
.content-page .prose { width: 100%; }
.content-page .prose p, .content-page .prose > ul, .content-page .prose > ol {
    max-width: 72ch;
    font-size: var(--text-body);
}
.content-page hgroup > p:not(.eyebrow) {
    max-width: 65ch;
    margin-inline: 0;
    text-align: left;
    font-family: var(--font-body);
    font-size: var(--text-body);
    letter-spacing: 0;
    line-height: 1.7;
}
.eyebrow { text-align: left; letter-spacing: .09em; }
.content-page p, .content-page li, .content-page dd { overflow-wrap: anywhere; }
.content-page .prose ul { list-style: disc; }
.content-page .prose ol { list-style: decimal; }
.content-page .prose ul ul { list-style: circle; }
.content-page .prose ol ol { list-style: lower-alpha; }
.content-page .prose li { font-size: var(--text-body); }
.content-page :is(h2, h3) { font-weight: 600; }
.content-page :is(.grid, .sponsor, .video-frame, .pic) { width: 100%; }
.content-page :is(.grid__item, .grid-item, .team-card, .sponsor, .competition-card, .about-intro__visual, .spec-list, .spec-section__media, .project-overview-media figure) {
    border-radius: var(--radius-card);
    border-color: var(--border);
    box-shadow: var(--shadow-rest);
}
.content-page :is(.grid__item, .grid-item, .sponsor, .competition-card, .spec-list) { background-color: var(--surface); }
.content-page .subteam-grid .grid__item { background-color: var(--brand); }
.site-nav__brand a {
    display: grid;
    padding: .35rem;
    border-radius: var(--radius-control);
    background: var(--surface);
}
.site-nav__brand img { width: 2rem; height: 2rem; }
.site-nav__link { min-height: 2.75rem; }
.site-nav__link:focus-visible { background: rgb(255 255 255 / 12%); }
.site-nav :focus-visible, .home-page :focus-visible { outline: 3px solid white; outline-offset: 3px; }
.content-page :focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.content-page .site-nav :focus-visible { outline-color: white; }
.about-intro__visual img { max-height: 12rem; width: min(100%, 32rem); margin-inline: auto; }
.interact { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.interact__button, .interact a > button { min-height: 2.75rem; font-weight: 650; }
.interact__button, .home-action, .home-nav__action {
    border-radius: var(--radius-control);
    transition: transform var(--motion-duration) var(--motion-ease), box-shadow var(--motion-duration) var(--motion-ease), background-color var(--motion-duration) var(--motion-ease), border-color var(--motion-duration) var(--motion-ease);
}
.interact__button:focus-visible, .interact__button:hover { background: var(--surface-quiet); filter: none; }
.interact__button.interact--important:focus-visible,
.interact__button.interact--important:hover { background: var(--brand-hover); }
.grid__item, .grid-item { transition: border-color var(--motion-duration) ease, box-shadow var(--motion-duration) ease; }
.grid__item:focus-within, .grid-item:focus-within { border-color: var(--brand); box-shadow: var(--shadow-hover); }
.grid__item a:focus-visible { outline-offset: -3px; }
.grid__item a:hover img, .grid-item a:hover img { transform: none; }
.breadcrumbs { margin-bottom: 1.5rem; font-size: .875rem; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; padding-right: .5rem; color: var(--muted); }
.breadcrumbs a { text-decoration: underline; text-underline-offset: .2em; }
.sitemap-list { width: 100%; margin: 0; padding: 0; list-style: none; }
.sitemap-list > li { padding: .75rem 0; border-bottom: 1px solid var(--border); }
.sitemap-list ul { margin: .5rem 0 0; padding-left: 1rem; border-left: 2px solid var(--border); }
.sitemap-list ul > li { padding: .25rem 0; border: 0; }
.faq-page { max-width: 52rem; }
.faq-header > p:last-child { color: var(--muted); max-width: 60ch; line-height: 1.7; }
.faq-list { display: grid; gap: .75rem; margin-block: 2rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-rest); }
.faq-item[open] { border-color: var(--brand); }
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3.75rem;
    padding: 1.15rem 1.25rem;
    border-radius: var(--radius-card);
    color: var(--ink);
    font-size: 1.0625rem;
    font-weight: 650;
    line-height: 1.5;
    list-style: none;
    cursor: pointer;
    transition: background-color var(--motion-duration) ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "";
    flex: 0 0 .55rem;
    width: .55rem;
    height: .55rem;
    margin-right: .25rem;
    border-right: 2px solid var(--brand);
    border-bottom: 2px solid var(--brand);
    transform: rotate(45deg);
    transition: transform var(--motion-duration) ease;
}
.faq-item[open] summary::after { transform: rotate(225deg); }
.faq-item summary:focus-visible { outline-offset: 3px; }
.faq-answer { padding: 0 1.25rem 1.25rem; color: var(--ink); line-height: 1.75; }
.faq-answer p { margin: 0 0 1rem; max-width: 68ch; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer a, .content-page .prose a { text-decoration: underline; }
.faq-next-steps { margin-top: 2.5rem; padding: 1.5rem; border-radius: var(--radius-card); background: var(--surface-quiet); border: 1px solid var(--border); }
.faq-next-steps h2 { margin: 0 0 .75rem; }
.faq-next-steps .interact { justify-content: flex-start; margin: 1rem 0 0; }
.home-page hgroup h1 { font-family: var(--font-body); font-weight: 750; }
.home-section h2 { font-family: var(--font-heading); font-size: var(--text-section); font-weight: 600; line-height: 1.25; }
.home-hero > img { padding: .75rem; border-radius: var(--radius-card); background: var(--surface); }
.home-project figure { border-radius: var(--radius-card); }
.home-page a:hover { filter: none; }
@media (hover: hover) and (pointer: fine) {
    .interact__button:hover, .home-action:hover, .home-nav__action:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
    .grid__item:has(a):hover, a.grid__item:hover { border-color: var(--brand); box-shadow: var(--shadow-hover); }
    .faq-item summary:hover { background: var(--surface-quiet); }
}
.interact__button:active, .home-action:active, .home-nav__action:active { transform: translateY(0); box-shadow: none; }
@media (max-width: 700px) {
    .site-header { padding: 0; }
    .site-nav__list > li { flex: 0 0 auto; }
    .site-nav__link { white-space: nowrap; overflow-wrap: normal; }
    .site-nav__list { scrollbar-width: thin; }
    .site-nav__list::-webkit-scrollbar { display: block; height: 3px; }
    .site-nav__list::-webkit-scrollbar-thumb { background: #80746c; }
    .faq-item summary, .faq-answer { padding-inline: 1rem; }
    .content-page main { padding-top: 2rem; }
}
@media (hover: none) {
    .home-action:hover, .home-nav__action:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
    .interact__button:hover, .home-action:hover, .home-nav__action:hover { transform: none; }
}
