/* Variables */
:root {
  --color-text-muted: #666;
  --color-scrollbar: #c4b494;
  --color-scrollbar-hover: #a89868;
  --color-code-bg: rgba(232, 217, 181, 0.5);
  --color-border: #d9cba8;
}

/* Base */
html { height: 100%; }
body {
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  color: #222;
  background-color: #F5E4C1;
  padding: 15px;
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
h1 { margin-top: 0; }
a { text-decoration: none; font-style: italic; }
a:hover { text-decoration: underline; }
pre, code, kbd { font-family: monospace; }
strong, b { font-weight: 500; }

/* Layout */
.container { position: relative; max-width: 750px; flex: 1; display: flex; flex-direction: column; }

/* Scrollbars */
ul, pre { scrollbar-width: thin; scrollbar-color: var(--color-scrollbar) transparent; }
:is(ul, pre)::-webkit-scrollbar { width: 8px; height: 8px; }
:is(ul, pre)::-webkit-scrollbar-track { background: transparent; }
:is(ul, pre)::-webkit-scrollbar-thumb { background: var(--color-scrollbar); border-radius: 4px; }
:is(ul, pre)::-webkit-scrollbar-thumb:hover { background: var(--color-scrollbar-hover); }

/* Footer */
footer { margin-top: auto; padding-top: 1em; padding-bottom: 2em; color: var(--color-text-muted); font-size: 14px; }
.footer-section { margin-top: 1em; padding-top: 1em; border-top: 1px solid var(--color-border); }
.footer-section footer { margin-top: 0.5em; padding-top: 0; }

/* Navigation links */
.back-link, .about-link { position: absolute; right: 0; top: 0; margin: 0; }
:is(.back-link, .about-link) a, a.back { font-style: normal; font-weight: bold; }

/* Responsive */
@media (min-width: 768px) {
  body { font-size: 17px; padding: 15px 0 0 40px; }
  pre, code, kbd { font-size: 17px; }
}
@media (min-width: 1200px) {
  body { padding: 15px 15px 15px 40px; }
}
