/* Shared styles for the whole Wee Apps NI site. Change the design here once and
   every page (home + every app's pages) updates. Colours adapt to light/dark. */
:root {
  --bg: #f7f8f6; --card: #ffffff; --text: #1a1c19; --muted: #5b615a;
  --accent: #2e7d32; --border: #e3e6e0;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #14161a; --card: #1c1f24; --text: #eceef0; --muted: #9aa0a6; --accent: #6fbf73; --border: #2a2e34; }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
}
.wrap { max-width: 680px; margin: 0 auto; padding: 40px 20px 64px; }
a { color: var(--accent); }
h1 { font-size: 28px; margin: 0 0 6px; }
h2 { font-size: 20px; margin: 28px 0 8px; }
.back { display: inline-block; margin-bottom: 24px; text-decoration: none; font-weight: 600; }

/* Home / hero */
header.site { text-align: center; margin-bottom: 36px; }
.logo { font-size: 44px; }
.tag { color: var(--muted); font-size: 18px; margin: 6px 0 0; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 22px; margin: 18px 0; }
.card h2 { margin: 0 0 6px; }
.card p { color: var(--muted); margin: 0 0 14px; }

/* Buttons + link rows */
a.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  padding: 10px 18px; border-radius: 10px; font-weight: 600; }
a.btn.secondary { background: transparent; color: var(--accent); border: 1px solid var(--border); }
nav.links { text-align: center; margin-top: 28px; }
nav.links a { color: var(--accent); text-decoration: none; margin: 0 10px; font-weight: 600; }

/* Document pages (privacy / support) */
.updated { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
ul { padding-left: 20px; }
strong { color: var(--text); }

footer { color: var(--muted); font-size: 14px; margin-top: 48px; border-top: 1px solid var(--border);
  padding-top: 16px; text-align: center; }
footer p { margin: 4px 0; }

/* Email contact: the address is always visible + selectable; contact.js adds a
   "Copy" button beside it where the browser supports copying. */
.contact-email { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  justify-content: center; }
.contact-email a { -webkit-user-select: text; user-select: text; word-break: break-all; }
.copy-email { cursor: pointer; font: inherit; font-size: 13px; font-weight: 600;
  color: var(--accent); background: transparent; border: 1px solid var(--border);
  border-radius: 8px; padding: 3px 10px; line-height: 1.4; }
.copy-email:hover { border-color: var(--accent); }
.copy-email.copied { color: #fff; background: var(--accent); border-color: var(--accent); }
.hint { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
