/* The app's own palette (src/ui/mod.rs: GROUND, PANEL, PANEL_EDGE, INK,
   INK_QUIET, ACCENT) and its own typeface, so the site reads as the same
   thing as what it describes. Dark is the app's only look and so the site's
   first; the light set exists for a reader whose system asks for it. */

@font-face {
  font-family: "Archivo";
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/Archivo-400.woff2") format("woff2");
}

@font-face {
  font-family: "Archivo";
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/Archivo-600.woff2") format("woff2");
}

:root {
  color-scheme: dark light;
  --ground: #2b2c2f;
  --panel: #34363b;
  --edge: #43464d;
  --ink: #f2f3f5;
  --quiet: #a8adb8;
  --accent: #5cb57a;
}

@media (prefers-color-scheme: light) {
  :root {
    --ground: #f3f3f0;
    --panel: #ffffff;
    --edge: #dcdcd6;
    --ink: #1f2023;
    --quiet: #5a5f69;
    --accent: #2c7447;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.6 "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.page {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

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

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  font-size: 2.25rem;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.375rem;
  margin: 3rem 0 1rem;
}

h3 {
  font-size: 1.0625rem;
  margin: 0 0 0.25rem;
}

p {
  margin: 0 0 1rem;
}

.quiet {
  color: var(--quiet);
}

/* The bar across the top of every page: the name, and the two other pages. */

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 2.5rem;
}

.top a {
  text-decoration: none;
}

.home {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--ink);
  font-weight: 600;
}

.home img {
  width: 2rem;
  height: 2rem;
  border-radius: 22%;
}

.top nav {
  display: flex;
  gap: 1.25rem;
}

.top nav a[aria-current="page"] {
  color: var(--ink);
}

/* The landing page's opening. */

.hero {
  text-align: center;
  margin-bottom: 1rem;
}

.hero img {
  width: 9rem;
  height: 9rem;
  border-radius: 22%;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: 2.75rem;
}

.hero .lead {
  font-size: 1.25rem;
  max-width: 30rem;
  margin: 0 auto 1.25rem;
  text-wrap: balance;
}

/* Apple's badge, as Apple draws it: black in both schemes (its grey rim is
   what holds it against the dark one), never under 40px tall, and with a
   quarter of its height clear around it. */
.store {
  display: inline-block;
  padding: 0.75rem;
}

.hero .store img {
  display: block;
  width: auto;
  height: 3rem;
  border-radius: 0;
  margin: 0;
}

/* The seven games, and the three ways to play them. */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cards li {
  display: flex;
  gap: 0.875rem;
  padding: 1rem;
  border: 1px solid var(--edge);
  border-radius: 0.875rem;
  background: var(--panel);
}

.cards img {
  flex: none;
  width: 3.5rem;
  height: 3.5rem;
}

.cards p {
  margin: 0;
  color: var(--quiet);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.cards .seats {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
}

.plain {
  padding-left: 1.25rem;
}

.plain li {
  margin-bottom: 0.375rem;
}

/* Privacy and Support: prose, with the address set apart. */

.contact {
  padding: 1rem 1.125rem;
  border: 1px solid var(--edge);
  border-radius: 0.875rem;
  background: var(--panel);
}

.contact p:last-child {
  margin-bottom: 0;
}

dl {
  margin: 0;
}

dt {
  font-weight: 600;
  margin-top: 1.5rem;
}

dd {
  margin: 0.25rem 0 0;
}

/* The licences page: one fold per licence text, named for the crates under it. */

.licence {
  margin-bottom: 0.5rem;
  border: 1px solid var(--edge);
  border-radius: 0.875rem;
  background: var(--panel);
}

.licence summary {
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}

.licence .quiet {
  font-weight: 400;
}

.licence pre {
  margin: 0;
  padding: 0 1rem 1rem;
  color: var(--quiet);
  font: 0.75rem/1.5 ui-monospace, "SF Mono", Menlo, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

footer {
  margin-top: 4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--edge);
  color: var(--quiet);
  font-size: 0.875rem;
}

footer p {
  margin: 0 0 0.25rem;
}

footer a {
  color: inherit;
}

@media (max-width: 30rem) {
  .hero h1 {
    font-size: 2.25rem;
  }

  .hero img {
    width: 7rem;
    height: 7rem;
  }
}
