/* Camden's Comfort Project: colors carried over from the original site */

/* Fonts: Roboto + Rubik variable fonts, self-hosted (SIL Open Font License) */
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/roboto-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/rubik-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --navy: #114D7F;
  --blue: #3D6FAA;
  --slate: #4E6F8D;
  --ink: #333333;
  --heading: #1f2d3d;
  --muted: #69727D;
  --paper: #FCFCFC;
  --mist: #F3F6FA;
  --tint: #E6EEF7;
  --white: #FFFFFF;
  --pink: #CC3366;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(17, 77, 127, .10);
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 17px/1.65 "Roboto", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
picture > source { display: none; }
a { color: var(--blue); }
h1, h2, h3, h4 {
  font-family: "Rubik", system-ui, sans-serif;
  color: var(--heading);
  line-height: 1.15;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 500; }
p { margin: 0 0 1.1em; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 14px; }

/* Eyebrow + buttons */
.eyebrow {
  display: inline-block;
  font: 500 .8rem/1 "Rubik", sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 1rem/1 "Rubik", sans-serif;
  padding: 15px 26px;
  border-radius: 999px;
  text-decoration: none;
  background: var(--navy);
  color: var(--white);
  border: 2px solid var(--navy);
  transition: transform .15s ease, background .15s ease;
  cursor: pointer;
}
.btn:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { color: var(--white); }
.btn--light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--light:hover { background: var(--tint); border-color: var(--tint); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Top bar + header */
.topbar { background: var(--navy); color: var(--white); font-size: .88rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 0; }
.topbar a { color: var(--white); text-decoration: none; }
.topbar .social { display: flex; gap: 14px; }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 252, 252, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(17, 77, 127, .08);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0; }
.brand img { height: 56px; width: auto; }
.nav ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 10px 14px; border-radius: 999px;
  font: 500 .98rem/1 "Rubik", sans-serif; color: var(--heading); text-decoration: none; white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); background: var(--tint); }
.nav .btn { padding: 12px 22px; margin-left: 8px; color: var(--white); }
.nav .btn:hover { background: var(--blue); color: var(--white); }
.menu-toggle {
  display: none; background: none; border: 2px solid var(--navy); color: var(--navy);
  border-radius: 12px; width: 46px; height: 46px; cursor: pointer;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: currentColor; margin: 4px auto; }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); color: var(--white); }
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  border-radius: 50%; background: rgba(255, 255, 255, .06);
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding: 88px 0; position: relative; z-index: 1; }
.hero h1 { color: var(--white); }
.hero .eyebrow { color: #cfe0f3; }
.hero p { font-size: 1.12rem; color: rgba(255, 255, 255, .9); max-width: 34em; }
.hero-photo { position: relative; max-width: 440px; justify-self: end; width: 100%; }
.hero-photo img:not(.hero-badge) { border-radius: 28px; box-shadow: 0 30px 60px rgba(0, 0, 0, .25); aspect-ratio: 4/5; object-fit: cover; object-position: center 70%; width: 100%; }
.hero-badge {
  position: absolute; left: -36px; bottom: -28px; width: 130px; height: 130px;
  background: var(--white); border-radius: 50%; padding: 8px; box-shadow: var(--shadow);
}

/* Page hero (inner pages) */
.page-hero { background: linear-gradient(135deg, var(--navy), var(--blue)); color: var(--white); }
.page-hero .wrap { padding: 72px 0 64px; }
.page-hero h1 { color: var(--white); margin-bottom: .3em; }
.page-hero p { font-size: 1.15rem; color: rgba(255, 255, 255, .88); max-width: 40em; margin: 0; }
.page-hero .eyebrow { color: #cfe0f3; }

/* Sections */
.section { padding: 96px 0; }
.section--mist { background: var(--mist); }
.section--tight { padding: 64px 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.lead { font-size: 1.15rem; color: var(--slate); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--reverse > :first-child, .split--reverse > picture:first-child > img { order: 2; }
.photo { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.photo--square { aspect-ratio: 1; }
.photo--wide { aspect-ratio: 4/3; }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white); border-radius: var(--radius); padding: 32px;
  box-shadow: 0 1px 0 rgba(17, 77, 127, .06), var(--shadow);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--tint); color: var(--navy); margin-bottom: 18px;
}
.card .icon svg { width: 26px; height: 26px; }

.uses { counter-reset: use; }
.uses .card::before {
  counter-increment: use; content: "0" counter(use);
  display: block; font: 600 .95rem/1 "Rubik", sans-serif; color: var(--blue); margin-bottom: 16px; letter-spacing: .1em;
}

/* Mission band */
.band { background: var(--navy); color: var(--white); text-align: center; }
.band .wrap { padding: 80px 0; max-width: 860px; }
.band blockquote { margin: 0; font: 500 clamp(1.4rem, 3vw, 2rem)/1.35 "Rubik", sans-serif; }
.band cite { display: block; margin-top: 18px; font: 400 1rem "Roboto", sans-serif; color: #cfe0f3; font-style: normal; }
.band .btn-row { justify-content: center; margin-top: 32px; }

/* Video */
.video { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }

.press { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.press-label { display: inline-flex; align-items: center; gap: 8px; background: var(--tint); color: var(--navy); font: 500 .85rem "Rubik", sans-serif; padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }

/* Story (about) */
.story { max-width: 760px; margin-inline: auto; font-size: 1.08rem; }
.story p:first-of-type::first-letter { font: 600 3.4em/.8 "Rubik", sans-serif; float: left; margin: 6px 10px 0 0; color: var(--navy); }
.signoff { font-family: "Rubik", sans-serif; color: var(--navy); }
.signoff strong { display: block; font-size: 1.3rem; }

/* Steps (DIY) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.steps .num { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; font: 600 .95rem "Rubik", sans-serif; }

/* Resources */
.resource { display: flex; flex-direction: column; padding: 0; overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s ease; }
.resource:hover { transform: translateY(-4px); }
.resource img { aspect-ratio: 16/9; object-fit: cover; object-position: top; width: 100%; border-bottom: 1px solid var(--tint); }
.resource .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.resource h3 { font-size: 1.1rem; margin: 0; }
.resource p { font-size: .95rem; color: var(--muted); margin: 0; flex: 1; }
.resource .more { font: 500 .9rem "Rubik", sans-serif; color: var(--blue); margin-top: 10px; }

.quotes { columns: 2 320px; column-gap: 24px; }
.quote { break-inside: avoid; margin: 0 0 24px; background: var(--white); border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; padding: 24px 28px; box-shadow: var(--shadow); }
.quote p { font-family: "Rubik", sans-serif; font-weight: 400; font-size: 1.05rem; color: var(--heading); margin-bottom: .6em; }
.quote footer { color: var(--muted); font-size: .92rem; }

/* Donate + contact */
.give-card { background: var(--white); border: 1.5px solid var(--tint); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: grid; gap: 16px; justify-items: start; }
.btn--paypal { font-size: 1.1rem; padding: 18px 32px; }
.give-methods { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.give-methods li { font: 500 .8rem/1 "Rubik", sans-serif; color: var(--slate); background: var(--mist); border: 1px solid var(--tint); border-radius: 999px; padding: 7px 12px; }
.donate-layout { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "intro form" "aside form"; column-gap: 64px; row-gap: 32px; align-items: start; }
.donate-intro { grid-area: intro; }
.donate-aside { grid-area: aside; }
.donate-card { grid-area: form; }
.donate-card { padding: 36px; }
.form-title { font-size: 1.5rem; }
.form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; min-width: 0; }
.form legend { font: 500 .92rem "Rubik", sans-serif; color: var(--heading); padding: 0; margin-bottom: 6px; }
.form select { font: inherit; padding: 14px 16px; border-radius: 12px; border: 1.5px solid #d5dfeb; background: var(--white); color: var(--ink); width: 100%; }
.form label { font-weight: 400; }
.form fieldset label { font: 400 .85rem "Roboto", sans-serif; color: var(--muted); }
.req { color: var(--pink); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.amounts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.amount { position: relative; }
.amount input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.amount span { display: block; text-align: center; padding: 14px 4px; border-radius: 12px; border: 1.5px solid #d5dfeb; font: 600 1.05rem "Rubik", sans-serif; color: var(--navy); background: var(--white); transition: background .15s, border-color .15s; }
.amount input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.amount input:focus-visible + span { box-shadow: 0 0 0 4px rgba(61, 111, 170, .25); }
.money { position: relative; display: block; }
.money > span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.money input { width: 100%; padding-left: 30px; }
.pay-method { display: flex; justify-content: space-between; align-items: center; background: var(--mist); border-radius: 12px; padding: 14px 16px; font-size: .95rem; }
.pay-method span { font: 600 .95rem "Rubik", sans-serif; color: var(--navy); }
.form-error { margin: 0; color: #a3123f; background: #fdeef3; border-radius: 12px; padding: 12px 16px; font-size: .95rem; }
.thanks { background: var(--tint); border-radius: 14px; padding: 20px 24px; margin-bottom: 24px; }
.thanks h2 { font-size: 1.5rem; margin-bottom: .3em; }
.thanks p { margin: 0; }

.address { font-style: normal; background: var(--tint); border-radius: var(--radius); padding: 24px 28px; line-height: 1.7; color: var(--heading); }
.address strong { font-family: "Rubik", sans-serif; }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font: 500 .92rem "Rubik", sans-serif; color: var(--heading); }
.form input, .form textarea {
  font: inherit; padding: 14px 16px; border-radius: 12px; border: 1.5px solid #d5dfeb; background: var(--white); color: var(--ink);
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(61, 111, 170, .15); }
.form textarea { min-height: 160px; resize: vertical; }
.note { font-size: .9rem; color: var(--muted); }

/* Facebook page card + photo mosaic */
.fb { max-width: 500px; }
.fb iframe { display: block; width: 100%; border: 0; border-radius: 14px; overflow: hidden; background: var(--white); box-shadow: var(--shadow); }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mosaic img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow); transition: transform .2s ease; }
.mosaic > :nth-child(2) img, .mosaic > :nth-child(3) img { transform: translateY(18px); }
.mosaic:hover img { transform: translateY(0) scale(1.01); }

/* CTA */
.cta { background: linear-gradient(135deg, var(--blue), var(--navy)); color: var(--white); border-radius: 28px; padding: 56px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.cta h2 { color: var(--white); margin-bottom: .3em; }
.cta p { color: rgba(255, 255, 255, .88); margin: 0; }

/* Footer */
.footer { background: #0c3a60; color: rgba(255, 255, 255, .8); padding: 72px 0 28px; font-size: .95rem; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer .footer-title { color: var(--white); font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer .badge { width: 96px; height: 96px; background: var(--white); border-radius: 50%; padding: 6px; margin-bottom: 18px; }
.footer .social { display: flex; gap: 10px; margin-top: 18px; }
.footer .social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); }
.footer .social a:hover { background: var(--blue); }
.footer .social svg { width: 18px; height: 18px; fill: currentColor; }
.footer .legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap, .split, .press, .cta { grid-template-columns: 1fr; }
  .donate-layout { grid-template-columns: 1fr; grid-template-areas: "intro" "form" "aside"; }
  .hero .wrap { padding: 64px 0 80px; gap: 48px; }
  .hero-photo { max-width: 420px; margin-inline: auto; justify-self: center; }
  .hero-badge { left: -12px; width: 100px; height: 100px; }
  .split--reverse > :first-child, .split--reverse > picture:first-child > img { order: 0; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .footer .cols > :first-child { grid-column: 1 / -1; }
  .cta { padding: 40px 32px; }
}
@media (max-width: 1080px) {
  .menu-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--tint); display: none; box-shadow: var(--shadow); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 2px; }
  .nav a { padding: 14px 16px; border-radius: 12px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .section { padding: 64px 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr; }
  .topbar .social { display: none; }
  .brand img { height: 44px; }
  .card { padding: 26px; }
  .cta { padding: 32px 24px; border-radius: 22px; }
  .donate-card { padding: 24px 18px; }
  .row-2 { grid-template-columns: 1fr; }
  .amounts { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Small helpers (keep markup free of inline styles so the security policy can block them) */
.btn--outline-light, .btn--outline-light:hover { color: var(--white); border-color: rgba(255, 255, 255, .6); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); }
.photo--collage { max-width: 640px; margin: 0 auto 48px; }
.photo--banner { aspect-ratio: 21/9; }
.photo--portrait { aspect-ratio: 4/5; max-height: 560px; }
.wrap--narrow { max-width: 900px; }
.align-start { align-items: start; }
.h-sm { font-size: 1.6rem; }
.center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }
.my-24 { margin: 24px 0; }
.pos-center { object-position: center !important; }

/* Click-to-play video: shows a poster until pressed, so the player (and its cookies) loads only on demand */
.video-facade { position: absolute; inset: 0; display: block; cursor: pointer; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; }
.video-facade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, .35)); }
.video-facade .play {
  position: absolute; left: 50%; top: 50%; z-index: 1; width: 76px; height: 76px; margin: -38px 0 0 -38px;
  border-radius: 50%; background: rgba(17, 77, 127, .92); box-shadow: 0 8px 24px rgba(0, 0, 0, .3); transition: transform .15s ease, background .15s ease;
}
.video-facade .play::before { content: ""; position: absolute; left: 31px; top: 24px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent var(--white); }
.video-facade:hover .play, .video-facade:focus-visible .play { transform: scale(1.08); background: var(--blue); }
.video-facade:focus-visible { outline: 3px solid var(--white); outline-offset: -6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
