/*
 * The wokanhao.com portal: a short directory grouped by kind (Games, Blog).
 * Phone first, plain HTML. Colours come from the wokanhao logo (art/): its
 * near-black ink and orange-red. The logo has dark letters on transparency,
 * so the header stays light. The orange-red is only 3.3:1 on white, so it is
 * used for borders and focus rings, never for small text.
 */

:root {
  --site-ink: #181818;
  --site-accent: #ff4a25;
  --site-muted: #5f5b56;
  --site-line: #e6e2dc;
  --site-page: #f7f5f0;
  --site-card: #fff;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--site-page);
  color: var(--site-ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  min-height: 100vh;
}

a:focus-visible {
  outline: 3px solid var(--site-accent);
  outline-offset: 3px;
}

.siteHeader {
  background: var(--site-card);
  border-bottom: 1px solid var(--site-line);
  padding: 14px max(16px, calc((100% - 720px) / 2));
}

.siteLogo {
  line-height: 0;
  margin: 0;
}

.siteLogo a {
  border-radius: 4px;
  display: inline-block;
}

.siteLogo img {
  display: block;
  height: 36px;
  width: auto;
}

/* 720px of content plus the 16px gutters, so it lines up with the header. */
.siteMain {
  margin: 0 auto;
  max-width: 752px;
  padding: 24px 16px 56px;
}

.siteLead {
  color: var(--site-muted);
  font-size: 1.0625rem;
  margin: 0 0 28px;
}

.group + .group {
  margin-top: 32px;
}

.groupTitle {
  color: var(--site-muted);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.entryList {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.entry {
  align-items: center;
  background: var(--site-card);
  border: 1px solid var(--site-line);
  border-radius: 12px;
  color: inherit;
  display: flex;
  gap: 14px;
  padding: 12px 14px;
  text-decoration: none;
}

.entry:hover {
  border-color: var(--site-accent);
}

.entryIcon {
  border-radius: 12px;
  flex: none;
  height: 56px;
  width: 56px;
}

.entryText {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.entryName {
  font-size: 1.0625rem;
  font-weight: 700;
}

.entryBlurb {
  color: var(--site-muted);
  font-size: 0.9375rem;
}

.entryHost {
  color: var(--site-muted);
  font-size: 0.8125rem;
  text-decoration: underline;
  text-decoration-color: var(--site-line);
  text-underline-offset: 3px;
}

.entry:hover .entryHost {
  text-decoration-color: var(--site-accent);
}
