/* team2053.org — one shared layout: "Column", hero treatment "focal band".
   Font and image URLs here are relative to this file, so the stylesheet works
   unchanged at frc2053.github.io/team2053.org/ and at team2053.org/. */

@font-face{font-family:'Space Mono';font-style:normal;font-weight:400;font-display:swap;
  src:url(../fonts/spacemono-regular-webfont.woff2) format('woff2'),url(../fonts/spacemono-regular-webfont.woff) format('woff')}
@font-face{font-family:'Space Mono';font-style:italic;font-weight:400;font-display:swap;
  src:url(../fonts/spacemono-italic-webfont.woff2) format('woff2'),url(../fonts/spacemono-italic-webfont.woff) format('woff')}
@font-face{font-family:'Space Mono';font-style:normal;font-weight:700;font-display:swap;
  src:url(../fonts/spacemono-bold-webfont.woff2) format('woff2'),url(../fonts/spacemono-bold-webfont.woff) format('woff')}
@font-face{font-family:'Space Mono';font-style:italic;font-weight:700;font-display:swap;
  src:url(../fonts/spacemono-bolditalic-webfont.woff2) format('woff2'),url(../fonts/spacemono-bolditalic-webfont.woff) format('woff')}

:root{
  --purple:#4600AA; --red:#DC0000;
  --bg:#000; --fg:#fff; --dim:#a9a3b5; --line:#2a2432; --panel:#0d0a12;
  --mono:'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --measure:68ch;
  /* Every cropped photo on the site shares one crop bias, toward the upper
     third where faces sit in a team photo. Defined once so the hero and the
     blog card cannot drift into two different crops. */
  --focal:50% 28%;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{background:var(--bg);color:var(--fg);font-family:var(--mono);font-size:17px;line-height:1.65;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:inherit}
:focus-visible{outline:2px solid var(--red);outline-offset:3px}

/* ── header ──────────────────────────────────────────────────── */
.head{border-bottom:1px solid var(--line);padding:1.6rem 1rem 1.1rem;text-align:center}
.mark{display:block;font-weight:700;letter-spacing:.24em;font-size:.82rem;text-transform:uppercase;text-decoration:none}
.mark b{color:var(--red)}
.nav{display:flex;flex-wrap:wrap;justify-content:center;gap:.4rem 1.5rem;margin-top:1rem}
.nav a{text-decoration:none;font-size:.8rem;letter-spacing:.06em;color:var(--dim);padding:.2rem 0;border-bottom:2px solid transparent}
.nav a:hover{color:var(--fg)}
.nav a[aria-current]{color:var(--fg);border-bottom-color:var(--red)}

/* ── hero: focal band ────────────────────────────────────────────
   Fixed-height full-bleed band. It crops, but object-position biases the
   crop to the upper third, where faces sit in every team photo. */
.hero{position:relative;height:min(52vh,460px);overflow:hidden;background:var(--panel)}
.hero img{width:100%;height:100%;object-fit:cover;object-position:var(--focal)}
.hero-scrim{position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.92) 0%,rgba(0,0,0,.35) 55%,transparent 100%)}
.hero-cap{position:absolute;left:0;right:0;bottom:0;padding:2rem 1rem;max-width:var(--measure);margin:0 auto}
.hero-cap h1,.noimg h1{font-size:clamp(1.9rem,5vw,3rem);line-height:1.15;font-weight:700;margin:0}
.hero-cap .updated,.noimg .updated{display:block;margin-top:.7rem}

/* No hero image: a plain title block, never an empty 460px void. */
.noimg{max-width:var(--measure);margin:0 auto;padding:3.5rem 1rem 0}

.updated{font-size:.72rem;letter-spacing:.09em;text-transform:uppercase;color:var(--dim)}

/* ── body: one 68ch measure ──────────────────────────────────── */
.body{max-width:var(--measure);margin:0 auto;padding:2.5rem 1rem 0}
.body>p:first-child{font-size:1.15rem;color:var(--dim);margin-bottom:2rem}

/* Every heading level the rich-text editor can reach is styled. A student can
   pick any of them and no document will ever have to warn them off one. */
.body :is(h1,h2,h3,h4,h5,h6){line-height:1.2;font-weight:700}
.body h1{font-size:1.8rem;margin:3.2rem 0 1rem;padding-top:1rem;border-top:3px solid var(--red)}
.body h2{font-size:1.45rem;margin:3rem 0 1rem;padding-top:1rem;border-top:3px solid var(--red)}
.body h3{font-size:1.2rem;margin:2.4rem 0 .8rem}
.body h4{font-size:1.02rem;margin:2rem 0 .6rem}
.body h5{font-size:.85rem;margin:1.8rem 0 .5rem;letter-spacing:.12em;text-transform:uppercase;color:var(--dim)}
.body h6{font-size:.75rem;margin:1.6rem 0 .5rem;letter-spacing:.16em;text-transform:uppercase;color:var(--dim)}
.body :is(h1,h2,h3,h4,h5,h6):first-child{margin-top:0;padding-top:0;border-top:0}

.body p{margin:0 0 1.1em}
.body :is(ul,ol){margin:0 0 1.2em;padding-left:1.4em}
.body li{margin:.35em 0}
.body a{text-decoration:underline;text-decoration-color:var(--red);text-underline-offset:.2em}
.body img{width:100%;border-radius:.6rem;margin:1.6rem 0}
.body figure{margin:1.6rem 0}
.body figcaption{font-size:.72rem;color:var(--dim);margin-top:.5rem}
.body blockquote{margin:1.6rem 0;padding:.2rem 0 .2rem 1.2rem;border-left:3px solid var(--line);color:var(--dim)}
.body hr{border:0;border-top:1px solid var(--line);margin:2.5rem 0}
.body code{font-size:.85em;background:var(--panel);border:1px solid var(--line);border-radius:.3rem;padding:.1em .35em}
.body pre{background:var(--panel);border:1px solid var(--line);border-radius:.5rem;padding:1rem;overflow-x:auto}
.body pre code{background:none;border:0;padding:0}
.body table{width:100%;border-collapse:collapse;margin:1.6rem 0;font-size:.9rem;display:block;overflow-x:auto}
.body :is(th,td){border:1px solid var(--line);padding:.5rem .7rem;text-align:left}
.body th{background:var(--panel)}

/* ── footer ──────────────────────────────────────────────────── */
.foot{max-width:var(--measure);margin:6rem auto 0;padding:2rem 1rem 3rem;border-top:1px solid var(--line);text-align:center}
.foot small{display:block;margin-top:1.2rem;color:var(--dim);font-size:.72rem;line-height:1.8}

/* ── blog index cards ────────────────────────────────────────────
   One column at the same 68ch measure as prose, because a card grid would
   need breakpoints to maintain and a blog this size never fills one. The
   picture is fixed-height and shares the hero's --focal crop, so cards stay
   the same shape whatever a student uploads. */
.cards{list-style:none;margin:0;padding:0}
.card{margin:0 0 3rem;padding:0 0 3rem;border-bottom:1px solid var(--line)}
.card:last-child{border-bottom:0;padding-bottom:0}
.card-link{display:block;text-decoration:none}
.card-img{width:100%;height:min(34vw,220px);object-fit:cover;object-position:var(--focal);border-radius:.6rem;background:var(--panel)}
.card-title{font-size:1.35rem;line-height:1.2;font-weight:700;margin:1.1rem 0 .6rem}
.card-link:hover .card-title{text-decoration:underline;text-decoration-color:var(--red);text-underline-offset:.2em}
.card-sum{margin:.7rem 0 0;color:var(--dim)}
/* ── history year ────────────────────────────────────────────────
   Everything here is emitted by layouts/history/, never typed into a page. */
.facts{margin:2rem 0;padding:1.2rem 1.4rem;background:var(--panel);border:1px solid var(--line);border-radius:.6rem}
.facts dt{font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:var(--dim);margin-top:1.2rem}
.facts dt:first-child{margin-top:0}
.facts dd{margin:.25rem 0 0}
.facts ul{margin:0;padding-left:1.2em}
.facts li{margin:.2em 0}

/* Game logos are dark artwork on a transparent background: on this site's
   black they would be very nearly invisible. The white is a literal and not a
   palette token on purpose - it is not one of this site's colours, it is the
   paper the artwork was drawn for, and theming it would hide the logos. */
.gamelogo{background:#fff;padding:1rem}

/* Reserves the 16:9 box before the iframe loads, so nothing below it jumps. */
.video{position:relative;aspect-ratio:16/9;margin:1.6rem 0;background:var(--panel);border-radius:.6rem;overflow:hidden}
.video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

/* ── history index ───────────────────────────────────────────── */
.years{list-style:none;margin:2.5rem 0 0;padding:0}
.years li{margin:0 0 3rem}
.years a{display:block;text-decoration:none}
/* Cropped to a fixed band, the same trick the hero uses. Uploads keep their
   own proportions - the CMS caps width, not shape - so a phone photo held
   upright would otherwise render as a column taller than the screen, and the
   list would stop being a list. */
.years a img{border-radius:.6rem;margin:0 0 .9rem;aspect-ratio:16/9;object-fit:cover;object-position:50% 28%}
.years a span{font-size:1.2rem;font-weight:700;border-bottom:2px solid transparent}
.years a:hover span{border-bottom-color:var(--red)}
.years p{margin:.6rem 0 0;color:var(--dim);font-size:.9rem}
/* ── sponsor grid ────────────────────────────────────────────────
   The 15 committed logos are not a consistent set - some white-on-transparent,
   some with a baked white background, IEEE grey-on-transparent and nearly
   invisible on dark. The NAME AND TIER UNDER EACH CARD is the fix: the grid
   stays legible however any one logo reads, and no logo has to be re-cut,
   which is exactly the maintenance nobody would do.

   Selectors are two classes deep on purpose. The block sits inside .body, and
   `.body h3`, `.body img` and `.body a` would otherwise win on specificity. */
/* Breaks out of the 68ch measure and stops at 1100px: 15 logos two-abreast is
   a very long page, and the grid is not prose. The width is `100vw` minus the
   measure's own gutters rather than a bare `100vw`, which on a desktop with a
   classic (non-overlay) scrollbar overflows by the scrollbar's width and puts
   a horizontal scrollbar on the page. */
.sponsorwrap{width:min(1100px,calc(100vw - 2rem));position:relative;left:50%;transform:translateX(-50%)}
.sponsorwrap .sponsor-tier{margin:2.6rem 0 1.2rem;padding:0 0 .5rem;border-top:0;border-bottom:1px solid var(--line);font-size:.75rem;letter-spacing:.18em;text-transform:uppercase;color:var(--dim)}
.sponsorwrap .sponsor-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:1.6rem 1.4rem;margin-bottom:1rem}
.sponsorwrap .sponsor{margin:0;display:flex;flex-direction:column;gap:.7rem}
.sponsorwrap .plate{border:1px solid var(--line);border-radius:.6rem;background:#141018;padding:1.1rem;height:150px;display:flex;align-items:center;justify-content:center}
.sponsorwrap .plate img{max-height:100%;max-width:100%;width:auto;margin:0;border-radius:0;object-fit:contain}
.sponsorwrap .sponsor figcaption{font-size:.78rem;line-height:1.4;color:var(--fg);margin:0}
.sponsorwrap .tierlab{display:block;font-size:.64rem;letter-spacing:.12em;text-transform:uppercase;color:var(--dim);margin-top:.15rem}

/* The sponsor packet: a link, never an <embed>. */
.packet{margin:2rem 0}
.packet .dl{display:inline-flex;align-items:center;gap:.6rem;border:2px solid var(--fg);border-radius:3rem;padding:.6rem 1.4rem;text-decoration:none;font-size:.9rem}
.packet .dl:hover{background:var(--fg);color:var(--bg)}

/* ── footer socials ──────────────────────────────────────────────
   36px circles carrying the eight inline SVG glyphs. The row wraps, so a
   platform removed in the CMS simply leaves one fewer circle. */
.socials{display:flex;flex-wrap:wrap;gap:.7rem;justify-content:center;margin:1.4rem 0;padding:0;list-style:none}
.socials li{margin:0}
.socials a{width:36px;height:36px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;color:var(--dim);text-decoration:none;font-size:.8rem;transition:.15s}
.socials a svg{width:19px;height:19px;fill:currentColor;display:block}
.socials a:hover{border-color:var(--fg);color:var(--fg)}

/* The grid's own heading, so prose can never drift away from where the logos
   actually are. Matched to the body's h2 rule, which it sits outside of. */
.sponsor-head{font-size:1.45rem;line-height:1.2;font-weight:700;margin:3rem 0 1rem;padding-top:1rem;border-top:3px solid var(--red)}
