/*
Theme Name: Journey Morell Racing
Author: Tech Solutions of Eagle
Description: Race history archive. Groups Race Archiver posts by season automatically.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: jmr
*/
:root{
  --asphalt:#17191D; --asphalt-2:#23262C; --line:#E4E4E0; --paper:#F6F6F4; --ink:#1B1D21; --muted:#5E636B;
  --amber:#F5A524; --green:#2FBF5B; --white:#fff;
  --head:"Barlow Condensed","Arial Narrow",Arial,sans-serif; --body:"Barlow","Segoe UI",Roboto,Arial,sans-serif;
  --wrap:1160px;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:80px}
body{margin:0;font-family:var(--body);font-size:1.0625rem;line-height:1.6;color:var(--ink);background:var(--paper);-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
:focus-visible{outline:3px solid var(--amber);outline-offset:3px}
h1,h2,h3{font-family:var(--head);line-height:1.05;margin:0 0 .4em;letter-spacing:.005em}
.wrap{width:min(var(--wrap),100% - 2.5rem);margin-inline:auto}
.skip{position:absolute;left:-9999px}.skip:focus{left:1rem;top:1rem;background:#fff;padding:.5rem 1rem;z-index:99}

/* Header */
.site-header{position:sticky;top:0;z-index:50;background:var(--asphalt);color:#fff;border-bottom:3px solid var(--amber)}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:64px}
.brand{font-family:var(--head);font-weight:800;font-size:1.45rem;text-transform:uppercase;letter-spacing:.04em;text-decoration:none;color:#fff;display:flex;align-items:center;gap:.6rem}
.brand svg{width:14px;height:34px;flex:none}
.nav{display:flex;align-items:center;gap:.25rem;flex-wrap:wrap;justify-content:flex-end}
.nav a{font-family:var(--head);font-weight:700;font-size:1.05rem;letter-spacing:.03em;text-decoration:none;color:rgba(255,255,255,.8);padding:.35rem .7rem;border-radius:4px}
.nav a:hover,.nav a[aria-current="page"]{color:var(--asphalt);background:var(--amber)}
.nav .ig{display:flex;padding:.35rem .5rem}.nav .ig svg{width:20px;height:20px}
@media (max-width:640px){.site-header .wrap{flex-direction:column;align-items:flex-start;padding:.6rem 0}.nav{justify-content:flex-start}}

/* Hero */
.hero{background:var(--asphalt);color:#fff;position:relative;overflow:hidden}
.hero::after{content:"";position:absolute;inset:auto 0 0 0;height:10px;background:repeating-linear-gradient(90deg,#fff 0 28px,transparent 28px 56px);opacity:.14}
.hero .wrap{display:grid;grid-template-columns:auto 1fr;gap:clamp(1.5rem,5vw,4rem);align-items:center;padding:clamp(3rem,8vw,6rem) 0}
.tree{display:flex;flex-direction:column;gap:12px;padding:16px 12px;background:#0E0F12;border-radius:40px;border:2px solid #2E3137}
.tree span{width:34px;height:34px;border-radius:50%;background:#3A3226;box-shadow:inset 0 -4px 0 rgba(0,0,0,.35)}
.tree span.on{background:var(--amber);box-shadow:0 0 18px rgba(245,165,36,.75),inset 0 -4px 0 rgba(0,0,0,.2)}
.tree span.go{background:#22352A}
.tree span.go.on{background:var(--green);box-shadow:0 0 22px rgba(47,191,91,.85)}
.hero h1{font-size:clamp(3rem,9vw,6.4rem);font-weight:800;text-transform:uppercase;letter-spacing:.01em;margin:0}
.hero .tag{font-size:clamp(1.1rem,2vw,1.3rem);color:rgba(255,255,255,.82);max-width:36em;margin:.8rem 0 0}
.hero .where{margin-top:1.2rem;display:flex;flex-wrap:wrap;gap:.5rem 1.4rem;font-family:var(--head);font-size:1.1rem;letter-spacing:.03em;color:var(--amber)}
@media (max-width:600px){.hero .wrap{grid-template-columns:1fr}.tree{flex-direction:row;width:max-content;border-radius:40px}.tree span{width:26px;height:26px}}
@media (prefers-reduced-motion:no-preference){
  .tree span{transition:background .2s,box-shadow .2s}
  .tree.animate span.on{animation:stage 1.6s steps(1) 1 both}
  .tree.animate span:nth-child(1).on{animation-delay:.2s}.tree.animate span:nth-child(2).on{animation-delay:.6s}.tree.animate span:nth-child(3).on{animation-delay:1s}.tree.animate span:nth-child(4).on{animation-delay:1.4s}
  @keyframes stage{from{background:#3A3226;box-shadow:none}}
  .tree.animate span.go.on{animation-name:stagego}
  @keyframes stagego{from{background:#22352A;box-shadow:none}}
}

/* Stats bar */
.stats{background:#fff;border-bottom:1px solid var(--line)}
.stats ul{list-style:none;margin:0;padding:1.1rem 0;display:flex;flex-wrap:wrap;gap:.6rem 2.6rem}
.stats li{font-family:var(--head);font-size:1.15rem;color:var(--muted)}
.stats strong{font-size:1.7rem;color:var(--ink);margin-right:.35rem}

/* Seasons */
.season{padding:clamp(2.5rem,6vw,4rem) 0 1rem}
.season-head{display:flex;align-items:baseline;gap:1rem;border-bottom:3px solid var(--ink);padding-bottom:.4rem;margin-bottom:1.6rem}
.season-head h2{font-size:clamp(2.6rem,6vw,4rem);font-weight:800;margin:0}
.season-head span{font-family:var(--head);font-size:1.15rem;color:var(--muted)}
.season-head a{margin-left:auto;font-family:var(--head);font-weight:700;font-size:1.05rem;text-decoration:none;color:var(--muted)}
.season-head a:hover{color:var(--ink)}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1.4rem}
.card{background:#fff;border:1px solid var(--line);border-radius:6px;overflow:hidden;display:flex;flex-direction:column}
.card .thumb{text-decoration:none;aspect-ratio:16/10;background:var(--asphalt-2);overflow:hidden}
.card .thumb img{width:100%;height:100%;object-fit:cover}
.card .thumb.none{display:flex;align-items:center;justify-content:center;font-family:var(--head);font-weight:800;font-size:3rem;color:rgba(255,255,255,.18)}
.card .body{padding:1rem 1.1rem 1.2rem;display:flex;flex-direction:column;gap:.5rem;flex:1}
.card .meta{display:flex;flex-wrap:wrap;gap:.3rem .9rem;font-size:.88rem;color:var(--muted)}
.card .meta .src{font-weight:600;color:var(--ink)}
.card h3{font-size:1.4rem;font-weight:700;margin:0}
.card h3 a{text-decoration:none}.card h3 a:hover{text-decoration:underline;text-decoration-color:var(--amber);text-decoration-thickness:3px}
.card p{margin:0;color:var(--muted);font-size:.98rem}
.card .links{margin-top:auto;padding-top:.4rem;display:flex;gap:1rem;font-weight:600;font-size:.95rem}
.card .links a{text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:3px}
.card .links a:hover{text-decoration-color:var(--amber)}
.pill{display:inline-block;font-size:.75rem;font-weight:600;background:var(--paper);border:1px solid var(--line);border-radius:3px;padding:0 .4rem}

/* Single */
.article{padding:clamp(2rem,5vw,3.5rem) 0 4rem}
.article .wrap{max-width:780px}
.article .back{font-family:var(--head);font-weight:700;text-decoration:none;color:var(--muted)}
.article h1{font-size:clamp(2.2rem,5vw,3.4rem);font-weight:800;margin:.6rem 0 .6rem}
.article .meta{display:flex;flex-wrap:wrap;gap:.4rem 1.2rem;color:var(--muted);margin-bottom:1.6rem;font-size:.98rem}
.article .source-btn{display:inline-block;background:var(--amber);color:var(--asphalt);font-family:var(--head);font-weight:700;font-size:1.1rem;padding:.55rem 1rem;border-radius:4px;text-decoration:none;margin-bottom:1.6rem}
.entry{overflow-wrap:anywhere}
.entry img{border-radius:4px;margin:1rem 0}
.entry table{border-collapse:collapse;width:100%;display:block;overflow-x:auto}
.entry td,.entry th{border:1px solid var(--line);padding:.35rem .5rem}
.entry a{text-decoration-color:var(--amber)}

.site-footer{background:var(--asphalt);color:rgba(255,255,255,.7);padding:2.2rem 0;margin-top:3rem;font-size:.95rem}
.site-footer .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;gap:1rem}
.site-footer a{color:#fff}
.empty{padding:4rem 0}
