/* Shared brand stylesheet for every Website OS window. Tokens come from assets/people.css (lines 22 to 29), which
   mirror brand.omarali.xyz tokens.css without the --oa- prefix. Light only: no dark mode, italics, gradients or glows.
   No hanging word, letter or period alone on a line: headings and labels balance, body text prettifies, display type
   never breaks inside a word. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/Archivo-wdth.woff2") format("woff2");
  font-weight: 400;
  font-stretch: 100% 125%;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/InstrumentSans-wght.woff2") format("woff2");
  font-weight: 400 500;
  font-stretch: 100%;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f6f6f2; --white: #ffffff; --ink: #17171b; --ink-soft: #4a4a52;
  --poppy: #ef4a24; --poppy-fill: #d63a12; --poppy-text: #b02a10;
  --sky: #cfe3f4; --blush: #f9d6dd; --lilac: #dcd6f7;
  --rule: rgba(23, 23, 27, 0.2); --wash: rgba(23, 23, 27, 0.08);
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --gap: 11px; --ease: cubic-bezier(0.19, 1, 0.22, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--text); font-synthesis: none; -webkit-font-smoothing: antialiased; }
b, strong { font-weight: 500; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
p { max-width: 60ch; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }

h1, h2, h3, .label { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }

/* Display type: Archivo Expanded, 400, always capitals. The full stop is a round poppy dot. */
.display { font-family: var(--display); font-stretch: 125%; font-weight: 400; text-transform: uppercase; letter-spacing: -0.035em; line-height: 0.9; text-wrap: balance; overflow-wrap: normal; hyphens: none; }
.stop { display: inline-block; width: 0.19em; height: 0.19em; margin-left: 0.05em; border-radius: 50%; background: var(--poppy); vertical-align: baseline; }
.label { font-size: 0.9375rem; letter-spacing: 0.03em; text-transform: uppercase; line-height: 1.2; }

/* Page frame */
.shell { max-width: 1280px; margin: 0 auto; padding: 0 max(16px, 2vw) 36px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; border-bottom: 1px solid var(--rule); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand .name { font-size: 22px; white-space: nowrap; }
.sign { display: block; flex: none; overflow: visible; }
.bar nav { display: flex; gap: 22px; align-items: center; font-size: 15px; }
.bar nav a { color: var(--ink); text-decoration: none; padding-bottom: 2px; border-bottom: 1px solid transparent; white-space: nowrap; }
.bar nav a:hover { border-bottom-color: var(--rule); }
.k { display: inline-block; font: 500 12px/1 var(--text); border: 1px solid var(--rule); padding: 3px 6px; color: var(--ink-soft); background: var(--white); }
.cmdk { cursor: pointer; }
.foot { display: flex; align-items: center; gap: 14px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--ink-soft); }
.foot .oa { display: block; flex: none; width: 36px; height: auto; }
.host { overflow-wrap: normal; }

/* Panels cycle sky, blush, lilac. Square corners. */
.panel-sky, .panel-blush, .panel-lilac { padding: 18px 20px; min-width: 0; }
.panel-sky { background: var(--sky); }
.panel-blush { background: var(--blush); }
.panel-lilac { background: var(--lilac); }

/* Pill buttons, one poppy button per screen. */
.btn { font: 400 0.875rem/1.2 var(--text); min-height: 38px; padding: 0.3em 1.2em 0.28em; border-radius: 999px; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; white-space: nowrap; transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
.btn:hover { background: var(--wash); }
.btn-poppy { background: var(--poppy-fill); border-color: var(--poppy-fill); color: var(--white); }
.btn-poppy:hover { background: var(--poppy-text); border-color: var(--poppy-text); }
.btn:disabled, .btn:disabled:hover { cursor: not-allowed; background: transparent; border-color: var(--rule); color: var(--ink-soft); }

/* States */
.state-empty, .state-loading, .state-offline { margin: 0; padding: 14px 0; font-size: 15px; color: var(--ink-soft); }
.state-offline { padding: 10px 14px; background: var(--wash); color: var(--ink); }

@media (max-width: 720px) {
  .bar { height: auto; min-height: 64px; flex-wrap: wrap; padding: 10px 0; }
  .bar nav { gap: 16px; flex-wrap: wrap; }
}

/* Command bar (assets/windows/cmd.js): a sheet with a field and a list. Square corners, no shadow. */
dialog.cmd { margin: 12vh auto 0; padding: 0; width: min(560px, calc(100vw - 32px)); max-width: none; border: 1px solid var(--ink); border-radius: 0; background: var(--white); color: var(--ink); }
dialog.cmd::backdrop { background: rgba(23, 23, 27, 0.18); }
.cmd-form { margin: 0; }
.cmd-q { display: block; width: 100%; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; padding: 18px 20px; font: 400 18px/1.3 var(--text); color: var(--ink); background: var(--white); }
.cmd-q:focus { outline: none; border-bottom-color: var(--ink); }
.cmd-q::-webkit-search-cancel-button, .cmd-q::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.cmd-results { list-style: none; margin: 0; padding: 0; max-height: 50vh; overflow: auto; }
.cmd-results:empty { display: none; }
.cmd-results li a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 20px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.cmd-results li.on a { background: var(--sky); }
.cmd-results .r-name { min-width: 0; font-weight: 500; text-wrap: balance; }
.cmd-results .r-kind { flex: none; font-size: 13px; color: var(--ink-soft); text-transform: capitalize; }
.cmd-results li.none { padding: 12px 20px; color: var(--ink-soft); font-size: 15px; }
