/* The Button Probably Works / Field Notes — intentionally static and lightweight */
:root {
  color-scheme: dark;
  --ink: #0b1020;
  --panel: #121a2d;
  --panel-light: #17223a;
  --line: rgba(176, 195, 229, .18);
  --muted: #91a0ba;
  --text: #f5f4f0;
  --coral: #ff735b;
  --lime: #c6ff8c;
  --sans: 'Space Grotesk', 'Trebuchet MS', sans-serif;
  --mono: 'DM Mono', Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 25px; }
body { margin: 0; min-width: 320px; background: var(--ink); color: var(--text); font-family: var(--sans); }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--lime); outline-offset: 5px; }
::selection { color: var(--ink); background: var(--lime); }
.skip-link { position: absolute; top: -60px; left: 15px; z-index: 20; background: var(--lime); color: var(--ink); padding: 12px; border-radius: 6px; }
.skip-link:focus { top: 12px; }
.page-shell {
  min-height: 100vh;
  overflow: clip;
  background:
    radial-gradient(ellipse 42% 26% at 89% 9%, rgba(125, 68, 121, .16), transparent 78%),
    radial-gradient(ellipse 47% 20% at -8% 43%, rgba(31, 88, 103, .11), transparent 80%),var(--ink);
}
.page-shell::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 900px; z-index: 0;
  pointer-events: none; opacity: .2;
  background-image: radial-gradient(rgba(204,224,255,.35) .7px,transparent .7px);
  background-size: 17px 17px;
  mask-image: linear-gradient(to bottom,#000,transparent 95%);
}
.site-header, main, .site-footer { position: relative; z-index: 1; }
.site-header, .site-footer { width: min(1260px,calc(100% - 96px)); margin: 0 auto; }
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 99px; border-bottom: 1px solid var(--line);
}
.qp-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.qp-brand img { width: 198px; height: auto; display: block; flex-shrink: 0; }
.qp-brand span { color: var(--muted); font: 500 10px var(--mono); letter-spacing: .06em; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 27px; }
.site-nav a, .subtle-link { text-decoration: none; font: 500 11px var(--mono); letter-spacing: .035em; white-space: nowrap; }
.back-link { color: #bdc7d7; }
.back-link:hover,.subtle-link:hover { color: var(--lime); }
.play-link { padding: 13px 17px; border: 1px solid var(--lime); border-radius: 7px; color: var(--lime); }
.play-link:hover { background: var(--lime); color: var(--ink); }
main { width: min(1080px,calc(100% - 80px)); margin: 0 auto; }
.hero { padding: 83px 0 54px; }
.eyebrow, .section-heading, .release-meta, .release-index, .archive-count, .archive-footnote,
.hero-meta,.site-footer,.closing>div>span { font: 500 10px var(--mono); letter-spacing: .09em; }
.eyebrow { display: flex; align-items: center; gap: 13px; color: var(--lime); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px #c6ff8c63; flex-shrink: 0; }
.hero-index { color: #6f809d; margin-left: auto; }
h1,h2,h3,p { overflow-wrap: break-word; }
h1 {
  margin: 29px 0 0; max-width: 920px; font-size: clamp(58px,10vw,118px);
  line-height: .95; letter-spacing: -.088em; font-weight: 700;
}
h1 span:first-child { color: var(--coral); }
.heading-dot { color: var(--lime); }
.hero-lede { max-width: 760px; margin: 23px 0 0; color: #eff2fa; font-size: clamp(20px,3.3vw,29px); line-height: 1.3; font-weight: 500; letter-spacing: -.035em; }
.hero-description { max-width: 670px; margin: 18px 0 0; color: #abb6c9; line-height: 1.75; font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 31px; }
.button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 27px;
  padding: 17px 21px; min-height: 51px; border-radius: 8px;
  font: 700 11px var(--mono); letter-spacing: .045em; text-decoration: none; transition: transform .2s, filter .2s;
}
.button:hover { transform: translateY(-2px); filter: brightness(1.08); }
.button-primary { background: var(--lime); color: var(--ink); }
.subtle-link { color: #dde7f5; }
.hero-meta { display: flex; gap: 21px; flex-wrap: wrap; padding: 29px 0 0; margin-top: 48px; border-top: 1px solid var(--line); color: #94a5bd; }
.hero-meta span+span::before { content: '✳'; margin-right: 18px; color: var(--coral); }
.latest-section,.archive-section { padding-top: 46px; }
.section-heading { display: flex; align-items: center; gap: 21px; color: var(--lime); margin-bottom: 23px; }
.small-rule { display: block; height: 1px; flex: 1; background: var(--line); }
.latest-release {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.93fr);
  overflow: hidden; border: 1px solid #415572; border-radius: 15px;
  background: linear-gradient(145deg,#18243c 0%,#121b2e 100%);
  box-shadow: 0 19px 60px #0004;
}
.latest-copy { display: flex; flex-direction: column; align-items: start; padding: 37px 38px 39px; }
.release-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; color: #b2c1d6; }
.latest-pill { color: var(--ink); background: var(--lime); padding: 7px 9px; border-radius: 4px; font-weight: 700; }
.latest-copy h2 { margin: 34px 0 0; font-size: clamp(31px,4vw,47px); line-height: 1.06; letter-spacing: -.064em; }
.latest-copy p { color: #b0bed2; font-size: 14px; line-height: 1.7; margin: 14px 0 0; }
.latest-copy .latest-lede { color: #eff1f9; font-size: 17px; line-height: 1.5; margin-top: 18px; }
.latest-copy .button { margin-top: auto; transform: translateY(15px); }
.latest-copy .button:hover { transform: translateY(13px); }
.latest-image { margin: 0; display: flex; flex-direction: column; justify-content: center; background: #0b1425; min-height: 365px; }
.latest-image img { display: block; width: 100%; height: 100%; max-height: 420px; object-fit: contain; }
.latest-image figcaption { padding: 11px 18px 13px; color: #8ea0b5; font: 9px/1.4 var(--mono); letter-spacing: .05em; text-align: center; }
.archive-section { padding-bottom: 71px; }
.archive-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 31px; }
.archive-heading h2 { font-size: clamp(39px,6vw,64px); margin: 0; line-height: 1; letter-spacing: -.067em; }
.archive-heading h2 em { color: var(--coral); font-style: normal; }
.archive-heading p { margin: 15px 0 0; color: #aebbd0; max-width: 640px; font-size: 14px; line-height: 1.7; }
.archive-count { color: var(--lime); white-space: nowrap; padding-bottom: 4px; }
.release-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.release-card {
  padding: 25px 25px 28px;
  border: 1px solid var(--line); border-radius: 11px;
  background: rgba(18,26,45,.78);
  transition: border-color .18s ease, background .18s ease;
}
.release-card:hover { border-color: #576b88; background: #18223a; }
.release-index { display: flex; justify-content: space-between; gap: 10px; font-size: 10px; }
.release-index .version { color: var(--lime); }
.release-index .released-label { color: #697e9f; }
.release-card h3 { font-size: clamp(23px,3vw,29px); line-height: 1.1; letter-spacing: -.05em; margin: 21px 0 13px; }
.release-card p { color: #e2e7f1; font-size: 14px; line-height: 1.55; margin: 0; }
.release-card .release-detail { margin-top: 10px; color: #94a6be; font-size: 13px; }
.archive-footnote { margin: 22px 0 0; color: #8f9eb4; line-height: 1.7; letter-spacing: 0; }
.closing {
  display: flex; justify-content: space-between; align-items: center; gap: 23px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 47px 0 51px;
}
.closing>div>span { color: var(--lime); }
.closing h2 { font-size: clamp(30px,4vw,44px); letter-spacing: -.063em; line-height: 1.1; margin: 13px 0 8px; }
.closing p { margin: 0; color: #aabbd0; line-height: 1.6; }
.closing .button { flex-shrink: 0; }
.site-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 25px; padding: 31px 0 38px; color: #7f93af; font-size: 10px; }
.site-footer a { text-decoration: none; color: #c5d3e5; }
.site-footer a:hover { color: var(--lime); }
@media (max-width: 940px) {
  .site-header,.site-footer { width: calc(100% - 48px); }
  main { width: calc(100% - 48px); }
  .site-header { height: 82px; }
  .qp-brand img { width: 172px; }
  .qp-brand span { display: none; }
  .latest-release { grid-template-columns: 1fr; }
  .latest-image { min-height: 0; }
  .latest-image img { max-height: 390px; }
  .latest-copy .button { margin-top: 26px; transform: none; }
  .latest-copy .button:hover { transform: translateY(-2px); }
}
@media (max-width: 650px) {
  .site-header,.site-footer { width: calc(100% - 36px); }
  main { width: calc(100% - 36px); }
  .site-header { gap: 10px; height: 73px; }
  .qp-brand img { width: clamp(127px,37vw,168px); }
  .site-nav { gap: 10px; }
  .site-nav .back-link { display: none; }
  .site-nav .play-link { padding: 10px; font-size: 9px; }
  .hero { padding: 65px 0 39px; }
  .hero-index { display: none; }
  h1 { font-size: clamp(49px,13vw,75px); }
  .hero-description { font-size: 14px; }
  .hero-meta { gap: 10px 20px; font-size: 9px; margin-top: 39px; }
  .hero-meta span+span::before { margin-right: 9px; }
  .hero-actions { align-items: stretch; gap: 16px; }
  .hero-actions .button { width: 100%; }
  .latest-section,.archive-section { padding-top: 37px; }
  .latest-copy { padding: 29px 22px 36px; }
  .latest-copy h2 { margin-top: 24px; }
  .archive-heading { display: block; }
  .archive-count { display: block; margin-top: 15px; }
  .release-list { grid-template-columns: 1fr; }
  .release-card { padding: 22px 20px 26px; }
  .closing { flex-direction: column; align-items: stretch; }
  .closing .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .release-card { transition: none; }
  .button:hover, .latest-copy .button:hover { transform: none; }
}
