/* Blaine Hunt — site styles */
:root {
  --bg: #ffffff;
  --bg-alt: #f3f3f1;
  --ink: #111111;
  --muted: #5d5d5d;
  --line: #e2e2df;
  --accent: #c8102e;      /* GB red */
  --accent-ink: #ffffff;
  --radius: 10px;
  --wrap: 1160px;
  --narrow: 760px;
  --head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f10;
    --bg-alt: #19191b;
    --ink: #f2f2f0;
    --muted: #a3a3a0;
    --line: #2b2b2e;
    --accent: #ff4757;
    --accent-ink: #0f0f10;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--head); line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 .5em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: var(--narrow); }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo {
  font-family: var(--head); font-weight: 800; font-size: 1.3rem;
  text-transform: uppercase; letter-spacing: .04em; text-decoration: none;
}
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 8px 12px; border-radius: 6px;
  font-weight: 500; font-size: .95rem; text-decoration: none;
}
.site-nav a:hover { background: var(--bg-alt); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--accent); }
.menu-toggle { display: none; }

@media (max-width: 900px) {
  .menu-toggle {
    display: grid; place-items: center; width: 44px; height: 44px;
    background: none; border: 0; color: var(--ink); cursor: pointer;
  }
  .menu-toggle span:first-child, .menu-toggle span:first-child::before, .menu-toggle span:first-child::after {
    content: ""; display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: .2s;
  }
  .menu-toggle span:first-child::before { position: absolute; top: -7px; }
  .menu-toggle span:first-child::after { position: absolute; top: 7px; }
  .menu-open .menu-toggle span:first-child { background: transparent; }
  .menu-open .menu-toggle span:first-child::before { top: 0; transform: rotate(45deg); }
  .menu-open .menu-toggle span:first-child::after { top: 0; transform: rotate(-45deg); }
  .site-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 12px 16px;
  }
  .menu-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 12px; font-size: 1.05rem; }
}

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5em 0; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); border: 2px solid var(--accent);
  font-weight: 600; text-decoration: none; transition: transform .15s, background .15s;
}
.btn:hover { color: var(--accent-ink); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { color: var(--ink); background: var(--bg-alt); }

/* Home hero */
.hero { padding: 56px 0 64px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; color: var(--accent); margin: 0 0 12px; }
.hero h1 { font-size: clamp(3rem, 8vw, 6.2rem); font-weight: 800; text-transform: uppercase; margin-bottom: .15em; }
.tagline { font-family: var(--head); font-size: 1.35rem; font-weight: 500; color: var(--muted); margin: 0 0 1.4em; }
.honours { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.honours li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.honours strong { font-family: var(--head); margin-right: .35em; }
.hero-media img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
@media (max-width: 820px) {
  .hero { padding-top: 28px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 1 / 1; object-position: 50% 15%; }
}

.band { background: var(--bg-alt); padding: 56px 0; margin-bottom: 56px; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); text-transform: uppercase; font-weight: 800; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.section-head a { font-weight: 600; text-decoration: none; }
.follow { padding: 56px 20px 72px; }

.ventures { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ventures a {
  display: block; height: 100%; padding: 22px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--line); text-decoration: none; transition: border-color .15s, transform .15s;
}
.ventures a:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-2px); }
.ventures strong { display: block; font-family: var(--head); font-size: 1.15rem; margin-bottom: 4px; }
.ventures span { color: var(--muted); font-size: .95rem; }

.socials { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.socials a {
  display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  font-weight: 500; font-size: .95rem; text-decoration: none;
}
.socials a:hover { border-color: var(--accent); }

/* Page header */
.page-head { padding: 48px 20px 8px; }
.page-head h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 800; text-transform: uppercase; }
.lede { font-size: 1.2rem; color: var(--muted); margin: 0; }
.crumb { margin: 28px auto -24px; font-weight: 500; }
.crumb a { text-decoration: none; }

/* Content blocks */
.content { padding-top: 24px; padding-bottom: 64px; }
.content > * + * { margin-top: 28px; }
.prose { max-width: var(--narrow); }
.prose p { margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose h1, .prose h2, .prose h3 { margin-top: 1.4em; }
article.content .prose, article.content > * { margin-left: auto; margin-right: auto; }

.media-image { margin: 0; max-width: var(--w, 100%); }
.media-image img { border-radius: var(--radius); }
@media (max-width: 700px) { .media-image { max-width: 100%; } }

.video, .embed { position: relative; aspect-ratio: var(--ar, 16 / 9); background: #000; border-radius: var(--radius); overflow: hidden; }
.video video, .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video { max-height: 80vh; margin-inline: auto; }
.video[style*="--ar:0."] { max-width: min(100%, 460px); }

.cols { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 28px; align-items: center; }
.cols-3 { --n: 3; }
.col > * + * { margin-top: 20px; }
.col .prose { max-width: none; }
@media (max-width: 700px) { .cols { grid-template-columns: 1fr; } }

/* Justified gallery: rows fill width based on each image's aspect ratio */
.gallery { display: flex; flex-wrap: wrap; gap: 8px; }
.gallery::after { content: ""; flex-grow: 999; }
.g-item { flex: calc(var(--r) * 100) 1 calc(var(--r) * 200px); display: block; border-radius: 6px; overflow: hidden; }
.g-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: var(--r); transition: transform .3s; }
.g-item:hover img { transform: scale(1.03); }
@media (max-width: 600px) { .g-item { flex-basis: calc(var(--r) * 130px); } }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; padding: 16px 0 64px; }
.card { display: block; text-decoration: none; }
.card-img { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover img { transform: scale(1.04); }
.card-title { font-size: 1.2rem; margin: 14px 0 0; }
.card:hover .card-title { color: var(--accent); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 72px; }
.post-nav a { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-family: var(--head); font-weight: 700; }
.post-nav a:hover { border-color: var(--accent); }
.post-nav span { display: block; font: 500 .8rem var(--body); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }
.post-nav .next { text-align: right; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { text-align: left; } }

/* Contact */
.contact { padding-top: 24px; padding-bottom: 80px; }
.contact-email {
  display: inline-block; font-family: var(--head); font-weight: 800;
  font-size: clamp(1.4rem, 5vw, 2.8rem); margin: 8px 0 12px; overflow-wrap: anywhere;
}
.contact h2 { margin-top: 56px; font-size: 1.4rem; text-transform: uppercase; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding-top: 48px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.footer-inner p { margin: 6px 0; }
.footer-socials { max-width: 460px; }
.fine { display: flex; justify-content: space-between; padding-top: 28px; padding-bottom: 28px; font-size: .9rem; color: var(--muted); }
.fine p { margin: 0; }
.to-top { text-decoration: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .92);
  display: flex; align-items: center; justify-content: center; padding: 48px 56px;
}
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.lightbox button {
  position: absolute; background: none; border: 0; color: #fff; font-size: 2.2rem; line-height: 1;
  width: 52px; height: 52px; cursor: pointer; opacity: .8;
}
.lightbox button:hover { opacity: 1; }
.lb-close { top: 8px; right: 8px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox { padding: 56px 8px; } .lb-prev, .lb-next { top: auto; bottom: 4px; transform: none; } }

/* Partner logos (image has a white background, so keep it on a light card in dark mode) */
.partners { padding-top: 8px; }
.logo-wall { background: #fff; border-radius: var(--radius); padding: 12px; border: 1px solid var(--line); }
