:root {
  --header-height: 60px;
  --social-width: 44px;
  --color-bg: #faf9f7;
  --color-text: #1a1a1a;
  --color-text-muted: #666;
  --color-border: #e0ddd8;
  --color-accent: #1a1a1a;
  --color-hover: #444;
  --font-body: 'Georgia', 'Times New Roman', serif;
  --font-ui: system-ui, -apple-system, sans-serif;
  --content-left-pad: 72px;
  --transition-content: 260ms ease;
  --transition-lightbox: 200ms ease;
}

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

html, body {
  height: 100%;
}

body {
  overflow: hidden;
  height: 100dvh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

img {
  display: block;
  max-width: 100%;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

#content-area {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

#content-inner {
  padding: 2.5rem 2.5rem 4rem var(--content-left-pad);
  min-height: 100%;
}

/* Fullscreen iframe mode (Monochrolarmes game) */
#content-area.fullscreen-mode {
  overflow: hidden;
}
#content-area.fullscreen-mode #content-inner {
  padding: 0;
  height: 100%;
}

@media (max-width: 768px) {
  :root {
    --content-left-pad: 1.25rem;
  }
  #content-inner {
    padding: 1.5rem 1.25rem 3rem;
  }
}
