/* trycoral.ca: warm light, gold accent, dark mode. Shared by the landing pages and the tool pages. */
:root {
  --bg: #faf8f4; --surface: #ffffff; --soft: #f5ead4; --text: #1a1714; --muted: #5d5650;
  --line: #e7e1d8; --accent: #8c6428; --accent-text: #8c6428; --btn: #8c6428; --btn-text: #ffffff;
  --bad: #b42318; --good: #1f7a4d;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16130f; --surface: #1e1b17; --soft: #2a2520; --text: #ede8df; --muted: #a89e94;
    --line: #2e2a25; --accent: #c9a46c; --accent-text: #d4b878; --btn: #c9a46c; --btn-text: #16130f;
    --bad: #f97066; --good: #47cd89;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent-text); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 22px 'DM Serif Display', Georgia, serif; color: var(--accent-text); text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.btn { display: inline-block; background: var(--btn); color: var(--btn-text); text-decoration: none; font-weight: 600;
       padding: 12px 22px; border-radius: 999px; border: 0; font-size: 16px; cursor: pointer; font-family: inherit; }
.btn.small { padding: 8px 16px; font-size: 15px; }
.btn.ghost { background: transparent; color: var(--accent-text); border: 1px solid var(--line); }
.btn:hover { filter: brightness(1.08); }
h1, h2 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(34px, 7vw, 54px); margin: 28px 0 14px; }
h2 { font-size: clamp(26px, 5vw, 34px); margin: 0 0 18px; }
h3 { font-size: 18px; margin: 0 0 6px; }
p.lead { font-size: 19px; color: var(--muted); max-width: 620px; margin: 0 0 26px; }
section { padding: 44px 0; }
.hero { padding: 20px 0 40px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 34px; max-width: 560px; }
.day { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-align: center; padding: 12px 4px; }
.day b { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.day span { display: block; font-size: 20px; margin-top: 4px; }
.day.today { border-color: var(--accent); background: var(--soft); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.num { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center;
       background: var(--soft); color: var(--accent-text); font-weight: 700; margin-bottom: 12px; }
.card p { margin: 0; color: var(--muted); }
ul.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
ul.ticks li { padding-left: 32px; position: relative; }
ul.ticks li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--accent-text); font-weight: 700; }
.band { background: var(--soft); border-radius: 24px; padding: 34px 26px; text-align: center; }
.band p { color: var(--muted); margin: 0 0 20px; }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 8px 0 0; }
footer.site { border-top: 1px solid var(--line); margin-top: 40px; padding: 22px 0 40px; font-size: 15px; color: var(--muted); }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 10px; }
footer.site a { color: var(--muted); }
form.contact, form.grid { display: grid; gap: 16px; max-width: 560px; }
label { font-weight: 600; font-size: 15px; display: grid; gap: 6px; }
label small { font-weight: 400; color: var(--muted); }
input, textarea, select { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line);
                          border-radius: 12px; padding: 12px 14px; width: 100%; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); border-color: transparent; }
textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.note { background: var(--soft); border-radius: 14px; padding: 14px 16px; }
.error, .err { color: var(--bad); }
.doc { max-width: 680px; }
.doc h2 { font-size: 22px; margin: 28px 0 8px; }
.muted { color: var(--muted); font-size: 15px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 13px; background: var(--soft); }
.tag.posted { color: var(--good); } .tag.failed { color: var(--bad); }
.scroll { overflow-x: auto; }
@media (max-width: 480px) {
  body { font-size: 16px; }
  .week { gap: 5px; }
  .day { padding: 10px 2px; border-radius: 10px; }
  .day b { font-size: 11px; }
  .day span { font-size: 16px; }
}
