/* Fromwhere: the card's own design, on a page. Iowan Old Style (on every
   Apple device, with book faces after it), the card's paper and ink, the
   band's green and the route's orange. */
:root {
  --paper: #f8f7f3;
  --ink: #262c2b;
  --muted: #6f685b;
  --rule: rgba(150, 140, 120, 0.55);
  --green: #0d261a;
  --orange: #c95a10;
  --field: #fffdf8;
  --edge: #948b7b;   /* a field's border: 3.3:1 on the field, as inputs need */
  --serif: "Iowan Old Style", "Iowan", "Palatino", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.55 var(--serif);
}

.top {
  max-width: 760px;
  margin: 0 auto;
  padding: 22px 20px 0;
}

.mark {
  font-size: 19px;
  letter-spacing: 0.01em;
  color: var(--green);
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

h1 {
  font-weight: normal;
  font-size: clamp(30px, 6.4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 46px 0 18px;
  max-width: 16em;
}

h2 {
  font-weight: normal;
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 10px;
}

p { margin: 0 0 14px; max-width: 34em; }

.intro p { font-size: 19px; }

/* the card, both sides */
.cards {
  margin: 40px 0 46px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card {
  display: block;
  background: #fff;
  box-shadow: 0 1px 2px rgba(60, 50, 30, 0.10), 0 14px 34px -18px rgba(60, 50, 30, 0.45);
}

.card img {
  display: block;
  width: 100%;
  height: auto;
}

.cards figcaption {
  grid-column: 1 / -1;
  font-style: italic;
  font-size: 16px;
  color: var(--muted);
  max-width: 36em;
}

.plain, .join {
  border-top: 1px solid var(--rule);
  padding-top: 26px;
  margin-bottom: 40px;
}

/* the sign-up, set like the card's ruled list */
form {
  margin-top: 18px;
  max-width: 26em;
}

label {
  display: block;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 16px;
}

input, select {
  display: block;
  width: 100%;
  margin-top: 5px;
  font: 18px/1.3 var(--serif);
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--edge);
  border-radius: 3px;
  padding: 10px 12px;
  min-height: 46px;
}

input:focus, select:focus, button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

button {
  font: 18px/1 var(--serif);
  color: #fff;
  background: var(--green);
  border: 0;
  border-radius: 3px;
  padding: 14px 22px;
  min-height: 48px;
  cursor: pointer;
}

button[disabled] { opacity: 0.6; cursor: progress; }

.status { margin-top: 14px; min-height: 1.5em; }
.status[data-state="ok"] { color: var(--green); }
.status[data-state="error"] { color: #a33a1c; }

.foot {
  max-width: 760px;
  margin: 0 auto;
  padding: 26px 20px 48px;
  border-top: 1px solid var(--rule);
  font-size: 15px;
  color: var(--muted);
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .cards { gap: 10px; margin: 30px 0 36px; }
  h1 { margin-top: 34px; }
}
