/*
  ========================================
  QUEER DONORS - "POISED & PERSONAL" THEME (FINAL w/ IMAGE SUPPORT)
  ========================================
*/
:root{
  /* Colors */
  --bg: #FDFCFB;
  --surf: #ffffff;
  --ink: #282828;
  --muted: #6a6a6a;
  --primary: #136f63;
  --accent: #D98383;
  --line: #EFEBE8;
  --shadow-color: rgba(40, 40, 40, .07);

  /* Layout */
  --radius: 12px;
  --shadow: 0 4px 20px var(--shadow-color);
  --max: 64rem;
  --gutter: 1.5rem;
  --stack: 1.25rem;

  /* Type */
  --font: "Inter", "SF Pro", "Segoe UI", "Roboto", -apple-system, system-ui, sans-serif;
  --serif: "Lora", "Iowan Old Style", Georgia, Times, serif;
  --lh: 1.7;
  --h1: clamp(2.25rem, 6vw, 3.25rem);
  --h2: clamp(1.5rem, 4vw, 2rem);
  --h3: clamp(1.2rem, 3.5vw, 1.375rem);

  /* Motion */
  --duration: 200ms;
  --easing: ease-out;
}

*, *::before, *::after { box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/var(--lh) var(--font);
  -webkit-font-smoothing: antialiased;
}

/*
  Scaffolding & Brand
*/
.skip-link { position: absolute; top: -100px; left: 1rem; background: var(--surf); padding: 0.5rem 1rem; z-index: 100; transition: top 0.3s; border: 1px solid var(--line); border-radius: var(--radius); }

.site-header{
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(253, 252, 251, .85);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding-block: 1rem;
}
.header-content { display: flex; align-items: center; justify-content: space-between; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.brand { font-family: var(--serif); font-weight: 500; font-size: 1.375rem; text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; gap: 0.25em; }
.brand::after { content: ''; display: block; width: 0.3em; height: 0.3em; background-color: var(--accent); border-radius: 99px; margin-top: 0.1em; }

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { display: inline-block; }

/*
  Layout Primitives
*/
.container { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.stack > * + * { margin-top: var(--stack); }
.cluster { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.center { text-align: center; }
.mw-sm { max-width: 42rem; margin-inline: auto; }

/*
  Typography
*/
h1, h2, h3 { font-weight: 500; text-wrap: balance; font-family: var(--serif); line-height: 1.2; }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
a { color: var(--primary); text-decoration: none; transition: color var(--duration) ease; }
a:hover { color: var(--accent); text-decoration: underline; }
.lede { color: var(--muted); font-size: 1.125rem; max-width: 55ch; margin-inline: auto; }
.small { font-size: 0.95rem; color: var(--muted); }
.kicker { font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-family: var(--font); font-weight: 600; }
.h1-accent { background-image: linear-gradient(var(--accent), var(--accent)); background-position: 0% 100%; background-repeat: no-repeat; background-size: 100% 4px; padding-bottom: 2px; }

/*
  Components
*/
.section { padding-block: clamp(3rem, 10vw, 6rem); }
.hero { padding-block: clamp(2rem, 8vw, 4rem); }

.btn { display: inline-block; padding: .9rem 2rem; border-radius: var(--radius); font-weight: 600; text-decoration: none; border: 1px solid var(--line); background: var(--surf); color: var(--ink); transition: transform var(--duration) var(--easing), box-shadow var(--duration) var(--easing); }
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 4px 15px rgba(19, 111, 99, .2); }
.btn-primary:hover { color: #fff; box-shadow: 0 7px 25px rgba(19, 111, 99, .25); }
.btn-secondary { background: var(--surf); color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: var(--surf); color: var(--accent); border-color: var(--accent); }

.card-grid { display: grid; gap: var(--gutter); }
@media (min-width: 768px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

/* CORRECTED CARD STYLES */
.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px var(--shadow-color);
  text-decoration: none;
  color: var(--ink);
  overflow: hidden; /* This is crucial for the image border-radius */
}

.card-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover; /* This prevents the image from distorting */
}

.card-content {
  padding: clamp(1.25rem, 4vw, 1.75rem);
  flex-grow: 1; /* This makes cards in a row equal height */
}
/* END CORRECTED CARD STYLES */

.promo-box { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.promo-box-title { color: var(--primary); }

.main-nav ul { display: flex; list-style: none; gap: 1.5rem; margin: 0; padding: 0; }
.main-nav a { font-weight: 500; text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--accent); }

/*
  Accessibility & Motion
*/
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce){ *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }