/* jahapps — landing page
   jamaican palette, held back: black, one green, one gold.
   two weights only (200 / 300), nothing under 20px. */

:root {
  --bg: #000000;
  --text: #f4f1e8;
  --text-dim: #949a90;
  --line: #1f241f;
  --accent: #f2b705;
  --accent-on: #000000;
  --green: #009b3a;

  --space-xs: 16px;
  --space-sm: 32px;
  --space-md: 64px;
  --space-lg: 96px;
  --space-xl: 128px;

  --font: "Power Grotesk", "Die Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #efe9d9;
  --text: #0e120d;
  --text-dim: #4d5349;
  --line: #cdc6b1;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  padding-top: 50px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  font-size: 24px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- header ---------- */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: 50px;
  z-index: 1000;
  background: var(--accent);
  color: var(--accent-on);
}

.topbar-inner {
  height: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent-on);
  text-decoration: none;
  font-weight: 300;
  font-size: 20px;
  letter-spacing: -0.01em;
  min-height: 44px;
}

.mark-dot {
  width: 10px;
  height: 10px;
  background: var(--accent-on);
  border-radius: 50%;
  flex: none;
}

.theme {
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--accent-on);
  font-family: inherit;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.theme:hover {
  opacity: 0.65;
}

.theme:focus-visible,
.mark:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent-on);
  outline-offset: 3px;
}

/* ---------- shared ---------- */

.hero-inner,
.apps-inner,
.foot-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 64px;
}

.meta {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--text-dim);
  margin: 0;
  transition: color 0.3s ease;
}

/* ---------- hero ---------- */

.hero {
  padding: var(--space-lg) 0 var(--space-md);
}

.wordmark {
  position: relative;
  isolation: isolate;
  margin: 0;
  font-size: clamp(64px, 17vw, 240px);
  font-weight: 200;
  line-height: 0.86;
  letter-spacing: -0.035em;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s ease;
}

.operator {
  margin: var(--space-sm) 0 0;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--text);
  transition: color 0.3s ease;
}

.sticker {
  position: absolute;
  z-index: -1;
  color: var(--accent);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  animation: pop 0.3s ease-out;
}

@keyframes pop {
  0% {
    scale: 0;
  }
  60% {
    scale: 1.15;
  }
  100% {
    scale: 1;
  }
}

.lede {
  margin: var(--space-md) 0 0;
  max-width: 40ch;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.35;
  transition: color 0.3s ease;
}

.hero-meta {
  margin-top: var(--space-md);
}

/* ---------- apps ---------- */

.apps {
  margin-top: var(--space-lg);
  border-top: 1px solid var(--line);
  padding-top: var(--space-md);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

h2 {
  margin: 0;
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

.app-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
}

.app {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: var(--space-md);
  align-items: start;
  padding: var(--space-md) 0;
  border-top: 1px solid var(--line);
  transition: border-color 0.3s ease;
}

.app-list .app:first-child {
  border-top: 0;
}

.app-logo {
  width: 88px;
  height: 88px;
  border-radius: 22%;
  overflow: hidden;
  will-change: auto;
}

.app-logo img,
.app-logo svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-round {
  border-radius: 50%;
}

.logo-vector {
  border-radius: 22%;
}

.app-logo svg {
  border-radius: inherit;
}

.app h3 {
  margin: 0 0 var(--space-xs);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 200;
  line-height: 1.05;
  letter-spacing: -0.015em;
  transition: color 0.3s ease;
}

.app p {
  margin: 0 0 var(--space-xs);
  max-width: 46ch;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.35;
  transition: color 0.3s ease;
}

.app .meta {
  margin-top: var(--space-sm);
}

/* ---------- footer ---------- */

.site-foot {
  margin-top: var(--space-xl);
  border-top: 1px solid var(--line);
  padding: var(--space-md) 0 var(--space-lg);
  transition: border-color 0.3s ease;
}

.foot-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.site-foot p:first-child {
  margin: 0;
  font-size: 24px;
  font-weight: 300;
}

/* ---------- band ---------- */

@media (min-width: 900px) {
  .app-list {
    grid-template-columns: 1fr 1fr;
    column-gap: var(--space-md);
  }

  .app:nth-child(2) {
    border-top: 0;
  }
}

/* ---------- snap points ---------- */

@media (max-width: 1024px) {
  .topbar-inner,
  .hero-inner,
  .apps-inner,
  .foot-inner {
    padding: 0 32px;
  }

  :root {
    --space-md: 48px;
    --space-lg: 64px;
  }

  .hero {
    padding-top: var(--space-lg);
  }

  .app {
    gap: var(--space-sm);
  }
}

@media (max-width: 768px) {
  .topbar-inner,
  .hero-inner,
  .apps-inner,
  .foot-inner {
    padding: 0 24px;
  }

  :root {
    --space-sm: 24px;
    --space-md: 32px;
    --space-lg: 48px;
    --space-xl: 64px;
  }

  .app {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .app-logo {
    width: 72px;
    height: 72px;
    margin-bottom: var(--space-sm);
  }

  .section-head {
    margin-bottom: var(--space-md);
  }
}

@media (max-width: 375px) {
  .topbar-inner,
  .hero-inner,
  .apps-inner,
  .foot-inner {
    padding: 0 20px;
  }

  .app-logo {
    width: 64px;
    height: 64px;
  }
}
