@layer base {

/* Prose face for the writing canvas (UI chrome stays on the system sans stack).
   Newsreader is a variable font (weight 200-800 + optical size), vendored under
   app/assets/fonts — no runtime font CDN (local-first posture). */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/newsreader/newsreader-latin-fe979712.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/newsreader/newsreader-italic-latin-fd8d4ba4.woff2") format("woff2");
}

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"]  { color-scheme: dark; }

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  color: var(--c-gray-900);
  background: var(--c-white);
}

body {
  margin: 0;
  background: var(--c-white);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.app-shell {
  width: min(100%, 72rem);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.session-bar {
  border-bottom: 1px solid var(--c-gray-200);
  background: var(--c-white);
}

.session-bar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  width: min(100%, 72rem);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
}

.session-bar-user {
  color: var(--c-gray-500);
  font-size: 0.875rem;
}

.session-bar-button {
  border: 1px solid var(--c-gray-300);
  border-radius: 4px;
  background: var(--c-white);
  color: var(--c-gray-900);
  cursor: pointer;
  font: inherit;
  font-size: 0.875rem;
  padding: 0.35rem 0.75rem;
}

.session-bar-button:hover,
.session-bar-button:focus-visible {
  border-color: var(--c-gray-900);
  outline: none;
}

.flash-messages {
  display: grid;
  gap: 0.5rem;
  max-width: 42rem;
  margin: 0 auto 1.5rem;
}

.flash-message {
  border-radius: 4px;
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
}

.flash-message--alert {
  border: 1px solid var(--c-danger-200);
  background: var(--c-danger-50);
  color: var(--c-danger-900);
}

.flash-message--notice {
  border: 1px solid var(--c-success-200);
  background: var(--c-success-50);
  color: var(--c-success-900);
}

.documents-page {
  max-width: var(--hero-w);
  margin: 0 auto;
}

}
