/* Ruidoso Hospice Foundation — site styles
   One file, no build step. Custom properties at the top are the design tokens. */

@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("/assets/fonts/source-sans-3-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 200 900; font-display: swap; src: url("/assets/fonts/source-sans-3-latin-wght-italic.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/playfair-display-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/playfair-display-latin-400-italic.woff2") format("woff2"); }

:root {
  --purple-900: #2a1650;
  --purple-800: #3a1f6e;
  --purple-700: #4b2d8a;
  --purple-600: #5d3ba3;
  --purple-100: #ece6f7;
  --purple-50:  #f6f3fb;
  --plum-900:   #3d0a3f;
  --orange-600: #d97706;
  --orange-500: #f29a2e;
  --orange-100: #fdebd3;
  --teal-700:   #0f6b6b;
  --teal-600:   #12807f;
  --teal-100:   #d9efee;
  --green-500:  #7cb518;
  --ink-900:    #1f1a2b;
  --ink-700:    #433c54;
  --ink-500:    #6b6480;
  --ink-300:    #c9c3d6;
  --paper:      #fffdf9;
  --paper-2:    #f7f3ec;
  --white:      #ffffff;
  --danger:     #b42318;

  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;

  --step--1: clamp(0.9rem, 0.87rem + 0.15vw, 1rem);
  --step-0:  clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
  --step-1:  clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3:  clamp(1.9rem, 1.5rem + 2vw, 2.75rem);
  --step-4:  clamp(2.4rem, 1.8rem + 3vw, 4rem);

  --space-1: 0.5rem; --space-2: 1rem; --space-3: 1.5rem; --space-4: 2.5rem; --space-5: 4rem; --space-6: 6rem;
  --container: 72rem;
  --radius: 0.5rem;
  --shadow: 0 10px 30px rgba(42, 22, 80, 0.12);
}

/* Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: var(--step-0); line-height: 1.55;
  color: var(--ink-900); background: var(--paper);
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 var(--space-2); color: var(--purple-900); text-wrap: balance; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 700; }
p, ul, ol, table { margin: 0 0 var(--space-2); }
a { color: var(--purple-700); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--purple-600); }
:focus-visible { outline: 3px solid var(--orange-500); outline-offset: 3px; }
.lede { font-size: var(--step-1); color: var(--ink-700); max-width: 40ch; }
.measure { max-width: 65ch; }
.eyebrow { font-family: var(--font-body); font-size: var(--step--1); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-600); margin-bottom: var(--space-1); }
.muted { color: var(--ink-500); }
.small { font-size: var(--step--1); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--orange-500); color: var(--ink-900); padding: 0.5rem 1rem; border-radius: var(--radius); z-index: 100; }
.skip-link:focus { top: 1rem; }
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding-block: var(--space-5); }
.section--tight { padding-block: var(--space-4); }
.section--alt { background: var(--paper-2); }
.section--purple { background: var(--purple-700); color: var(--white); }
.section--purple h1, .section--purple h2, .section--purple h3 { color: var(--white); }
.section--purple a:not(.button) { color: var(--white); }
.section--teal { background: var(--teal-700); color: var(--white); }
.section--teal h2, .section--teal h3 { color: var(--white); }
.grid { display: grid; gap: var(--space-4); }
.grid > *, .hero .container > *, .event-hero .container > *, .event-teaser .container > * { min-width: 0; }
picture { display: block; }
.photo--portrait img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); align-items: center; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.stack > * + * { margin-top: var(--space-2); }

/* Buttons --------------------------------------------------------------- */
.button {
  display: inline-block; font-weight: 700; font-size: var(--step-0); line-height: 1.2;
  padding: 0.85em 1.5em; border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer;
  background: var(--purple-700); color: var(--white); transition: background .15s, color .15s, transform .15s;
}
.button:hover { background: var(--purple-600); color: var(--white); transform: translateY(-1px); }
.button--accent { background: var(--orange-500); color: var(--ink-900); }
.button--accent:hover { background: #ffb04d; color: var(--ink-900); }
.button--light { background: var(--white); color: var(--purple-800); }
.button--light:hover { background: var(--purple-50); color: var(--purple-900); }
.button--ghost { background: transparent; border-color: var(--purple-700); color: var(--purple-700); }
.button--ghost:hover { background: var(--purple-100); color: var(--purple-900); }
.button--ghost-light { background: transparent; border-color: rgba(255,255,255,.7); color: var(--white); }
.button--ghost-light:hover { background: rgba(255,255,255,.12); color: var(--white); }
.button--large { font-size: var(--step-1); padding: 0.9em 1.8em; }
.button[disabled] { opacity: .6; cursor: progress; transform: none; }
.button-row { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }

/* Header ---------------------------------------------------------------- */
.site-header { background: var(--purple-700); color: var(--white); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 0 rgba(0,0,0,.08); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--white); text-decoration: none; font-weight: 600; font-size: 1.15rem; line-height: 1.1; }
.brand em { font-style: normal; font-weight: 400; opacity: .9; }
.logo-mark { width: 2.4rem; height: auto; flex: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; align-items: center; }
.site-nav a:not(.button) { display: block; white-space: nowrap; padding: .55rem .8rem; color: var(--white); text-decoration: none; font-weight: 600; border-radius: var(--radius); }
.site-nav a:not(.button):hover, .site-nav a[aria-current="page"] { background: rgba(255,255,255,.14); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--orange-500); }
.site-nav__cta { margin-left: .5rem; }
.site-nav__cta .button { padding: .55em 1.2em; }
.nav-toggle { display: none; background: none; border: 2px solid rgba(255,255,255,.6); color: var(--white); border-radius: var(--radius); padding: .45rem .7rem; font: inherit; font-weight: 700; align-items: center; gap: .5rem; cursor: pointer; }
.nav-toggle__bars { width: 1.2rem; height: 2px; background: currentColor; position: relative; display: block; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; }
.nav-toggle__bars::before { top: -6px; } .nav-toggle__bars::after { top: 6px; }
@media (max-width: 72em) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--purple-800); padding: var(--space-2) 0 var(--space-3); box-shadow: var(--shadow); }
  body.nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
  .site-nav a:not(.button) { padding: .8rem 1rem; font-size: var(--step-1); }
  .site-nav__cta { margin: var(--space-2) 0 0; }
  .site-nav__cta .button { display: block; text-align: center; }
}

/* Hero ------------------------------------------------------------------ */
.hero { background: linear-gradient(160deg, var(--purple-800), var(--purple-700) 55%, #5b3aa5); color: var(--white); position: relative; overflow: hidden; }
.hero .container { display: grid; gap: var(--space-4); align-items: center; padding-block: var(--space-5); }
@media (min-width: 52em) { .hero .container { grid-template-columns: 1.1fr .9fr; } }
.hero h1 { color: var(--white); margin-bottom: var(--space-2); }
.hero .lede { color: rgba(255,255,255,.88); }
.hero__art img { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 52em) { .hero__art img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; } }
.hero__art--free img { box-shadow: none; border-radius: 0; }
.hero--photo { background: var(--purple-900); }
.hero--photo .hero__bg { position: absolute; inset: 0; }
.hero--photo .hero__bg picture { display: block; height: 100%; }
.hero--photo .hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; opacity: .75; }
.hero--photo .container { position: relative; }
.hero--photo .hero__panel { background: rgba(42,22,80,.72); padding: var(--space-4); border-radius: var(--radius); backdrop-filter: blur(4px); max-width: 38rem; }
.page-hero { background: var(--purple-700); color: var(--white); padding-block: var(--space-4); }
.page-hero h1 { color: var(--white); margin: 0; }
.page-hero .lede { color: rgba(255,255,255,.88); margin: var(--space-1) 0 0; }
.page-hero .eyebrow { color: var(--orange-500); }

/* Cards & pathways ------------------------------------------------------ */
.pathways { margin-top: calc(-1 * var(--space-4)); position: relative; z-index: 2; }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--space-3); display: flex; flex-direction: column; gap: var(--space-1); border-top: 5px solid var(--purple-700); }
.card--orange { border-top-color: var(--orange-500); }
.card--teal { border-top-color: var(--teal-600); }
.card h2, .card h3 { font-size: var(--step-1); margin: 0; }
.card p { margin: 0; color: var(--ink-700); flex: 1; }
.card .button { align-self: flex-start; margin-top: var(--space-1); }

/* Home sections --------------------------------------------------------- */
.event-teaser { background: var(--plum-900); color: var(--white); }
.event-teaser h2 { color: var(--white); }
.event-teaser .container { display: grid; gap: var(--space-4); align-items: center; padding-block: var(--space-5); }
@media (min-width: 52em) { .event-teaser .container { grid-template-columns: 1fr 1fr; } }
.event-teaser__date { font-family: var(--font-display); font-size: var(--step-2); color: var(--orange-500); margin: 0 0 var(--space-1); }
.stat { font-family: var(--font-display); font-size: var(--step-3); color: var(--purple-700); line-height: 1; }
.stat-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: var(--space-3); list-style: none; padding: 0; margin: var(--space-3) 0; }
.stat-list li { border-left: 4px solid var(--orange-500); padding-left: var(--space-2); }
.stat-list span { display: block; color: var(--ink-500); font-size: var(--step--1); }
.stat-list .stat { font-size: var(--step-3); color: var(--purple-700); margin-bottom: .25rem; }

/* CTA band -------------------------------------------------------------- */
.cta-band { background: var(--teal-700); color: var(--white); }
.cta-band__inner { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: space-between; padding-block: var(--space-4); }
.cta-band h2 { color: var(--white); margin-bottom: .25rem; font-size: var(--step-2); }
.cta-band p { margin: 0; max-width: 50ch; color: rgba(255,255,255,.9); }
.cta-band__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }

/* Sponsors -------------------------------------------------------------- */
.sponsors { background: var(--white); padding-block: var(--space-4); border-top: 1px solid var(--ink-300); }
.sponsors__heading { text-align: center; font-family: var(--font-body); font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-500); }
.sponsors__image { margin-inline: auto; }

/* Event page ------------------------------------------------------------ */
.event-hero { background: var(--purple-700); color: var(--white); overflow: hidden; }
.event-hero .container { display: grid; gap: var(--space-4); padding-block: var(--space-5); align-items: center; }
@media (min-width: 56em) { .event-hero .container { grid-template-columns: 1.2fr .8fr; } }
.event-hero__wordmark { width: 100%; max-width: 34rem; margin-bottom: var(--space-2); }
.event-hero h1 { color: var(--white); font-size: var(--step-3); }
.event-hero .lede { color: rgba(255,255,255,.9); }
.event-hero__art img { transform: rotate(-3deg); }
.details { list-style: none; padding: 0; margin: 0 0 var(--space-3); display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.details li { background: rgba(255,255,255,.1); border-radius: var(--radius); padding: var(--space-2); }
.details strong { display: block; font-family: var(--font-display); font-size: var(--step-1); color: var(--orange-500); }
.notice { background: var(--orange-100); border-left: 5px solid var(--orange-500); padding: var(--space-2) var(--space-3); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink-900); }
.notice--purple { background: var(--purple-100); border-color: var(--purple-700); }
.map-embed { aspect-ratio: 16 / 10; width: 100%; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 7rem 1fr; gap: var(--space-2); padding: var(--space-2) 0; border-bottom: 1px solid var(--ink-300); }
.timeline strong { color: var(--purple-700); font-family: var(--font-display); font-size: var(--step-1); }

/* Video ----------------------------------------------------------------- */
.video { background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.video video { width: 100%; height: 100%; }
figcaption { font-size: var(--step--1); color: var(--ink-500); margin-top: var(--space-1); }
figure { margin: 0; }

/* Tables ---------------------------------------------------------------- */
.table-wrap { overflow-x: auto; margin-bottom: var(--space-3); }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
caption { text-align: left; font-weight: 700; padding-bottom: var(--space-1); color: var(--ink-700); }
th, td { padding: .6rem .75rem; text-align: right; border-bottom: 1px solid var(--ink-300); }
th[scope="row"], thead th:first-child { text-align: left; }
thead th { background: var(--purple-100); color: var(--purple-900); }
tbody th { font-weight: 600; }

/* Forms ----------------------------------------------------------------- */
.form { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--space-4); }
fieldset { border: 0; padding: 0; margin: 0 0 var(--space-4); min-width: 0; }
legend { font-family: var(--font-display); font-size: var(--step-2); color: var(--purple-900); margin-bottom: var(--space-2); padding: 0; }
.field { margin-bottom: var(--space-2); }
.field label, .field > .label { display: block; font-weight: 600; margin-bottom: .3rem; }
.field .hint { display: block; font-size: var(--step--1); color: var(--ink-500); margin-top: .25rem; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  width: 100%; font: inherit; padding: .65rem .8rem; border: 1.5px solid var(--ink-300); border-radius: var(--radius); background: var(--white); color: var(--ink-900);
}
input:focus, select:focus, textarea:focus { border-color: var(--purple-700); outline: 3px solid var(--purple-100); outline-offset: 0; }
textarea { min-height: 8rem; resize: vertical; }
.field-row { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.check { display: flex; gap: .6rem; align-items: flex-start; }
.check input { margin-top: .3rem; width: 1.15rem; height: 1.15rem; flex: none; }
.req { color: var(--danger); }
.member { border: 1px solid var(--ink-300); border-radius: var(--radius); padding: var(--space-2); margin-bottom: var(--space-2); background: var(--purple-50); }
.member h4 { margin: 0 0 var(--space-1); }
.honeypot { position: absolute; left: -9999px; }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }

/* Board ----------------------------------------------------------------- */
.board { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.board li { background: var(--white); border-radius: var(--radius); padding: var(--space-2) var(--space-3); border-left: 4px solid var(--orange-500); }
.board strong { display: block; }
.board span { color: var(--ink-500); font-size: var(--step--1); }

/* Contact --------------------------------------------------------------- */
.contact-card { background: var(--purple-50); border-radius: var(--radius); padding: var(--space-3); }
.contact-card address { font-style: normal; }
.contact-card dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; }
.contact-card dt { font-weight: 700; color: var(--purple-900); }
.contact-card dd { margin: 0; }

/* Footer ---------------------------------------------------------------- */
.site-footer { background: var(--plum-900); color: rgba(255,255,255,.85); margin-top: var(--space-5); }
.site-footer a { color: var(--white); }
.site-footer__grid { display: grid; gap: var(--space-4); padding-block: var(--space-5) var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.site-footer__brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--white); font-size: 1.15rem; }
.site-footer__brand .logo-mark { width: 2rem; }
.site-footer__muted { color: rgba(255,255,255,.7); }
.site-footer__heading { font-family: var(--font-body); font-size: var(--step--1); letter-spacing: .12em; text-transform: uppercase; color: var(--orange-500); margin-bottom: var(--space-1); }
.site-footer__list, .site-footer__links { list-style: none; padding: 0; margin: 0 0 var(--space-2); }
.site-footer__list li { margin-bottom: .3rem; }
.site-footer__links li { display: inline-block; margin-right: var(--space-2); }
.site-footer__social { display: inline-flex; align-items: center; gap: .4rem; }
.site-footer__legal { border-top: 1px solid rgba(255,255,255,.15); padding-block: var(--space-2); font-size: var(--step--1); color: rgba(255,255,255,.6); }
.site-footer__legal p { margin: 0; }

/* Print ----------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .cta-band, .button { display: none !important; }
  body { background: #fff; color: #000; }
  a::after { content: " (" attr(href) ")"; font-size: .85em; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .button { transition: none; } }
