/* roxkin — roxkin.com */
:root {
  --paper: #f4f1ea;
  --paper-2: #ebe6dc;
  --ink: #161513;
  --ink-2: #57534b;
  --rule: #d6d0c4;
  --accent: #f04e18;
  --accent-ink: #b8380c;
  --logo: #111111; /* same colour as the wordmark */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --wrap: 1120px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141311;
    --paper-2: #1d1b18;
    --ink: #eeeae2;
    --ink-2: #a39e93;
    --rule: #33302b;
    --accent-ink: #ff7a4a;
    --logo: #ffffff;
  }
  .logo-light { display: none; }
}
@media (prefers-color-scheme: light) {
  .logo-dark { display: none; }
}

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

html { scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 10; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: flex-start; text-decoration: none; }
.brand img { height: 30px; width: auto; }
.brand { align-items: center; }
.brand-badge {
  width: 38px; height: 38px; margin-right: 12px; flex: none;
  border-radius: 50%; background: var(--logo); color: var(--paper);
  display: grid; place-items: center;
}
.brand-mark { width: 72%; height: 72%; }
/* thicker strokes so the rk matches the weight of the wordmark */
.brand-mark path { stroke: currentColor; stroke-width: 100; stroke-linejoin: round; }
.brand sup { font-size: 11px; margin-left: 2px; color: var(--ink-2); align-self: flex-start; }
.nav { display: flex; gap: 28px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }

/* ---------- Type ---------- */
.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; margin: 0; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; }
.hero h1 {
  font-size: clamp(44px, 7.4vw, 92px);
  line-height: 1.02;
  max-width: 13ch;
}
.hero h1 em { font-style: italic; color: var(--accent-ink); white-space: nowrap; }
.hero .lede { margin: 32px 0 0; max-width: 34em; font-size: 19px; color: var(--ink-2); }
.hero .meta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 8px 28px; }

/* ---------- Sections ---------- */
section.block { padding: 72px 0; border-top: 1px solid var(--rule); }
.block-head { display: grid; grid-template-columns: 220px 1fr; gap: 24px; margin-bottom: 40px; align-items: baseline; }
.block-head h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; }
.block-head p { margin: 12px 0 0; color: var(--ink-2); max-width: 36em; }

/* Feature (HQ) */
.feature {
  display: grid; grid-template-columns: 220px 1fr auto; gap: 24px; align-items: center;
  background: var(--paper-2); color: var(--ink);
  padding: 32px 32px 32px 28px; border-radius: 4px;
  border-left: 4px solid var(--accent);
  text-decoration: none;
}
.feature .label { color: var(--accent-ink); }
.feature h3 { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; display: flex; align-items: center; gap: 12px; }
.hq-mark { width: 1.1em; height: 1.1em; flex: none; }
.feature p { margin: 8px 0 0; color: var(--ink-2); max-width: 34em; }
.feature .go { font-family: var(--mono); font-size: 14px; white-space: nowrap; color: var(--accent-ink); }
.feature:hover h3 { color: var(--accent-ink); }

/* App list */
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.list li { border-bottom: 1px solid var(--rule); }
.row {
  display: grid;
  grid-template-columns: 220px 56px 1fr auto;
  gap: 24px; align-items: center;
  padding: 22px 0;
  text-decoration: none;
}
.row .num { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.row img { width: 56px; height: 56px; border-radius: 13px; object-fit: cover; background: var(--paper-2); }
.row .ph { width: 56px; height: 56px; border-radius: 13px; background: var(--paper-2); display: grid; place-items: center; font-family: var(--serif); font-size: 26px; }
.row h3 { font-size: 24px; line-height: 1.2; }
.row p { margin: 4px 0 0; color: var(--ink-2); font-size: 16px; max-width: 40em; }
.row .where { font-family: var(--mono); font-size: 13px; color: var(--ink-2); white-space: nowrap; }
a.row:hover h3 { color: var(--accent-ink); }
a.row:hover .where { color: var(--ink); }

/* Games */
.games { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.game { background: var(--paper); padding: 24px; display: flex; flex-direction: column; gap: 14px; min-height: 230px; }
.game img { width: 64px; height: 64px; border-radius: 14px; }
.game h3 { font-size: 22px; }
.game p { margin: 0; font-size: 15px; color: var(--ink-2); flex: 1; }
.game .links { display: flex; gap: 16px; align-items: center; font-family: var(--mono); font-size: 13px; }
.game .links a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.game .links a:hover { border-color: var(--accent); color: var(--accent-ink); }
.game .links .ios img { width: auto; height: 28px; border-radius: 0; }
.game .links a.ios { border: 0; }

/* In the works */
.soon { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 48px; list-style: none; margin: 0; padding: 0; }
.soon li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.soon img { width: 40px; height: 40px; border-radius: 10px; }
.soon strong { font-weight: 600; }
.soon span { display: block; color: var(--ink-2); font-size: 15px; }
.soon .soon-link { color: inherit; text-decoration: none; }
.soon .soon-link:hover strong { color: var(--accent-ink); }
.soon .tag { display: inline-block; font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); border: 1px solid currentColor; border-radius: 999px; padding: 1px 8px; margin-left: 6px; vertical-align: 2px; }
.soon .soon-go { display: inline-block; font-family: var(--mono); font-size: 14px; color: var(--accent-ink); text-decoration: none; white-space: nowrap; }
.soon .soon-go:hover { text-decoration: underline; }

/* About */
.about { display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.about .body { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; max-width: 30em; }
.about .body p { margin: 0 0 .8em; }
.about .body a { color: var(--accent); text-decoration: none; }
.about .body a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 40px 0 56px; font-size: 14px; color: var(--ink-2); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ---------- Legal pages ---------- */
.legal { padding: 72px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(40px, 6vw, 60px); margin-bottom: 8px; }
.legal h2 { font-size: 26px; margin: 40px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }
.legal strong { color: var(--ink); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .block-head, .about { grid-template-columns: 1fr; gap: 8px; }
  .feature { grid-template-columns: 1fr; }
  .row { grid-template-columns: 56px 1fr; gap: 16px; }
  .row .num { display: none; }
  .row .where { grid-column: 2; }
  .games { grid-template-columns: repeat(2, 1fr); }
  .soon { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav { gap: 16px; font-size: 14px; }
  .nav .opt { display: none; }
  .brand img { height: 24px; }
  .brand-badge { width: 30px; height: 30px; margin-right: 10px; }
  .hero { padding: 64px 0 48px; }
  section.block { padding: 56px 0; }
  .feature { padding: 28px 20px; }
  .games { grid-template-columns: 1fr; }
  .game { min-height: 0; }
}

.tm { font-size: .6em; vertical-align: super; line-height: 0; margin-left: 1px; }
