/* drumpy.online — the beta marketing page and the list pages under
   list/. No JavaScript anywhere on this site (docs/SITE.md). hitchpost's
   own pages (confirm, undo, link-expired, error) link this file too, so
   the element styles below have to make plain markup look right. */

:root {
  --stage: #1d1a38;
  --stage-deep: #15132b;
  --rule: #34305c;
  --ink: #ecebf5;
  --ink-soft: #b9b6d3;
  --brass: #e0b04a;
  --brass-deep: #b98a26;
  --hit-in: #5cba6a;
  --hit-off: #f5b26c;

  --display:
    "Avenir Next Condensed", "Avenir Next", "Arial Narrow", "Helvetica Neue",
    sans-serif;
  --body: "Iowan Old Style", Charter, "Bitstream Charter", Georgia, serif;

  --measure: 36rem;
  --gutter: clamp(1rem, 5vw, 3rem);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--stage);
  color: var(--ink);
  font: 1.125rem/1.6 var(--body);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0 var(--gutter) 4rem;
}

a {
  color: var(--brass);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.6rem, 8vw, 5rem);
  letter-spacing: -0.01em;
  max-width: 12ch;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--brass);
}

p,
dl,
form {
  max-width: var(--measure);
}

p {
  margin: 0 0 1em;
}

/* ---- masthead ---- */

.mast {
  padding: 1.5rem 0 3rem;
}

.mast a {
  font: 700 1.5rem/1 var(--display);
  color: var(--ink);
  text-decoration: none;
}

.mast a:hover {
  color: var(--brass);
}

.lede {
  font-size: 1.25rem;
  color: var(--ink-soft);
}

/* ---- the bar of tab: one bar of a fill, as drumpy hears it ----
   Five rows (voice label + 16 sixteenth-note cells). A cell is empty,
   an in-time hit, an off-time hit, or a miss. Beats are marked by a
   brighter rule every four cells. */

.bar {
  margin: 3rem 0 1rem;
  max-width: 48rem;
}

.bar ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bar li {
  display: grid;
  grid-template-columns: 2.25rem repeat(16, 1fr);
  align-items: center;
  height: 2.1rem;
  border-bottom: 1px solid var(--rule);
}

.bar li:first-child {
  border-top: 1px solid var(--rule);
}

.bar b {
  font: 600 0.8rem/1 var(--display);
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.bar i {
  display: grid;
  place-items: center;
  height: 100%;
}

/* the first cell of each beat carries the beat line */
.bar i:nth-of-type(4n + 1) {
  border-left: 1px solid var(--rule);
}

.bar i::after {
  content: "";
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
}

.bar i.in::after {
  background: var(--hit-in);
}
.bar i.off::after {
  background: var(--hit-off);
}
.bar i.miss::after {
  box-shadow: inset 0 0 0 2px var(--ink-soft);
}

.bar-score {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 0.6rem;
  font: 600 1rem/1 var(--display);
  color: var(--ink-soft);
}

.bar-score strong {
  font-size: 1.6rem;
  color: var(--hit-in);
}

.caption {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.key-in,
.key-off {
  font-weight: 700;
}
.key-in {
  color: var(--hit-in);
}
.key-off {
  color: var(--hit-off);
}

/* ---- what it does ---- */

.does {
  margin: 4.5rem 0 0;
}

.does dl {
  margin: 0;
}

.does dt {
  font: 700 1.3rem/1.2 var(--display);
  margin-top: 1.75rem;
}

.does dd {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
}

/* ---- the signup block ---- */

.beta {
  margin: 5rem calc(-1 * var(--gutter)) 0;
  padding: 3rem var(--gutter);
  background: var(--stage-deep);
  border-top: 3px solid var(--brass);
}

label {
  display: block;
  font: 700 1.15rem/1.3 var(--display);
  margin-bottom: 0.6rem;
}

.field {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

input[type="email"] {
  flex: 1 1 16rem;
  min-width: 0;
  font: inherit;
  font-size: 1.05rem;
  padding: 0.7rem 0.85rem;
  color: var(--ink);
  background: var(--stage);
  border: 1px solid var(--rule);
  border-radius: 4px;
}

input[type="email"]::placeholder {
  color: #7d7aa0;
}

button {
  flex: 0 0 auto;
  font: 700 1.1rem/1 var(--display);
  padding: 0.8rem 1.3rem;
  color: var(--stage-deep);
  background: var(--brass);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background: var(--ink);
}

button:active {
  background: var(--brass-deep);
}

/* The honeypot. Off-screen, never display:none, and not named
   "website" — hitchpost/docs/LIST.md § The form contract. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.fine {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---- list pages: one message, maybe a form ---- */

.note {
  margin-top: 1rem;
}

.note h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  max-width: 16ch;
}

.note form {
  margin-top: 2rem;
}

.keep {
  font-family: var(--display);
  font-weight: 600;
  word-break: break-all;
}

/* ---- footer ---- */

.foot {
  margin-top: 4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.foot p {
  margin: 0 0 0.4rem;
}

@media (max-width: 34rem) {
  .bar li {
    grid-template-columns: 1.8rem repeat(16, 1fr);
    height: 1.7rem;
  }
  .bar i::after {
    width: 0.55rem;
    height: 0.55rem;
  }
  button {
    flex: 1 1 100%;
  }
}
