/* Douglas Harbour Community Centre — one stylesheet, no build step */

:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --text: #1d2321;
  --muted: #5c6662;
  --line: #e4e0d8;
  --accent: #1f5f5b;
  --accent-soft: #e3efed;
  --radius: 14px;
  --max: 68rem;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121615;
    --surface: #1a201e;
    --text: #e8ece9;
    --muted: #9aa6a1;
    --line: #2a3330;
    --accent: #7cc4bc;
    --accent-soft: #1d2d2a;
  }
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

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

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .75rem 2rem; padding-block: 1rem;
}
.brand { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--text); text-decoration: none; }
.brand span { color: var(--accent); }
.nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-size: .95rem; }
.nav a { color: var(--muted); text-decoration: none; padding: .25rem 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }

/* Layout */
main { padding-block: 3rem 4rem; }
section + section { margin-top: 3.5rem; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--accent); font-weight: 600; margin-bottom: .75rem; }

.hero { padding-block: 2rem 1rem; }
.hero h1 { max-width: 18ch; }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn {
  display: inline-block; padding: .7rem 1.2rem; border-radius: 999px;
  background: var(--accent); color: var(--bg); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.btn.ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn:hover { opacity: .9; }

.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem;
}
.card h3 { margin-bottom: .35rem; }
.card p:last-child { margin-bottom: 0; }

/* Schedule */
.schedule { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.schedule th, .schedule td { text-align: left; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); }
.schedule tr:last-child td { border-bottom: 0; }
.schedule th { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; background: var(--accent-soft); }

/* Prose pages */
.prose { max-width: 42rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .35rem; }

.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1.5rem 1.5rem; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: .45rem; width: 12px; height: 12px;
  border-radius: 50%; background: var(--accent);
}
.timeline strong { display: block; font-family: var(--serif); font-size: 1.1rem; }

.names { columns: 2 12rem; list-style: none; padding: 0; }
.names li { padding: .3rem 0; border-bottom: 1px solid var(--line); break-inside: avoid; }

.note { background: var(--accent-soft); border-radius: var(--radius); padding: 1rem 1.25rem; }

.embed { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.embed iframe { display: block; width: 100%; border: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 2rem; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer a { color: var(--muted); }
