@font-face { font-family: "Saira"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/saira-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Saira"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/saira-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Saira"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/saira-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Saira"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/saira-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Saira Extra Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/saira-extra-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Saira Extra Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/saira-extra-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Saira Extra Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/saira-extra-condensed-latin-800-normal.woff2") format("woff2"); }

/* Coach DiCarlo — site styles
   Colors are taken directly from the logo artwork. */
:root {
  --red: #ED1C24;        /* logo red */
  --red-deep: #B31D23;   /* logo shading red, used for small red text (passes contrast on white) */
  --ink: #231F20;        /* logo black */
  --silver: #D1D3D4;     /* the color the cut-out DICARLO letters are designed to show */
  --silver-light: #EBECEC;
  --white: #FFFFFF;
  --text: #231F20;
  --muted: #5A5557;

  --display: "Saira Extra Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Saira", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --measure: 68ch;
  --gap: clamp(1rem, 3vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin: 0 0 .5em;
}
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); letter-spacing: .02em; }
p, li { max-width: var(--measure); }
p { margin: 0 0 1em; }
strong { font-weight: 700; }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--ink);
  color: #fff;
  position: sticky; top: 0; z-index: 50;
  border-bottom: 4px solid var(--red);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .75rem; color: #fff; text-decoration: none; }
.brand img { width: 92px; background: var(--silver); padding: 5px 6px; border-radius: 4px; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 1.6rem; letter-spacing: .04em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav > a, .nav-group > button {
  font: 600 1.25rem/1 var(--display);
  letter-spacing: .05em; text-transform: uppercase;
  color: #fff; background: none; border: 0; cursor: pointer;
  padding: .85rem .9rem; text-decoration: none; border-radius: 3px;
}
.nav > a:hover, .nav-group > button:hover, .nav-group.open > button { background: rgba(255,255,255,.1); color: #fff; }
.nav [aria-current="page"], .nav-group.current > button { color: #fff; box-shadow: inset 0 -3px 0 var(--red); }
.nav-group { position: relative; }
.nav-group > button::after { content: ""; display: inline-block; margin-left: .45em; border: 5px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.submenu {
  display: none; position: absolute; top: 100%; right: 0; min-width: 240px;
  background: #fff; border-top: 4px solid var(--red); padding: .4rem 0; margin: 0; list-style: none;
  box-shadow: 0 12px 30px rgba(35,31,32,.25);
}
.nav-group.open .submenu { display: block; }
.submenu a { display: block; padding: .6rem 1.1rem; color: var(--ink); text-decoration: none; font-weight: 500; }
.submenu a:hover { background: var(--silver-light); color: var(--red-deep); }
.submenu a[aria-current="page"] { color: var(--red-deep); font-weight: 700; }

.menu-toggle { display: none; background: none; border: 2px solid #fff; color: #fff; font: 700 1rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; padding: .55rem .8rem; border-radius: 3px; cursor: pointer; }

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--ink); padding: .5rem var(--gap) 1.5rem; border-bottom: 4px solid var(--red); max-height: calc(100vh - 76px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav > a, .nav-group > button { width: 100%; text-align: left; padding: 1rem .25rem; font-size: 1.25rem; border-bottom: 1px solid rgba(255,255,255,.12); border-radius: 0; }
  .nav [aria-current="page"], .nav-group.current > button { box-shadow: none; color: var(--red); }
  .nav-group > button::after { float: right; margin-top: .3em; }
  .submenu { position: static; box-shadow: none; border: 0; background: transparent; padding: 0 0 .5rem; }
  .submenu a { color: #ddd; padding: .65rem 1rem; }
  .submenu a:hover { background: rgba(255,255,255,.08); color: #fff; }
  .submenu a[aria-current="page"] { color: var(--red); }
}

/* ---------- Page title: the logo's black nameplate with inset red outline ---------- */
.page-head { background: var(--silver); padding: clamp(2rem, 6vw, 4rem) 0 clamp(1.5rem, 4vw, 2.5rem); position: relative; overflow: hidden; }
.page-head .seams { position: absolute; right: -6%; bottom: -55%; width: min(70vw, 760px); opacity: .9; pointer-events: none; }
.plate {
  display: inline-block; position: relative;
  background: var(--ink); color: var(--silver);
  padding: .18em .35em .12em;
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  margin: 0;
}
.plate::after { content: ""; position: absolute; inset: 6px; border: 2px solid var(--red); pointer-events: none; }
.page-head .lede { margin: 1.25rem 0 0; font-size: 1.15rem; max-width: 60ch; position: relative; }

/* ---------- Sections ---------- */
.section { padding: clamp(2.5rem, 7vw, 5rem) 0; }
.section:not(.alt):not(.dark) + .section:not(.alt):not(.dark) { padding-top: 0; }
.section.alt { background: var(--silver-light); padding-top: clamp(2.5rem, 7vw, 5rem); }
.section.dark { background: var(--ink); color: #eee; padding-top: clamp(2.5rem, 7vw, 5rem); }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark a { color: #fff; }
.section-title { border-bottom: 3px solid var(--ink); padding-bottom: .35rem; margin-bottom: 1.5rem; }
.section.dark .section-title { border-color: var(--red); }

.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--red); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.two-col.media-right { grid-template-columns: 1.15fr .85fr; }
@media (max-width: 800px) { .two-col, .two-col.media-right { grid-template-columns: 1fr; } }

/* Tenets: definition-style rows */
.tenets { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(35,31,32,.2); }
.tenets li { display: grid; grid-template-columns: minmax(9rem, 14rem) 1fr; gap: 1rem 2rem; padding: 1.1rem 0; border-bottom: 1px solid rgba(35,31,32,.2); max-width: none; }
.tenets li > strong { font-family: var(--display); font-size: 1.5rem; font-weight: 800; text-transform: uppercase; line-height: 1.05; }
.tenets li > div p:last-child { margin-bottom: 0; }
.section.dark .tenets, .section.dark .tenets li { border-color: rgba(255,255,255,.18); }
.section.dark .tenets li > strong { color: var(--red); }
@media (max-width: 640px) { .tenets li { grid-template-columns: 1fr; gap: .25rem; } }

/* Pull quote */
.callout { border-left: 6px solid var(--red); padding: .25rem 0 .25rem 1.25rem; margin: 1.5rem 0; font-size: 1.2rem; font-weight: 500; max-width: 60ch; }

/* ---------- Video ---------- */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1.5rem; }
.video figure, figure.video { margin: 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--ink); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video figcaption, figure.video figcaption { font-size: .92rem; color: var(--muted); padding-top: .5rem; }
.section.dark figure.video figcaption { color: #bbb; }

/* ---------- Galleries ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
.gallery a { display: block; background: #fff; border: 1px solid var(--silver); }
.gallery a:hover { border-color: var(--red); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery.docs img { aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.gallery.three { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.gallery.natural img { aspect-ratio: auto; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(35,31,32,.9); }
.lightbox img { max-width: 94vw; max-height: 88vh; width: auto; margin: 0 auto; background: #fff; }
.lightbox button { display: block; margin: .6rem auto 0; background: var(--red); color: #fff; border: 0; font: 700 1rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; padding: .7rem 1.4rem; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; background: var(--red); color: #fff; text-decoration: none; font: 700 1.15rem/1 var(--display); letter-spacing: .07em; text-transform: uppercase; padding: .85rem 1.3rem; border: 2px solid var(--red); }
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfcfcf; padding: 3rem 0 2rem; border-top: 6px solid var(--red); }
.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 2rem; }
.footer-grid h4 { font: 700 1.1rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: #fff; margin: 0 0 .8rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .35rem; }
.footer-grid a { color: #cfcfcf; text-decoration: none; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-logo { width: 150px; background: var(--silver); padding: 8px; border-radius: 4px; margin-bottom: 1rem; }
.motto { font: 800 1.6rem/1 var(--display); text-transform: uppercase; color: var(--red); letter-spacing: .03em; }
.copyright { max-width: none; border-top: 1px solid rgba(255,255,255,.15); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .9rem; color: #9a9a9a; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ===================== Page-specific ===================== */

/* Home hero */
.hero { background: var(--silver); position: relative; overflow: hidden; padding: clamp(2.5rem, 7vw, 5rem) 0 0; }
.hero .seams { position: absolute; right: -12%; top: 4%; width: min(95vw, 980px); pointer-events: none; opacity: .7; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: end; }
.hero h1 { margin: 0 0 1.5rem; }
.hero h1 img { width: min(100%, 560px); }
.hero .intro { font-size: 1.15rem; max-width: 52ch; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1.75rem 0 clamp(2rem, 5vw, 4rem); }
.hero-photo { align-self: stretch; display: flex; align-items: flex-end; }
.hero-photo img { width: 100%; border: 8px solid var(--ink); border-bottom: 0; outline: 2px solid var(--red); outline-offset: -14px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-actions { margin-bottom: 2rem; } }

.honors { background: var(--ink); color: #fff; padding: 1.75rem 0; }
.honors ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem 2.5rem; }
.honors li { max-width: none; border-left: 4px solid var(--red); padding-left: 1rem; line-height: 1.35; }
.honors b { display: block; font: 800 1.45rem/1.05 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.honors span { color: #bdbdbd; font-size: .95rem; }
@media (max-width: 760px) { .honors ul { grid-template-columns: 1fr; } }

/* Resource index on home */
.index-group { margin-bottom: 2.5rem; }
.index-group > h3 { color: var(--red-deep); font-size: 1.2rem; letter-spacing: .1em; margin-bottom: .5rem; }
.index-list { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--ink); }
.index-list li { max-width: none; border-bottom: 1px solid rgba(35,31,32,.2); }
.index-list a { display: grid; grid-template-columns: minmax(14rem, 26rem) 1fr; gap: .25rem 2rem; padding: 1rem .25rem; color: var(--ink); text-decoration: none; align-items: baseline; }
.index-list a b { font: 800 clamp(1.5rem, 3vw, 2rem)/1 var(--display); text-transform: uppercase; }
.index-list a span { color: var(--muted); }
.index-list a:hover { background: var(--silver-light); }
.index-list a:hover b { color: var(--red-deep); }
@media (max-width: 640px) { .index-list a { grid-template-columns: 1fr; } }

.photo-pair { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1rem; }
.photo-pair img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .photo-pair { grid-template-columns: 1fr; } }

.big-motto { font: 800 clamp(3rem, 11vw, 8.5rem)/.9 var(--display); text-transform: uppercase; color: var(--ink); margin: 0 0 2rem; letter-spacing: .01em; }
.section.dark .big-motto { color: #fff; -webkit-text-stroke: 0; }
.section.dark .big-motto span { color: var(--red); display: block; }

/* About */
.headshot { width: 220px; aspect-ratio: 1; object-fit: cover; object-position: center 20%; border-radius: 50%; border: 6px solid var(--ink); outline: 2px solid var(--red); outline-offset: -10px; background: var(--silver); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid rgba(35,31,32,.2); max-width: none; }
.timeline .when { font: 700 1.1rem/1.2 var(--display); letter-spacing: .04em; color: var(--red-deep); }
.timeline h3 { margin: 0 0 .25rem; font-size: 1.5rem; }
.timeline p { margin: 0; color: var(--muted); }
@media (max-width: 600px) { .timeline li { grid-template-columns: 1fr; gap: .2rem; } }
.honor-list { list-style: none; padding: 0; margin: 0; }
.honor-list li { padding: .55rem 0; border-bottom: 1px solid rgba(35,31,32,.15); display: flex; justify-content: space-between; gap: 1rem; max-width: none; }
.honor-list li span:last-child { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.school-label { font: 800 1.35rem/1 var(--display); text-transform: uppercase; margin: 1.5rem 0 .4rem; }
.school-label:first-child { margin-top: 0; }

/* Athletes */
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 1.5rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.roster li { max-width: none; }
.roster .photo { aspect-ratio: 4 / 5; background: var(--silver); overflow: hidden; margin-bottom: .7rem; border-bottom: 4px solid var(--red); display: grid; place-items: center; }
.roster .photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.roster .photo.none::before { content: ""; width: 46%; aspect-ratio: 1; background: url("../img/ball.svg") center/contain no-repeat; opacity: .55; }
.roster h3 { font-size: 1.45rem; margin: 0 0 .2rem; line-height: 1.05; }
.roster .college { font-weight: 700; margin: 0; line-height: 1.3; }
.roster .from { margin: .2rem 0 0; color: var(--muted); font-size: .92rem; line-height: 1.35; }

/* Media */
.press { display: grid; grid-template-columns: 180px 1fr; gap: 1.5rem; align-items: start; }
.press img { width: 180px; }
@media (max-width: 560px) { .press { grid-template-columns: 1fr; } }

.calendar-slot { border: 3px dashed var(--silver); padding: 2rem; text-align: center; color: var(--muted); background: #fff; }
.calendar-embed { position: relative; aspect-ratio: 4 / 3; min-height: 520px; }
.calendar-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.checklist { columns: 2 260px; column-gap: 2.5rem; padding-left: 1.2rem; }
.checklist li { break-inside: avoid; }
.cost { color: var(--muted); white-space: nowrap; }
.season { display: inline-block; font-size: .8rem; font-weight: 600; background: var(--silver-light); border: 1px solid var(--silver); padding: 0 .45em; margin-left: .35em; border-radius: 2px; vertical-align: 1px; }
.section.alt .season { background: #fff; }
