/* footroll90.com: the game's palette (app/lib/theme.dart) and fonts (app/assets/fonts, copied at build). */

@font-face {
  font-family: "Barlow";
  src: url("/fonts/Barlow-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("/fonts/Barlow-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/BarlowCondensed-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/BarlowCondensed-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --navy: #0b132b;
  --pitch: #1c7c54;
  --gold: #f4b942;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.16);
  --panel: rgba(8, 14, 32, 0.55);
  --gutter: 16px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font: 400 17px/1.6 "Barlow", system-ui, sans-serif;
  /* A pitch seen from above: mowing stripes, the halfway line and the centre circle, faint under the content. */
  background:
    radial-gradient(circle at 50% 220px, transparent 0 149px, rgba(255, 255, 255, 0.07) 150px 152px, transparent 153px),
    linear-gradient(180deg, transparent 219px, rgba(255, 255, 255, 0.07) 219px 221px, transparent 221px),
    repeating-linear-gradient(90deg, rgba(28, 124, 84, 0.13) 0 90px, rgba(28, 124, 84, 0.05) 90px 180px),
    radial-gradient(ellipse at 50% 0%, rgba(28, 124, 84, 0.45), transparent 70%),
    var(--navy);
  background-attachment: scroll;
  animation: drift 60s linear infinite;
}

@keyframes drift {
  from {
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0;
  }
  to {
    background-position: 0 0, 0 0, 180px 0, 0 0, 0 0;
  }
}

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

a {
  color: var(--gold);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -60px;
  padding: 10px 14px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  border-radius: 8px;
  z-index: 1;
}
.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1,
h2,
h3 {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
}
h1 {
  font-size: clamp(40px, 9vw, 64px);
  margin: 0;
}
h2 {
  font-size: 28px;
  margin: 1.8em 0 0.4em;
}
h3 {
  font-size: 21px;
  font-weight: 600;
  margin: 1.4em 0 0.3em;
}

/* Header and footer */

.site-header {
  padding: 18px 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
}
.home-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font: 700 22px/1 "Barlow Condensed", sans-serif;
}
.home-link img {
  width: auto;
  height: 40px;
}

main {
  flex: 1;
  padding-bottom: 56px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 32px;
  color: var(--muted);
  font-size: 15px;
  overflow-wrap: anywhere;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-bottom: 10px;
}
.site-footer nav a {
  display: inline-block;
  padding: 6px 0;
}
.site-footer p {
  margin: 6px 0 0;
}

/* Building blocks */

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .panel {
    background: rgba(14, 22, 46, 0.94);
  }
}

.lead {
  font-size: 21px;
  color: var(--text);
  margin: 12px 0 0;
}
.small {
  font-size: 15px;
  color: var(--muted);
}
.eyebrow {
  display: inline-block;
  margin: 18px 0 0;
  color: var(--gold);
  font: 600 17px/1.3 "Barlow Condensed", sans-serif;
  letter-spacing: 0.03em;
}

.button {
  display: inline-block;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 12px;
  background: var(--gold);
  color: var(--navy);
  font: 700 19px/1 "Barlow Condensed", sans-serif;
  letter-spacing: 0.03em;
  cursor: pointer;
}
.button:hover {
  filter: brightness(1.06);
}

/* Holding page */

.hero {
  text-align: center;
  padding: 28px 0 8px;
}
.hero-mark {
  width: 132px;
  height: auto;
  margin-bottom: 10px;
}
.hero h1 span {
  display: block;
  font-size: 0.42em;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 6px;
}

.signup {
  margin: 32px auto 0;
  max-width: 560px;
}
.signup h2 {
  margin-top: 0;
  font-size: 24px;
}
.signup label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}
.signup .row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.signup input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  font: inherit;
}
.signup input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.62);
}
.signup .button {
  flex: 0 0 auto;
}
.signup .small {
  margin: 12px 0 0;
}

.features {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.features li {
  padding: 18px;
}
.features h3 {
  margin: 0 0 4px;
  color: var(--gold);
}
.features p {
  margin: 0;
  color: var(--muted);
}

.not-found {
  text-align: center;
  padding-top: 48px;
}

/* Long text: the legal pages and support */

.prose {
  max-width: 70ch;
  overflow-wrap: anywhere;
}
.prose h1 {
  font-size: clamp(36px, 8vw, 52px);
  margin-top: 12px;
}
.prose .updated {
  color: var(--muted);
  margin-top: 6px;
}
.prose ul {
  padding-left: 1.2em;
}
.prose li {
  margin: 0.3em 0;
}
.prose .toc {
  margin-top: 24px;
}
.prose .toc ol {
  margin: 0;
  padding-left: 1.4em;
  columns: 2 220px;
}
.prose .toc li {
  break-inside: avoid;
}
.prose dt {
  font-weight: 600;
  margin-top: 1.2em;
}
.prose dd {
  margin: 0.2em 0 0;
}
