/* The website of Cog Siege: the colours of the logo, the serif of the word mark, and nothing to load. */

:root {
  --dark: #1b1612;
  --panel: #241d17;
  --line: #4a3b2b;
  --brass: #b08d57;
  --gold: #e6c15a;
  --text: #e8d9b8;
  --muted: #b7a88e;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  color: var(--text);
  font: 17px/1.6 var(--sans);
  background: var(--dark);
}

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

a:hover {
  color: #f3d98a;
}

h1,
h2,
h3 {
  color: var(--gold);
  font-family: var(--serif);
  line-height: 1.25;
}

kbd {
  padding: 0 6px;
  font: 0.9em var(--sans);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 16px;
  top: 8px;
  z-index: 1;
  padding: 6px 12px;
  background: var(--panel);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.mark {
  display: block;
}

.wordmark {
  font-family: var(--serif);
  letter-spacing: 0.12em;
}

/* The bar at the top: the brand, the pages, and the way to the game. */
.top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 16px;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--gold);
  font: 700 20px var(--serif);
  letter-spacing: 0.12em;
  text-decoration: none;
}

.brand .mark {
  width: 36px;
  height: 36px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: center;
}

.nav a {
  color: var(--text);
  text-decoration: none;
}

.nav a[aria-current='page'] {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.nav .nav-play {
  padding: 4px 14px;
  color: var(--dark);
  font-weight: 600;
  background: var(--gold);
  border-radius: 4px;
}

main {
  display: block;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

/* The home page. */
.hero {
  padding: 32px 0 24px;
  text-align: center;
}

.hero .mark {
  width: 168px;
  height: 168px;
  margin: 0 auto;
}

.hero h1 {
  margin: 12px 0 4px;
  font-size: clamp(40px, 9vw, 72px);
}

.tagline {
  margin: 0 0 8px;
  color: var(--brass);
  font: italic 22px/1.4 var(--serif);
}

.lead {
  max-width: 620px;
  margin: 0 auto 24px;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.button {
  display: inline-block;
  min-width: 240px;
  padding: 14px 22px;
  color: var(--gold);
  font-weight: 600;
  font-size: 18px;
  text-align: center;
  text-decoration: none;
  border: 2px solid var(--brass);
  border-radius: 6px;
}

.button:hover {
  color: var(--gold);
  background: var(--panel);
}

.button.primary {
  color: var(--dark);
  background: var(--gold);
  border-color: var(--gold);
}

.button.primary:hover {
  color: var(--dark);
  background: #f3d98a;
}

.online {
  margin: 16px 0 0;
  color: #8fd18a;
}

.online::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  vertical-align: 2px;
  content: '';
  background: #8fd18a;
  border-radius: 50%;
}

.week {
  margin: 8px 0 0;
  color: var(--muted);
}

.online[hidden] + .week {
  margin-top: 16px;
}

.section {
  padding: 24px 0 0;
}

.section > h2 {
  text-align: center;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.feature {
  padding: 4px 20px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature h3 {
  margin-bottom: 4px;
}

.feature p {
  margin-top: 0;
  color: var(--muted);
}

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  align-items: start;
}

.shots figure {
  margin: 0;
}

.shots img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.shots figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

/* The pages of text. */
.page {
  max-width: 720px;
  margin: 0 auto;
}

.page h1 {
  font-size: 38px;
}

.page h2 {
  margin-top: 32px;
  font-size: 24px;
}

.news .date {
  margin-top: -12px;
  color: var(--muted);
  font-size: 15px;
}

.imprint {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 16px;
}

.imprint dt {
  color: var(--brass);
}

.imprint dd {
  margin: 0;
}

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

.root .mark {
  width: 120px;
  height: 120px;
  margin: 0 auto;
}

.root-languages {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 0;
  list-style: none;
}

/* The foot: the languages and the pages of the law. */
.foot {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 16px 32px;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.languages,
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  justify-content: center;
  margin-bottom: 8px;
}

.languages a[aria-current='true'] {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .top,
  .nav {
    justify-content: center;
  }

  .button {
    width: 100%;
    min-width: 0;
  }

  .hero .mark {
    width: 128px;
    height: 128px;
  }
}

/* The button of the main theme, in the foot. */
.music {
  margin: 0 0 12px;
  padding: 6px 14px;
  color: var(--text);
  font: inherit;
  background: transparent;
  border: 1px solid var(--brass);
  border-radius: 4px;
  cursor: pointer;
}

.music[aria-pressed='true'] {
  color: var(--dark);
  background: var(--gold);
  border-color: var(--gold);
}
