/* RMA Group on Forgejo's own themes (rma/brand GUIDELINES.md, 3, 5, 7).
   Light (forgejo-light, forgejo-auto in a light system): gold ink #775802 with
   white text (6.6:1). Dark (forgejo-dark, forgejo-auto in a dark system):
   on-dark gold #E1B75C with graphite text (9.9:1). Fonts self-hosted. */
:root {
  --fonts-proportional: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
h1, h2, h3, .ui.header, .page-content .ui.header { font-family: 'Lexend', var(--fonts-proportional); font-weight: 500; }

html[data-theme="forgejo-light"], html[data-theme="forgejo-auto"] {
  --color-primary: #775802;
  --color-primary-contrast: #ffffff;
  --color-primary-dark-1: #6a4e01;
  --color-primary-dark-2: #5c4300;
  --color-primary-dark-3: #5c4300;
  --color-primary-dark-4: #453200;
  --color-primary-dark-5: #453200;
  --color-primary-dark-6: #302100;
  --color-primary-dark-7: #302100;
  --color-primary-light-1: #8a6812;
  --color-primary-light-2: #B48C2B;
  --color-primary-light-3: #C79E41;
  --color-primary-light-4: #DAB974;
  --color-primary-light-5: #EFD6A3;
  --color-primary-light-6: #FAE9C7;
  --color-primary-light-7: #FFF6E4;
  --color-primary-alpha-10: #77580219; --color-primary-alpha-20: #77580233; --color-primary-alpha-30: #7758024b;
  --color-primary-alpha-40: #77580266; --color-primary-alpha-50: #77580280; --color-primary-alpha-60: #77580299;
  --color-primary-alpha-70: #775802b3; --color-primary-alpha-80: #775802cc; --color-primary-alpha-90: #775802e1;
  --color-primary-hover: #5c4300;
  --color-primary-active: #453200;
  --color-accent: #B48C2B;
}
html[data-theme="forgejo-dark"] {
  --color-primary: #E1B75C;
  --color-primary-contrast: #1C262A;
  --color-primary-dark-1: #EEC469;
  --color-primary-dark-2: #EFD6A3;
  --color-primary-dark-3: #EFD6A3;
  --color-primary-dark-4: #FAE9C7;
  --color-primary-dark-5: #FAE9C7;
  --color-primary-dark-6: #FFF6E4;
  --color-primary-dark-7: #FFF6E4;
  --color-primary-light-1: #C79E41;
  --color-primary-light-2: #B48C2B;
  --color-primary-light-3: #8a6812;
  --color-primary-light-4: #775802;
  --color-primary-light-5: #5C4300;
  --color-primary-light-6: #453200;
  --color-primary-light-7: #302100;
  --color-primary-alpha-10: #E1B75C19; --color-primary-alpha-20: #E1B75C33; --color-primary-alpha-30: #E1B75C4b;
  --color-primary-alpha-40: #E1B75C66; --color-primary-alpha-50: #E1B75C80; --color-primary-alpha-60: #E1B75C99;
  --color-primary-alpha-70: #E1B75Cb3; --color-primary-alpha-80: #E1B75Ccc; --color-primary-alpha-90: #E1B75Ce1;
  --color-primary-hover: #EEC469;
  --color-primary-active: #EFD6A3;
  --color-accent: #E1B75C;
}
@media (prefers-color-scheme: dark) {
  html[data-theme="forgejo-auto"] {
    --color-primary: #E1B75C;
    --color-primary-contrast: #1C262A;
    --color-primary-dark-1: #EEC469;
    --color-primary-dark-2: #EFD6A3;
    --color-primary-dark-3: #EFD6A3;
    --color-primary-dark-4: #FAE9C7;
    --color-primary-dark-5: #FAE9C7;
    --color-primary-dark-6: #FFF6E4;
    --color-primary-dark-7: #FFF6E4;
    --color-primary-light-1: #C79E41;
    --color-primary-light-2: #B48C2B;
    --color-primary-light-3: #8a6812;
    --color-primary-light-4: #775802;
    --color-primary-light-5: #5C4300;
    --color-primary-light-6: #453200;
    --color-primary-light-7: #302100;
    --color-primary-alpha-10: #E1B75C19; --color-primary-alpha-20: #E1B75C33; --color-primary-alpha-30: #E1B75C4b;
    --color-primary-alpha-40: #E1B75C66; --color-primary-alpha-50: #E1B75C80; --color-primary-alpha-60: #E1B75C99;
    --color-primary-alpha-70: #E1B75Cb3; --color-primary-alpha-80: #E1B75Ccc; --color-primary-alpha-90: #E1B75Ce1;
    --color-primary-hover: #EEC469;
    --color-primary-active: #EFD6A3;
    --color-accent: #E1B75C;
  }
}

/* Sign-in and landing art (rma/brand GUIDELINES.md 13, owner 2026-10-19): the wire drawing in its own
   fixed layer beside the content, 48 px clear of the sign-in column (at most 42rem wide, centred), of
   the navbar above and of the footer below; not drawn when there is no room. Both modes follow the
   system through forgejo-auto (the instance default). */
body:has(.page-content.user.signin)::before, body:has(.page-content.home)::before {
  content: ""; position: fixed; top: 104px; bottom: 96px; right: 0; left: calc(50% + 21rem + 48px);
  background: url("../img/art-light.svg") right center / cover no-repeat; pointer-events: none; z-index: 0;
}
html[data-theme="forgejo-dark"] body:has(.page-content.user.signin)::before,
html[data-theme="forgejo-dark"] body:has(.page-content.home)::before { background-image: url("../img/art-dark.svg"); }
@media (prefers-color-scheme: dark) {
  html[data-theme="forgejo-auto"] body:has(.page-content.user.signin)::before,
  html[data-theme="forgejo-auto"] body:has(.page-content.home)::before { background-image: url("../img/art-dark.svg"); }
}
@media (max-width: 1240px) {
  body:has(.page-content.user.signin)::before, body:has(.page-content.home)::before { display: none; }
}
.page-content.user.signin, .page-content.home { position: relative; z-index: 1; }
