:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --text: #1c1b1a;
  --muted: #6b6760;
  --line: #e7e4df;
  --accent: #e8590c;
  --accent-soft: #fff1e8;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.04);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121110;
    --surface: #1b1a18;
    --text: #eceae6;
    --muted: #9a958d;
    --line: #2c2a27;
    --accent: #ff8a4c;
    --accent-soft: #2a1d15;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }

header.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.logo { font-weight: 700; text-decoration: none; letter-spacing: -.01em; }
.logo span { color: var(--accent); }
nav a { text-decoration: none; color: var(--muted); font-size: 14px; margin-left: 22px; }
nav a:hover { color: var(--text); }

.hero { padding: 88px 0 64px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.eyebrow { color: var(--accent); font-size: 13px; letter-spacing: .04em; margin: 0 0 14px; }
h1 { font-size: clamp(34px, 6vw, 52px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 18px; }
.lede { font-size: 18px; color: var(--muted); max-width: 560px; margin: 0 0 28px; }
.avatar { width: 150px; height: 150px; border-radius: 28px; border: 1px solid var(--line); box-shadow: var(--shadow); object-fit: cover; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; font-weight: 500; font-size: 15px;
  text-decoration: none; border: 1px solid var(--line); background: var(--surface);
  transition: transform .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn svg { width: 17px; height: 17px; }

section { padding: 48px 0; border-top: 1px solid var(--line); }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; margin: 0 0 28px; }

.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.app {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 24px; box-shadow: var(--shadow);
}
.app-icon {
  width: 52px; height: 52px; border-radius: 13px; margin-bottom: 16px;
  display: grid; place-items: center; color: #fff; font-size: 24px; font-weight: 700;
}
.app h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.01em; }
.app p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.app .links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; font-size: 14px; }
.app .links a.store, .app .links .store {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 9px;
  background: var(--text); color: var(--bg); text-decoration: none;
}
.app .links a.store:hover { text-decoration: none; opacity: .88; }
.app .links .store svg { width: 15px; height: 15px; }
.app .links .store.soon { background: transparent; color: var(--muted); border: 1px dashed var(--line); }
.app .links a { color: var(--accent); text-decoration: none; font-weight: 500; }
.app .links a:hover { text-decoration: underline; }

.projects { display: grid; gap: 0; }
.project {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 20px;
  padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none;
}
.project:last-child { border-bottom: 0; }
.project:hover .p-name { color: var(--accent); }
.p-name { font-weight: 600; transition: color .15s; }
.p-desc { grid-column: 1; color: var(--muted); font-size: 15px; }
.p-meta { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: 12px; color: var(--muted); white-space: nowrap; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); }

.skills { display: flex; flex-wrap: wrap; gap: 10px; }
.skills span {
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; background: var(--surface);
}

.contact p { color: var(--muted); max-width: 520px; margin: 0 0 22px; }

footer { padding: 32px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

@media (max-width: 640px) {
  .hero { grid-template-columns: 1fr; padding: 56px 0 44px; gap: 28px; }
  .avatar { width: 96px; height: 96px; border-radius: 22px; order: -1; }
  nav a { margin-left: 14px; }
  .project { grid-template-columns: 1fr; }
  .p-meta { grid-row: auto; grid-column: 1; }
}

/* App icons that are images rather than a glyph on a gradient */
img.app-icon { display: block; object-fit: cover; }
.new {
  font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; vertical-align: 3px;
  padding: 2px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent);
}

/* Become a tester */
.testers { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; }
.testers-intro h3 { font-size: 24px; line-height: 1.25; letter-spacing: -.02em; margin: 0 0 12px; }
.testers-intro p { color: var(--muted); margin: 0 0 16px; }
.testers-intro ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.testers-intro li { margin-bottom: 6px; }

.tform {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 24px; box-shadow: var(--shadow); display: grid; gap: 16px;
}
.tform .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tform label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.tform input:not([type=checkbox]):not([type=radio]), .tform select, .tform textarea {
  font: inherit; font-weight: 400; font-size: 15px; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; width: 100%;
}
.tform textarea { resize: vertical; }
.tform input:focus, .tform select:focus, .tform textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.tform small, .tform .opt { color: var(--muted); font-weight: 400; font-size: 13px; }
.tform fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.tform legend { font-size: 14px; font-weight: 500; margin-bottom: 8px; padding: 0; width: 100%; }
.tform label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: 15px; cursor: pointer; }
.tform label.check input { margin-top: 4px; accent-color: var(--accent); }
.tform .consent { font-size: 13px; color: var(--muted); }
.tform .consent a { color: var(--accent); }
.tform .bad input, .tform .bad select, .tform input.bad { border-color: #d6336c; }
.tform fieldset.bad legend, .tform label.bad { color: #d6336c; }
.tform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tform .ts:empty { display: none; }
.tform button { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 500; }
.tform button:disabled { opacity: .5; cursor: default; transform: none; }
.tform-msg { margin: 0; font-size: 14px; color: var(--muted); }
.tform-msg:empty { display: none; }
.tform-msg.error { color: #d6336c; }
.tform-msg.info { padding: 10px 12px; border-radius: 9px; background: var(--accent-soft); color: var(--text); }
.tform-done h3 { margin: 0 0 6px; font-size: 22px; }
.tform-done p { margin: 0; color: var(--muted); }

@media (max-width: 760px) {
  .testers { grid-template-columns: 1fr; gap: 24px; }
  .tform { padding: 18px; }
  .tform .row2 { grid-template-columns: 1fr; }
}

/* Game pages: a store video beside the store text, and a swipeable strip of phone screenshots */
.gm-about { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.gm-video-v { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 22px; background: #000; box-shadow: var(--shadow); }
.gm-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 18px; background: #000; box-shadow: var(--shadow); }
.gm-text h3 { font-size: 17px; margin: 0 0 6px; }
.gm-text h3:not(:first-child) { margin-top: 22px; }
.gm-text p, .gm-text li { color: var(--muted); font-size: 15px; margin: 0; }
.gm-text ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.gm-shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 16px;
}
.gm-shots img {
  display: block; width: 100%; height: auto; scroll-snap-align: start;
  border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow);
}
@media (max-width: 640px) {
  .gm-about { grid-template-columns: 1fr; gap: 24px; }
  .gm-video-v { max-width: 300px; margin: 0 auto; }
  .gm-shots { grid-auto-columns: 62%; margin: 0 -20px; padding: 4px 20px 16px; scroll-padding: 0 20px; }
}
