/* Shared by both sites' pages (copied into each site by deploy.ps1). Colours and text size come from the
   site's own theme.css. Sizes are in rem, so a reader's own browser text size scales everything. */

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/fonts/AtkinsonHyperlegible-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/fonts/AtkinsonHyperlegible-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

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

html { font-size: var(--base-size); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Atkinson Hyperlegible", Verdana, sans-serif;
  line-height: 1.55;
}

.skip { position: absolute; left: -100rem; }
.skip:focus { left: 1rem; top: 1rem; background: var(--bg); padding: .5rem 1rem; z-index: 1; }

header, main, footer { max-width: 46rem; margin: 0 auto; padding: 0 1.25rem; }

header { padding-top: 1.25rem; padding-bottom: .5rem; }
header nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: baseline; }
header .brand { font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; margin-right: auto; }

main { padding-bottom: 2.5rem; }

h1 { font-size: 2rem; line-height: 1.15; margin: 1.25rem 0 .75rem; }
h2 { font-size: 1.4rem; line-height: 1.25; margin: 2.25rem 0 .6rem; }
h3 { font-size: 1.15rem; margin: 1.5rem 0 .4rem; }
p, ul, ol { margin: 0 0 1rem; }
li { margin-bottom: .45rem; }

a { color: var(--link); text-underline-offset: .15em; }
a:focus-visible, .button:focus-visible { outline: .2rem solid var(--focus); outline-offset: .2rem; }

.lead { font-size: 1.2rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .45rem 1.3rem;
  border-radius: .6rem;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  text-decoration: none;
  line-height: 1.25;
}
.button:hover { background: var(--accent-hover); }
.button.quiet { background: transparent; color: var(--link); border: .12rem solid var(--border); }

.buttons { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1rem 0 1.5rem; }

.games { list-style: none; padding: 0; display: grid; gap: 1rem; margin: 1.5rem 0; }
.games > li {
  margin: 0;
  padding: 1.1rem 1.25rem 1.25rem;
  border: .12rem solid var(--border);
  border-radius: .9rem;
  background: var(--panel);
}
.games h2 { margin: 0 0 .4rem; display: flex; align-items: center; gap: .6rem; }
.games .suit { font-size: 1.6rem; line-height: 1; }
.games .buttons { margin: .75rem 0 0; }

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

.promises { padding-left: 1.2rem; }

footer { border-top: .1rem solid var(--border); padding-top: 1rem; padding-bottom: 2rem; color: var(--muted); }
footer p { margin-bottom: .5rem; }

@media (forced-colors: active) {
  .button { border: .12rem solid ButtonText; }
}
