/* Sumo Brothers: the game's paper and ink (scripts/core/palette.gd in the game repo), plain shapes only. */
:root {
  --paper: #eee5d1;
  --hagaki: #f5f0e4;
  --ink: #1f1b19;
  --ink-soft: #5b5048;
  --rule: #b3a68f;
  --straw: #e3cd94;
  --seal: #b8352a;
  --shell: #f8f4ea;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a { color: var(--ink); }

code {
  background: var(--hagaki);
  border: 1px solid var(--rule);
  padding: 0 0.3em;
  font-size: 0.95em;
}

/* the thin ink top bar */
.topbar {
  border-bottom: 2px solid var(--ink);
  padding: 0.6rem 1rem;
}

.wordmark {
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

main { max-width: 960px; margin: 0 auto; padding: 0 1rem; }

/* hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 3rem 0 2.5rem;
}

h1 { margin: 0.75rem 0 0; font-size: clamp(2.2rem, 7vw, 3.8rem); line-height: 1.1; }

.tagline { margin: 0; color: var(--ink-soft); font-size: 1.1rem; }

/* the dohyo with a looping shove: two plain discs, the rival is pushed to the straw and back */
.dohyo {
  position: relative;
  width: min(62vw, 240px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--hagaki);
  border: 6px solid var(--straw);
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  overflow: hidden;
}

.dohyo .body {
  position: absolute;
  top: 50%;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid var(--ink);
  transform: translateY(-50%);
}

.hero-body { left: 27%; background: var(--shell); animation: shove-hero 3.2s ease-in-out infinite; }
.rival-body { left: 51%; background: var(--ink); animation: shove-rival 3.2s ease-in-out infinite; }

@keyframes shove-hero {
  0%, 20% { left: 27%; }
  45% { left: 33%; }
  60%, 70% { left: 49%; }
  100% { left: 27%; }
}

@keyframes shove-rival {
  0%, 20% { left: 51%; }
  45% { left: 57%; }
  60%, 70% { left: 74%; }
  100% { left: 51%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-body, .rival-body { animation: none; }
}

/* download */
.download-block { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; margin-top: 0.75rem; }

.download {
  display: inline-block;
  padding: 0.8rem 2rem;
  border: 2px solid var(--ink);
  color: var(--shell);
  background: var(--seal);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
}

.download:hover, .download:focus-visible { background: var(--ink); }

.download-meta { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.download-other { margin: 0; font-size: 0.95rem; }

/* the three postcards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  padding: 1rem 0 2.5rem;
}

.card {
  position: relative;
  background: var(--hagaki);
  border: 2px solid var(--ink);
  padding: 1.1rem 1.2rem 1rem;
}

/* a small stamp in the corner, like the game's postcards */
.card::after {
  content: "";
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  border: 2px solid var(--seal);
}

.card h2 { margin: 0 0 0.4rem; font-size: 1.2rem; }
.card p { margin: 0; color: var(--ink-soft); }

/* install and news */
.install, .news {
  border-top: 2px solid var(--ink);
  padding: 1.75rem 0;
}

.install h2, .news h2 { margin: 0 0 0.75rem; font-size: 1.4rem; }
.install ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.install li { margin: 0.25rem 0; }
.note { margin: 0.4rem 0; color: var(--ink-soft); }

.news-version { margin: 0; font-weight: 600; }
.news-body { margin: 0.4rem 0 0; color: var(--ink-soft); white-space: pre-line; }

/* text pages (privacy) */
.prose { max-width: 680px; padding: 2rem 1rem 3rem; }
.prose h1 { font-size: 2.2rem; margin-bottom: 1.5rem; }
.prose h2 { font-size: 1.2rem; margin: 1.5rem 0 0.4rem; }
.prose p { margin: 0; color: var(--ink-soft); }

/* footer */
.footer {
  border-top: 2px solid var(--ink);
  margin-top: 1rem;
  padding: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
