/* Copied from shared/brand/brand.css by scripts/sync-brand.mjs: edit that file, not this one. */
/* The Arth Notes look, shared by every site: colours (light and dark), typefaces, corners and shadows.
   Edit it here only. The planners import this file; `node scripts/sync-brand.mjs` copies it to the homepage and
   the blog, and their tests fail while a copy is out of date. Each site keeps its own layout and adds only what
   it alone needs (chart colours, the hero band, the serif for posts).

   Dark mode follows the device, and a page may pin it with data-theme="light" or "dark" on <html>. */
:root {
  --bg: #F5F4EF; --surface: #FFFFFF; --tint: #ECEBE4; --ink: #15201B; --muted: #56625B; --line: #E2E1DA;
  --accent: #0B7356; --accent-soft: #D7ECE3; --accent-ink: #FFFFFF;
  --good: #1C8547; --warn: #9A6612; --bad: #A52F24;
  --band: #0A3B2E; --band-ink: #F2F6F1; --band-muted: #B2C9BF; --band-line: #2C5C4D; --mint: #6FE0B7; --gold: #F0BE6C;
  --shadow-sm: 0 1px 2px rgb(16 40 30 / .05), 0 2px 6px rgb(16 40 30 / .04);
  --shadow: 0 1px 2px rgb(16 40 30 / .05), 0 12px 32px -12px rgb(16 40 30 / .16);
  --shadow-lg: 0 2px 4px rgb(16 40 30 / .05), 0 24px 48px -16px rgb(16 40 30 / .24);
  --r-sm: 12px; --r-md: 16px; --r-lg: 24px; --r-pill: 99px;
  --f-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --f-mark: "Tiro Devanagari Hindi", "Kohinoor Devanagari", "Noto Sans Devanagari", serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1311; --surface: #161E1A; --tint: #1B2420; --ink: #E4ECE7; --muted: #9AAAA1; --line: #25302B;
    --accent: #3BC495; --accent-soft: #143428; --accent-ink: #08130F;
    --good: #4CC27A; --warn: #E2A84B; --bad: #F08376;
    --band: #0A2A21; --band-line: #214A3D;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .3);
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px -12px rgb(0 0 0 / .5);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / .3), 0 24px 48px -16px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1311; --surface: #161E1A; --tint: #1B2420; --ink: #E4ECE7; --muted: #9AAAA1; --line: #25302B;
  --accent: #3BC495; --accent-soft: #143428; --accent-ink: #08130F;
  --good: #4CC27A; --warn: #E2A84B; --bad: #F08376;
  --band: #0A2A21; --band-line: #214A3D;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .3);
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px -12px rgb(0 0 0 / .5);
  --shadow-lg: 0 2px 4px rgb(0 0 0 / .3), 0 24px 48px -16px rgb(0 0 0 / .6);
  color-scheme: dark;
}

/* Hindi: Devanagari first for headings; Inter still draws digits and Latin names. */
:root:lang(hi) {
  --f-display: "Noto Sans Devanagari", "Kohinoor Devanagari", "Nirmala UI", sans-serif;
  --f-body: "Inter", "Noto Sans Devanagari", "Kohinoor Devanagari", "Nirmala UI", system-ui, sans-serif;
}

/* Smooth page changes between pages of the same site, where the browser supports it. No script. */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* The footer every site ends with: the logo with the name and its line, that site's links, then the small print.
   The homepage and the blog use all of it (.foot); the planners put the logo row above their own links. */
.foot { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 20px 32px; padding-block: 36px 44px; margin-top: 40px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { display: block; flex: none; width: 36px; height: 36px; }
.foot-brand > span { display: flex; flex-direction: column; line-height: 1.35; font-size: .85rem; color: var(--muted); }
.foot-brand b { font-family: var(--f-display); font-size: 1.05rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 20px; }
.foot-links a { color: inherit; text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot-fine { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-top: 18px; border-top: 1px dashed var(--line); font-size: .8rem; }
@media (max-width: 720px) {
  .foot { grid-template-columns: minmax(0, 1fr); }
  .foot-links { justify-content: flex-start; }
}

/* A post's picture: a drawing for its topic, on that topic's colour (sites/blog/public/cover-art.js). On the blog's
   cards and posts, and the homepage's post cards. */
.cover { --cv: var(--accent); --cv2: #D49A35; position: relative; display: block; overflow: hidden; aspect-ratio: 320 / 168; background: color-mix(in srgb, var(--cv) 13%, var(--surface)); }
.cover svg { display: block; width: 100%; height: 100%; }
.cover .f { fill: var(--cv); }
.cover .g { fill: var(--cv2); }
.cover .s { fill: color-mix(in srgb, var(--cv) 22%, transparent); }
.cover .l { fill: none; stroke: var(--cv); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.cover .l.g { stroke: var(--cv2); }
.c-fire, .c-taxes { --cv: #B4532A; }
.c-inflation, .c-risk { --cv: #4C74B9; }
.c-social-security, .c-health-care { --cv: #A0527A; }
.c-building { --cv: #56625B; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cover { --cv2: #E2A84B; }
  :root:not([data-theme="light"]) :is(.c-fire, .c-taxes) { --cv: #E58A5C; }
  :root:not([data-theme="light"]) :is(.c-inflation, .c-risk) { --cv: #7FA3E6; }
  :root:not([data-theme="light"]) :is(.c-social-security, .c-health-care) { --cv: #D98BB3; }
  :root:not([data-theme="light"]) .c-building { --cv: #9AAAA1; }
}
:root[data-theme="dark"] .cover { --cv2: #E2A84B; }
:root[data-theme="dark"] :is(.c-fire, .c-taxes) { --cv: #E58A5C; }
:root[data-theme="dark"] :is(.c-inflation, .c-risk) { --cv: #7FA3E6; }
:root[data-theme="dark"] :is(.c-social-security, .c-health-care) { --cv: #D98BB3; }
:root[data-theme="dark"] .c-building { --cv: #9AAAA1; }
