/* css/base.css: tokens, type, buttons and forms, the header, the first-run stepper.
   Part 1 of 10 of the app's stylesheet (app.css until Phase 3). Every page loads all the parts, in the
   order of CSS in lib/views/parts.js, so a later part still wins a tie, as further down the one file did. */
/* Clippantry app: the mockup's look (the site's tokens: cream, ink, tomato, mustard, pickle; Anton, Archivo, Plex Mono) */
:root {
  --bg: #f3ecdf;
  --fg: #17130f;
  --muted: #5a5047;
  --card: #fbf6ec;
  --edge: #17130f;
  --tomato: #e4412b;
  --pen: #c8261c;
  --mustard: #f2b300;
  --pickle: #557f2c;
  --sky: #2f86d6;
  --plum: #6a2c5b;
  --screen: #2a231e;
  --screen-2: #3a302a;
  --screen-3: #5a4d44;
  --display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 500 16px/1.45 var(--body);
}
a {
  color: var(--fg);
}
a:hover {
  color: var(--pen);
}
h1,
h2,
h3,
p {
  margin: 0;
}
img {
  display: block;
}
:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 3px solid var(--edge);
  border-radius: 14px;
  box-shadow: 5px 5px 0 var(--edge);
  background: #fff;
  color: var(--fg);
  font: 800 16px/1.1 var(--body);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.12s,
    box-shadow 0.12s;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--edge);
  color: var(--fg);
}
.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--edge);
}
.btn.red {
  background: var(--tomato);
  color: var(--bg);
}
.btn.red:hover {
  color: var(--bg);
}
.btn.big {
  min-height: 54px;
  padding: 14px 28px;
  font-size: 18px;
}
.btn.wide {
  width: 100%;
}
.btn[disabled] {
  opacity: 0.5;
  cursor: default;
  transform: none;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font: 700 14px var(--body);
  min-width: 0;
}
.field input,
.field select,
.field textarea {
  min-height: 48px;
  padding: 10px 14px;
  border: 3px solid var(--edge);
  border-radius: 12px;
  background: #fff;
  font: 500 16px var(--body);
  width: 100%;
}
.hint {
  font: 500 14px/1.45 var(--body);
  color: var(--muted);
}
.mono {
  font-family: var(--mono);
}
.card {
  background: var(--card);
  border: 3px solid var(--edge);
  border-radius: 18px;
}
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 4px 12px;
  border: 2px solid var(--edge);
  border-radius: 999px;
  font: 800 13px var(--body);
  background: #fff;
}
.pill.gold {
  background: var(--mustard);
}
.err {
  background: #fff;
  border: 3px solid var(--pen);
  color: var(--pen);
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
}

/* header */
.top {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  border-bottom: 3px solid var(--edge);
  background: var(--card);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img {
  width: 28px;
  height: 34px;
}
.brand span {
  font: 400 24px/1 var(--display);
  letter-spacing: 0.02em;
}
.show {
  font: 700 14px var(--body);
  color: var(--muted);
  padding-left: 12px;
  border-left: 2px solid var(--edge);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.nav a {
  font: 700 15px var(--body);
  text-decoration: none;
  padding: 8px 4px;
}
.nav a.on {
  border-bottom: 3px solid var(--tomato);
}
.nav .meter {
  background: var(--mustard);
  border: 2px solid var(--edge);
  border-radius: 999px;
  padding: 6px 12px;
}
.nav form {
  margin: 0;
}
.nav button.link {
  background: none;
  border: 0;
  font: 700 15px var(--body);
  cursor: pointer;
  padding: 8px 4px;
  color: var(--fg);
}

/* first-run stepper */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.steps li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 800 14px var(--body);
}
.steps li.todo {
  color: var(--muted);
}
.steps .num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid var(--edge);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 900 13px var(--body);
  background: #fff;
}
.steps .on .num {
  background: var(--tomato);
  color: #fff;
}
.steps .done .num {
  background: var(--pickle);
  color: #fff;
}
.steps .bar {
  width: 28px;
  height: 3px;
  background: var(--edge);
  opacity: 0.3;
}

main.page {
  width: 100%;
  margin: 0 auto;
  padding: 48px 40px 64px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
main.narrow {
  max-width: 820px;
}
main.mid {
  max-width: 1040px;
}
.display {
  font: 400 64px/1 var(--display);
  text-transform: uppercase;
}
.display.m {
  font-size: 52px;
}
.center {
  text-align: center;
  align-items: center;
}
