/* Kasey Beattie Racing — colours and type taken from the 2027 marketing deck */
:root {
  --ink: #141414;
  --panel: #1b1c1e;
  --line: #2a2c30;
  --yellow: #eaff40;
  --text: #ffffff;
  --soft: #d6d9de;
  --muted: #9aa0a8;
  --paper: #f4f5f7;
  --head: "Chakra Petch", system-ui, sans-serif;
  --body: "Jura", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--head); line-height: 1.4; }
img { max-width: 100%; display: block; }
a { color: var(--yellow); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3 { margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--yellow); color: var(--ink); padding: 8px 14px; z-index: 10; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-top: 16px; padding-bottom: 16px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.nav a { color: #fff; font-size: 15px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--yellow); border-bottom-color: var(--yellow); }

/* type bits */
.eyebrow { margin: 0 0 14px; font-size: 14px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; }
.accent { color: var(--yellow); }
.muted { color: var(--muted); }
.center { text-align: center; }
.lede { font-family: var(--body); font-size: 19px; line-height: 1.6; max-width: 640px; margin: 0 0 36px; }
.page-top { padding-top: 64px; }
.page-title { font-size: clamp(44px, 6vw, 72px); line-height: .95; font-style: italic; text-transform: uppercase; margin-bottom: 26px; }

/* buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn { display: inline-block; background: var(--yellow); color: var(--ink); padding: 15px 26px; font-size: 16px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border: 2px solid var(--yellow); }
.btn:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn.ghost { background: transparent; color: #fff; border-color: #fff; }
.btn.ghost:hover { background: #fff; color: var(--ink); }
.btn.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.dark:hover { background: #333; border-color: #333; }

/* hero */
.hero { position: relative; min-height: 600px; overflow: hidden; background: var(--panel); display: flex; align-items: center; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,20,20,.96) 0%, rgba(20,20,20,.9) 34%, rgba(20,20,20,.35) 60%, rgba(20,20,20,0) 80%); }
.hero-copy { position: relative; width: 100%; padding-top: 80px; padding-bottom: 80px; }
.hero h1 { font-size: clamp(52px, 7.5vw, 92px); line-height: .9; font-weight: 700; font-style: italic; text-transform: uppercase; max-width: 640px; }
.hero-lede { font-family: var(--body); font-size: 20px; line-height: 1.5; font-weight: 500; color: var(--soft); max-width: 470px; margin: 22px 0 0; }

/* next race bar */
.next-race { background: var(--yellow); color: var(--ink); }
.next-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 36px; padding-top: 16px; padding-bottom: 16px; }
.next-row p { margin: 0; }
.next-k { font-size: 14px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.next-event { font-size: 24px; font-weight: 700; font-style: italic; }
.next-track { font-size: 17px; font-weight: 500; }
.next-watch { margin-left: auto !important; font-size: 15px; font-weight: 600; }

/* sections */
.section { padding-top: 80px; padding-bottom: 20px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; border-bottom: 2px solid var(--yellow); padding-bottom: 14px; margin-bottom: 34px; }
.section-head h2, .rule-h { font-size: 38px; font-weight: 700; font-style: italic; text-transform: uppercase; }
.section-head a, .more { font-size: 15px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.more { display: inline-block; margin-top: 18px; }

/* report cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px 36px; }
.card-link { display: flex; flex-direction: column; gap: 12px; color: #fff; }
.card-link:hover h3 { color: var(--yellow); }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--panel); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card-link:hover .card-img img { transform: scale(1.03); }
.card-img.light { background: #e9ebee; display: flex; align-items: center; justify-content: center; }
.card-img img.contain { object-fit: contain; width: 86%; height: auto; }
.tag { margin: 4px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .2em; color: var(--yellow); }
.tag.solid { display: inline-block; background: var(--yellow); color: var(--ink); padding: 6px 14px; margin: 0 0 16px; }
.card h3 { font-size: 25px; line-height: 1.2; font-weight: 700; }
.card-where { margin: 0; font-size: 15px; font-weight: 500; color: var(--muted); }
.card-excerpt { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.55; font-weight: 500; color: #bfc3ca; }

/* schedule */
.split { display: flex; flex-wrap: wrap; gap: 56px; }
.split-main { flex: 3 1 560px; min-width: 0; }
.panel { flex: 2 1 320px; min-width: 0; background: var(--panel); border-top: 4px solid var(--yellow); padding: 30px 32px 32px; align-self: flex-start; }
.panel h2 { font-size: 24px; font-style: italic; text-transform: uppercase; margin-bottom: 22px; }
.panel p { margin: 0 0 18px; font-family: var(--body); font-size: 16px; line-height: 1.45; font-weight: 500; color: var(--soft); }
.panel b { font-family: var(--head); color: var(--yellow); font-size: 18px; }
.table-scroll { overflow-x: auto; }
.sched { width: 100%; border-collapse: collapse; font-size: 17px; }
.sched th { text-align: left; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; padding: 10px 12px; }
.sched td { padding: 14px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.sched tr:last-child td { border-bottom: 1px solid var(--line); }
.sched th:first-child, .sched td:first-child { padding-left: 0; }
.sched .rd { color: var(--yellow); font-weight: 700; width: 48px; }
.sched .date { font-weight: 600; white-space: nowrap; width: 96px; }
.sched .track { color: #c4c8ce; }
.sched .track span, .sched .series { display: block; font-family: var(--body); font-size: 14px; color: var(--muted); margin-top: 2px; }
.sched tr.nonpoints td { background: rgba(234,255,64,.05); }
.sched.big { font-size: 19px; }

/* report page */
.narrow { max-width: 900px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.crumbs { margin: 0 0 22px; font-size: 14px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--muted); }
.report-title { font-size: clamp(40px, 5.5vw, 62px); line-height: 1; font-style: italic; text-transform: uppercase; }
.report-where { margin: 18px 0 0; font-family: var(--body); font-size: 18px; font-weight: 600; color: #b9bdc4; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); margin: 34px 0 0; border-top: 2px solid var(--yellow); border-bottom: 1px solid var(--line); }
.stats div { padding: 16px 0; }
.stats dt { font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: 4px 0 0; font-size: 38px; font-weight: 700; font-style: italic; }
.report-cover { margin: 44px auto 0; }
.report-cover img { width: 100%; max-height: 640px; object-fit: cover; }
figcaption { margin-top: 10px; font-family: var(--body); font-size: 15px; color: var(--muted); }
.prose { max-width: 720px; margin: 0 auto; padding: 48px 32px 0; font-family: var(--body); font-size: 20px; line-height: 1.65; font-weight: 500; color: #e2e4e8; }
.prose.flush { padding: 0; margin: 0; }
.prose p { margin: 0 0 24px; }
.prose > p:first-child { font-size: 23px; color: #fff; }
.prose h2, .prose h3, .prose h4 { font-family: var(--head); font-style: italic; text-transform: uppercase; color: #fff; margin: 40px 0 16px; line-height: 1.15; }
.prose h2 { font-size: 28px; } .prose h3 { font-size: 23px; } .prose h4 { font-size: 19px; }
.prose blockquote { margin: 36px 0; padding: 4px 0 4px 26px; border-left: 4px solid var(--yellow); font-family: var(--head); font-size: 25px; line-height: 1.4; font-weight: 600; font-style: italic; color: #fff; }
.prose blockquote p { margin: 0 0 8px; }
.prose ul, .prose ol { margin: 0 0 24px; padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose figure { margin: 32px 0; }
.prose img { width: 100%; height: auto; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose strong { color: #fff; }
.gallery-wrap { padding-top: 72px; }
.rule-h { font-size: 28px; border-bottom: 2px solid var(--yellow); padding-bottom: 12px; margin-bottom: 18px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--panel); }
.gallery a:hover img { opacity: .85; }
.pager { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2px; padding-top: 64px; }
.pager a { display: block; padding: 24px 30px; font-size: 21px; font-weight: 700; }
.pager span { display: block; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 8px; }
.pager-prev { background: var(--panel); color: #fff; }
.pager-prev span { color: var(--muted); }
.pager-next { background: var(--yellow); color: var(--ink); }
.pager-next:hover { background: #fff; color: var(--ink); }

/* driver */
.driver { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; }
.driver-copy { flex: 1 1 480px; min-width: 0; padding-bottom: 20px; }
.driver-photo { flex: 0 1 440px; min-width: 0; background: #fff; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px 32px; margin: 30px 0 0; }
.facts dt { font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-size: 19px; font-weight: 600; }
.timeline { display: flex; flex-direction: column; }
.tl-row { display: flex; gap: 28px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.tl-year { margin: 0; width: 80px; flex-shrink: 0; font-size: 30px; font-weight: 700; font-style: italic; color: var(--yellow); }
.tl-head { margin: 0 0 4px; font-size: 21px; font-weight: 700; }
.tl-text { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.5; font-weight: 500; color: #bfc3ca; }

/* partners */
.partners-strip { border-top: 1px solid var(--line); margin-top: 80px; padding: 52px 0; }
.logo-wall { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 48px; background: var(--paper); padding: 32px; margin-top: 26px; }
.logo-wall img { height: 58px; width: auto; max-width: 200px; object-fit: contain; }
.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2px; background: var(--line); border: 2px solid var(--line); }
.partner { background: var(--paper); min-height: 170px; display: flex; align-items: center; justify-content: center; padding: 28px; }
.partner img { max-height: 104px; width: auto; max-width: 100%; object-fit: contain; }
.partner-name { margin: 0; color: var(--ink); font-size: 22px; font-weight: 700; text-align: center; }
.cta { background: var(--yellow); color: var(--ink); padding: 40px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta h2 { font-size: 34px; font-style: italic; text-transform: uppercase; }
.cta p { margin: 8px 0 0; font-family: var(--body); font-size: 18px; font-weight: 600; max-width: 620px; }

/* footer */
.site-footer { background: #0d0d0e; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-top: 40px; padding-bottom: 44px; font-size: 15px; color: var(--muted); }
.footer-row p { margin: 0 0 6px; }
.footer-name { color: #fff; font-weight: 700; letter-spacing: .06em; }
.footer-links { text-align: right; }

@media (max-width: 700px) {
  .wrap, .narrow { padding-left: 20px; padding-right: 20px; }
  .prose { padding-left: 20px; padding-right: 20px; font-size: 18px; }
  .hero { min-height: 560px; align-items: flex-end; }
  .hero-img { object-position: 62% 40%; }
  .hero-shade { background: linear-gradient(0deg, rgba(20,20,20,.96) 0%, rgba(20,20,20,.75) 50%, rgba(20,20,20,.1) 100%); }
  .hero-copy { padding-top: 200px; padding-bottom: 44px; }
  .next-watch { margin-left: 0 !important; }
  .section { padding-top: 60px; }
  .section-head h2 { font-size: 30px; }
  .sched .track span { display: none; }
  .sched { font-size: 15px; }
  .sched td { padding: 12px 8px; }
  .sched .date { width: 70px; }
  .sched .rd { width: 34px; }
  .footer-links { text-align: left; }
  .nav { gap: 4px 18px; }
  .nav a { font-size: 13px; }
}
