/* divinevisitation.sbs: the games side. Tokens carried over from the divinevisit.com games site (Nov 2026). */
:root {
  --base: #F6EFDF; --text: #2E2A1F; --surface: #FFFAF0; --muted: #5E5646;
  --primary: #3F6B2A; --primary-rim: #24391A; --on-primary: #FFFAF0;
  --matcha: #D7E6C0; --sky: #D6E8EF; --footer: #24391A; --on-footer: #F6EFDF; --footer-link: #E9A23B;
  --border: #8A7F69; --focus: #1D5FA8;
  /* Cleave and Polish capsule colours */
  --cp-wall: #F1D9D3; --cp-teal: #2F7D79; --cp-teal-rim: #1E5552; --cp-slate: #2E2A2D; --cp-gold: #B07F2C;
  --display: "Alfa Slab One", Rockwell, Georgia, serif;
  --body: "Nunito Sans", system-ui, sans-serif;
  --radius: 24px;
  --shadow-card: 0 8px 24px rgba(46, 42, 31, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--base); color: var(--text); font: 400 1.125rem/1.75 var(--body); }
img, video { max-width: 100%; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.eyebrow { font: 800 .875rem/1.4 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .6em; }
.lead { font-size: 1.25rem; color: var(--muted); max-width: 62ch; }

/* header */
.site-header { background: var(--surface); border-bottom: 2px solid #E7DDC8; position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 76px; flex-wrap: wrap; }
.brand img { height: 46px; width: auto; }
.nav { margin-left: auto; display: flex; gap: 4px 18px; flex-wrap: wrap; align-items: center; list-style: none; padding: 0; margin-block: 0; }
.nav a { color: var(--text); font-weight: 700; text-decoration: none; padding: 10px 2px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--primary); text-decoration: underline; }
.nav .company { font-weight: 600; color: var(--muted); font-size: .95rem; }
@media (max-width: 640px) { .header-inner { padding-block: 10px; } .nav { margin-left: 0; width: 100%; } .brand img { height: 38px; } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 22px; border-radius: 999px;
  font: 800 1rem/1 var(--body); text-decoration: none; background: var(--primary); color: var(--on-primary);
  box-shadow: 0 6px 0 var(--primary-rim); transition: transform .08s, box-shadow .08s; border: 0; cursor: pointer; }
.btn:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--primary-rim); }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--border); }
.btn.teal { background: var(--cp-teal); box-shadow: 0 6px 0 var(--cp-teal-rim); }
.btn.soon { background: var(--surface); color: var(--muted); box-shadow: inset 0 0 0 2px var(--border); cursor: default; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px 16px; margin-top: 24px; }

/* sections */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section.alt { background: var(--surface); }
.section.matcha { background: var(--matcha); }
.section.cp { background: var(--cp-wall); }
.hero { padding-block: clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); background: #000; }
.media video, .media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
figure { margin: 0; }
figcaption { font-size: .95rem; color: var(--muted); padding-top: 10px; }

/* game cards */
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 28px; }
.game-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.game-card .art { aspect-ratio: 16 / 9; background: var(--cp-wall); display: grid; place-items: center; overflow: hidden; }
.game-card .art img { width: 100%; height: 100%; object-fit: cover; }
.game-card .art.logo img { object-fit: contain; width: 78%; height: auto; }
.game-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.game-card .body .cta-row { margin-top: auto; padding-top: 12px; }
.tag { display: inline-block; font: 800 .8rem/1 var(--body); letter-spacing: .06em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; background: var(--matcha); color: var(--primary-rim); margin-bottom: 10px; align-self: flex-start; }
.tag.cp { background: var(--cp-teal); color: #fff; }

/* feature lists and grids */
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.features li { padding-left: 30px; position: relative; }
.features li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 12px; height: 12px; border-radius: 3px; background: var(--primary); transform: rotate(45deg); }
.cp-page .features li::before { background: var(--cp-teal); }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 28px 40px; align-items: start; }
.clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); gap: 28px; margin-top: 32px; }
.clip h3 { margin: 14px 0 4px; font-size: 1.2rem; }
.clip p { color: var(--muted); font-size: 1rem; margin: 0; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px; margin-top: 28px; }
.shots img { border-radius: 16px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; box-shadow: var(--shadow-card); }
.details { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.details dt { font-weight: 800; }
.details dd { margin: 0; }
.yt { aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-card); }
.socials { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.socials a { min-height: 48px; display: inline-flex; align-items: center; padding: 8px 18px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 2px var(--border); color: var(--text); font-weight: 800; text-decoration: none; }
.socials a:hover { box-shadow: inset 0 0 0 2px var(--primary); color: var(--primary); }
.cp-logo { width: min(520px, 100%); height: auto; margin-bottom: 12px; }
.habitat-logo { width: min(460px, 100%); height: auto; margin-bottom: 18px; }
.note { font-size: .95rem; color: var(--muted); }

/* footer */
.site-footer { background: var(--footer); color: var(--on-footer); padding-block: 44px; font-size: 1rem; }
.site-footer a { color: var(--footer-link); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: space-between; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.reveal .btn { touch-action: none; user-select: none; -webkit-user-select: none; }
.reveal .btn.holding { transform: translateY(3px); box-shadow: 0 3px 0 var(--primary-rim); background-image: linear-gradient(90deg, rgba(255,255,255,.28) 50%, transparent 50%); background-size: 200% 100%; background-position: 100% 0; animation: holdfill 1s linear forwards; }
@keyframes holdfill { to { background-position: 0 0; } }
.shots-title { margin-top: 64px; }
/* Cleave and Polish teaser: one image panel, no details */
.game-card.teaser .art { background: var(--cp-wall); }
