:root {
  --container-width: min(calc(100% - 20px), 1350px);
  --color-blue: #0d3771;
  --color-blue-light: #0d377125;
  --serif: Charter, Georgia, "Times New Roman", Times, serif;
  --sans-serif: "Avenir", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;

  --monospace: "Menlo", "Monaco", "Courier New", monospace;
  --color-background: white;
  --color-text: black;
}

body {
  margin: 0;
  font-size: 16px;
  font-family: var(--sans-serif);
  background: var(--color-background);
  color: var(--color-text);
}

a,
a:visited:not(.button) {
  text-decoration: none;
  color: var(--color-blue);
}

a:hover {
  text-decoration: underline;
}

/* Nav */
.nav {
  font-size: 1rem;
  font-family: var(--sans-serif);
  width: 100%;
  background: var(--color-yellow);
  margin: 0 auto;
  padding: 1em 0;
  border-bottom: 0.25px solid var(--color-blue-light);
}

.nav-inner {
  width: var(--container-width);
  margin: 0 auto;
}

@media (min-width: 640px) {
  .nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

.nav h1 {
  font-size: 1em;
  margin: 0 0 0.25em 0;
}

@media (min-width: 600px) {
  .nav h1 {
    font-weight: normal;
    margin: 0;
  }
}

.nav-links {
  display: flex;
}

.nav-links a {
  margin-right: 1em;
}

.nav-links a:last-child {
  margin-right: 0;
}

/* Footer */
.footer {
  width: var(--container-width);
  margin: 4em auto;

  font-size: 0.66rem;
  color: #333;
  font-family: var(--sans-serif);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer a {
  text-decoration: none;
}

/* Not a real form, need a POST to logout  */
.footer form {
  display: inline-block;
}

.footer button {
  appearance: none;
  background: none;
  display: inline;
  border: 0;
  text-transform: uppercase;
  color: var(--color-blue);
  letter-spacing: 1px;
  font-size: 1em;
  cursor: pointer;
}

/* Zip-wire navigation */
zip-wire {
  display: block;
  opacity: 1;
}

.zip-thinking {
  transition: 0.25s linear opacity;
  opacity: 0.5;
}

.container {
  width: var(--container-width);
  margin: 40px auto;
}

.page-title {
  font-family: var(--sans-serif);
  font-weight: 300;
}

.button {
  --accent-color: var(--color-blue);
  background: var(--accent-color);
  color: white;
  border: none;
  line-height: 1;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 4px;
  font-family: var(--sans-serif);
  display: inline-block;
  cursor: pointer;
}

.button:hover {
  text-decoration: none;
  filter: brightness(1.5);
}

.striped-row {
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.striped-row:nth-child(even) {
  background: white;
}

.striped-row:nth-child(odd) {
  background: #f2f2f2;
}

/* prettier-ignore */
.placeholder + .striped-row:nth-child(4n-2) {
  background: #f2f2f2;
}

.amount {
  font-family: var(--monospace);
}
