:root {
  color-scheme: light;
  --ink: #252328;
  --muted: #68636c;
  --accent: #b73548;
  --accent-dark: #94253a;
  --line: #e9deda;
  --paper: #f8f0ed;
  --white: #fff;
  font: 1rem/1.5 "Instrument Sans", "Segoe UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; text-underline-offset: .2em; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .6; }
:focus-visible { outline: 3px solid #277f82; outline-offset: 4px; }
h1, h2, p { margin: 0; }
.wrap { width: min(62rem, calc(100% - 2.5rem)); margin-inline: auto; }
.masthead { background: #fffbf9; border-bottom: 1px solid var(--line); }
.topbar { display: flex; align-items: center; justify-content: space-between; padding-block: .9rem; font-size: .875rem; }
.wordmark { display: flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 750; }
.wordmark span { color: var(--accent); font-size: 1.2rem; }
.cover { width: 100%; height: auto; display: block; border-radius: 1rem; background: #10182a; }
.profile { display: flex; align-items: center; gap: 1rem; padding: 1rem 0 1.5rem; }
.avatar { display: block; flex: 0 0 auto; width: 4.5rem; height: 4.5rem; object-fit: cover; border-radius: 50%; background: #235854; }
.identity { min-width: 0; }
.identity h1 { font-size: 1.45rem; line-height: 1.2; }
.identity p { color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }
.primary { border: 0; border-radius: 100px; background: var(--accent); color: var(--white); font-weight: 700; padding: .72rem 1.25rem; }
.primary:hover:not(:disabled) { background: var(--accent-dark); }
.donate-button {
  display: inline-grid;
  place-items: center;
  padding-block: calc(.72rem - 1px) calc(.72rem + 1px);
  background: #7dd3f6;
  color: #12334a;
  text-align: center;
}
.donate-button:hover:not(:disabled) { background: #60c2ed; }
.header-tip { min-width: 8rem; margin-left: auto; }
.columns { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1rem; padding-top: 1.15rem; padding-bottom: 3rem; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: 1rem; background: var(--white); padding: clamp(1rem, 3vw, 1.45rem); }
.panel h2 { font-size: 1.125rem; font-weight: 750; }
.about p { color: var(--muted); margin: .6rem 0 .9rem; }
.project-link { color: var(--accent-dark); font-weight: 650; }
.checkout { scroll-margin: 1rem; }
.checkout-heading { display: flex; gap: .7rem; justify-content: space-between; align-items: center; }
.mode {
  display: inline-grid;
  place-items: center;
  min-height: 1.45rem;
  padding: 0 .6rem 2px;
  border-radius: 100px;
  background: #f8ecdf;
  color: #725022;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}
form label { display: block; font-weight: 650; font-size: .9rem; margin-bottom: .35rem; }
form label small { color: var(--muted); font-weight: 400; margin-left: .35rem; }
.donation-frequency { margin: .85rem 0; padding: .42rem .8rem; border-radius: 100px; background: #eeecea; text-align: center; font-size: .9rem; font-weight: 700; }
.donation-picker { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .8rem; }
.donation-unit, .donation-quantity { display: flex; align-items: center; gap: .4rem; }
.donation-unit { font-size: .9rem; }
.donation-unit img { object-fit: contain; }
.donation-quantity button, .donation-quantity output { display: grid; place-items: center; min-height: 2.75rem; border-radius: 100px; }
.donation-quantity button { position: relative; width: 2.75rem; border: 0; background: #d9f2fc; color: #12334a; font-size: 0; }
.donation-quantity button::before, #increase-quantity::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: .7rem;
  height: 2px;
  border-block-start: 2px solid currentColor;
  border-radius: 1px;
  pointer-events: none;
}
#increase-quantity::after { transform: rotate(90deg); }
.donation-quantity button:first-child, .donation-quantity button:disabled { background: #eeecea; }
.donation-quantity button:hover:not(:disabled) { background: #bde7f8; }
.donation-quantity output {
  min-width: 3.7rem;
  padding-inline: .65rem;
  padding-block-end: 2px;
  background: #eeecea;
  border: 1px solid #d7cfcd;
  font-size: .9rem;
  line-height: 1;
  text-align: center;
}
.money, textarea, .field, .field-example { border: 1px solid #d7cfcd; border-radius: .55rem; background: #fffcfb; }
.money, #note { background: #eeecea; }
.money { display: flex; align-items: center; gap: .6rem; padding: .5rem .75rem; margin-bottom: 1rem; }
.money:focus-within { outline: 2px solid #277f82; outline-offset: 2px; }
.money span:last-child { font-size: .75rem; color: var(--muted); }
.money input { min-width: 0; width: 100%; border: 0; background: transparent; outline: 0; font-weight: 650; }
textarea { display: block; width: 100%; padding: .68rem .75rem; resize: vertical; }
.wide { width: 100%; margin-top: .95rem; }
.summary { display: flex; justify-content: space-between; gap: .5rem; padding-block: .8rem 1rem; color: var(--muted); }
.summary strong { color: var(--ink); }
.method { width: 100%; min-height: 3rem; border: 0; border-radius: .5rem; font-weight: 750; }
.wallet { background: #ffc43a; color: #1e365c; }
.card { background: #292d32; color: #fff; margin-top: .6rem; }
.method:hover { filter: brightness(.94); }
.provider { color: var(--muted); font-size: .84rem; margin-top: .9rem; }
.text-button { border: 0; background: transparent; padding: .20rem 0; margin-top: .75rem; text-decoration: underline; text-underline-offset: .18em; }
#card-section { padding-top: .75rem; }
.field, .field-example { min-height: 3rem; margin-top: .5rem; }
.field-example { color: var(--muted); padding: .7rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .45rem; }
.feedback:not(:empty) { margin-top: 1rem; padding: .7rem .85rem; background: #f7f1e6; color: #51402f; border-radius: .55rem; font-size: .9rem; }
@media (max-width: 42rem) {
  .wrap { width: calc(100% - 1.5rem); }
  .columns { grid-template-columns: 1fr; }
  .checkout { grid-row: 1; }
  .avatar { width: 3.25rem; height: 3.25rem; }
  .profile { gap: .7rem; }
  .header-tip { min-width: auto; padding-inline: 1rem; }
}
