/* Zift's landing page: the game's own palette (Render/Pixels.cs: Pal) and its 5x7 pixel font for headings. */
@font-face {
  font-family: "Zift Pixel";
  src: url("fonts/zift-pixel.woff") format("woff");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --void: #040509;
  --ink: #06090c;
  --panel: #090f13;
  --line: #1c4b4e;
  --teal: #60bfb6;
  --teal-dim: #27696b;
  --amber: #e6ab37;
  --amber-hi: #fadf88;
  --text: #e9e6da;
  --dim: #8f8c80;
  --pixel: "Zift Pixel", ui-monospace, monospace;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --gutter: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font: 15px/1.6 var(--mono);
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--amber-hi); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* headings in the game's font: 11px per font pixel row, so sizes are multiples of 11 */
h1, h2, .logo, .btn, .badge, .navlink, .section-title, .play-label {
  font-family: var(--pixel);
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0;
  -webkit-font-smoothing: none;
  font-smooth: never;
}

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px var(--gutter);
  background: rgba(4, 5, 9, 0.88);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.logo { font-size: 22px; color: var(--amber); text-decoration: none; }
nav { display: flex; align-items: center; gap: 18px; }
.navlink { font-size: 11px; color: var(--text); text-decoration: none; }
.navlink:hover { color: var(--amber-hi); }
.lang select {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  font: 13px var(--mono);
  padding: 4px 6px;
}

main { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

/* a frame like the game's panels: a thin teal line, brighter corners */
.frame, .panel { position: relative; border: 1px solid var(--line); background: var(--panel); }
.frame::before, .frame::after, .panel::before, .panel::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
}
.frame::before, .panel::before { top: -2px; left: -2px; border-top: 2px solid var(--teal); border-left: 2px solid var(--teal); }
.frame::after, .panel::after { bottom: -2px; right: -2px; border-bottom: 2px solid var(--teal); border-right: 2px solid var(--teal); }

.hero { padding: 40px 0 24px; display: grid; gap: 28px; }
.art img { width: 100%; }
.title { margin: 0; font-size: 88px; line-height: 1; color: var(--amber); }
.tagline { margin: 14px 0 6px; font-size: 20px; line-height: 1.4; color: var(--amber-hi); }
.sub { margin: 0; max-width: 62ch; color: var(--dim); }
.cta { margin: 22px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.btn {
  display: inline-block;
  font-size: 22px;
  padding: 12px 18px 10px;
  background: var(--amber);
  color: var(--void);
  border: 0;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--teal-dim);
}
.btn:hover { background: var(--amber-hi); }
.btn.small { font-size: 11px; padding: 8px 10px 6px; box-shadow: 3px 3px 0 var(--teal-dim); }
.badge { font-size: 11px; color: var(--teal); }

@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr; position: relative; }
  .pitch { position: absolute; right: 44px; top: 50%; transform: translateY(-40%); width: 42%; }
}

.features { display: grid; gap: 18px; padding: 28px 0; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(3, 1fr); } }
.panel { padding: 22px 18px 18px; }
.panel h2 {
  position: absolute;
  top: -8px;
  left: 12px;
  margin: 0;
  padding: 0 6px;
  font-size: 11px;
  color: var(--teal);
  background: var(--void);
}
.panel h2::before { content: "[ "; }
.panel h2::after { content: " ]"; }
.panel p { margin: 0; color: var(--text); }

.section-title { margin: 36px 0 16px; font-size: 22px; color: var(--amber); }

.grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
figure { margin: 0; }
figure img { width: 100%; border: 1px solid var(--line); image-rendering: pixelated; }
figcaption { margin-top: 8px; font-size: 13px; color: var(--dim); }

.demo { padding-bottom: 40px; }
.screen { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.screen iframe { width: 100%; height: 100%; border: 0; display: block; background: var(--void); }
.play {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  cursor: pointer;
  color: var(--text);
  background: linear-gradient(rgba(4, 5, 9, 0.55), rgba(4, 5, 9, 0.8)), url("img/keyart.jpg") center / cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.play-label { font-size: 33px; color: var(--amber); }
.play-label::before { content: "▸ "; }
.play-note { font-size: 13px; color: var(--dim); }
.play:hover .play-label { color: var(--amber-hi); }

.under { display: grid; gap: 16px; margin-top: 18px; }
@media (min-width: 900px) { .under { grid-template-columns: 2fr 1fr; align-items: start; } }
.keys { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 6px 22px; }
.keys div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dotted var(--line); padding: 4px 0; }
.keys dt { color: var(--dim); white-space: nowrap; }
.keys dd { margin: 0; color: var(--text); text-align: right; white-space: nowrap; }
.aside { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--dim); }
.touch { display: none; color: var(--amber-hi); }
@media (hover: none) and (pointer: coarse) { .touch { display: inline; } }

.foot {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px var(--gutter) 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: var(--dim);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

@media (max-width: 520px) {
  .title { font-size: 66px; }
  .tagline { font-size: 17px; }
  .btn { font-size: 11px; }
  .play-label { font-size: 22px; }
  .navlink { display: none; }
}
