/* ============================================================
   Cris Apps — stylesheet
   Palette and fonts follow the CoTW Guide and SnowRunner Guide sites:
   dark neutral background, the app-icon orange (#FF9500) as accent,
   Barlow Condensed for headings, Inter for body text.
   Fonts are self-hosted (no requests to Google).
   ============================================================ */

@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg: #12161b;          /* page background (same family as the app sites) */
  --bg-raise: #171d24;    /* nav, footer */
  --surface: #1d242c;     /* cards */
  --surface-2: #28313b;   /* hover, tags */
  --border: #2e3742;
  --text: #f2f1ec;
  --muted: #98a2ac;
  --accent: #ff9500;      /* the orange of the app icons */
  --accent-strong: #ffa733;
  --radius: 16px;
  --max: 1080px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); background: var(--bg); color: var(--text);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;   /* keeps the footer at the bottom */
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* warm glow behind the hero */
.glow {
  position: absolute; inset: 0 0 auto 0; height: 720px; z-index: -1; pointer-events: none;
  background: radial-gradient(700px 420px at 78% 10%, rgba(255,149,0,.16), transparent 65%);
}

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(18,22,27,.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand b { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: .02em; text-transform: uppercase; }
.brand b span { color: var(--accent); }
.nav ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
.nav ul a { color: var(--muted); font-size: 15px; font-weight: 500; }
.nav ul a:hover, .nav ul a[aria-current] { color: var(--text); text-decoration: none; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: .005em; line-height: 1.02; }
h1 { font-size: clamp(44px, 7vw, 76px); text-transform: uppercase; margin: 14px 0 20px; }
h1 em { font-style: normal; color: var(--accent); }
h2 { font-size: 40px; text-transform: uppercase; margin: 0 0 8px; }
h3 { font-size: 26px; margin: 0; }
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.lead { font-size: 19px; color: var(--muted); max-width: 560px; margin: 0 0 32px; }
.sub { color: var(--muted); margin: 0 0 32px; max-width: 620px; }

/* ---------- Buttons ---------- */
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 10px;
  font-weight: 600; font-size: 15px; border: 1px solid var(--border); color: var(--text); background: var(--surface);
  cursor: pointer; font-family: inherit; transition: transform .15s, background .15s;
}
.btn:hover { background: var(--surface-2); transform: translateY(-1px); text-decoration: none; }
.btn.primary { background: var(--accent); color: #1a1004; border-color: transparent; }
.btn.primary:hover { background: var(--accent-strong); }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 88px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.hero-icons { position: relative; height: 320px; }
.hero-icons img { position: absolute; width: 190px; height: 190px; border-radius: 42px; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.hero-icons img:nth-child(1) { top: 0; left: 0; transform: rotate(-9deg); }
.hero-icons img:nth-child(2) { top: 64px; left: 33%; transform: rotate(3deg); z-index: 1; }
.hero-icons img:nth-child(3) { bottom: 0; right: 0; transform: rotate(9deg); }

/* ---------- Sections ---------- */
section { padding: 64px 0; }

/* ---------- App cards ---------- */
.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card { --ac: var(--accent); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; transition: border-color .15s, transform .15s; position: relative; overflow: hidden; }
.card:hover { border-color: color-mix(in srgb, var(--ac) 45%, var(--border)); transform: translateY(-2px); }
.card .game { color: var(--muted); }
.card .links .btn { background: var(--ac); color: #10151a; border-color: transparent; }
.card .links .btn:hover { filter: brightness(1.12); }
.card .head { display: flex; align-items: center; gap: 16px; }
.card .head img { width: 64px; height: 64px; border-radius: 15px; flex: none; }
.card .game { color: var(--muted); font-size: 14px; }
.card p { margin: 0; color: var(--muted); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.links { margin-top: auto; }
.links .btn { padding: 9px 16px; font-size: 14px; }

/* ---------- About ---------- */
.two { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.box { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 22px; }
.box ul { margin: 10px 0 0; padding-left: 18px; color: #c9d0d7; }
.box li + li { margin-top: 6px; }

/* ---------- Contact form ---------- */
.form { display: grid; gap: 16px; max-width: 620px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: #c9d0d7; }
.form input, .form select, .form textarea {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 14px; width: 100%;
}
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form .hp { position: absolute; left: -9999px; }          /* honeypot for bots */
.form .note { font-size: 13px; color: var(--muted); }
.status { padding: 14px 18px; border-radius: 10px; display: none; }
.status.ok { display: block; background: rgba(110,139,61,.18); border: 1px solid #6e8b3d; }
.status.err { display: block; background: rgba(184,69,44,.16); border: 1px solid #b8452c; }

/* ---------- Footer ---------- */
main { margin-bottom: 40px; }
footer { background: var(--bg-raise); border-top: 1px solid var(--border); padding: 32px 0 40px; color: var(--muted); font-size: 14px; margin-top: auto; }
footer .top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
footer .legal { margin: 16px 0 0; font-size: 12px; opacity: .75; }

/* ---------- Prose pages ---------- */
.prose { max-width: 720px; padding: 64px 0 24px; }
.prose h1 { font-size: 56px; }
.prose h2 { font-size: 26px; margin-top: 40px; text-transform: none; }
.prose p, .prose li { color: #c9d0d7; }
.prose .meta { color: var(--muted); font-size: 14px; }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .hero { padding-top: 56px; }
  .hero .wrap, .two { grid-template-columns: 1fr; }
  .hero-icons { height: 200px; order: -1; }
  .hero-icons img { width: 110px; height: 110px; border-radius: 25px; }
  .hero-icons img:nth-child(1) { left: 4%; }
  .hero-icons img:nth-child(2) { top: 46px; }
  .hero-icons img:nth-child(3) { right: 4%; }
  .form .row { grid-template-columns: 1fr; }
  .nav ul { gap: 16px; }
  .nav ul a { font-size: 14px; }
}
@media (max-width: 420px) { .brand b { display: none; } }
