/* give.therhizomeinstitute.org
   Built on the public site's design system: tokens.css is copied unchanged from
   NChrapliwy/TheRhizomeInstitutePublicSite (src/styles/tokens.css). Base rules mirror its global.css. */
@import url('/assets/tokens.css');

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink-2);
  font: 350 var(--step-0) / 1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }

h1, h2, h3 {
  margin: 0; color: var(--ink); font-family: var(--serif); font-weight: 400; text-wrap: balance;
  font-variation-settings: 'SOFT' var(--soft), 'WONK' 0; font-optical-sizing: auto;
}
h1 { font-size: var(--step-4); line-height: 1.05; font-weight: 300; letter-spacing: -0.012em; }
h2 { font-size: var(--step-2); line-height: 1.2; font-weight: 500; margin-bottom: 0.5rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--gold-3); color: var(--ink); }

.label { display: block; margin: 0 0 var(--s-1); font: 700 0.75rem / 1.3 var(--sans); text-transform: uppercase; letter-spacing: normal; color: var(--ink); }
.lede { font-size: var(--step-1); line-height: 1.5; max-width: 34em; color: var(--ink-2); margin: var(--s-2) 0 0; }

.wrap { width: 100%; max-width: calc(var(--page) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.env-bar { display: grid; grid-template-columns: repeat(4, 1fr); height: 6px; }
.env-bar i:nth-child(1) { background: var(--green); } .env-bar i:nth-child(2) { background: var(--blue); }
.env-bar i:nth-child(3) { background: var(--red); } .env-bar i:nth-child(4) { background: var(--gold); }

.skip { position: absolute; left: -999px; top: 0; z-index: 100; padding: 0.6rem 0.9rem; background: var(--ink); color: var(--paper); }
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* Header */
.site-head { background: var(--paper); border-bottom: 1px solid var(--rule); }
.site-head .bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.9rem; }
.site-head .logo img { width: clamp(8.5rem, 22vw, 10.5rem); height: auto; }
.site-head .back { font: 500 0.9688rem / 1.2 var(--sans); color: var(--ink); text-decoration: none; }
.site-head .back:hover { text-decoration: underline; }

/* Page head */
.page-head { padding-block: var(--s-5) var(--s-4); border-bottom: 1px solid var(--rule); }

/* Giving layout */
.give { display: grid; gap: var(--s-4) var(--s-5); padding-block: var(--s-4) var(--s-6); align-items: start; }
@media (min-width: 60rem) { .give { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }

/* Gift form */
.gift { background: #ffffff; border: 1px solid var(--rule); border-top: 3px solid var(--ink); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); }
fieldset { border: 0; margin: 0 0 var(--s-3); padding: 0; min-width: 0; }
legend { padding: 0; }

.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; }
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt span {
  display: flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0.5rem 0.4rem;
  border: 1px solid var(--rule-2); border-radius: var(--radius); background: var(--paper);
  font: 600 0.9375rem / 1.1 var(--sans); color: var(--ink); text-align: center; cursor: pointer; user-select: none;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.opt input:hover + span { border-color: var(--ink); }
.opt input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.opt input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 3px; }

.other { margin-top: 0.4rem; display: flex; align-items: center; border: 1px solid var(--rule-2); border-radius: var(--radius); background: var(--paper); }
.other:focus-within { border-color: var(--ink); }
.other label { padding: 0 0.3rem 0 0.9rem; font: 600 0.9375rem var(--sans); color: var(--ink); }
.other input { flex: 1; min-width: 0; border: 0; background: transparent; font: 600 0.9375rem / 1.1 var(--sans); color: var(--ink); padding: 0.85rem 0.9rem 0.85rem 0; }
.other input::placeholder { color: var(--ink-2); font-weight: 400; }
.other input:focus { outline: none; }

.check { display: flex; gap: 0.7rem; align-items: flex-start; margin: 0 0 0.9rem; color: var(--ink); }
.check input { width: 1.1rem; height: 1.1rem; margin: 0.25rem 0 0; accent-color: var(--ink); flex: none; }
.check small { display: block; font-size: var(--step--1); color: var(--ink-2); }

.tribute { margin: 0 0 var(--s-2) 1.8rem; display: none; }
.tribute.open { display: block; }
.field { margin-bottom: 0.8rem; }
.field label { display: block; font: 600 0.875rem / 1.3 var(--sans); color: var(--ink); margin-bottom: 0.3rem; }
.field input, .field select, .field textarea {
  width: 100%; font: 350 1rem / 1.4 var(--sans); color: var(--ink); padding: 0.6rem 0.75rem;
  border: 1px solid var(--rule-2); border-radius: var(--radius); background: var(--paper);
}
.field textarea { min-height: 4rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }

.summary { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: var(--s-2); border-top: 1px solid var(--rule); color: var(--ink); }
.summary .total { font-family: var(--serif); font-size: var(--step-3); font-weight: 400; font-variation-settings: 'SOFT' var(--soft), 'WONK' 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; min-height: 3rem; padding: 0.7rem 1.15rem;
  font: 600 1rem / 1.1 var(--sans); text-decoration: none; cursor: pointer;
  color: var(--paper); background: var(--ink); border: 1px solid var(--ink); border-radius: var(--radius);
  transition: background-color 0.15s var(--ease);
}
.btn:hover { background: var(--green); border-color: var(--green); color: var(--paper); }
.btn[disabled] { cursor: wait; }
.btn.block { width: 100%; margin-top: var(--s-2); }

.fine { font-size: var(--step--1); line-height: 1.5; color: var(--ink-2); margin: 0.9rem 0 0; }
.alt { font-size: 0.9375rem; margin: var(--s-3) 0 0; padding-top: var(--s-2); border-top: 1px solid var(--rule); color: var(--ink); }
.error { color: var(--red); font-weight: 600; margin: 0.8rem 0 0; display: none; }
.error.show { display: block; }

/* Other ways to give */
.facts { margin: 0 0 var(--s-2); border-top: 1px solid var(--ink); }
.facts > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: var(--s-2); padding: 0.85rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { font: 700 0.75rem / 1.9 var(--sans); text-transform: uppercase; color: var(--ink); }
.facts dd { margin: 0; color: var(--ink); }
.ways section { padding-block: var(--s-3); border-top: 1px solid var(--rule); }
.ways section:first-child { border-top: 0; padding-top: 0; }
.ways p:last-child { margin-bottom: 0; }
address { font-style: normal; color: var(--ink); }

/* Text pages */
.prose { max-width: var(--measure); padding-block: var(--s-4) var(--s-6); }
.prose h2 { margin-top: var(--s-4); }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 0.4em; }

/* Footer */
.site-foot { background: var(--ink); color: #dccfbe; font-size: 0.9375rem; }
.site-foot .cols { display: grid; gap: var(--s-3) var(--s-5); padding-block: var(--s-5) var(--s-4); }
@media (min-width: 56rem) { .site-foot .cols { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.site-foot img { width: 11.5rem; height: auto; margin-bottom: 1.2rem; }
.site-foot .mission { max-width: 22rem; font-family: var(--serif); font-size: 1.125rem; line-height: 1.4; color: var(--paper); font-variation-settings: 'SOFT' var(--soft), 'WONK' 0; }
.site-foot .disclosure { max-width: 36rem; font-size: var(--step--1); line-height: 1.45; color: #dccfbe; }
.site-foot a { color: var(--paper); }
.site-foot a:hover { color: var(--paper); text-decoration: underline; }
.site-foot .legal { padding-block: 1.2rem 2rem; border-top: 1px solid #4a3b2e; font-size: var(--step--1); color: #b9a892; }
.site-foot .legal p { margin: 0; }
.site-foot .legal a { margin-left: 1.2rem; }

@media (max-width: 26rem) {
  .seg, .chips { grid-template-columns: repeat(2, 1fr); }
}
