/* Nokke Studio – nokkestudio.se
   Plain CSS, system fonts only, no external requests. */

:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --ink: #1b2230;
  --muted: #545d70;
  --line: #e3dfd5;
  --accent: #14735a;
  --accent-ink: #ffffff;
  --badge-bg: #e3f2ec;
  --badge-ink: #0e5844;
  --focus: #3552c9;
  --glow-1: rgba(41, 182, 140, 0.22);
  --glow-2: rgba(84, 112, 230, 0.16);
  --radius: 18px;
  --shadow: 0 1px 2px rgba(27, 34, 48, 0.06), 0 8px 24px rgba(27, 34, 48, 0.06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-ar: "Noto Naskh Arabic", "Noto Sans Arabic", "Geeza Pro", "Segoe UI", Tahoma, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11151d;
    --surface: #181e29;
    --ink: #e9ecf2;
    --muted: #a4adbe;
    --line: #283041;
    --accent: #5fd4ae;
    --accent-ink: #0c1a15;
    --badge-bg: #173a30;
    --badge-ink: #8be6c6;
    --focus: #9db0ff;
    --glow-1: rgba(64, 210, 160, 0.16);
    --glow-2: rgba(110, 135, 255, 0.14);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; margin: 0; }

.wrap {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.5rem 0.9rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { top: 1rem; }

/* Header */
.site-header { padding: 1.1rem 0; }
.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand img { border-radius: 8px; }
nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
nav a {
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}
nav a:hover { color: var(--ink); }

/* Hero */
.hero {
  position: relative;
  padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 120%;
  background:
    radial-gradient(60% 50% at 25% 40%, var(--glow-1), transparent 70%),
    radial-gradient(45% 45% at 75% 30%, var(--glow-2), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 18ch;
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  letter-spacing: -0.025em;
}
.lead {
  max-width: 38rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
}

/* Sections */
.section { padding: clamp(2rem, 5vw, 3.25rem) 0; }
.section h2 {
  font-size: clamp(1.5rem, 3.5vw, 1.9rem);
  letter-spacing: -0.015em;
  margin-bottom: 1.25rem;
}

/* Games and Videos sit side by side on wide screens; more cards stack inside each. */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
  gap: 0 2rem;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.card {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-body { padding: 1.4rem 1.5rem 1.5rem; }
.card h3 {
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin: 0.55rem 0 0.4rem;
}
.card p { margin: 0 0 0.6rem; }
.card .ar {
  font-family: var(--font-ar);
  font-weight: 600;
  font-size: 0.85em;
  color: var(--muted);
  margin-inline-start: 0.35rem;
  white-space: nowrap;
}
.badge {
  display: inline-block;
  margin: 0 !important;
  padding: 0.2rem 0.7rem;
  background: var(--badge-bg);
  color: var(--badge-ink);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 650;
}
.meta { color: var(--muted); font-size: 0.9375rem; }
.card-link { font-weight: 650; overflow-wrap: anywhere; }

/* Card art: the product's app icon or channel logo */
.card-art {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 1rem;
}
.card-art img {
  width: 112px;
  height: 112px;
  border-radius: 22.5%;
  box-shadow: 0 2px 4px rgba(27, 34, 48, 0.12), 0 10px 24px -8px rgba(27, 34, 48, 0.35);
}
.card--plocka .card-art { background: linear-gradient(160deg, #ffe7cf, #ffc896); }
.card--zozo .card-art { background: linear-gradient(160deg, #eef7fe, #cfe6fa); }

@media (prefers-color-scheme: dark) {
  .card--plocka .card-art { background: linear-gradient(160deg, #3a2618, #4a2a12); }
  .card--zozo .card-art { background: linear-gradient(160deg, #22284a, #1b2d4d); }
}

@media (max-width: 34rem) {
  .card { grid-template-columns: 1fr; }
  .card-art { min-height: 9rem; }
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact li {
  padding: 1.25rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact h3 {
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.contact p { margin: 0.15rem 0 0; }
.contact a { font-size: 1.125rem; font-weight: 600; overflow-wrap: anywhere; }

/* Footer */
.site-footer {
  margin-top: clamp(2rem, 6vw, 4rem);
  padding: 1.75rem 0 2.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
}
.footer-row p { margin: 0; }

/* 404 */
.notfound { padding: clamp(4rem, 14vw, 9rem) 0; }
.notfound h1 { font-size: clamp(2rem, 6vw, 3rem); letter-spacing: -0.02em; }
.notfound p { color: var(--muted); max-width: 34rem; }
.button {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.7rem 1.2rem;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  font-weight: 650;
  text-decoration: none;
}
.button:hover { filter: brightness(1.08); }

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