:root {
  --ink: #1d2b3a;
  --paper: #f6f7f4;
  --thread: #c2412d;
  --sage: #dfe6dc;
  --muted: #55606b;
  --line: #cfd6cc;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Figtree", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

h1, h2, h3, .mark {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  line-height: 1.1;
  margin: 0;
}

/* Header */
.top {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: baseline;
  justify-content: space-between;
}
.mark { font-weight: 700; font-size: 1.25rem; text-decoration: none; }
.top nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.top nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.top nav a:hover { color: var(--thread); }

/* Stitch line: the one memorable device, a running stitch in thread red */
.stitch {
  height: 3px;
  width: min(22rem, 70%);
  margin: 1.25rem 0 1.5rem;
  background-image: linear-gradient(to right, var(--thread) 60%, transparent 60%);
  background-size: 18px 3px;
  background-repeat: repeat-x;
}

/* Hero */
main { max-width: 64rem; margin: 0 auto; padding: 0 1rem; }
.hero { padding: 4rem 0 3.5rem; }
.hero h1 {
  font-size: clamp(3rem, 11vw, 7.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.lead { font-size: clamp(1.15rem, 2.4vw, 1.4rem); max-width: 38ch; margin: 0; color: var(--ink); }

/* Sections */
.block { padding: 3rem 0; border-top: 1px solid var(--line); }
.block > h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); font-weight: 700; margin-bottom: 1.5rem; }
.block p { max-width: 62ch; }

.rows { display: grid; gap: 2.5rem; }
@media (min-width: 760px) { .rows { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.row { display: grid; grid-template-columns: 4rem 1fr; gap: 1.25rem; align-items: start; }
.row h3 { font-size: 1.35rem; font-weight: 500; margin-bottom: 0.5rem; }
.row p { margin: 0 0 0.75rem; }

/* Small tile, a nod to both a pattern piece and a game tile */
.tile {
  width: 4rem; height: 5rem;
  background: var(--sage);
  border: 2px dashed var(--ink);
  border-radius: 8px;
  display: grid; place-items: center;
}
.tile span { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 1.6rem; color: var(--thread); }

.email { font-size: clamp(1.25rem, 3.5vw, 1.75rem); font-family: "Bricolage Grotesque", sans-serif; font-weight: 500; word-break: break-word; }

/* Privacy page */
.doc { padding-top: 3rem; padding-bottom: 3rem; }
.doc h1 { font-size: clamp(2.25rem, 7vw, 3.75rem); font-weight: 700; letter-spacing: -0.02em; }
.doc h2 { font-size: 1.35rem; font-weight: 700; margin: 2.25rem 0 0.5rem; }
.doc p { max-width: 66ch; }
.updated { color: var(--muted); }

/* Footer */
.foot {
  max-width: 64rem;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}
.foot p { margin: 0.25rem 0; }
.foot a { color: var(--muted); }

#games .row { max-width: 44rem; }
.status { color: var(--thread); font-weight: 600; }
.doc h3 { font-size: 1.1rem; font-weight: 500; margin: 1.5rem 0 0.25rem; }

/* Relax Mahjong with screenshots */
.game { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 820px) { .game { grid-template-columns: 1fr 1.15fr; gap: 3rem; } }
.game-text h3 { font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 700; margin-bottom: 0.75rem; }
.game-text p { margin: 0 0 0.75rem; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 34rem; }
.shots figure { margin: 0; }
.shots figure:nth-child(2) { margin-top: 2.5rem; }
.shots img {
  display: block; width: 100%; height: auto;
  border-radius: 22px;
  border: 6px solid var(--ink);
  background: var(--ink);
  box-shadow: 0 14px 30px -12px rgba(29, 43, 58, 0.45);
}
.shots figcaption { margin-top: 0.6rem; font-size: 0.95rem; color: var(--muted); text-align: center; }
