/* Generated by `cargo xtask brand` from docs/brand/palette.toml; do not edit. */
:root {
  color-scheme: light dark;
  --o-lyre: #206edc;
  --o-on-lyre: #ffffff;
  --o-bg: #f8f8fa;
  --o-surface: #e2e5eb;
  --o-text: #121418;
  --o-text-dim: #585e68;
  --o-primary: #005cc8;
  --o-on-primary: #ffffff;
  --o-link: #005cc8;
  --o-accent: #8a5a00;
  --o-warning: #c42020;
  --o-good: #108040;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --o-bg: #0e1014;
    --o-surface: #242830;
    --o-text: #eef0f4;
    --o-text-dim: #969ca8;
    --o-primary: #206edc;
    --o-on-primary: #ffffff;
    --o-link: #6ea8ff;
    --o-accent: #ffb800;
    --o-warning: #ff6058;
    --o-good: #48cc78;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --o-bg: #0e1014;
  --o-surface: #242830;
  --o-text: #eef0f4;
  --o-text-dim: #969ca8;
  --o-primary: #206edc;
  --o-on-primary: #ffffff;
  --o-link: #6ea8ff;
  --o-accent: #ffb800;
  --o-warning: #ff6058;
  --o-good: #48cc78;
}
:root[data-theme="light"] {
  color-scheme: light;
}

/* The Orpheus website. Colours come from docs/brand/palette.toml through
   palette.css (`--o-*`), which `cargo xtask site` puts in front of this
   file. System fonts only: nothing is loaded from other origins. */

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--o-bg);
  color: var(--o-text);
  font: 1rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--o-link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--o-primary); outline-offset: 2px; border-radius: 2px; }

.skip { position: absolute; left: 0.5rem; top: -3rem; padding: 0.5rem 1rem; background: var(--o-primary); color: var(--o-on-primary); z-index: 10; border-radius: 0 0 6px 6px; }
.skip:focus { top: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Header and navigation */
header.site {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem;
  padding: 0.75rem max(1rem, calc((100% - 72rem) / 2));
  background: var(--o-surface);
  border-bottom: 1px solid color-mix(in srgb, var(--o-text-dim) 30%, transparent);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--o-text); text-decoration: none; }
.wordmark svg { display: block; height: 1.4rem; width: auto; }
header.site nav { flex: 1 1 auto; }
header.site nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin: 0; padding: 0; list-style: none; }
header.site nav a { color: var(--o-text); text-decoration: none; padding: 0.25rem 0; border-bottom: 2px solid transparent; }
header.site nav a:hover { border-bottom-color: var(--o-text-dim); }
header.site nav a[aria-current="page"] { border-bottom-color: var(--o-primary); font-weight: 600; }
button.theme { margin-left: auto; padding: 0.4rem; border: 1px solid var(--o-text-dim); border-radius: 6px; background: transparent; color: var(--o-text); cursor: pointer; line-height: 0; }

/* Content */
main { max-width: 72rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
body.doc main { max-width: 48rem; }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: 2rem; margin: 0.5rem 0 1rem; }
h2 { font-size: 1.4rem; margin-top: 2.5rem; }
h3 { font-size: 1.1rem; }
p, ul, ol, table, pre, blockquote { margin: 0 0 1rem; }
code { font: 0.9em/1.4 ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace; }
:not(pre) > code { background: var(--o-surface); padding: 0.1em 0.3em; border-radius: 4px; }
pre { background: var(--o-surface); padding: 0.75rem 1rem; border-radius: 8px; overflow-x: auto; }
blockquote { margin-left: 0; padding: 0.5rem 1rem; border-left: 4px solid var(--o-accent); background: var(--o-surface); border-radius: 0 8px 8px 0; }
blockquote p:last-child { margin-bottom: 0; }
img { max-width: 100%; height: auto; }
img.shot { image-rendering: pixelated; border-radius: 6px; width: 256px; }
img.diagram { display: block; margin: 1rem 0; border-radius: 8px; }
.table { overflow-x: auto; margin-bottom: 1rem; }
table { border-collapse: collapse; min-width: 100%; }
th, td { text-align: left; vertical-align: top; padding: 0.4rem 0.75rem 0.4rem 0; border-bottom: 1px solid color-mix(in srgb, var(--o-text-dim) 35%, transparent); }
th { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--o-text-dim); }

/* Home */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2rem; padding: 1.5rem 0 1rem; }
.hero h1 { font-size: 2.6rem; margin: 0 0 0.5rem; }
.hero > div { flex: 1 1 20rem; }
.pitch { font-size: 1.2rem; color: var(--o-text); max-width: 40rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.button { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.1rem; border-radius: 8px; background: var(--o-primary); color: var(--o-on-primary); text-decoration: none; font-weight: 600; }
.button.secondary { background: transparent; color: var(--o-link); border: 2px solid var(--o-primary); }

.badge { display: inline-block; padding: 0.05rem 0.55rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; vertical-align: middle; color: var(--o-bg); }
.badge.works { background: var(--o-good); }
.badge.progress { background: var(--o-accent); }
.badge.planned { background: var(--o-text-dim); }
.button .badge { background: var(--o-on-primary); color: var(--o-primary); }

.strip { overflow-x: auto; margin: 1rem 0 0.25rem; padding-bottom: 0.5rem; scrollbar-width: thin; }
.strip-track { display: flex; gap: 1rem; margin: 0; padding: 0; list-style: none; width: max-content; }
.strip-track li { flex: 0 0 auto; }
.strip img.shot { width: 192px; box-shadow: 0 2px 10px rgb(0 0 0 / 0.25); }
@media (prefers-reduced-motion: no-preference) {
  .strip-track { animation: drift 40s ease-in-out infinite alternate; }
  .strip:hover .strip-track, .strip:focus-within .strip-track { animation-play-state: paused; }
}
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(min(0px, calc(100vw - 100% - 3rem))); } }
.caption { color: var(--o-text-dim); font-size: 0.9rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; padding: 0; list-style: none; }
.grid li { background: var(--o-surface); border-radius: 10px; padding: 1rem 1.1rem; }
.grid h3 { margin: 0 0 0.4rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.grid p { margin: 0; color: var(--o-text-dim); }
.links li { margin-bottom: 0.4rem; }

footer.site { border-top: 1px solid color-mix(in srgb, var(--o-text-dim) 30%, transparent); color: var(--o-text-dim); padding: 1rem max(1rem, calc((100% - 72rem) / 2)); font-size: 0.9rem; }
footer.site a { color: var(--o-link); }

@media (max-width: 40rem) {
  h1 { font-size: 1.6rem; }
  .hero h1 { font-size: 2rem; }
  img.shot { width: 192px; }
  .strip img.shot { width: 160px; }
  header.site nav { order: 3; flex-basis: 100%; }
}

@media print {
  header.site nav, button.theme, .skip { display: none; }
}
