/* ============================================================
   OlynaD Games — shared stylesheet
   Used by every page. Edit once, changes everywhere.
   ============================================================ */

:root{
  --bg: #FFFFFF;
  --surface: #F6F5F1;
  --surface-2: #ECEAE3;
  --ink: #17181C;
  --ink-dim: #5B5D66;
  /* Brand green, sampled from the OlynaD Games logo (#004627).
     Change --brand and the whole site follows. It's a dark green, so
     anything using it as a BACKGROUND needs --on-brand for its text. */
  --brand: #004627;
  --brand-text: #004627;      /* on white: 11:1 contrast, very readable */
  --brand-dim: #0B6B3F;       /* lighter green: hover borders, icons */
  --brand-soft: rgba(0,70,39,.08);   /* tinted backgrounds */
  --brand-line: rgba(0,70,39,.35);   /* tinted borders */
  --on-brand: #FFFFFF;        /* text sitting on top of --brand */
  --line: #DEDAD0;

  /* One typeface for the whole site: Helvetica, with sane fallbacks for
     machines that don't have it. The three names below are kept so the
     rest of the CSS doesn't have to change — they all point at Helvetica. */
  --font-display: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --nav-h: 76px;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  background-color:var(--bg);
  background-image: radial-gradient(rgba(23,24,28,0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  color:var(--ink);
  font-family:var(--font-body);
  line-height:1.55;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
img,svg{ display:block; max-width:100%; }
a{ color:inherit; }
ul{ list-style:none; }
section{ scroll-margin-top: var(--nav-h); }

*:focus-visible{
  outline:2px solid var(--brand-text);
  outline-offset:3px;
  border-radius:4px;
}

/* Keyboard users can jump past the nav */
.skip-link{
  position:absolute;
  left:-9999px;
  top:0;
  z-index:100;
  background:var(--ink);
  color:#fff;
  padding:.75rem 1.25rem;
  border-radius:0 0 8px 0;
  font-family:var(--font-mono);
  font-size:.75rem;
  text-decoration:none;
}
.skip-link:focus{ left:0; }

.container{
  max-width:1120px;
  margin-inline:auto;
  padding-inline:clamp(1.25rem, 5vw, 3rem);
}

/* ---------- NAV ---------- */
.site-nav{
  position:sticky; top:0; z-index:50;
  height:var(--nav-h);
  display:flex; align-items:center;
  background:rgba(255,255,255,0.82);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  width:100%;
}
.wordmark{
  display:flex; align-items:center;
  text-decoration:none;
}
/* Logo artwork is 640x198. Set the height; width follows automatically.
   Swap assets/img/logo.png to change the logo — nothing else to edit. */
.wordmark img{
  height:30px;
  width:auto;
}
/* ---------- SECTIONS SHARED ---------- */
.section{
  padding-block:clamp(4.5rem, 9vh, 6.5rem);
  border-top:1px solid var(--line);
}
.section--flush{ border-top:none; }

.section-head{
  max-width:36rem;
  margin-bottom:clamp(2.5rem, 5vw, 3.5rem);
}
.section-title{
  font-family:var(--font-display);
  font-weight:600;
  font-size:clamp(1.9rem, 3.6vw, 2.75rem);
  letter-spacing:-0.01em;
}
.section-title--sm{ font-size:1.5rem; }
.mt-lg{ margin-top:3rem; }

.section-body{
  color:var(--ink-dim);
  margin-top:.9rem;
  font-size:1.02rem;
}

.reveal{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .7s ease, transform .7s ease;
}
.reveal.is-visible{ opacity:1; transform:none; }

/* ---------- GAMES ---------- */
.game-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:1.5rem;
}
.game-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:14px;
  padding:clamp(1.5rem, 3vw, 2.1rem);
  display:flex;
  flex-direction:column;
  gap:1rem;
  transition:border-color .25s ease, transform .25s ease;
}
.game-card:hover{ border-color:var(--brand-dim); transform:translateY(-4px); }
a.game-card{ text-decoration:none; }

.card-link-cue{
  margin-top:auto;
  padding-top:.25rem;
  font-family:var(--font-mono);
  font-size:.72rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--brand-text);
  display:inline-flex;
  align-items:center;
  gap:.4rem;
}
.card-link-cue .arrow{ transition:transform .2s ease; }
.game-card:hover .card-link-cue .arrow{ transform:translateX(4px); }

.status-badge{
  align-self:flex-start;
  font-family:var(--font-mono);
  font-size:.68rem;
  letter-spacing:.1em;
  text-transform:uppercase;
  padding:.32rem .65rem;
  border-radius:999px;
  border:1px solid;
}
.status-badge.live{
  color:var(--brand-text);
  border-color:var(--brand-line);
  background:var(--brand-soft);
}
.status-badge.review{
  color:var(--ink-dim);
  border-color:var(--line);
  background:var(--surface-2);
}

.game-visual{
  border-radius:10px;
  overflow:hidden;
  display:flex;
  align-items:center;
  gap:1.25rem;
  flex-wrap:wrap;
}
/* Nothing dropped in yet? Then don't reserve an empty box on the card. */
.game-visual:empty{ display:none; }
/* App icon, sized like it sits on a phone home screen. */
.game-icon{
  width:clamp(88px, 24%, 116px);
  height:auto;
  border-radius:22%;
  box-shadow:0 2px 10px rgba(23,24,28,.12);
}

.game-title{
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(1.4rem, 2.2vw, 1.8rem);
}
.game-pitch{ color:var(--ink-dim); flex-grow:1; }
.game-tags{
  font-family:var(--font-mono);
  font-size:.72rem;
  letter-spacing:.05em;
  color:var(--ink-dim);
  display:flex; flex-wrap:wrap; gap:.4rem .9rem;
}

.cta-btn{
  align-self:flex-start;
  font-family:var(--font-mono);
  font-size:.75rem;
  text-transform:uppercase;
  letter-spacing:.07em;
  padding:.75rem 1.25rem;
  border-radius:8px;
  text-decoration:none;
  transition:background .2s ease, border-color .2s ease, color .2s ease;
}
.cta-btn.primary{ background:var(--brand); color:var(--on-brand); font-weight:500; border:1px solid transparent; }
.cta-btn.primary:hover{ background:var(--brand-dim); }
.cta-btn.ghost{ border:1px solid var(--line); color:var(--ink-dim); }
.cta-btn.ghost:hover{ border-color:var(--brand-dim); color:var(--ink); }

/* ---------- INFO LIST (game pages) ---------- */
.toolkit{
  display:grid;
  grid-template-columns:max-content 1fr;
  gap:.7rem 1.75rem;
  font-family:var(--font-mono);
  font-size:.82rem;
}
.toolkit dt{
  color:var(--ink-dim);
  text-transform:uppercase;
  letter-spacing:.06em;
  font-size:.68rem;
  padding-top:.2rem;
  white-space:nowrap;
}
.toolkit dd{ color:var(--ink); }

/* ---------- CONTACT ---------- */
.contact-body{ color:var(--ink-dim); max-width:38ch; margin-top:.9rem; }
.email-link{
  display:inline-block;
  font-family:var(--font-display);
  font-weight:600;
  font-size:clamp(1.25rem, 3vw, 2.1rem);
  color:var(--brand-text);
  text-decoration:none;
  margin-top:1.75rem;
  border-bottom:2px solid transparent;
  transition:border-color .2s ease;
  word-break:break-word;
}
.email-link:hover{ border-color:var(--brand-text); }

.site-footer{
  border-top:1px solid var(--line);
  padding-block:1.5rem;
  font-family:var(--font-mono);
  font-size:.68rem;
  letter-spacing:.03em;
  color:var(--ink-dim);
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:1rem;
}
.footer-links{ display:flex; gap:1.5rem; flex-wrap:wrap; }
.footer-links a{ color:var(--ink-dim); text-decoration:none; transition:color .2s ease; }
.footer-links a:hover{ color:var(--brand-text); }

/* ---------- DETAIL PAGE HEADER ---------- */
.breadcrumb{
  font-family:var(--font-mono);
  font-size:.72rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--ink-dim);
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  margin-bottom:2rem;
  transition:color .2s ease;
}
.breadcrumb:hover{ color:var(--brand-text); }

.detail-header{ max-width:42rem; }
.detail-header .status-badge{ margin-bottom:1.1rem; }
.status-note{
  display:block;
  font-family:var(--font-mono);
  font-size:.72rem;
  color:var(--ink-dim);
  margin-top:.5rem;
  margin-bottom:.5rem;
  text-transform:uppercase;
  letter-spacing:.06em;
}
h1.detail-title{
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing:-0.01em;
  line-height:1.05;
}
h1.detail-title--sm{ font-size:clamp(2rem, 4vw, 2.75rem); }
.detail-tagline{
  color:var(--ink-dim);
  font-size:clamp(1rem, 1.6vw, 1.15rem);
  max-width:40ch;
  margin-top:1rem;
}

/* ---------- SCREENSHOT GALLERY ---------- */
.gallery-track{
  /* Frame shape per game: App Store 6.9" shots are 9:19.5, Play Store
     1080x1920 shots are 9:16. Set on the track so the whole row matches. */
  --shot-aspect: 9/19.5;
  display:flex;
  gap:1rem;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  padding-block:.25rem .75rem;
  margin-top:2rem;
}
.gallery-track--9x16{ --shot-aspect: 9/16; }
.gallery-item{
  flex:0 0 auto;
  width:180px;
  aspect-ratio:var(--shot-aspect);
  border-radius:16px;
  background:var(--surface-2);
  border:1px dashed var(--line);
  scroll-snap-align:start;
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:1rem;
  color:inherit;
}
/* Real screenshot sits on top of the placeholder label. If the file is
   missing, site.js removes the <img> and the label shows through. */
.gallery-item img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:1;
}
.gallery-item:has(img){ border-style:solid; padding:0; }
.gallery-item .ph-label{
  font-family:var(--font-mono);
  font-size:.68rem;
  color:var(--ink-dim);
  line-height:1.5;
  z-index:0;
}
.gallery-item .ph-label b{ display:block; color:var(--ink); font-size:.72rem; margin-bottom:.3rem; }
.gallery-hint{
  font-family:var(--font-mono);
  font-size:.68rem;
  color:var(--ink-dim);
  letter-spacing:.04em;
  margin-top:.25rem;
}

/* ---------- STORE BUTTONS ---------- */
.store-buttons{
  display:flex; flex-wrap:wrap;
  align-items:center;
  gap:.9rem;
  margin-top:1.75rem;
}
.store-btn{
  display:inline-flex; align-items:center; gap:.75rem;
  padding:.8rem 1.3rem;
  border-radius:10px;
  border:1px solid var(--line);
  background:var(--surface);
  text-decoration:none;
  color:var(--ink);
  transition:border-color .2s ease, transform .2s ease;
}
.store-btn:hover{ border-color:var(--brand-dim); transform:translateY(-2px); }
.store-btn svg{ color:var(--brand-dim); flex-shrink:0; }
/* Official Play / App Store artwork. Drop the badge files into
   assets/img/store/ and they replace the text button automatically — until
   then site.js removes the missing <img> and the text button stays put. */
.store-badge{ height:52px; width:auto; }
.store-btn:has(.store-badge){ padding:0; border:none; background:none; }
.store-btn:has(.store-badge) > svg,
.store-btn:has(.store-badge) > .store-label{ display:none; }
.store-btn .store-label{ line-height:1.3; }
.store-btn .store-label small{
  display:block;
  font-family:var(--font-mono);
  font-size:.62rem;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--ink-dim);
}
.store-btn .store-label span{
  display:block;
  font-family:var(--font-display);
  font-weight:600;
  font-size:1rem;
}

/* ---------- FEATURES / FAQ / INFO ---------- */
.feature-list{ margin-top:1.25rem; display:flex; flex-direction:column; gap:.6rem; }
.feature-list li{
  display:flex; gap:.7rem;
  color:var(--ink-dim);
  font-size:.96rem;
}
.feature-list li::before{
  content:'';
  width:6px; height:6px;
  margin-top:.5rem;
  border-radius:50%;
  background:var(--brand);
  flex-shrink:0;
}

.detail-grid{
  display:grid;
  grid-template-columns:1.3fr .7fr;
  gap:clamp(2rem, 5vw, 4rem);
  align-items:start;
  margin-top:clamp(3rem, 6vw, 4rem);
}

.faq{ display:flex; flex-direction:column; gap:.75rem; margin-top:1.5rem; }
.faq details{
  border:1px solid var(--line);
  border-radius:10px;
  padding:1rem 1.25rem;
  background:var(--surface);
}
.faq summary{
  cursor:pointer;
  font-weight:500;
  font-size:.96rem;
  list-style:none;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1rem;
}
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{
  content:'+';
  font-family:var(--font-mono);
  color:var(--brand-text);
  font-size:1.1rem;
  flex-shrink:0;
}
.faq details[open] summary::after{ content:'\2013'; }
.faq p{ color:var(--ink-dim); margin-top:.75rem; font-size:.92rem; }
.faq p + p{ margin-top:.5rem; }
.faq a{ color:var(--brand-text); }

/* ---------- PROSE (privacy / terms / support) ---------- */
.prose{ max-width:64ch; margin-top:2.5rem; }
.prose h2{
  font-family:var(--font-display);
  font-size:1.35rem;
  margin-top:2.25rem;
  margin-bottom:.75rem;
  scroll-margin-top:calc(var(--nav-h) + 1rem);
}
.prose h2:first-child{ margin-top:0; }
.prose h3{
  font-family:var(--font-display);
  font-size:1.05rem;
  margin-top:1.5rem;
  margin-bottom:.5rem;
}
.prose p{ color:var(--ink-dim); margin-bottom:1rem; }
.prose ul{ margin:0 0 1rem 0; display:flex; flex-direction:column; gap:.5rem; }
.prose ul li{ color:var(--ink-dim); display:flex; gap:.7rem; }
.prose ul li::before{
  content:'';
  width:6px; height:6px;
  margin-top:.5rem;
  border-radius:50%;
  background:var(--brand);
  flex-shrink:0;
}
.prose strong{ color:var(--ink); font-weight:500; }
.prose a{ color:var(--brand-text); }
.updated-note{
  font-family:var(--font-mono);
  font-size:.72rem;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--ink-dim);
  margin-top:.75rem;
}

/* Data table used in the privacy policy */
.data-table-wrap{ overflow-x:auto; margin-bottom:1.25rem; }
.data-table{
  border-collapse:collapse;
  width:100%;
  min-width:34rem;
  font-size:.88rem;
}
.data-table th,
.data-table td{
  text-align:left;
  padding:.7rem .9rem;
  border-bottom:1px solid var(--line);
  vertical-align:top;
}
.data-table th{
  font-family:var(--font-mono);
  font-size:.68rem;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--ink-dim);
  font-weight:500;
  background:var(--surface);
}
.data-table td{ color:var(--ink-dim); }
.data-table tr:last-child td{ border-bottom:none; }

/* Callout box for "read this before you submit" notes */
.callout{
  border:1px solid var(--line);
  border-left:3px solid var(--brand);
  background:var(--surface);
  border-radius:0 10px 10px 0;
  padding:1.1rem 1.35rem;
  margin-bottom:1.5rem;
}
.callout p{ margin-bottom:0; font-size:.92rem; }
.callout p + p{ margin-top:.6rem; }

/* ---------- 404 ---------- */
.error-wrap{
  min-height:calc(100vh - var(--nav-h) - 80px);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  padding-block:4rem;
}
.error-code{
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(4rem, 14vw, 8rem);
  line-height:1;
  letter-spacing:-0.03em;
  color:var(--brand);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width:860px){
  .game-grid{ grid-template-columns:1fr; }
  .detail-grid{ grid-template-columns:1fr; }
}

@media (max-width:720px){
  .wordmark img{ height:26px; }
  .site-footer{ justify-content:flex-start; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .reveal{ transition:none; opacity:1; transform:none; }
  .game-card:hover{ transform:none; }
  .store-btn:hover{ transform:none; }
}
