/* Cognito Ventures: the company pages (home, privacy). The games page keeps style.css. */
:root {
  --paper: #efede7;
  --ink: #141413;
  --soft: #6d6a63;
  --rule: #d6d2c8;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #12110f; --ink: #ecebe6; --soft: #8f8b82; --rule: #2c2a26; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 13px/1.55 var(--sans);
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--rule); transition: border-color .2s; }
a:hover { border-color: var(--ink); }

.label { text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; color: var(--soft); }

/* Home: corners, one wordmark, three small columns. */
.home {
  min-height: 100vh; min-height: 100dvh;
  display: grid; grid-template-rows: auto 1fr auto auto;
  grid-template-columns: minmax(0, 1fr);  /* the one-line wordmark must never widen the page */
  padding: 22px 28px 26px;
  overflow-x: hidden;
  gap: 0;
}
.bar { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.bar .label { color: var(--ink); }
.clock { font-variant-numeric: tabular-nums; }

.mark {
  align-self: end;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(64px, 16.5vw, 380px);
  line-height: 0.86; letter-spacing: -0.02em;
  margin: 0 0 0 -0.04em;
  padding-bottom: 0.16em;  /* room for the g and the descenders above the rule */
  white-space: nowrap;
}
.mark em { font-style: italic; }
.mark span { display: inline-block; }

.info {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr 0.8fr; gap: 24px;
  margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--rule);
}
.info p { margin: 0; }
.info .label { display: block; margin-bottom: 6px; }
.tagline { font-family: var(--serif); font-size: 24px; line-height: 1.15; }
.right { text-align: right; }

@media (max-width: 760px) {
  .home { padding: 18px 18px 22px; }
  .mark { font-size: clamp(52px, 24vw, 140px); white-space: normal; line-height: 0.9; }
  .info { grid-template-columns: 1fr 1fr; gap: 20px; }
  .tagline { grid-column: 1 / -1; }
  .right { text-align: left; }
}

/* Document pages (privacy). */
.doc-page { max-width: 720px; margin: 0 auto; padding: 22px 20px 64px; }
.doc-page .bar { margin-bottom: 72px; }
.doc-page h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 8vw, 72px); line-height: 1; margin: 0 0 10px; letter-spacing: -0.01em; }
.doc-page .updated { margin: 0 0 40px; }
.doc-page h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 44px 0 10px; }
.doc-page p, .doc-page li { font-size: 15px; line-height: 1.65; }
.doc-page ul { padding-left: 20px; }
.doc-page li { margin: 6px 0; }
.doc-page .box { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 14px 0; }
.table-scroll { overflow-x: auto; }
.doc-page table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.doc-page th, .doc-page td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--rule); }
.doc-page th { font-weight: 500; }
.doc-page footer { margin-top: 64px; padding-top: 16px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 16px; }

/* Index pages (games, ruumio): a title, then entries separated by rules. */
.entry { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 22px; padding: 26px 0; border-top: 1px solid var(--rule); }
.entry:last-of-type { border-bottom: 1px solid var(--rule); }
.entry img { width: 88px; height: 88px; border-radius: 20px; display: block; }
.entry h2 { margin: 0 0 6px; }
.entry p { margin: 0 0 10px; }
.entry .meta { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.doc-page .lede { font-family: var(--serif); font-size: 26px; line-height: 1.25; margin: 0 0 40px; }
.go {
  display: inline-block; margin-top: 8px; padding: 12px 20px; border: 1px solid var(--ink);
  border-radius: 999px; font-size: 14px; transition: background .2s, color .2s;
}
.go:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 520px) {
  .entry { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; }
  .entry img { width: 64px; height: 64px; border-radius: 15px; }
}
