/* The Compassion Collective — one stylesheet for the whole site.
   Colours come from the TCC flower logo. */

:root {
  --cream: #FBF6EC;
  --cream-deep: #F3EADA;
  --card: #FFFDF8;
  --ink: #2F3639;
  --slate: #3E4A4F;
  --muted: #5E676A;
  --terracotta: #B8664F;
  --terracotta-dark: #9A5240;
  --amber: #D9963B;
  --sage: #7E8D72;
  --plum: #6E6270;
  --line: #E4D9C5;
  --radius: 14px;
  --max: 70rem;
}

* { box-sizing: border-box; }

html { font-size: 112.5%; } /* 18px base: easy to read */

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; }

a { color: var(--terracotta-dark); text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--card); padding: .5rem 1rem; z-index: 10; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 42rem; }

h1, h2, h3 { color: var(--slate); line-height: 1.25; font-weight: 650; }
h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 1rem; }
h2 { font-size: 1.6rem; margin: 0 0 .75rem; }
h3 { font-size: 1.15rem; margin: 0 0 .4rem; }
p { margin: 0 0 1rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--cream); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: .9rem; padding-bottom: .9rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--slate); font-weight: 700; letter-spacing: .02em; }
.brand img { width: 44px; height: 33px; object-fit: contain; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; color: var(--slate); padding: .3rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--terracotta); color: var(--slate); }

/* Sections */
section { padding: 3.5rem 0; }
section.tint { background: var(--cream-deep); }
.lead { font-size: 1.2rem; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--terracotta-dark); font-weight: 700; margin-bottom: .5rem; }

.hero { padding: 4rem 0 3rem; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.hero img { width: 100%; max-width: 30rem; justify-self: center; mix-blend-mode: multiply; }
.brand img { mix-blend-mode: multiply; }

/* Buttons */
.btn { display: inline-block; background: var(--terracotta); color: #fff; text-decoration: none; padding: .7rem 1.4rem; border-radius: 999px; font-weight: 600; border: 0; font: inherit; cursor: pointer; }
.btn:hover { background: var(--terracotta-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--terracotta-dark); border: 2px solid var(--terracotta); }
.btn.ghost:hover { background: var(--terracotta); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; border-top: 5px solid var(--sage); }
.card:nth-child(3n+2) { border-top-color: var(--amber); }
.card:nth-child(3n+3) { border-top-color: var(--plum); }
.card p:last-child { margin-bottom: 0; }

.list { padding-left: 1.2rem; }
.list li { margin-bottom: .35rem; }

.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1rem 2rem; }
.values div { border-left: 4px solid var(--amber); padding-left: 1rem; }

.note { background: var(--card); border: 1px dashed var(--terracotta); border-radius: var(--radius); padding: 1rem 1.25rem; }

/* Meetings */
.meeting .when { color: var(--muted); font-weight: 600; margin-bottom: .6rem; }

/* Agreements */
details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: .75rem; }
summary { cursor: pointer; font-weight: 600; color: var(--slate); }
details[open] summary { margin-bottom: .75rem; }


/* Forms */
form label { display: block; font-weight: 600; margin: 1rem 0 .3rem; color: var(--slate); }
input, textarea { width: 100%; font: inherit; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }
textarea { min-height: 9rem; }
.hidden { display: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero img { max-width: 20rem; order: -1; }
  section { padding: 2.5rem 0; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
