/* ==========================================================================
   Project Red Compassion Fruit
   Palette carried over from the original site; structure and type rebuilt.
   ========================================================================== */

:root {
  /* Brand — unchanged from the original site */
  --red-deep:    #8b0000;
  --red-crimson: #dc143c;
  --red-magenta: #c2185b;

  /* Surfaces */
  --bg:          #fef7f7;
  --bg-alt:      #f8f0f5;
  --surface:     #ffffff;

  /* Ink */
  --ink:         #1a1a1a;
  --ink-soft:    #2c2c2c;
  --ink-muted:   #5a5a5a;
  --ink-invert:  #ffffff;

  /* Lines & shadow */
  --line:        rgba(139, 0, 0, 0.12);
  --line-strong: rgba(139, 0, 0, 0.22);
  --shadow-sm:   0 1px 2px rgba(139, 0, 0, .06), 0 2px 8px rgba(139, 0, 0, .05);
  --shadow-md:   0 2px 4px rgba(139, 0, 0, .07), 0 8px 24px rgba(139, 0, 0, .08);
  --shadow-lg:   0 4px 8px rgba(139, 0, 0, .08), 0 20px 48px rgba(139, 0, 0, .14);

  --gradient:    linear-gradient(135deg, var(--red-deep) 0%, var(--red-crimson) 55%, var(--red-magenta) 100%);

  /* Type — system stacks only, so the site makes zero third-party requests */
  --font-serif:  Georgia, 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Times New Roman', serif;
  --font-sans:   system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --measure:     68ch;
  --radius:      14px;
  --radius-sm:   9px;
  --header-h:    4.5rem;

  color-scheme: light;
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-deep); text-underline-offset: .18em; }
a:hover { color: var(--red-magenta); }
h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); letter-spacing: -.01em; }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1.15em; }
:focus-visible { outline: 3px solid var(--red-magenta); outline-offset: 3px; border-radius: 3px; }

/* --- Layout --------------------------------------------------------------- */
.wrap { width: min(100% - 2.5rem, 1120px); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 46rem; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.section__head p { color: var(--ink-muted); font-size: 1.1rem; margin: 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--red-deep); color: #fff; padding: .8rem 1.2rem;
  border-radius: 0 0 var(--radius-sm) 0; font-family: var(--font-sans);
}
.skip-link:focus { left: 0; }

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(254, 247, 247, .88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; }
.brand img { width: 40px; height: 40px; object-fit: contain; border-radius: 7px; }
.brand__name {
  font-weight: 700; font-size: 1.02rem; line-height: 1.15; letter-spacing: -.01em;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand__tag {
  display: block; font-family: var(--font-sans); font-size: .68rem; font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase; color: var(--ink-muted);
}

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a {
  font-family: var(--font-sans); font-size: .93rem; font-weight: 500;
  color: var(--ink-soft); text-decoration: none;
  padding: .55rem .85rem; border-radius: var(--radius-sm);
  transition: background .18s ease, color .18s ease;
}
.nav a:hover { background: rgba(139, 0, 0, .07); color: var(--red-deep); }
.nav a[aria-current="page"] { color: var(--red-deep); font-weight: 600; background: rgba(139, 0, 0, .09); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-strong);
  color: var(--red-deep); font-size: 1.15rem; line-height: 1;
  padding: .55rem .7rem; border-radius: var(--radius-sm); cursor: pointer;
}

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; inset: var(--header-h) 0 auto; flex-direction: column;
    align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.1rem;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .8rem .75rem; }
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-block; font-family: var(--font-sans); font-size: .95rem; font-weight: 600;
  padding: .8rem 1.6rem; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn--primary { background: var(--surface); color: var(--red-deep); box-shadow: var(--shadow-md); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--red-magenta); }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; transform: translateY(-2px); }
.btn--solid { background: var(--gradient); color: #fff; box-shadow: var(--shadow-md); }
.btn--solid:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: #fff; }

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--gradient); color: var(--ink-invert);
  padding: clamp(4rem, 11vw, 8rem) 0 clamp(3.5rem, 9vw, 6.5rem);
  text-align: center;
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(255,255,255,.20), transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 100%, rgba(0,0,0,.18), transparent 65%);
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.22); margin-bottom: .35em; }
.hero__tagline {
  font-size: clamp(1.05rem, 2.3vw, 1.4rem); font-style: italic;
  color: rgba(255,255,255,.94); max-width: 34rem; margin: 0 auto 2rem;
}
.hero__actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

/* --- Page header (interior pages) ----------------------------------------- */
.page-head {
  background: var(--gradient); color: #fff; text-align: center;
  padding: clamp(2.75rem, 7vw, 4.5rem) 0;
}
.page-head h1 { color: #fff; margin-bottom: .25em; }
.page-head p { color: rgba(255,255,255,.93); font-style: italic; margin: 0; font-size: 1.1rem; }

/* --- Cards ---------------------------------------------------------------- */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); }

.card {
  position: relative; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.75rem; box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: var(--gradient);
  opacity: 0; transition: opacity .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.card:hover::before { opacity: 1; }
.card h3 { color: var(--red-deep); margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--ink-muted); }

/* --- About: RED / COMPASSION / FRUIT -------------------------------------- */
.acrostic { display: grid; gap: 1.25rem; }
.acrostic__item {
  display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.9rem 1.75rem; box-shadow: var(--shadow-sm);
}
.acrostic__letter {
  font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 700; line-height: 1;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text;
  color: transparent; letter-spacing: -.03em;
}
.acrostic__word {
  font-family: var(--font-sans); font-size: .74rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--red-magenta);
  margin-bottom: .55rem;
}
.acrostic__body p:last-child { margin-bottom: 0; }
@media (max-width: 560px) {
  .acrostic__item { grid-template-columns: 1fr; gap: .5rem; }
}

/* --- Team ----------------------------------------------------------------- */
.person__avatar {
  width: 56px; height: 56px; border-radius: 50%; background: var(--gradient);
  display: grid; place-items: center; color: #fff; font-size: 1.45rem; font-weight: 700;
  margin-bottom: 1.1rem; box-shadow: var(--shadow-sm);
}
.person h3 { margin-bottom: .15em; color: var(--ink); }
.person__role {
  font-family: var(--font-sans); font-size: .78rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase; color: var(--red-magenta);
  margin-bottom: 1rem;
}
.person__bio p { color: var(--ink-soft); }
.person__bio p:last-child { margin-bottom: 0; }

/* --- Essays --------------------------------------------------------------- */
.essay-card { display: flex; flex-direction: column; cursor: pointer; text-align: left; }
.essay-card__date {
  font-family: var(--font-sans); font-size: .76rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--red-magenta);
  margin-bottom: .6rem;
}
.essay-card h3 { color: var(--ink); font-size: 1.24rem; }
.essay-card__excerpt { color: var(--ink-muted); flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.1rem; padding: 0; list-style: none; }
.tag {
  font-family: var(--font-sans); font-size: .72rem; font-weight: 600;
  color: var(--red-deep); background: rgba(139, 0, 0, .08);
  border: 1px solid var(--line); border-radius: 999px; padding: .22rem .65rem;
}
.essay-card__more {
  font-family: var(--font-sans); font-size: .9rem; font-weight: 600;
  color: var(--red-deep); margin-top: auto;
}
.essay-card:hover .essay-card__more { color: var(--red-magenta); }
.essay-card__more::after { content: ' →'; transition: none; }

/* --- Modal ---------------------------------------------------------------- */
.modal {
  position: fixed; inset: 0; z-index: 150;
  display: none; padding: clamp(.75rem, 4vw, 3rem);
  background: rgba(26, 10, 10, .62);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  overflow-y: auto;
}
.modal.is-open { display: grid; place-items: start center; }
.modal__panel {
  position: relative; width: min(100%, 46rem);
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: clamp(1.75rem, 4vw, 3rem);
  animation: rise .24s ease;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.modal__close {
  position: absolute; top: .85rem; right: .85rem;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg);
  color: var(--red-deep); font-size: 1.5rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: background .18s ease, color .18s ease;
}
.modal__close:hover { background: var(--red-deep); color: #fff; }
.modal__date {
  font-family: var(--font-sans); font-size: .76rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--red-magenta);
  margin-bottom: .5rem;
}
.modal__panel h2 { color: var(--ink); padding-right: 2.5rem; }
.modal__body { max-width: var(--measure); font-size: 1.09rem; line-height: 1.8; }
.modal__body p { color: var(--ink-soft); }
.modal__body p:first-of-type::first-letter {
  float: left; font-size: 3.2em; line-height: .82; padding: .05em .09em 0 0;
  color: var(--red-deep); font-weight: 700;
}
body.is-locked { overflow: hidden; }

/* --- Contact -------------------------------------------------------------- */
.prose { max-width: var(--measure); margin-inline: auto; }
.prose--center { text-align: center; }
.contact-email {
  font-size: clamp(1.15rem, 3vw, 1.5rem); font-weight: 700;
  color: var(--red-deep); text-decoration: none; word-break: break-word;
}
.contact-email:hover { text-decoration: underline; }
.signup { max-width: 34rem; margin: 2rem auto 0; }

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  background: linear-gradient(135deg, var(--ink-soft) 0%, var(--ink) 100%);
  color: rgba(255,255,255,.82); text-align: center;
  padding: 3rem 0 2.25rem; margin-top: auto;
}
.site-footer__name {
  font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: .3rem;
}
.site-footer__tag { font-style: italic; color: rgba(255,255,255,.72); margin-bottom: 1.1rem; }
.site-footer a { color: #fff; }
.site-footer__legal {
  font-family: var(--font-sans); font-size: .82rem; color: rgba(255,255,255,.58);
  margin: 1.4rem 0 0; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.14);
}

/* --- Page shell ----------------------------------------------------------- */
html, body { min-height: 100%; }
body { display: flex; flex-direction: column; }
main { flex: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .card:hover, .btn:hover { transform: none; }
}
