/* know-know.org brand: see docs/brand/README.md for source values. */

@font-face {
  font-family: "Epilogue";
  font-style: normal;
  font-weight: 300;
  src: url("fonts/epilogue_300.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Epilogue";
  font-style: italic;
  font-weight: 300;
  src: url("fonts/epilogue_300italic.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Epilogue";
  font-style: normal;
  font-weight: 500;
  src: url("fonts/epilogue_500.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Epilogue";
  font-style: italic;
  font-weight: 500;
  src: url("fonts/epilogue_500italic.ttf") format("truetype");
  font-display: swap;
}

:root {
  --kk-background: #f5f5f5;
  --kk-foreground: #000000;
  --kk-secondary: #767676;
  --kk-tertiary: #e6e6e6;
  --kk-accent: #1c5191;
  --kk-font: "Epilogue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

body {
  position: relative;
  font-family: var(--kk-font);
  font-weight: 300;
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
  line-height: 1.6;
  background: var(--kk-background);
  color: var(--kk-foreground);
}

/* know-know.org corner mark: appears once, near the top of the document
   (not repeated per printed page -- absolute, not fixed, positioning). */
.brand-logo {
  position: absolute;
  top: 0;
  left: 1rem;
  height: 32px;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

strong, b {
  font-weight: 500;
}

a {
  color: var(--kk-accent);
}

.doc-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.doc-header .logo {
  max-height: 80px;
  margin-bottom: 1rem;
}

.doc-header .subtitle {
  color: var(--kk-secondary);
  margin-top: 0.25rem;
}

.doc-header .author {
  color: var(--kk-secondary);
  font-size: 0.9rem;
}

pre, code {
  background: #ffffff;
  border: 1px solid var(--kk-tertiary);
  border-radius: 4px;
}

code {
  padding: 0.15em 0.4em;
}

pre {
  padding: 1em;
  overflow-x: auto;
}

pre code {
  padding: 0;
  border: none;
  background: none;
}

img {
  max-width: 100%;
}

.source-file {
  page-break-before: always;
}

.source-file:first-of-type {
  page-break-before: avoid;
}

@media print {
  body {
    margin: 0 auto;
    background: #ffffff;
  }
}
