/* Distilled from otto-client/src/otto.css and widgets/ToolbarButton.svelte, so the
   homepage looks like the app. Keep the tokens in step with the app's if those change. */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;700&display=swap');

:root {
  --default-font-family: "Be Vietnam Pro", Helvetica, Arial, sans-serif;
  --background-color: #333333;   /* ground */
  --default-color: #999999;      /* ink: text, outlines, icons */
  --white-color: #EEEEEE;        /* strong ink: titles, names */
  --dimmed-color: #5f5f5f;       /* quiet ink */
  --divider-color: #444444;      /* hairlines */
  --accent-color: #BF6F04;       /* orange = playing */
  --otto-logo-eye-color: black;
  --page-gap: 40px;
  --square-size: 20px;           /* the fundamental building block */
  --logo-scale: 6;               /* integer scales keep the logo on the pixel grid */
}

@media (width <= 600px) {
  :root {
    --page-gap: 20px;
    --logo-scale: 4;
  }
}

@media (prefers-color-scheme: light) {
  :root {
    --background-color: rgb(242, 240, 255);
    --default-color: #686868;
    --white-color: #111111;
    --dimmed-color: #a8a8a8;
    --divider-color: #CCCCCC;
    --otto-logo-eye-color: white;
  }
}

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

body {
  font-family: var(--default-font-family);
  font-weight: 300;
  color: var(--default-color);
  background-color: var(--background-color);
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

/* the ▪ that joins the parts of one line */
.sep:before {
  content: '▪';
  padding: 0 0.6em;
}

/* the one Otto button: square, 2px ink outline, 1px corner, small bold capitals */
.tb-button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--tb-size, 30px);
  min-width: var(--tb-size, 30px);
  padding: 0 var(--tb-pad, 10px);
  border: 2px solid var(--default-color);
  border-radius: 1px;
  background: var(--background-color);
  color: var(--default-color);
  font-family: var(--default-font-family);
  font-size: var(--tb-font, 11px);
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.tb-button:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
}
.tb-button:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}
