@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('./PlusJakartaSans-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

html {
  --aureo-header-height: 48px;
  --affine-font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  --affine-brand-color: #886414;
  --affine-primary-color: #886414;
}

html[data-theme='dark'] {
  --affine-brand-color: #d4b36b;
  --affine-primary-color: #d4b36b;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

html[data-theme] body {
  --affine-font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
  --affine-v2-button-primary: #202020;
}

html[data-theme] #app button[data-variant='primary'] {
  background-color: #202020;
  color: #ffffff;
}

html[data-theme='dark'] #app button[data-variant='primary'] {
  background-color: #ece5d7;
  color: #171717;
}

button:focus-visible, input:focus-visible, [role='button']:focus-visible {
  outline: 2px solid var(--affine-brand-color);
  outline-offset: 2px;
}

/* The pinned 0.27.4 access header duplicates the aureo. header. */
#app .gy8ffm2 { display: none; }

.aureo-header {
  box-sizing: border-box;
  height: var(--aureo-header-height);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
  background: #171717;
  color: #f5f2eb;
  border-bottom: 1px solid #38352e;
}

.aureo-header a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: inherit;
}

.aureo-wordmark {
  font-size: 27px;
  font-weight: 750;
  letter-spacing: -1.4px;
  line-height: 1;
}

.aureo-wordmark span { color: #d4b36b; }
.aureo-context { font-size: 13px; }
.aureo-attribution { margin-left: auto; font-size: 11px; }

.aureo-header a:focus-visible {
  outline: 2px solid #d4b36b;
  outline-offset: 1px;
  border-radius: 3px;
}

#app { height: calc(100dvh - var(--aureo-header-height)); }
#app [data-noise-background] { height: calc(100dvh - var(--aureo-header-height)); }

@media (max-width: 600px) {
  .aureo-header { padding-inline: 12px; gap: 12px; }
  .aureo-wordmark { font-size: 25px; }
  .aureo-context { font-size: 12px; }
  .aureo-attribution { font-size: 10px; }
}

@media print {
  .aureo-header { display: none; }
  #app, #app [data-noise-background] { height: auto; }
}
