/* The Tony Rose Rangers
   Typography-led by design: NN/g eyetracking shows users ignore decorative stock
   photography of generic people. Until real photographs of the board exist,
   no images beats stock images. Type does the work.

   Palette: ink/bone/ember. Deliberately not purple — the melanoma-awareness
   default that makes every charity in this category look like the same charity.
   Ember has a darkened sibling (--clay) because a single warm mid-tone cannot
   pass 4.5:1 on both a dark band and a light ground. */

:root {
  --ink-900: #101613;
  --ink-800: #16201C;
  --ink-700: #1F2C26;
  --ink-600: #33453C;
  --bone: #FBF8F3;
  --bone-2: #F2ECE1;
  --rule: #DDD3C3;
  --rule-dark: #2C3B34;

  --body: #1A241F;
  --muted: #4C5C54;          /* 7.1:1 on bone */
  --muted-dark: #B9C8C0;     /* 8.4:1 on ink-800 */

  --ember: #E8A33D;          /* dark bands only */
  --clay: #8A4B18;           /* 6.0:1 on bone — light grounds */
  --clay-hi: #6B3A12;

  --step--1: clamp(0.86rem, 0.84rem + 0.1vw, 0.92rem);
  --step-0: clamp(1.06rem, 1.02rem + 0.2vw, 1.19rem);
  --step-1: clamp(1.33rem, 1.24rem + 0.4vw, 1.6rem);
  --step-2: clamp(1.66rem, 1.5rem + 0.75vw, 2.2rem);
  --step-3: clamp(2.07rem, 1.8rem + 1.3vw, 3rem);
  --step-4: clamp(2.6rem, 2.1rem + 2.4vw, 4.2rem);
  --step-5: clamp(3rem, 2.2rem + 4vw, 6rem);

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 48px; --s6: 64px; --s7: 96px; --s8: 144px;

  --wrap: 1220px;
  --measure: 64ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--body);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .disp {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-variation-settings: "SOFT" 30, "WONK" 1;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0 0 var(--s3); max-width: var(--measure); }
a { color: var(--clay); text-underline-offset: 3px; }
a:hover { color: var(--clay-hi); }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 2px; }
ul { margin: 0 0 var(--s3); padding-left: 1.15em; }
li { margin-bottom: var(--s1); }

.wrap { width: min(100% - var(--s4), var(--wrap)); margin-inline: auto; }
@media (min-width: 900px) { .wrap { width: min(100% - var(--s7), var(--wrap)); } }

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: var(--s2); top: var(--s2); z-index: 200;
  background: var(--ink-800); color: var(--bone); padding: var(--s2) var(--s3);
}

/* ---------- masthead: help + donate co-equal, same position sitewide
              (WCAG 2.2 SC 3.2.6 Consistent Help) ---------- */
.masthead { border-bottom: 1px solid var(--rule); background: var(--bone); }
.masthead .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--s2) var(--s4); padding: var(--s3) 0;
}
.mark {
  display: inline-flex; align-items: center; gap: 12px; margin-right: auto;
  color: var(--ink-900); text-decoration: none; line-height: 1;
}
.mark-badge {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--ink-900); border-radius: 50%;
  font: 700 10px/1 "IBM Plex Sans", sans-serif; letter-spacing: .14em;
  position: relative;
}
.mark-badge::after {
  content: ""; position: absolute; inset: 4px; border: 1px solid var(--rule);
  border-radius: 50%;
}
.mark-name { display: grid; gap: 4px; font-family: "Fraunces", Georgia, serif; font-size: 18px; }
.mark b { font-weight: 400; }
.mark i {
  font: 700 9px/1 "IBM Plex Sans", sans-serif; letter-spacing: .24em;
  text-transform: uppercase; color: var(--clay);
}
.nav {
  display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4);
  align-items: center; min-width: 0;
}
/* Below the desktop breakpoint the nav takes its own row and the two
   header actions share the next one, so "Get Support" is never pushed
   off-screen. Help and Donate stay co-equal at every width. */
@media (max-width: 899px) {
  .masthead .wrap { gap: var(--s2); }
  .mark { margin-right: 0; flex: 1 1 auto; }
  .nav { order: 3; width: 100%; gap: var(--s1) var(--s3); }
  .acts { order: 2; }
  .acts .btn { padding: 0 var(--s2); }
}
@media (max-width: 460px) {
  .acts { width: 100%; }
  .acts .btn { flex: 1 1 auto; }
}
.nav a {
  color: var(--ink-800); text-decoration: none; font-size: var(--step--1);
  font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  display: inline-flex; align-items: center; min-height: 44px;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a:focus-visible { border-bottom-color: var(--clay); }
.acts { display: flex; gap: var(--s2); flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 var(--s3);
  font-family: inherit; font-size: var(--step--1); font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  border: 2px solid transparent; border-radius: 2px; cursor: pointer;
  transition: background-color .18s ease-out, color .18s ease-out, border-color .18s ease-out;
}
.btn-solid { background: var(--clay); color: #fff; }
.btn-solid:hover { background: var(--clay-hi); color: #fff; }
.btn-line { border-color: var(--ink-700); color: var(--ink-800); }
.btn-line:hover { background: var(--ink-800); color: var(--bone); }
.on-dark .btn-line { border-color: #7E9488; color: var(--bone); }
.on-dark .on-dark-hover:hover, .on-dark .btn-line:hover { background: var(--bone); color: var(--ink-900); }
.btn-lg { min-height: 56px; padding: 0 var(--s4); font-size: var(--step-0); }

/* ---------- hero ---------- */
.hero {
  padding: var(--s8) 0 var(--s7); border-bottom: 1px solid var(--rule);
  position: relative; overflow: hidden;
  background-image:
    repeating-radial-gradient(ellipse at 92% 18%, transparent 0 42px, rgba(31,44,38,.055) 43px 44px, transparent 45px 70px);
}
.hero::before {
  content: ""; position: absolute; left: 0; top: var(--s5); width: 5px; height: 190px;
  background: var(--clay);
}
.hero-grid { display: grid; gap: var(--s6); }
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr); gap: var(--s7); align-items: end; }
}
.hero-copy { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(3.4rem, 6.8vw, 6.8rem); max-width: 12ch; margin-bottom: var(--s4); }
.hero h1 i { font-style: italic; color: var(--clay); }
.hero .sub {
  font-size: var(--step-1); line-height: 1.45; color: var(--ink-700);
  max-width: 46ch; margin-bottom: var(--s5);
}
.hero .acts { gap: var(--s2); }
.hero .acts .btn { flex: 1 1 15rem; }
.place {
  font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 var(--s4); display: flex; align-items: center; gap: var(--s2);
}
.place span { color: var(--clay); }
.place::before { content: ""; width: 32px; height: 2px; background: var(--clay); }

/* facts rail — melanoma facts, sourced. NOT org outcomes. */
.facts {
  border: 1px solid var(--ink-900); padding: var(--s3); background: rgba(251,248,243,.92);
  box-shadow: 10px 10px 0 var(--bone-2); position: relative; z-index: 1;
}
.brief-head {
  display: flex; justify-content: space-between; gap: var(--s2); padding-bottom: var(--s2);
  margin-bottom: var(--s3); border-bottom: 1px solid var(--ink-900);
}
.brief-head p, .brief-head span {
  margin: 0; font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.brief-head p { color: var(--clay); }
.brief-head span { color: var(--muted); }
.facts h2 {
  font-family: "Fraunces", Georgia, serif; font-size: var(--step-1); font-weight: 400;
  letter-spacing: -.01em; text-transform: none; color: var(--ink-900);
  margin-bottom: var(--s3);
}
.fact { padding: var(--s3) 0; border-bottom: 1px solid var(--rule); }
.fact b {
  display: block; font-family: "Fraunces", Georgia, serif; font-weight: 400;
  font-size: var(--step-2); line-height: 1; color: var(--ink-900); margin-bottom: 6px;
  font-variation-settings: "SOFT" 30, "WONK" 1;
}
.fact span { font-size: var(--step--1); color: var(--muted); line-height: 1.45; display: block; }
.src { font-size: 11px; color: var(--muted); margin: var(--s3) 0 0; max-width: none; }

/* ---------- sections ---------- */
section { padding: var(--s7) 0; }
.tint { background: var(--bone-2); }
.dark { background: var(--ink-800); color: var(--bone); }
.dark h2, .dark h3 { color: var(--bone); }
.dark p, .dark li { color: var(--muted-dark); }
.dark a { color: var(--ember); }

.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 var(--s3);
}
.dark .eyebrow { color: var(--ember); }
.lead-h { font-size: var(--step-3); margin-bottom: var(--s3); max-width: 20ch; }
.lead-h i { font-style: italic; color: var(--clay); }
.dark .lead-h i { color: var(--ember); }
.intro { font-size: var(--step-1); line-height: 1.5; color: var(--ink-700); max-width: 52ch; }
.dark .intro { color: var(--muted-dark); }
.head { margin-bottom: var(--s6); }

/* three ways */
.ways { display: grid; gap: 0; border-top: 2px solid var(--ink-900); }
.way {
  display: grid; grid-template-columns: 3rem 1fr; gap: var(--s3); padding: var(--s4) 0;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 820px) {
  .way { grid-template-columns: 4rem minmax(12rem, .7fr) minmax(20rem, 1.3fr); align-items: baseline; }
  .way p { grid-column: 3; }
}
.way .n {
  font-family: "Fraunces", Georgia, serif; font-size: var(--step--1);
  letter-spacing: .1em; color: var(--clay); display: block; margin-bottom: var(--s2);
}
.way h3 { font-size: var(--step-2); margin: 0; }
.way p { color: var(--muted); margin: 0; grid-column: 2; max-width: 48ch; }

/* flagship spec list */
.spec { display: grid; gap: 0; margin-top: var(--s5); }
.spec div {
  display: grid; gap: var(--s1); padding: var(--s3) 0;
  border-top: 1px solid var(--rule-dark);
}
@media (min-width: 760px) { .spec div { grid-template-columns: 15rem 1fr; gap: var(--s4); } }
.spec dt {
  font-size: 11px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ember);
}
.spec dd { margin: 0; color: var(--muted-dark); }
.spec dd a { display: inline-flex; align-items: center; min-height: 44px; }

/* board */
.board { border-top: 2px solid var(--ink-900); }
.person {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: baseline; gap: var(--s1) var(--s3);
  padding: var(--s3) 0; border-bottom: 1px solid var(--rule);
}
.person b { font-size: var(--step-1); font-weight: 600; font-family: "IBM Plex Sans", sans-serif; }
.person span {
  font-size: var(--step--1); color: var(--muted); text-transform: uppercase;
  letter-spacing: .08em; font-weight: 600;
}

/* money split */
.split { display: grid; gap: var(--s5); }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: var(--s7); } }
.section-subhead { font-size: var(--step-1); margin-bottom: var(--s3); }
.muted-list, .muted-copy { color: var(--muted); }
.story-pullquote {
  font-family: "Fraunces", Georgia, serif; font-size: var(--step-2); line-height: 1.25;
  font-style: italic; color: var(--ink-700); border-left: 3px solid var(--clay);
  padding-left: var(--s3); max-width: none;
}
.policy-title { max-width: 24ch; }
.policy-intro { margin-bottom: var(--s6); }
.policy-heading { font-size: var(--step-2); margin: var(--s6) 0 var(--s3); }
.policy-heading.first { margin-top: 0; }
.no-margin { margin-bottom: 0; }

/* footer */
.foot { background: var(--ink-900); color: var(--muted-dark); padding: var(--s7) 0 var(--s5); }
.foot a { color: var(--ember); }
.foot a:hover { color: var(--bone); }
.foot-grid { display: grid; gap: var(--s5); margin-bottom: var(--s6); }
@media (min-width: 820px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: var(--s6); } }
.foot h3 {
  font-family: "IBM Plex Sans", sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--bone); margin: 0 0 var(--s3);
}
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: var(--s2); }
.foot li a { display: inline-flex; align-items: center; min-height: 44px; }
.foot p { font-size: var(--step--1); max-width: 42ch; }
.legal {
  border-top: 1px solid #263A31; padding-top: var(--s4);
  font-size: var(--step--1); line-height: 1.65;
}
.legal p { max-width: 78ch; margin-bottom: var(--s2); color: #96A9A0; }
.legal-plain { border-top: 0; padding-top: 0; }

@media (max-width: 899px) {
  .masthead .wrap { align-items: flex-start; }
  .nav { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: var(--s3); padding-top: var(--s1); }
  .nav a { white-space: nowrap; }
  .masthead > .wrap > .acts { margin-left: auto; }
  /* Get Support stays visible at every width. Mobile is over half of traffic
     and includes the people this organization exists for; hiding the help
     door and leaving only Donate inverts the site's whole premise.
     WCAG 2.2 SC 3.2.6 also wants help offered consistently across pages. */
}

@media (max-width: 560px) {
  .masthead .wrap { padding: var(--s2) 0; }
  .mark-name { font-size: 16px; }
  .masthead > .wrap > .acts { width: 100%; margin-left: 0; }
  .masthead > .wrap > .acts .btn {
    min-height: 44px; padding-inline: var(--s2);
    flex: 1 1 0; font-size: 0.8rem; letter-spacing: .04em;
  }
  .hero { padding: var(--s6) 0 var(--s7); }
  .hero::before { top: var(--s4); height: 120px; width: 3px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.6rem); }
  .hero .acts { display: grid; }
  .hero .acts .btn { width: 100%; }
  .facts { box-shadow: 6px 6px 0 var(--bone-2); }
}
