/* ============================================================
   BOX OF RULES site stylesheet.
   Built from the Box of Rules design system (hard-rock direction).
   Tokens: near-black base, amber drive, cyan + oxblood accents.
   ============================================================ */

/* Self-hosted fonts (latin subset) — no third-party requests.
   Oswald is a variable font (one file covers 200-700). */
@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/anton-400.woff2") format("woff2");
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url("/assets/fonts/oswald.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/barlow-400.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/barlow-400italic.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/barlow-500.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/barlow-600.woff2") format("woff2");
}

:root {
  --ink:    #0B0B0C;
  --coal:   #131210;
  --coal-2: #1C1A17;
  --bone:   #ECE6D8;
  --bone-2: #B7B0A0;
  --mute:   #948D82;
  --amber:  #F2A20C;
  --amber-2:#FFB938;
  --cyan:   #5FB4C4;
  --blood:  #C42424;
  --green:  #6FBF73;
  --line:   #2A2722;
  --maxw:   1240px;
  --ease:   cubic-bezier(.2,.6,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--bone);
  font-family: "Barlow", system-ui, sans-serif; font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* film grain overlay */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 200; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1,h2,h3 { margin: 0; font-weight: 400; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
::selection { background: var(--amber); color: var(--ink); }

.display { font-family: "Anton","Oswald",sans-serif; font-weight: 400; letter-spacing: .005em; text-transform: uppercase; line-height: .98; }
.cond { font-family: "Oswald", sans-serif; text-transform: uppercase; }
.eyebrow {
  font-family: "Oswald", sans-serif; font-weight: 600; text-transform: uppercase;
  letter-spacing: .26em; font-size: 13px; color: var(--amber);
}

/* ── NAV ─────────────────────────────────────────── */
header.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
header.nav.scrolled, header.nav.solid { background: rgba(11,11,12,.92); backdrop-filter: blur(8px); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 112px; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand img { height: 76px; width: auto; }
.brand .bn { font-family: "Anton", sans-serif; text-transform: uppercase; font-size: 22px; letter-spacing: .02em; line-height: .82; }
.brand-full { height: 96px; width: auto; display: block; }
nav.links { display: flex; align-items: center; gap: 30px; }
nav.links a {
  font-family: "Oswald", sans-serif; font-weight: 600; text-transform: uppercase;
  letter-spacing: .12em; font-size: 15px; color: #F4F0E6; position: relative; padding: 4px 0;
  transition: color .2s var(--ease); text-shadow: 0 1px 8px rgba(0,0,0,.55);
}
nav.links a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--amber); transition: width .22s var(--ease); }
nav.links a:hover { color: #fff; }
nav.links a.active { color: var(--amber); }
nav.links a.active::after { width: 100%; }
nav.links a:hover::after, nav.links a.active::after { width: 100%; }
nav.links a.kofi { display: inline-flex; align-items: center; gap: 7px; color: var(--amber); }
nav.links a.kofi:hover { color: var(--amber-2); }
nav.links a.kofi svg { width: 16px; height: 16px; fill: currentColor; }
nav.links a.kofi::after { display: none; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: "Oswald", sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: .14em;
  font-size: 14px; padding: 12px 22px; border: 2px solid var(--bone); background: var(--bone); color: var(--ink);
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .05s linear;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.btn:hover { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--bone); }
.btn--ghost:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn--amber { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.btn--amber:hover { background: var(--amber-2); border-color: var(--amber-2); }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.burger span { width: 26px; height: 2px; background: var(--bone); transition: .25s var(--ease); }

/* ── HERO ────────────────────────────────────────── */
.hero { position: relative; min-height: 100vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
picture { display: contents; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .55; filter: saturate(1.05) contrast(1.05); }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,11,12,.55) 0%, rgba(11,11,12,.15) 35%, rgba(11,11,12,.65) 78%, var(--ink) 100%),
    radial-gradient(120% 90% at 80% 10%, transparent 40%, rgba(11,11,12,.5) 100%);
}
.hero-content { position: relative; z-index: 2; padding-bottom: 64px; padding-top: 120px; width: 100%; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.hero .eyebrow::before { content: ""; width: 38px; height: 2px; background: var(--amber); display: inline-block; }
.hero h1 {
  font-family: "Anton", sans-serif; text-transform: uppercase;
  font-size: clamp(58px, 12vw, 188px); line-height: .92; letter-spacing: .003em;
  text-shadow: 0 6px 40px rgba(0,0,0,.5);
}
.hero h1 .sub { display: block; color: var(--amber); -webkit-text-stroke: 0; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 30px; }
.hero-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.tag {
  font-family: "Oswald", sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: .16em;
  font-size: 12px; padding: 6px 12px; border: 1px solid var(--line); color: var(--bone-2); background: rgba(0,0,0,.3);
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.scroll-hint { position: absolute; right: 28px; bottom: 30px; z-index: 3; writing-mode: vertical-rl; font-family: "Oswald"; text-transform: uppercase; letter-spacing: .3em; font-size: 11px; color: var(--mute); }

/* ── SECTION SHELL ───────────────────────────────── */
section { position: relative; padding: 110px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 52px; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.sec-head h2 { font-family: "Anton", sans-serif; text-transform: uppercase; font-size: clamp(34px, 6vw, 76px); line-height: .98; }
.sec-head .idx { font-family: "Oswald"; font-weight: 600; letter-spacing: .2em; color: var(--mute); font-size: 14px; text-transform: uppercase; white-space: nowrap; }

/* ── VIDEO (lite YouTube embed) ──────────────────── */
.video-feature { position: relative; aspect-ratio: 16/9; overflow: hidden; border: 1px solid var(--line); cursor: pointer; background: #000; }
.video-feature img { width: 100%; height: 100%; object-fit: cover; opacity: .72; transition: opacity .3s var(--ease), transform .5s var(--ease); }
.video-feature:hover img { opacity: .85; transform: scale(1.03); }
.video-feature .vmask { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(11,11,12,.85) 100%); }
.play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 96px; height: 96px; border-radius: 50%; border: 2px solid var(--bone);
  display: grid; place-items: center; background: rgba(11,11,12,.35); transition: .25s var(--ease);
}
.video-feature:hover .play { background: var(--amber); border-color: var(--amber); transform: translate(-50%,-50%) scale(1.08); }
.play svg { width: 34px; height: 34px; margin-left: 5px; fill: var(--bone); transition: fill .25s var(--ease); }
.video-feature:hover .play svg { fill: var(--ink); }
.vcap { position: absolute; left: 28px; bottom: 24px; z-index: 3; }
.vcap .t { font-family: "Anton"; text-transform: uppercase; font-size: clamp(24px,3.4vw,42px); line-height: .95; }
.vcap .m { font-family: "Oswald"; text-transform: uppercase; letter-spacing: .18em; font-size: 13px; color: var(--bone-2); margin-top: 6px; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.lite-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 5; }

/* ── MUSIC ───────────────────────────────────────── */
.releases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.release { position: relative; }
.release .art { position: relative; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1/1; }
.release .art img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.release:hover .art img { transform: scale(1.05); }
.release .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11,11,12,.9) 100%); opacity: 0; transition: opacity .3s var(--ease); }
.release:hover .art::after { opacity: 1; }
.release .overlay { position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 3; display: flex; gap: 12px; opacity: 0; transform: translateY(10px); transition: .3s var(--ease); }
.release:hover .overlay { opacity: 1; transform: none; }
.release .meta { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 18px; }
.release .meta h3 { font-family: "Anton"; text-transform: uppercase; font-size: clamp(26px,3vw,40px); line-height: .92; }
.release .meta .yr { font-family: "Oswald"; letter-spacing: .16em; color: var(--mute); font-size: 14px; }
.release .formats { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* ── PLUGIN ──────────────────────────────────────── */
#plugin { background: var(--coal); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plugin-card { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.plugin-shot { position: relative; border: 1px solid var(--line); background: var(--coal-2); aspect-ratio: 16/10; display: grid; place-items: center; overflow: hidden; }
.plugin-shot .badge { position: absolute; top: 16px; left: 16px; font-family: "Oswald"; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; color: var(--ink); background: var(--amber); padding: 6px 12px; }
.plugin-shot .knob-art { width: 70%; max-width: 360px; opacity: .92; }
.plugin-info h3 { font-family: "Anton"; text-transform: uppercase; font-size: clamp(30px,4vw,52px); line-height: .9; }
.plugin-info .lede { color: var(--bone-2); font-size: 18px; margin: 18px 0 22px; }
.plugin-specs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 26px; }
.rel-box { border: 1px solid var(--line); background: var(--ink); padding: 22px 24px; margin-bottom: 24px; }
.rel-box .rel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.rel-box .rel-ver { font-family: "Oswald"; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 20px; }
.rel-box .rel-meta { font-family: "Oswald"; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--mute); }
.rel-box .rel-status { font-family: "Oswald"; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--cyan); }
.dl-list { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.rel-notes { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--bone-2); font-size: 15px; }
.rel-notes h4 { font-family: "Oswald"; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; color: var(--amber); margin: 0 0 8px; }
.rel-notes ul { margin: 0; padding-left: 18px; }
.muted { color: var(--mute); }

/* ── BLOG ────────────────────────────────────────── */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--coal); transition: border-color .25s var(--ease), transform .25s var(--ease); }
.post:hover { border-color: var(--amber); transform: translateY(-4px); }
.post .pimg { aspect-ratio: 16/10; overflow: hidden; }
.post .pimg img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: .4s var(--ease); }
.post:hover .pimg img { opacity: 1; transform: scale(1.05); }
.post .pbody { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.post .pdate { font-family: "Oswald"; text-transform: uppercase; letter-spacing: .18em; font-size: 12px; color: var(--amber); }
.post h2 { font-family: "Oswald"; font-weight: 600; text-transform: uppercase; font-size: 23px; line-height: 1.05; margin: 12px 0 10px; }
.post p { color: var(--bone-2); font-size: 15px; margin: 0 0 18px; }
.post .more { margin-top: auto; font-family: "Oswald"; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; color: var(--bone); display: inline-flex; align-items: center; gap: 8px; }
.post .more svg { width: 16px; height: 16px; fill: var(--amber); transition: transform .2s var(--ease); }
.post:hover .more svg { transform: translateX(4px); }

/* ── ARTICLE (single blog post) ──────────────────── */
.article { padding-top: 150px; max-width: 760px; }
.article .kicker { margin-bottom: 18px; }
.article h1 { font-family: "Anton"; text-transform: uppercase; font-size: clamp(38px,6vw,76px); line-height: .98; margin-bottom: 18px; }
.article .byline { font-family: "Oswald"; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; color: var(--mute); margin-bottom: 40px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.article p, .article li { color: var(--bone-2); font-size: 18px; line-height: 1.75; }
.article p { margin: 0 0 22px; }
.article h2 { font-family: "Oswald"; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 28px; color: var(--bone); margin: 44px 0 16px; }
.article a:not(.btn) { color: var(--amber); border-bottom: 1px solid rgba(242,162,12,.4); }
.article a:not(.btn):hover { color: var(--amber-2); }
.article blockquote { margin: 28px 0; padding: 8px 0 8px 24px; border-left: 3px solid var(--amber); color: var(--bone); font-style: italic; }
.article img { border: 1px solid var(--line); margin: 28px 0; }

/* ── PAGE HEADER (blog index / plugins) ──────────── */
.page-head { padding-top: 150px; padding-bottom: 0; }
.page-head .eyebrow { display: inline-block; margin-bottom: 16px; }
.page-head h1 { font-family: "Anton"; text-transform: uppercase; font-size: clamp(44px,8vw,104px); line-height: .94; }
.page-head p { color: var(--bone-2); font-size: 18px; max-width: 56ch; margin: 22px 0 0; }

/* ── FOOTER ──────────────────────────────────────── */
footer { background: var(--ink); border-top: 1px solid var(--line); padding: 64px 0 36px; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-brand .bn { font-family: "Anton"; text-transform: uppercase; font-size: 30px; line-height: .85; margin-top: 14px; }
.foot-brand p { color: var(--mute); font-size: 14px; margin: 14px 0 0; max-width: 34ch; }
.foot-col h3 { font-family: "Oswald"; font-weight: 600; text-transform: uppercase; letter-spacing: .2em; font-size: 13px; color: var(--amber); margin: 0 0 16px; }
.foot-col a { display: block; color: var(--bone-2); font-family: "Oswald"; text-transform: uppercase; letter-spacing: .08em; font-size: 15px; padding: 6px 0; transition: color .2s; }
.foot-col a:hover { color: var(--bone); }
.socials { display: flex; gap: 12px; margin-top: 4px; }
.socials a { width: 42px; height: 42px; border: 1px solid var(--line); display: grid; place-items: center; transition: .2s var(--ease); }
.socials a:hover { border-color: var(--amber); background: var(--amber); }
.socials svg { width: 18px; height: 18px; fill: var(--bone-2); transition: fill .2s; }
.socials a:hover svg { fill: var(--ink); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; align-items: center; margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--mute); font-family: "Oswald"; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
.foot-bottom .built-by a { color: inherit; border-bottom: 1px solid var(--line); transition: color .2s var(--ease); }
.foot-bottom .built-by a:hover { color: var(--amber); }

/* badge variants */
.badge.badge--beta { background: var(--cyan); }
.badge.badge--soon { position: static; display: inline-block; background: transparent; color: var(--cyan); border: 1px solid var(--cyan); padding: 5px 10px; margin-left: 6px; }

/* ── COOKIE / CONSENT BANNER ─────────────────────── */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300;
  max-width: 640px; margin: 0 auto; background: var(--coal); border: 1px solid var(--line);
  padding: 18px 20px; display: flex; gap: 16px 20px; align-items: center; flex-wrap: wrap;
  box-shadow: 0 12px 40px rgba(0,0,0,.5); transform: translateY(140%); transition: transform .4s var(--ease);
}
.cookie.show { transform: none; }
.cookie p { margin: 0; flex: 1 1 280px; color: var(--bone-2); font-size: 14px; line-height: 1.5; }
.cookie p a { color: var(--amber); border-bottom: 1px solid rgba(242,162,12,.4); }
.cookie .cookie-acts { display: flex; gap: 10px; flex: 0 0 auto; }
.cookie .btn { padding: 9px 16px; font-size: 12px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 920px) {
  .burger { display: flex; }
  .nav-inner { height: 88px; }
  .brand-full { height: 68px; }
  nav.links {
    position: fixed; inset: 88px 0 auto 0; flex-direction: column; gap: 0; align-items: stretch;
    background: rgba(11,11,12,.98); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .3s var(--ease);
  }
  nav.links.open { transform: none; }
  nav.links a { padding: 18px 28px; border-bottom: 1px solid var(--line); font-size: 18px; }
  .nav-cta { display: none; }
  .video-grid, .news-grid { grid-template-columns: 1fr; }
  .releases { grid-template-columns: 1fr; }
  .plugin-card { grid-template-columns: 1fr; gap: 28px; }
  .foot-top { grid-template-columns: 1fr; gap: 32px; }
}
