/* Goodfold studio look (the "Three doors" home page).
   The home page uses this file; the other pages still use site.css until
   they're moved over. Colors are tokens on :root, redefined for dark mode. */

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fdfcfa;
  --ink: #121117;
  --soft: #6e6c78;
  --line: #ebe9ef;
  --card: #fff;
  --brand: #7a3cff;
  --focus: #7a3cff;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0e0d12; --ink: #f4f3f8; --soft: #9c9aa8; --line: #24232b; --card: #17161c; --brand: #9b6bff; --focus: #b79bff; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 Manrope, system-ui, -apple-system, sans-serif; overflow-x: clip; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
img, svg { display: block; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.04em; line-height: 1; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* Header */
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.nav ul { display: flex; gap: 26px; margin: 0; padding: 0; list-style: none; font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; color: var(--soft); white-space: nowrap; }
.nav a:hover { color: var(--ink); }

/* Hero */
.hero { position: relative; padding: 60px 0 40px; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.45; z-index: -1; pointer-events: none; }
.b1 { width: 420px; height: 420px; background: #b79bff; top: -60px; right: 8%; }
.b2 { width: 360px; height: 360px; background: #ff9fc7; top: 120px; right: 30%; }
.b3 { width: 300px; height: 300px; background: #ffd36b; top: 40px; left: -80px; opacity: 0.3; }
@media (prefers-color-scheme: dark) { .blob { opacity: 0.22; } }
.hero h1 { font-size: clamp(52px, 10vw, 150px); font-weight: 800; }
.hero .lead { margin: 30px 0 0; max-width: 540px; font-size: 21px; color: var(--soft); }
.hero .lead strong { color: var(--ink); }

/* Three doors: games, apps and web, and the studio */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 56px 0 0; padding: 0; list-style: none; }
.doors > li { display: flex; min-width: 0; }
.door { position: relative; display: flex; flex-direction: column; width: 100%; min-height: 440px; padding: 30px; border-radius: 32px; color: #fff; text-decoration: none; overflow: hidden; }
a.door { transition: transform 0.25s cubic-bezier(.3, 1.4, .6, 1); }
a.door:hover { transform: translateY(-8px) rotate(-1deg); }
.door .k { font-size: 14px; font-weight: 700; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.08em; }
.door h2 { font-size: 54px; margin-top: 10px; }
.door p { margin: 12px 0 0; opacity: 0.92; max-width: 30ch; }
.door .bottom { margin-top: auto; padding-top: 24px; display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.door .arrow { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgb(255 255 255 / 22%); font-size: 22px; }
.door .soon { flex: none; padding: 6px 12px; border-radius: 999px; background: rgb(255 255 255 / 22%); font-size: 13.5px; font-weight: 700; }
.door-games { background: linear-gradient(160deg, #ff5a8a, #ff8f6b); }
.door-apps { background: linear-gradient(160deg, #6a2bff, #a46bff); }
.door-studio { background: linear-gradient(160deg, #e8920c, #ffc23d); color: #2b1a00; }
.door-studio .tags span { background: rgb(255 255 255 / 40%); }
.door-games img { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 20px 40px -14px rgb(0 0 0 / 45%); transform: rotate(-6deg); }
.door-games .name { display: block; margin-top: 10px; font-size: 14px; font-weight: 700; }
.devices { width: 190px; max-width: 70%; height: auto; }
.stack { display: flex; }
.stack span { width: 70px; height: 70px; margin-right: -18px; border: 2px dashed rgb(255 255 255 / 65%); border-radius: 20px; background: rgb(255 255 255 / 10%); display: grid; place-items: center; font-weight: 800; font-size: 24px; }
.stack span:nth-child(2) { transform: translateY(-10px) rotate(6deg); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { padding: 6px 12px; border-radius: 999px; background: rgb(255 255 255 / 22%); font-size: 13.5px; font-weight: 700; }

/* How we work */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); margin: 90px 0; border-block: 1px solid var(--line); }
.strip > div { padding: 34px 30px 34px 0; min-width: 0; }
.strip > div + div { padding-left: 30px; border-left: 1px solid var(--line); }
.strip h2 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 8px; line-height: 1.2; }
.strip p { margin: 0; color: var(--soft); font-size: 15.5px; }
.strip a { color: var(--ink); }

/* Contact */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; margin-bottom: 70px; padding: 56px; border-radius: 36px; background: var(--ink); color: var(--bg); }
.contact h2 { font-size: clamp(38px, 5vw, 64px); }
.contact p { margin: 0 0 22px; opacity: 0.75; }
.contact .links { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; height: 56px; padding: 0 28px; border-radius: 999px; background: var(--brand); color: #fff; text-decoration: none; font-weight: 700; }
.contact .more { font-weight: 600; text-underline-offset: 4px; }
@media (prefers-color-scheme: dark) { .contact { background: #1c1a24; color: var(--ink); } }

/* Footer */
.foot { border-top: 1px solid var(--line); }
.foot .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; padding-block: 44px 24px; }
.foot p { margin: 12px 0 0; color: var(--soft); font-size: 15px; max-width: 30ch; }
.foot h2 { font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--soft); margin-bottom: 12px; }
.foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; }
.foot ul a { text-decoration: none; }
.foot ul a:hover { text-decoration: underline; }
.legal { padding-block: 0 40px; color: var(--soft); font-size: 14px; }

@media (max-width: 900px) {
  .doors, .strip, .contact { grid-template-columns: 1fr; }
  .door { min-height: 320px; }
  .door h2 { font-size: 44px; }
  .strip > div, .strip > div + div { padding: 26px 0; border-left: 0; }
  .strip > div + div { border-top: 1px solid var(--line); }
  .contact { padding: 36px 28px; }
  .foot .wrap { grid-template-columns: 1fr 1fr; }
  .foot .about { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .nav li:not(:last-child) { display: none; }
  .hero { padding-top: 36px; }
  .hero .lead { font-size: 19px; }
  .door { padding: 26px; border-radius: 26px; }
  .strip { margin: 56px 0; }
}
@media (prefers-reduced-motion: reduce) { a.door { transition: none; } a.door:hover { transform: none; } }

/* Inner pages (contact, privacy, 404) */
.page-head { position: relative; padding: 40px 0 10px; }
.page-head h1 { font-size: clamp(44px, 7vw, 92px); font-weight: 800; }
.page-head .lead { margin: 22px 0 0; max-width: 620px; font-size: 20px; color: var(--soft); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; font-size: 15px; font-weight: 600; color: var(--soft); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; }
.breadcrumb a { color: var(--ink); text-underline-offset: 3px; }
.updated { margin: 14px 0 0; font-size: 14px; color: var(--soft); }
.section-tight { padding: 40px 0 80px; }
.ph { padding: 1px 6px; border-radius: 6px; background: #fff1a8; color: #4a3b00; font-weight: 700; }
@media (prefers-color-scheme: dark) { .ph { background: #4a3b00; color: #fff1a8; } }

.prose > * { max-width: 760px; }
.prose h2 { margin: 44px 0 12px; font-size: 28px; letter-spacing: -0.02em; line-height: 1.15; }
.prose h3 { margin: 28px 0 8px; font-size: 20px; letter-spacing: -0.01em; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--brand); text-underline-offset: 3px; }
.note { padding: 18px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }

.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 900px; }
.contact-card { display: flex; flex-direction: column; padding: 30px; border-radius: 28px; color: #fff; }
.contact-card:nth-child(1) { background: linear-gradient(160deg, #ff5a8a, #ff8f6b); }
.contact-card:nth-child(2) { background: linear-gradient(160deg, #6a2bff, #a46bff); }
.contact-card:nth-child(3) { background: linear-gradient(160deg, #e8920c, #ffc23d); color: #2b1a00; }
.contact-card h2 { font-size: 30px; margin-bottom: 4px; }
.contact-card p { margin: 10px 0 0; }
.contact-card a { font-weight: 700; text-underline-offset: 3px; }
.contact-card .email { display: inline-flex; align-items: center; height: 46px; margin-top: 8px; padding: 0 18px; border-radius: 999px; background: rgb(255 255 255 / 22%); text-decoration: none; }
.contact-card .ph { background: rgb(255 255 255 / 55%); color: #2b1a00; }

.lost { position: relative; padding: 70px 0 110px; text-align: center; }
.lost .big { margin: 0; font-size: clamp(110px, 22vw, 240px); font-weight: 800; line-height: 0.9; letter-spacing: -0.06em; background: linear-gradient(120deg, #ff5a8a, #7a3cff 55%, #ffb020); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lost h1 { margin-top: 10px; font-size: clamp(34px, 5vw, 56px); }
.lost .lead { margin: 18px auto 0; max-width: 520px; font-size: 19px; color: var(--soft); }
.lost .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.lost .more { margin-top: 28px; color: var(--soft); }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
