:root {
  color-scheme: light dark;
  --bg: #f8f7f4;
  --fg: #252521;
  --mute: #696962;
  --line: #d8d8d0;
  --accent: #a84428;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #191a18;
    --fg: #eeeee7;
    --mute: #a5a59b;
    --line: #3d3e37;
    --accent: #e59877;
  }
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(32px, 7vw, 96px) 24px 80px;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.75 system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: .25em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
h1, h2 { line-height: 1.15; }
h1 { margin: 0 0 32px; font-size: clamp(36px, 5vw, 54px); font-weight: 600; letter-spacing: -.045em; text-wrap: balance; }
h2 { margin: 48px 0 16px; font-size: 23px; font-weight: 600; letter-spacing: -.025em; }
p { margin: 0 0 20px; }
nav { margin-bottom: 48px; font-size: 14px; color: var(--mute); }
article { max-width: 65ch; }
.home header { padding: 16px 0 80px; }
.home h1 { margin-bottom: 24px; font-size: clamp(64px, 10vw, 104px); letter-spacing: -.065em; }
.home h1 span { color: var(--accent); }
.contacts { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; color: var(--mute); }
.home h2 { margin: 0 0 24px; color: var(--mute); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.posts { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.posts li { border-bottom: 1px solid var(--line); }
.posts a { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 24px 0; font-size: 20px; line-height: 1.45; letter-spacing: -.02em; text-decoration: none; }
.posts a span { color: var(--mute); }
@media (max-width: 480px) {
  .home header { padding-bottom: 64px; }
  .posts a { font-size: 18px; }
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 24px 0;
  border-radius: 2px;
}

/* Donation cards share the site's palette and typography. */
.donate { max-width: 1120px; }
.donate nav { margin-bottom: 32px; }
.donate nav a, .donation-networks a { display: inline-flex; align-items: center; min-height: 44px; }
.donate h1 { margin-bottom: 16px; }
.donate-intro { color: var(--mute); margin-bottom: 32px; }
.donation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.donation {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 24px;
  border-radius: 24px;
  background: light-dark(#fff, #242521);
}
.donation h2 { margin: 0; font-size: 22px; }
.donation p { margin: 0; }
.donation p:not(.wallet-address):not(.copy-status) { color: var(--mute); font-size: 14px; }
.donation-quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 24px; }
.donation-grid, .donation-quick { gap: 16px 24px; }
.donation-grid .donation, .donation-quick .donation { grid-template-rows: subgrid; }
.donation-grid .donation { grid-row: span 3; }
.donation-quick .donation { grid-row: span 4; }
.donation-action { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: 4px; }
.tribute .donation-button { width: 100%; }
.donation-icon { width: 24px; height: 24px; flex-shrink: 0; vertical-align: -.2em; margin-right: 8px; }
.tribute .donation-networks { text-align: center; }
button, .donation-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 20px; border: 0; border-radius: 12px;
  background: var(--fg); color: var(--bg); font: 600 15px/1.5 system-ui, sans-serif;
  text-decoration: none; cursor: pointer;
}
.donation-button { background: #a84428; color: #fff; }
button:hover { opacity: .85; color: var(--bg); }
.donation-button:hover { background: #91391f; color: #fff; }
button:focus-visible, .donation-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.donation .copy-button {
  width: 44px; height: 44px; min-height: 44px;
  padding: 12px; background: transparent; color: var(--mute);
}
.copy-button:hover { background: var(--bg); color: var(--fg); opacity: 1; }
.copy-button svg { width: 20px; height: 20px; }
.check-glyph, .copied .copy-glyph { display: none; }
.copied .check-glyph { display: inline; }
.donation-action .copy-status { grid-column: 1 / -1; }
.donation-grid .donation-qr { grid-row: 3; }
.wallet-address { overflow-wrap: anywhere; word-break: break-all; font: 13px/1.7 ui-monospace, monospace; user-select: all; }
.donation .copy-status { font-size: 14px; }
.copy-status:empty { display: none; }
.donation-qr { color-scheme: light; width: 100%; max-width: 246px; margin: 0 auto; padding: 8px; border-radius: 16px; background: white; }
@media (max-width: 800px) {
  .donation-grid, .donation-quick { grid-template-columns: 1fr; gap: 24px; }
  .donation-grid .donation, .donation-quick .donation { grid-row: auto; grid-template-rows: none; }
}
