/* Issue 1542: the poster palette of docs/design/ui-ux.md and two of the
   game's own fonts, served from this site only. */

@font-face {
  font-family: "Oswald";
  src: url("/fonts/oswald-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
}

@font-face {
  font-family: "PT Serif";
  src: url("/fonts/pt-serif-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #f1e8d2;
  --ink: #24282b;
  --petrol: #226a78;
  --brick: #a34232;
  --muted: #4a5a55;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --prose: "PT Serif", Georgia, serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font: 1.125rem/1.5 var(--prose);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  border-top: 0.75rem solid var(--petrol);
}

.sheet {
  flex: 1;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
}

.emblem {
  display: block;
  width: 6rem;
  height: 6rem;
  margin-bottom: 2rem;
}

h1 {
  margin: 0 0 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 0.375rem solid var(--brick);
  font: 700 clamp(2.75rem, 11vw, 5.5rem)/0.95 var(--display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

p {
  margin: 0 0 0.5rem;
}

.lede {
  font-size: 1.375rem;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  font: 500 1.125rem/1.2 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

a {
  color: var(--petrol);
  text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
  color: var(--brick);
}

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

.links a[href^="mailto:"] {
  text-transform: none;
  letter-spacing: 0.02em;
}

footer {
  width: calc(100% - 3rem);
  max-width: 37rem;
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--muted);
  color: var(--muted);
  font-size: 0.875rem;
}

footer p {
  margin: 0 0 0.25rem;
}

footer a {
  color: inherit;
}

/* Issue 1543: the privacy page and its opt-out control. */

.prose h1 {
  font-size: clamp(2.5rem, 9vw, 4rem);
}

.prose h2 {
  margin: 2.25rem 0 0.75rem;
  font: 600 1.5rem/1.2 var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.prose h3 {
  margin: 1.5rem 0 0.5rem;
  font: 600 1.125rem/1.3 var(--display);
  letter-spacing: 0.04em;
}

.prose p,
.prose ul {
  margin: 0 0 0.75rem;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.375rem;
}

.updated {
  color: var(--muted);
}

.opt-out {
  margin: 1.5rem 0 2rem;
  padding: 1.25rem 1.5rem 1rem;
  border-left: 0.375rem solid var(--petrol);
  background: #e8dcc0;
}

.opt-out h2 {
  margin-top: 0;
}

.opt-out button {
  margin: 0.5rem 0 1rem;
  padding: 0.75rem 1.25rem;
  border: 0;
  background: var(--petrol);
  color: var(--paper);
  font: 600 1rem/1.2 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.opt-out button[hidden] {
  display: none;
}

.opt-out button:hover:not(:disabled) {
  background: var(--brick);
}

.opt-out button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.opt-out button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

code {
  font-size: 0.9em;
}
