/* The Indie Only Foundation's donation page, /donate. The colors and type are
   the foundation's own site's, not this site's: its blue, its light gray,
   black, Arial Black headings and pill buttons. The page loads this sheet
   alone. */

:root {
  --iof-blue: #7e9cc8;
  --iof-blue-deep: #5f7fb0;
  --iof-gray: #f4f4f4;
  --iof-ink: #000000;
  --iof-text: #474742;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--iof-gray);
  color: var(--iof-ink);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}

h1, h2, h3 {
  margin: 0;
  font-family: "Arial Black", "Arial Bold", Arial, sans-serif;
  font-weight: 900;
  line-height: 1.15;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--iof-ink);
  outline-offset: 3px;
}

.donate-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: var(--iof-ink);
}

.donate-top :focus-visible { outline-color: #ffffff; }

.donate-logos {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.donate-logos a { display: block; line-height: 0; }

.donate-logo {
  display: block;
  width: auto;
  max-width: 44vw;
  height: 3.5rem;
  object-fit: contain;
}

.donate-logo-dkm {
  padding-left: 1.25rem;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.donate-return {
  padding: 0.6rem 1.4rem;
  border: 1px solid #ffffff;
  border-radius: 100px;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.donate-return:hover {
  background: #ffffff;
  color: var(--iof-ink);
}

.donate-band {
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1rem, 4vw, 3rem);
  background: var(--iof-blue);
  color: #ffffff;
  text-align: center;
}

.donate-band h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  text-transform: uppercase;
}

.donate-band p {
  max-width: 42rem;
  margin: 1.25rem auto 0;
  font-size: 1.05rem;
}

.donate-band .donate-signed {
  font-family: "Arial Black", "Arial Bold", Arial, sans-serif;
  font-weight: 900;
}

.donate-main {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3rem) 1rem 4rem;
}

.donate-message {
  margin: 0 0 1.5rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--iof-ink);
  border-radius: 12px;
  background: #ffffff;
  font-weight: 600;
}

.donate-thanks { font-weight: 400; }

.donate-thanks p { margin: 0.75rem 0 0; }

.donate-thanks .donate-thanks-heading {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.donate-message.is-error { border-color: #a4262c; color: #a4262c; }

.donate-panel {
  margin: 0 0 1.75rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--iof-ink);
  border-radius: 16px;
  background: rgba(126, 156, 200, 0.1);
}

.donate-panel h2 { font-size: 1.5rem; }

.donate-panel > p {
  margin: 0.6rem 0 0;
  color: var(--iof-text);
}

.donate-amounts {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0 0;
  padding: 0;
  border: 0;
}

.donate-amounts legend {
  margin-bottom: 0.75rem;
  padding: 0;
}

.donate-amounts label { position: relative; display: block; cursor: pointer; }

.donate-amounts input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

/* A level is a row: its name on the left, its amount on the right. */
.donate-levels-head,
.donate-level {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.1rem;
}

.donate-levels-head {
  color: var(--iof-text);
  font-size: 0.85rem;
  font-weight: 600;
}

.donate-level {
  padding-block: 0.9rem;
  border: 2px solid transparent;
  border-radius: 6px;
  background: #ffffff;
  font-size: 1.05rem;
}

.donate-level-words { min-width: 0; }

.donate-level-name,
.donate-level-blurb { display: block; }

.donate-level-name { font-weight: 600; }

.donate-level-blurb {
  margin-top: 0.2rem;
  color: var(--iof-text);
  font-size: 0.9rem;
  line-height: 1.4;
}

.donate-amounts input:checked + .donate-level .donate-level-blurb { color: inherit; }

.donate-level-price {
  margin-left: auto;
  font-family: "Arial Black", "Arial Bold", Arial, sans-serif;
  font-size: 1.15rem;
}

.donate-amounts input:hover + .donate-level { border-color: var(--iof-blue); }

.donate-amounts input:checked + .donate-level {
  border-color: var(--iof-ink);
  background: var(--iof-blue);
  color: #ffffff;
}

.donate-amounts input:focus-visible + .donate-level {
  outline: 3px solid var(--iof-ink);
  outline-offset: 3px;
}

.donate-custom {
  display: block;
  margin-top: 1rem;
}

.donate-custom input {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.85rem 1rem;
  border: 1px solid #b9b9b4;
  border-radius: 6px;
  background: #ffffff;
  color: var(--iof-ink);
  font: inherit;
  font-size: 1.1rem;
}

.donate-button {
  display: block;
  width: 100%;
  margin-top: 1.25rem;
  padding: 0.9rem 1.5rem;
  border: 0;
  border-radius: 100px;
  background: var(--iof-blue);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.donate-button:hover { background: var(--iof-blue-deep); }

/* The lesser action on the page: managing a gift, not giving one. */
.donate-button-quiet {
  border: 1px solid var(--iof-ink);
  background: transparent;
  color: var(--iof-ink);
}

.donate-button-quiet:hover {
  background: var(--iof-ink);
  color: #ffffff;
}

.donate-manage { background: #ffffff; }

.donate-manage h2 { font-size: 1.15rem; }

.donate-panel small {
  display: block;
  margin-top: 0.75rem;
  color: var(--iof-text);
  font-size: 0.85rem;
  text-align: center;
}

.donate-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.donate-plan {
  display: flex;
  flex-direction: column;
  padding: 1.1rem;
  border-radius: 12px;
  background: #ffffff;
}

.donate-plan h3 { font-size: 1.05rem; }

.donate-plan-price {
  margin: 0.5rem 0 0;
  font-family: "Arial Black", "Arial Bold", Arial, sans-serif;
  font-size: 1.7rem;
  line-height: 1.1;
}

.donate-plan-price span {
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem;
  color: var(--iof-text);
}

.donate-plan-blurb {
  margin: 0.6rem 0 0;
  color: var(--iof-text);
  font-size: 0.95rem;
}

.donate-plan .donate-button { margin-top: auto; }

.donate-plan > p:last-of-type { margin-bottom: 1rem; }

.donate-foot {
  margin: 0;
  color: var(--iof-text);
  font-size: 0.9rem;
  text-align: center;
}

.donate-status {
  margin: 0.5rem 0 0;
  color: var(--iof-text);
  font-size: 0.75rem;
  text-align: center;
}
