/*
Theme Name: QuestRightAI
Author: QuestRightAI
Description: A responsive site for the QuestRightAI Final Fantasy NES experiment.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: questrightai
*/
:root {
  color-scheme: dark;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  color: #eaf7f4;
  background: #07151b;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { color: #07151b; background: #a4efdf; }

.site-header {
  position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; width: 100%; min-height: 90px; padding: 17px clamp(24px, 5.5vw, 96px);
  background: #07151b; border-bottom: 1px solid rgba(147, 229, 213, .12);
}
.brand { display: inline-flex; align-items: center; gap: 11px; white-space: nowrap; font-weight: 700; font-size: 21px; letter-spacing: -.06em; }
.brand img { width: 44px; height: 44px; object-fit: cover; border: 1px solid rgba(131, 229, 213, .25); border-radius: 10px; }
.brand-ai { color: #9eebd6; }
.navigation { display: flex; align-items: center; gap: clamp(20px, 3vw, 46px); color: #a9bebd; font-size: 13px; font-weight: 600; }
.navigation a, .site-footer a { transition: color .2s; }
.navigation a:hover, .site-footer a:hover { color: #a6efdf; }
.header-youtube { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border: 1px solid rgba(159, 235, 214, .35); border-radius: 6px; color: #b9f5e7; font-size: 13px; font-weight: 700; transition: background .2s; }
.header-youtube:hover { background: rgba(159, 235, 214, .1); }
.mobile-toggle { display: none; padding: 7px; color: #eaf7f4; background: transparent; border: 0; cursor: pointer; }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); align-items: center; gap: clamp(36px, 5vw, 88px); min-height: 700px; padding: 76px clamp(24px, 5.5vw, 96px) 84px; overflow: hidden; background: radial-gradient(ellipse at 61% 9%, rgba(24, 119, 125, .15), transparent 47%), #07151b; }
.hero:before { content: ''; position: absolute; right: -80px; top: -80px; width: 430px; height: 430px; opacity: .12; background-image: linear-gradient(#64c8bd 1px, transparent 1px), linear-gradient(90deg, #64c8bd 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(to bottom, black, transparent); pointer-events: none; }
.hero-copy, .run-window { position: relative; z-index: 1; }
.eyebrow, .kicker { color: #a9decf; font-size: 11px; font-weight: 700; letter-spacing: .23em; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; white-space: nowrap; }
.status-dot, .capture-dot { flex: none; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #74dfbb; box-shadow: 0 0 14px rgba(116, 223, 187, .8); }
.eyebrow-line { display: inline-block; width: 30px; height: 1px; background: #396660; }
h1, h2, h3, p, figure { margin: 0; }
.hero h1 { max-width: 670px; color: #f0f7ef; font-size: clamp(52px, 4.75vw, 72px); font-weight: 700; line-height: 1.03; letter-spacing: -.079em; }
.hero h1 em, .progress-lead h2 em { color: #a6e7d4; font-style: normal; }
.hero-description { max-width: 545px; margin-top: 31px; color: #a7bcbc; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.72; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 49px; padding: 13px 19px; border-radius: 6px; font-size: 13px; font-weight: 700; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: #a9f0db; color: #0b2427; }
.button.primary:hover { background: #c7ffec; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: #d9f0e9; font-size: 13px; font-weight: 700; border-bottom: 1px solid rgba(217, 240, 233, .5); padding-bottom: 5px; }
.text-link:hover { color: #a8efda; }
.hero-fine { margin-top: 30px; color: #708e8e; font-size: 11px; letter-spacing: .04em; }
.run-window { width: 100%; margin: 0; background: #0b242a; border: 1px solid #315a5c; border-radius: 10px; box-shadow: 0 32px 80px rgba(0, 0, 0, .34), 0 0 0 8px rgba(93, 218, 197, .035); overflow: hidden; transform: rotate(1deg); }
.window-bar { display: flex; justify-content: space-between; align-items: center; height: 36px; padding: 0 13px; color: #9bc5bc; background: #123238; border-bottom: 1px solid #315a5c; font: 700 9px/1 'Space Grotesk', sans-serif; letter-spacing: .15em; }
.window-lights { display: flex; gap: 4px; }
.window-lights i { display: block; width: 7px; height: 7px; border-radius: 50%; background: #d89674; }
.window-lights i:nth-child(2) { background: #e7cb83; }
.window-lights i:nth-child(3) { background: #79cba4; }
.live-chip { color: #e4c877; }
.run-window > img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.run-window figcaption { display: flex; align-items: center; gap: 8px; padding: 13px 15px; color: #acd2ca; font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.run-window figcaption span:not(.capture-dot) { color: #587474; }
.stats-strip { display: grid; grid-template-columns: repeat(3, 1fr) auto; align-items: stretch; background: #102b30; border-top: 1px solid #235156; border-bottom: 1px solid #235156; padding: 0 clamp(24px, 5.5vw, 96px); }
.stats-strip > div { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-height: 112px; padding-right: 18px; }
.stats-strip strong { color: #e8f8ee; font-size: clamp(24px, 2.5vw, 34px); line-height: 1; letter-spacing: -.055em; }
.stats-strip span { color: #9dbab5; font-size: 11px; }
.stats-strip > a { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 20px; color: #c3f4e6; border-left: 1px solid #2c5a5a; font-size: 12px; font-weight: 700; }
.stats-strip > a:hover { background: rgba(160, 239, 216, .08); }

.section { padding: 114px clamp(24px, 5.5vw, 96px); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 50px; margin-bottom: 42px; }
.kicker { margin-bottom: 16px; }
.section h2, .follow-section h2 { color: #eff8f1; font-size: clamp(40px, 4.5vw, 69px); line-height: 1.07; letter-spacing: -.07em; }
.section-heading > p { max-width: 340px; padding-bottom: 5px; color: #a3bcbc; font-size: 14px; line-height: 1.7; }
.captures-section { background: #0a1c23; }
.capture-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.capture-card { overflow: hidden; background: #112930; border: 1px solid #24474b; border-radius: 8px; }
.capture-image { position: relative; overflow: hidden; background: #172c30; }
.capture-image img { width: 100%; height: clamp(235px, 26vw, 370px); object-fit: cover; object-position: 50% 45%; image-rendering: pixelated; transition: transform .45s; }
.capture-card:hover img { transform: scale(1.035); }
.capture-image span { position: absolute; left: 15px; bottom: 14px; padding: 7px 9px; color: #e9f5ea; background: rgba(5, 21, 25, .82); border: 1px solid rgba(160, 226, 210, .36); border-radius: 3px; font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.capture-text { min-height: 145px; padding: 24px; }
.capture-text h3 { color: #f0f7ee; font-size: 20px; letter-spacing: -.04em; }
.capture-text p { margin-top: 10px; color: #a4b9b6; font-size: 13px; line-height: 1.65; }

.mechanics-section { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(45px, 7vw, 115px); background: #07151b; }
.mechanics-media { padding: 15px; background: #10272c; border: 1px solid #315153; border-radius: 8px; box-shadow: 0 22px 50px rgba(0, 0, 0, .22); }
.media-label { display: flex; align-items: center; gap: 8px; color: #b4d8ca; margin: 0 0 12px 2px; font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.mechanics-media img { width: 100%; aspect-ratio: 1/1; max-height: 510px; object-fit: cover; image-rendering: pixelated; background: black; border: 1px solid #315153; }
.mechanics-media > p { color: #799994; margin: 11px 0 1px; font-size: 10px; }
.mechanics-copy h2 span { color: #9ee5d0; }
.mechanics-intro { max-width: 620px; margin: 26px 0 30px; color: #a4b8b8; font-size: 16px; line-height: 1.75; }
.steps { border-top: 1px solid #2c474a; }
.step { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 21px 0; border-bottom: 1px solid #2c474a; }
.step > span { color: #9ee5d0; font-size: 11px; font-weight: 700; }
.step h3 { color: #eef6ef; font-size: 17px; letter-spacing: -.03em; }
.step p { margin-top: 5px; color: #9db4b3; font-size: 12px; line-height: 1.65; }

.progress-section { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(50px, 8vw, 130px); background: #0e292e; border-top: 1px solid #284f50; border-bottom: 1px solid #284f50; }
.progress-lead > p:not(.kicker) { max-width: 460px; margin: 26px 0 24px; color: #a9c0ba; font-size: 15px; line-height: 1.75; }
.milestone-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid #3a5d5c; }
.milestone-list li { display: grid; grid-template-columns: 45px 1fr; gap: 20px; padding: 25px 0; border-bottom: 1px solid #3a5d5c; }
.milestone-number { color: #b1edcf; font-size: 11px; font-weight: 700; }
.milestone-list h3 { color: #eaf6eb; font-size: 21px; letter-spacing: -.04em; }
.milestone-list p { margin-top: 5px; color: #a9c2bd; font-size: 13px; line-height: 1.6; }

.follow-section { background: #08171d; padding: 88px clamp(24px, 5.5vw, 96px) 112px; }
.follow-banner { overflow: hidden; border: 1px solid #2d5757; border-radius: 8px; background: #122d35; }
.follow-banner img { width: 100%; aspect-ratio: 16/5; object-fit: cover; }
.follow-content { display: flex; flex-direction: column; align-items: center; max-width: 680px; margin: 72px auto 0; text-align: center; }
.follow-content > p:not(.kicker) { max-width: 500px; margin: 20px 0 28px; color: #a6bdb9; font-size: 15px; line-height: 1.7; }

.site-footer { padding: 43px clamp(24px, 5.5vw, 96px) 26px; background: #061117; border-top: 1px solid #204047; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 39px; }
.footer-top p { color: #91aaa6; font-size: 12px; }
.footer-top > a:last-child { color: #b5e7d7; font-size: 12px; font-weight: 700; }
.footer-bottom { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid #20383d; color: #76918e; font-size: 10px; }
.footer-bottom span:nth-child(2) { margin-left: auto; }
.footer-bottom button { color: #9cbbb6; padding: 0; background: none; border: 0; text-decoration: underline; cursor: pointer; font-size: 10px; }

.cookie-banner { position: fixed; z-index: 100; right: 20px; bottom: 20px; width: min(550px, calc(100% - 40px)); padding: 20px; color: #e9f5ec; background: #102b30; border: 1px solid #3b6863; border-radius: 10px; box-shadow: 0 20px 65px rgba(0,0,0,.5); }
.cookie-banner strong { font-size: 15px; }
.cookie-banner p { margin-top: 5px; color: #b6ccc5; font-size: 12px; line-height: 1.5; }
.cookie-banner fieldset { margin: 14px 0; padding: 0; border: 0; }
.cookie-banner legend { margin-bottom: 8px; color: #c6ece0; font-size: 12px; font-weight: 700; }
.cookie-banner fieldset label { display: flex; gap: 9px; margin: 7px 0; font-size: 12px; }
.cookie-banner fieldset small { display: block; margin-top: 2px; color: #93aca6; font-size: 11px; }
.cookie-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.cookie-actions button { padding: 8px 10px; color: #dff5eb; background: #214349; border: 1px solid #51766d; border-radius: 5px; cursor: pointer; font-size: 11px; font-weight: 700; }
.cookie-actions button:last-child { color: #0b2427; background: #a9f0db; border-color: #a9f0db; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; gap: 45px; min-height: 0; }
  .hero-copy { max-width: 720px; }
  .run-window { max-width: 800px; transform: none; }
  .mechanics-section { gap: 45px; }
}
@media (max-width: 750px) {
  .site-header { min-height: 72px; padding: 12px 22px; }
  .brand { font-size: 18px; }
  .brand img { width: 40px; height: 40px; }
  .mobile-toggle { display: block; margin-left: auto; }
  .navigation { display: none; position: absolute; left: 0; right: 0; top: 72px; align-items: stretch; flex-direction: column; gap: 0; padding: 10px 22px 18px; background: #0b2127; border-bottom: 1px solid #315153; box-shadow: 0 20px 35px rgba(0,0,0,.35); }
  .navigation.open { display: flex; }
  .navigation a { padding: 12px 0; }
  .header-youtube { display: none; }
  .hero { padding: 64px 22px 70px; }
  .hero h1 { font-size: clamp(49px, 10vw, 70px); }
  .run-window figcaption { font-size: 8px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); padding: 14px 22px; }
  .stats-strip > div { min-height: 95px; }
  .stats-strip > a { border-left: 0; justify-content: flex-start; padding: 10px 0; }
  .section { padding: 78px 22px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 18px; }
  .capture-grid { grid-template-columns: 1fr; }
  .capture-image img { height: auto; aspect-ratio: 4/3; object-fit: cover; }
  .capture-text { min-height: 0; }
  .mechanics-section, .progress-section { grid-template-columns: 1fr; }
  .mechanics-media { max-width: 550px; }
  .follow-section { padding: 70px 22px 80px; }
  .follow-banner img { aspect-ratio: 16/7; }
  .follow-content { margin-top: 60px; }
  .site-footer { padding: 40px 22px 24px; }
  .footer-top { align-items: flex-start; flex-direction: column; }
  .footer-bottom span:nth-child(2) { margin-left: 0; }
}
@media (max-width: 450px) {
  .hero h1 { font-size: 46px; }
  .hero-actions { gap: 18px; }
  .eyebrow { font-size: 9px; }
  .stats-strip { grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .stats-strip strong { font-size: 23px; }
  .stats-strip span { font-size: 10px; }
  .window-bar { font-size: 7px; }
  .run-window figcaption { letter-spacing: .05em; }
  .section h2, .follow-section h2 { font-size: 41px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* WordPress page templates and keyboard navigation */
.skip-link { position: absolute; left: -9999px; top: 10px; z-index: 100; padding: 10px 15px; color: #07151b; background: #a9f0db; }
.skip-link:focus { left: 10px; }
.wp-content { min-height: 55vh; max-width: 980px; margin: auto; }
.wp-content h1 { color: #eff8f1; font-size: clamp(42px, 5vw, 70px); letter-spacing: -.06em; margin-bottom: 30px; }
.wp-content p { color: #a8c0bb; line-height: 1.7; margin: 0 0 20px; }
.entry-content h2, .entry-content h3 { margin: 32px 0 14px; color: #eff8f1; }
.entry-content a { color: #a9f0db; text-decoration: underline; }
.entry-content ul, .entry-content ol { color: #a8c0bb; line-height: 1.8; }
.entry-content img { height: auto; }

/* 1.1: cinematic introduction and uncropped gameplay */
body { overflow-x: hidden; }
img { height: auto; }
.hero { display: block; min-height: 0; padding: 0 0 76px; overflow: visible; background: #07151b; }
.hero::before { display: none; }
.hero-art { position: relative; height: clamp(260px, 43vw, 620px); overflow: hidden; background: #0d1b2d; }
.hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 46%; }
.hero-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(3, 13, 21, .06) 45%, rgba(3, 13, 21, .48)); pointer-events: none; }
.hero-intro { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); align-items: center; gap: clamp(28px, 6vw, 90px); width: calc(100% - 2 * clamp(24px, 5.5vw, 96px)); max-width: 1320px; margin: -62px auto 0; padding: clamp(32px, 4.2vw, 60px); background: #0b2027; border: 1px solid #31565b; border-radius: 14px; box-shadow: 0 28px 90px rgba(0, 0, 0, .4); }
.hero-intro > *, .hero-summary, .hero-heading { min-width: 0; }
.hero .eyebrow { margin-bottom: 17px; white-space: normal; }
.hero h1 { max-width: none; font-size: clamp(39px, 4vw, 61px); line-height: 1.07; }
.hero-description { max-width: 610px; margin-top: 0; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.72; }
.hero-actions { margin-top: 26px; gap: 20px; }
.hero-fine { margin-top: 24px; }
.stats-strip { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
.stats-strip > * { min-width: 0; }
.capture-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.capture-card { min-width: 0; border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .13); }
.capture-image img { display: block; width: 100%; height: auto; aspect-ratio: 600 / 530; object-fit: contain; }
.mechanics-section > *, .progress-section > * { min-width: 0; }
.mechanics-media img { display: block; width: 100%; height: auto; max-height: none; aspect-ratio: 1 / 1; object-fit: contain; }
.follow-section { padding: 100px clamp(24px, 5.5vw, 96px) 112px; background: radial-gradient(circle at 50% 0%, rgba(40, 123, 126, .25), transparent 55%), #08171d; border-top: 1px solid #24464c; }
.follow-content { margin: 0 auto; }
@media (max-width: 1050px) {
  .hero { display: block; }
  .hero-intro { grid-template-columns: minmax(0, 1fr); gap: 27px; }
}
@media (max-width: 750px) {
  .hero { padding-bottom: 54px; }
  .hero-art { height: clamp(235px, 56vw, 360px); }
  .hero-intro { width: calc(100% - 32px); margin-top: -22px; padding: 27px 23px 29px; border-radius: 10px; }
  .hero h1 { font-size: clamp(35px, 9vw, 50px); }
  .hero-description { font-size: 15px; }
  .hero-actions { gap: 18px; }
  .stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capture-grid { grid-template-columns: minmax(0, 1fr); }
  .capture-image img { height: auto; aspect-ratio: 600 / 530; }
  .mechanics-section, .progress-section { grid-template-columns: minmax(0, 1fr); }
  .follow-section { padding: 78px 22px 86px; }
  .follow-content { margin: 0 auto; }
}
@media (max-width: 450px) {
  .hero h1 { font-size: clamp(34px, 9vw, 41px); }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .stats-strip strong { font-size: 22px; }
}
