/* The Ominoes site. Colors follow Theme.swift: the Twilight page gradient, the
   crown gold and the board panel. No scripts, fonts or images from anywhere else. */

:root {
  --background-top: #240f4f;
  --background-bottom: #54308c;
  --panel: rgba(20, 8, 48, 0.45);
  --panel-border: rgba(196, 168, 255, 0.25);
  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.78);
  --gold: #ffd140;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background-bottom);
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(var(--background-top), var(--background-bottom)) fixed;
  color: var(--text);
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-bottom: 40px;
}

header.site .logo img {
  display: block;
  width: 190px;
  height: auto;
}

nav a {
  margin-left: 20px;
  font-weight: 600;
}

nav a:first-child {
  margin-left: 0;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

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

h1 {
  margin: 0 0 8px;
  font-size: 2.3rem;
  line-height: 1.15;
  font-weight: 800;
}

h2 {
  margin: 40px 0 8px;
  font-size: 1.35rem;
  line-height: 1.25;
  font-weight: 700;
}

p,
ul {
  margin: 0 0 16px;
}

ul {
  padding-left: 24px;
}

li {
  margin-bottom: 6px;
}

.lede {
  font-size: 1.2rem;
  color: var(--text-soft);
}

.note {
  color: var(--text-soft);
}

.panel {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
}

.panel > :last-child {
  margin-bottom: 0;
}

.panel h2 {
  margin-top: 0;
}

.hero {
  text-align: center;
  padding: 24px 0 8px;
}

.modes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 32px 0;
}

@media (min-width: 640px) {
  .modes {
    grid-template-columns: repeat(3, 1fr);
  }
}

.modes .panel {
  margin: 0;
}

.modes h2 {
  color: var(--gold);
  font-size: 1.15rem;
}

footer.site {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--panel-border);
  color: var(--text-soft);
  font-size: 0.95rem;
}

footer.site a {
  margin-right: 18px;
}

footer.site p {
  margin-top: 12px;
}
