/* Ataroo's shared visual foundation. Both HTML entry points load this file. */
@font-face {
  font-family: Manrope;
  src: url("./vendor/manrope/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --at-font: Manrope, system-ui, sans-serif;
  --at-paper: #f4eee4;
  --at-ivory: #fffdf5;
  --at-sand: #eee2cd;
  --at-line: #d8ccd9;
  --at-card-border: #cdb99a;
  --at-ink: #332c3b;
  --at-muted: #645a62;
  --at-accent: #574466;
  --at-accent-strong: #493655;
  --at-dark: #30243e;
  --at-on-dark: #fff9ee;
  --at-muted-on-dark: #dcd0e3;
  --at-lavender: #e9e0ed;
  --at-lilac: #bca5cf;
  --at-citron: #e9ef8d;
  --at-butter: #f4e2aa;
  --at-apricot: #f2d7c3;
  --at-gold: #d7b68a;
  --at-error: #b42318;
  --at-shadow: 3px 4px 0 rgb(180 150 109 / 22%);
  --at-shadow-action: 3px 4px 0 rgb(87 68 102 / 18%);
  --at-ease: cubic-bezier(.2, .65, .3, 1);

  --tblr-font-sans-serif: var(--at-font);
  --tblr-body-font-family: var(--at-font);
  --tblr-body-color: var(--at-ink);
  --tblr-body-bg: var(--at-paper);
  --tblr-heading-color: var(--at-ink);
  --tblr-secondary-color: var(--at-muted);
  --tblr-primary: var(--at-accent);
  --tblr-primary-rgb: 87, 68, 102;
  --tblr-link-color: var(--at-accent);
  --tblr-link-hover-color: var(--at-accent-strong);
  --tblr-border-color: var(--at-line);
  --tblr-border-radius: 0;
  --tblr-border-radius-sm: 0;
  --tblr-border-radius-lg: 0;
}

::selection {
  color: var(--at-ink);
  background: var(--at-citron);
}

:where(body, button, input, select, textarea) {
  font-family: var(--at-font);
}

:where(input, select, textarea) {
  accent-color: var(--at-accent);
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--at-accent);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.at-account { display: flex; align-items: center; gap: 8px; position: relative; font: 600 13px var(--at-font); }
.at-account :is(button, a) { text-decoration: none; white-space: nowrap; color: var(--at-ink); background: var(--at-ivory); border: 1px solid var(--at-card-border); padding: 8px 10px; cursor: pointer; font: inherit; }
.at-account :is(button, a):is(:focus-visible, :hover) { border-color: var(--at-accent); }
.at-account-name { max-width: 12em; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.at-account-error { position: absolute; z-index: 4; top: 100%; right: 0; width: min(250px, 80vw); padding: 8px; color: var(--at-error); background: var(--at-ivory); border: 1px solid var(--at-line); }
@media (max-width: 720px) {
  header.rc-global, .top .top-inner { display: grid; grid-template-columns: minmax(0,1fr) auto; height: auto; gap: 0 6px; }
  header.rc-global nav, .top .top-inner nav { grid-row: 2; grid-column: 1 / -1; justify-content: center; }
  header.rc-global > .at-account, .top #account { grid-column: 2; grid-row: 1; margin-block: 4px; }
  .at-account { flex-direction: column; gap: 0; font-size: 12px; }
  .at-account-name { max-width: 10em; }
}
