/* getbururu.com

   Colours come from the brand kit (brand/palette.md): Sun Clay #E37C45,
   Night Ink #16151B and White. The neutrals, the text colours, the link
   colour and the corner radii are the tokens of the app's window
   (internal/ui/web/app.css in the app). The site is flat: no gradients,
   glows or shadows, so it has none of the window's shadows.
   Sun Clay is never used for text on light backgrounds (2.9:1); light
   pages use --link (#A84C1A) for links instead, and dark pages a lighter
   #EE8A52. */

:root {
  color-scheme: light dark;

  --sun-clay: #E37C45;
  --night-ink: #16151B;

  --bg: #FFFFFF;
  --band: #F2F1F4;
  --surface: #FFFFFF;
  --line: rgba(22, 21, 27, .08);
  --line-2: rgba(22, 21, 27, .14);
  --text: #16151B;
  --text-2: #5C5A66;
  --link: #A84C1A;
  --focus: #A84C1A;
  --accent: var(--sun-clay);
  --accent-hover: #EA8A56;
  --accent-press: #D46E38;
  --on-accent: var(--night-ink);
  --accent-soft: rgba(227, 124, 69, .14);

  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;

  --r: 10px;
  --r-lg: 14px;
  --wrap: 68rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16151B;
    --band: #1D1C23;
    --surface: #1D1C23;
    --line: rgba(255, 255, 255, .07);
    --line-2: rgba(255, 255, 255, .12);
    --text: #F3F2F5;
    --text-2: #A7A5B0;
    --link: #EE8A52;
    --focus: #EE8A52;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 var(--font);
  overflow-wrap: break-word;
}

img, svg { display: block; max-width: 100%; height: auto; }

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.3rem);
  line-height: 1.1;
  letter-spacing: -.015em;
  font-weight: 700;
}
h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 1.9rem); font-weight: 650; letter-spacing: -.01em; }
h3 { font-size: 1.125rem; font-weight: 650; }

p, ul, ol { margin: 0 0 1rem; }
/* Avoid a lone word on the last line where the browser can. */
p, li { text-wrap: pretty; }

code {
  font-family: var(--mono);
  font-size: .88em;
  background: var(--band);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .05em .35em;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px) {
  .wrap { padding-inline: 1.5rem; }
}

.skip {
  position: absolute;
  left: 1rem;
  top: -10rem;
  background: var(--accent);
  color: var(--on-accent);
  padding: .5rem .9rem;
  border-radius: var(--r);
  font-weight: 600;
  z-index: 10;
}
.skip:focus { top: 1rem; }

/* Header */

.site-header { border-bottom: 1px solid var(--line); }

.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.75rem;
  padding-block: 1rem;
}

.logo { display: block; flex: none; margin-right: auto; }
.logo img { width: 149px; height: 32px; }

/* The Wishlist button in the header. On a phone it sits next to the logo
   and the links take their own row under them; the gap and the button
   shrink so both fit from 360 px up. On a narrower phone the button
   moves under the logo. */
.header-btn { min-height: 2.5rem; padding: .45rem 1rem; font-size: .95rem; }
@media (max-width: 639px) {
  .header-row { column-gap: .75rem; }
  .header-btn { padding-inline: .75rem; font-size: .9rem; }
  .site-nav { order: 3; width: 100%; }
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-weight: 550;
  padding-block: .3rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--link); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* Sections */

.section { padding-block: 3.5rem; }
@media (min-width: 900px) {
  .section { padding-block: 4.5rem; }
}
.band {
  background: var(--band);
  border-block: 1px solid var(--line);
}

.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head h2 { margin-bottom: .6rem; }
.section-head p { color: var(--text-2); margin: 0; }

.lead {
  font-size: 1.2rem;
  color: var(--text-2);
  max-width: 36em;
}

.small { font-size: .925rem; color: var(--text-2); }

/* Buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1.75rem 0 .9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.9rem;
  padding: .7rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}
.btn svg { width: 1.15rem; height: 1.15rem; flex: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { background: var(--accent-press); }
.btn-secondary { color: var(--text); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--text-2); }

/* On a phone, buttons that stack take the full width. */
@media (max-width: 479px) {
  .actions .btn { width: 100%; justify-content: center; }
  .cta .actions { width: 100%; }
}

/* Home: hero */

.hero { padding-block: 3rem 3.5rem; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero-text { max-width: 46rem; }
.hero h1 { margin-bottom: 1.1rem; }
@media (min-width: 960px) {
  .hero { padding-block: 4.5rem; }
  /* Two columns once the screenshot figure is in the page. */
  .hero-grid:has(> .shot) { grid-template-columns: 1fr 1.15fr; gap: 3.5rem; }
}

.games { margin: 0; }

/* The section right under the hero shares its space. */
.hero + .section { padding-top: 0; }

/* The screenshot of the app window, when it is in the page. */

.shot { margin: 0; }
.shot-frame {
  aspect-ratio: 2080 / 1440;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--band);
  overflow: hidden;
}
.shot-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Cards */

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
/* Two columns, then three over two on wide screens. A last card on its
   own spans the row. */
@media (min-width: 600px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .cards > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(6, 1fr); }
  .cards > * { grid-column: span 2; }
  .cards > :nth-child(n+4),
  .cards > :last-child:nth-child(odd) { grid-column: span 3; }
  /* Three cards: one row. */
  .cards.three > :nth-child(n) { grid-column: span 2; }
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.25rem 1.4rem;
}
.band .card { background: var(--bg); }
.card h3 { margin: .9rem 0 .35rem; }
.card p { margin: 0; color: var(--text-2); }
/* On a phone the icon sits left of the title, which keeps the cards short. */
@media (max-width: 599px) {
  .cards { gap: .75rem; }
  .card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: .85rem;
    padding: .9rem 1rem 1rem;
  }
  .card h3 { margin: 0; }
  .card p { grid-column: 1 / -1; margin-top: .5rem; font-size: 1rem; line-height: 1.55; }
}

.icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .6rem;
  background: var(--accent);
  color: var(--night-ink);
}
.icon svg { width: 1.4rem; height: 1.4rem; }

/* Cards without an icon: the controllers on Home, the mods on the Mods
   page. */
.card.plain h3,
.prose .card.plain h3 { margin: 0 0 .35rem; }
.card p + p { margin-top: .6rem; }
@media (max-width: 599px) {
  .card.plain { display: block; }
  .card.plain p { margin-top: .35rem; }
  .card.plain p + p { margin-top: .6rem; }
}

/* Two cards in a row, in a text page. */
.pair { display: grid; gap: 1rem; margin: 0 0 1rem; }
@media (min-width: 600px) {
  .pair { grid-template-columns: 1fr 1fr; }
}

/* Two columns of text */

.split { display: grid; gap: 3rem; }
.split h2 { margin-bottom: 1rem; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
}

/* Numbered steps */

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: .9rem;
  align-items: start;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  font-weight: 650;
  color: var(--text);
}
.steps p { margin: .35rem 0 0; }

/* Closing call to download */

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}
.cta h2 { margin-bottom: .35rem; }
.cta p { margin: 0; color: var(--text-2); }
.cta .actions { margin: 0; }

/* Text pages */

.page-head { padding-block: 3rem 1rem; }
.page-head h1 { margin-bottom: .9rem; }
.page-head .lead { margin-bottom: 0; }
.page-head .games { margin-top: 1rem; }
@media (min-width: 900px) {
  .page-head { padding-block: 4rem 1.5rem; }
}

.prose { max-width: 44rem; }
.prose h2 { margin: 2.75rem 0 .9rem; }
.prose h3 { margin: 1.75rem 0 .5rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .45rem; }
.prose li > ul { margin: .45rem 0 0; }
.prose li::marker { color: var(--text-2); }
.prose > :first-child { margin-top: 1.75rem; }

/* A list that opens on click, such as the games on the Mods page. */
.prose details { margin: 0 0 1rem; }
.prose summary {
  cursor: pointer;
  color: var(--link);
  font-weight: 600;
  width: fit-content;
}
.prose summary:hover { text-decoration: underline; }
.prose details[open] summary { margin-bottom: .75rem; }
.game-list { columns: 2 15rem; column-gap: 2rem; }
.game-list li { break-inside: avoid; }

/* Download page */

.platform {
  max-width: 36rem;
  margin-top: 2rem;
  border: 2px solid var(--accent);
  border-radius: var(--r-lg);
  padding: 1.4rem;
  background: var(--surface);
}
.platform h2 { font-size: 1.35rem; margin: 0 0 .35rem; }
.platform p { margin: 0; color: var(--text-2); }
.platform .actions { margin: 1.25rem 0 .75rem; }

/* Draft legal pages */

.draft {
  border: 1px solid var(--line-2);
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: var(--r);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0 0;
  max-width: 44rem;
}
.draft p { margin: 0; }
.draft p + p { margin-top: .5rem; }

mark.todo {
  background: var(--accent-soft);
  color: var(--text);
  outline: 1px dashed var(--accent);
  border-radius: 3px;
  padding: 0 .2em;
  font-weight: 600;
}

/* Footer. Pages keep their own space above it; a page that ends with a
   band runs straight into it. */

main { padding-bottom: 4rem; }
main:has(> .band:last-child) { padding-bottom: 0; }
main > .band:last-child { border-bottom: 0; }

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2rem 2.5rem;
  font-size: .95rem;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-bottom: 1.25rem;
}
.footer-row img { width: 24px; height: 24px; }
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--link); text-decoration: underline; }
.site-footer .fine { font-size: .85rem; color: var(--text-2); max-width: 52rem; margin: 0; }

/* Not found */

.not-found { padding-block: 5rem 3rem; text-align: center; }
.not-found img { width: 96px; height: 96px; margin: 0 auto 1.75rem; }
.not-found h1 { margin-bottom: .75rem; }
.not-found .lead { margin-inline: auto; }
.not-found .actions { justify-content: center; }
