/*
  Federated Wiki theme template: window-frame.css
  ------------------------------------------------
  Copy this file to your site's theme path (served as /theme/style.css)
  to get a classic windowed UI look.
*/

@import url("https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@600;700&family=Fira+Mono:wght@400;500&family=Inconsolata:wght@400;500;600&family=Inter:wght@400;500;600&family=Lora:wght@500;600;700&family=Noto+Sans:wght@400;500;600&family=Outfit:wght@600;700&display=swap");

:root {
  --window-border: #000000;
  --window-shadow: #bcbcbc;
  --window-titlebar: #dcdcdc;
  --window-highlight: #ffffff;
  --window-background: #ffffff;
  --desktop-background: #cfcfcf;
  --font-sans: "Noto Sans", "Inter", system-ui, sans-serif;
  --font-sans-display: "Outfit", "Inter", system-ui, sans-serif;
  --font-serif-title: "Crimson Pro", "Lora", "Times New Roman", serif;
  --font-serif-heading: "Lora", "Times New Roman", serif;
  --font-mono: "Inconsolata", "Fira Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --font-base: 12px;
  --font-small: 10px;
  --font-caption: 9px;
  --font-title: 1.6rem;
  --font-heading: 1.2rem;
  --font-subheading: 1rem;
}

* {
  box-sizing: border-box;
}

body {
  background: #0e0e0e;
  color: #f5f5f5;
  font-family: var(--font-sans);
  font-size: var(--font-base);
  line-height: 1.6;
  overflow-y: auto;
  overflow-x: hidden;
}

body,
html {
  width: 100%;
  min-height: 100%;
}

.main {
  padding-top: 20px;
  padding-bottom: 4px;
  padding-left: 16px;
  padding-right: 16px;
  bottom: 8px;
}

.page {
  position: relative;
  background: #161616;
  border: 1px solid #3a3a3a;
  box-shadow: none;
  margin: 20px auto;
  overflow: visible;
  height: 70vh;
  max-height: 70vh;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  width: min(600px, calc(100% - 120px));
  max-width: 600px;
}

.page::before {
  content: none;
}

.page::after {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  right: 10px;
  width: 14px;
  background:
    radial-gradient(circle at 7px 7px, #f0f0f0 0 3px, transparent 3px) 0 0 / 14px 28px repeat-y;
  opacity: 0.35;
  pointer-events: none;
}

.page::marker {
  content: none;
}

.paper {
  padding: 32px 48px 28px 48px;
  min-height: auto;
  flex: 1 1 auto;
  overflow-y: auto;
}

.page.active {
  box-shadow: none;
}

.story h1 {
  font-family: var(--font-serif-title);
  font-weight: 700;
  font-size: var(--font-title);
}

.story h2,
.story h3 {
  font-family: var(--font-serif-heading);
  font-weight: 600;
  font-size: var(--font-heading);
}

.story h4 {
  font-family: var(--font-sans-display);
  font-weight: 600;
  font-size: var(--font-subheading);
}

.story {
  column-count: 1;
  column-gap: 0;
  column-rule: none;
  max-width: 70ch;
  margin: 0 auto;
}

.story h1,
.story h2,
.story h3,
.story h4 {
  column-span: all;
}

.story p,
.story li {
  orphans: 3;
  widows: 3;
  line-height: 1.5;
}

.story code {
  background: #1f1f1f;
  border: 1px solid #3a3a3a;
  font-family: var(--font-mono);
  font-size: var(--font-small);
  padding: 0.1em 0.3em;
  border-radius: 0;
}

.action {
  background-color: #d6d6d6;
  border: 1px solid #7a7a7a;
  box-shadow: inset 1px 1px 0 var(--window-highlight);
  color: #000000;
}

footer {
  background: var(--desktop-background);
  border-top: 2px solid var(--window-border);
  box-shadow: none;
  color: #000000;
  height: auto;
  padding: 12px 16px;
}

.factory,
.factory-panel,
.panel.factory {
  max-width: 320px;
  width: 100%;
}

@media (max-width: 600px) {
  .main {
    padding-top: 12px;
    padding-bottom: 8px;
    padding-left: 12px;
    padding-right: 12px;
    bottom: 16px;
    width: 100%;
  }

  .page {
    width: 100%;
    margin: 16px 12px;
    height: 75vh;
    max-height: 75vh;
  }

  .paper {
    padding: 28px 16px 20px;
  }

  .story {
    column-count: 1;
    column-rule: none;
    max-width: 100%;
  }

  .page::after {
    top: 12px;
    bottom: 12px;
    right: 6px;
    width: 10px;
    background:
      radial-gradient(circle at 5px 5px, #f0f0f0 0 2px, transparent 2px) 0 0 / 10px 22px repeat-y;
  }
}
