/*
 * One Task Widgets website styles. Colors follow Branding/BRAND.md:
 * Core Brand ORIGINAL #3C66F5, DEEP #2146C7, LIGHT #EBF0FE, plus each category's three tones.
 * DEEP = buttons, links, headings of emphasis; ORIGINAL = accent lines only; LIGHT = highlighted backgrounds.
 */
:root {
  --core: #3c66f5;
  --core-deep: #2146c7;
  --core-light: #ebf0fe;
  --core-line: rgba(60, 102, 245, 0.5);

  --health: #15b8a6; --health-deep: #0b7469; --health-light: #e8f8f5;
  --money: #ffb347; --money-deep: #8f5200; --money-light: #fff3e2;
  --organizing: #7757e8; --organizing-deep: #5835c4; --organizing-light: #f1edfd;

  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #0f213a;
  --muted: #4d5b6e;
  --border: #d8dfe9;
  --radius: 12px;

  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: 2.3rem; }
h2 { font-size: 1.5rem; margin-top: 2rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.15rem; }
p { margin: 0 0 .8rem; }
a { color: var(--core-deep); }
:focus-visible { outline: 3px solid var(--core-deep); outline-offset: 2px; }
.muted { color: var(--muted); }

.container { width: 100%; max-width: 900px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 700px; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--core-deep); color: #fff; padding: 8px 12px; z-index: 10; }
.skip-link:focus { left: 8px; top: 8px; }

/* Header: logo and two links. A 4px ORIGINAL line closes it. The logo is the visual anchor; links get 44px-tall tap areas. */
.site-header { background: #fff; border-bottom: 4px solid var(--core); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
.logo-link { display: block; line-height: 0; }
.logo-link img { height: 48px; width: auto; display: block; }
.site-header nav { display: flex; align-items: center; gap: 12px; font-weight: 600; margin-right: -6px; } /* text lines up with the page edge despite link padding */
.site-header nav a { text-decoration: none; color: var(--core-deep); padding: 10px 6px; }
.site-header nav a:hover, .site-header nav a[aria-current] { text-decoration: underline; }

.hero { background: var(--core-light); border-bottom: 1px solid var(--core-line); padding: 48px 0 52px; }
.lead { font-size: 1.15rem; max-width: 40rem; }
.button {
  display: inline-block; background: var(--core-deep); color: #fff; text-decoration: none;
  font-weight: 700; padding: 12px 20px; border-radius: 8px; min-height: 44px; line-height: 1.3;
}
.button:hover { filter: brightness(0.88); }
.button-health { background: var(--health-deep); }

.directory { padding: 16px 0 56px; }
.category { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-top: 18px; }
.category h3 { display: flex; align-items: center; gap: 10px; }
.swatch { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.category-health { border-left: 6px solid var(--health); }
.category-health h3 { color: var(--health-deep); }
.category-health .swatch { background: var(--health); }
.category-money { border-left: 6px solid var(--money); }
.category-money h3 { color: var(--money-deep); }
.category-money .swatch { background: var(--money); }
.category-organizing { border-left: 6px solid var(--organizing); }
.category-organizing h3 { color: var(--organizing-deep); }
.category-organizing .swatch { background: var(--organizing); }
.coming { color: var(--muted); margin: 0; }

.widget-card { background: var(--health-light); border: 1px solid rgba(21, 184, 166, 0.5); border-radius: 10px; padding: 16px 18px; }
.widget-card p { max-width: 42rem; }

.page { padding: 40px 0 56px; }
.page ul { padding-left: 22px; }
.page li { margin-bottom: .5rem; }

.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 20px 0; font-size: .9rem; color: var(--muted); }
.footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 10px; }
.footer-logo { height: 36px; width: auto; display: block; }
.site-footer a { color: var(--core-deep); }

@media (max-width: 480px) {
  .header-row { padding-top: 12px; padding-bottom: 12px; }
  .logo-link img { height: 44px; }
  h1 { font-size: 1.85rem; }
  .hero { padding: 32px 0 36px; }
}

/* Secondary button (used on the 404 page): same shape, outlined in the DEEP tone */
.button-quiet { background: #fff; color: var(--core-deep); border: 2px solid var(--core-deep); margin-left: 8px; }
@media (max-width: 480px) { .button-quiet { margin-left: 0; margin-top: 8px; } }
