/* Voltabot's own styles, loaded after missing.css on every page.

   The look is "sticker book": cream paper, ink rules with hard offset
   shadows, condensed display type, typed labels, and the odd sticker set at
   a slight angle. Colours come from the robot logo. Nothing animates. */

:root {
  --ink: #161616;
  --paper: #FFF8E7;
  --sun: #FAED27;
  --orange: #F79C18;
  --teal: #1A5C67;

  --hard-shadow: 6px 6px 0 var(--ink);
  --small-shadow: 3px 3px 0 var(--ink);

  /* missing.css settings */
  --main-font: "Inter", sans-serif;
  --secondary-font: "Inter", sans-serif;
  --display-font: "Archivo", sans-serif;
  --mono-font: "Courier Prime", ui-monospace, monospace;
  --border-width: 3px;
  --accent: black;
  --bg: var(--paper);
  --box-bg: var(--sun);
  --graphical-fg: black;
}

/* Faint dots, in the logo's teal, so the page reads as paper. */
body {
  background:
    radial-gradient(circle, rgb(26 92 103 / 0.16) 1.4px, transparent 1.6px) 0 0 / 16px 16px,
    var(--paper);
}

p {
  font-weight: 500;
}

/* Headlines in condensed sentence case; smaller headings are short labels,
   so they go in capitals. */
:is(h1, h2, h3) {
  font-stretch: 72%;
  font-weight: 800;
}

h1 {
  font-size: 2.6rem;
  letter-spacing: -0.01em;
  line-height: 1;
}

:is(h2, h3) {
  text-transform: uppercase;
}

.box {
  box-shadow: var(--hard-shadow);
}

/* missing.css gives selects a border, which leaves the native arrow hard
   against it. Draw one inset instead. */
select {
  appearance: none;
  padding-inline-end: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23171717' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 0.75rem;
}

/* A page's main action, on a <button> or a link that looks like one. Its
   shadow goes when pressed, with no transition. */
.primary-button {
  background: var(--orange);
  border: 3px solid var(--ink);
  border-radius: 0;
  box-shadow: var(--small-shadow);
  color: var(--ink);
  display: inline-block;
  font: inherit;
  font-weight: 700;
  margin: 0;
  padding: 0.55rem 1rem;
  text-decoration: none;
}

/* missing.css swaps a <button>'s shadow for a focus ring on hover, more
   specifically than the rule above, so links and buttons would differ.
   Keep the shadow, and show keyboard focus with an outline instead. */
.primary-button:is(:hover, :focus-visible) {
  box-shadow: var(--small-shadow);
  filter: none;
}

.primary-button:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.primary-button:active {
  box-shadow: none;
  transform: translate(3px, 3px);
}

a.primary-button:is(:link, :visited, :hover, :focus) {
  color: var(--ink);
  text-decoration: none;
}

footer {
  background: var(--teal);
  color: #fff;
  margin-block-end: 0;
}

footer a:is(:link, :visited, :hover, :focus) {
  color: #fff;
}

/* On short pages, the space below the footer is footer, not paper. */
html {
  background: var(--teal);
}

/* Notices above a page's content (templates/_notices.html), coloured like
   the review status pills. */
.notices {
  display: grid;
  gap: 0.75rem;
  margin-block: 1.5rem;
}

.notice {
  background: #fff;
  border: 3px solid var(--ink);
  box-shadow: var(--small-shadow);
  margin: 0;
  padding: 0.9rem 1.1rem;
}

.notice p {
  margin: 0;
}

.notice-success {
  background: #bfe8c9;
}

.notice-info {
  background: #fffdea;
}

.notice-warning {
  background: #ffd98a;
}

.notice-error {
  background: #ffb4a3;
}

/* A question with its answers: one line on wide screens, answers below
   the text on narrow ones. */
.notice-compact {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.95rem;
  gap: 0.6rem 1.25rem;
}

.notice-compact p {
  flex: 1 1 22rem;
}

.notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Use with .primary-button, for answers that shouldn't take over the page:
   everything but the size is shared. */
.primary-button.small-button {
  font-size: 0.9rem;
  padding: 0.3rem 0.75rem;
}
