/* Portabella site. Plain CSS, no build step. Colours are the app's own default theme (Mycelium Neon); every value is a token.
   Fonts are self-hosted (both SIL OFL, licences next to the files), so the site still loads nothing from third parties. */
@font-face { font-family: "Inter"; src: url(assets/fonts/Inter-latin-variable.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Codex Mono"; src: url(assets/fonts/CodexMono-VF.woff2) format("woff2"); font-weight: 100 700; font-style: normal; font-display: swap; }
:root {
  --bg-top: #12132a; --bg-bottom: #090a1b; --panel-top: #181a3b; --panel-bottom: #0e1026;
  --text: #e8ecff; --text-2: #a9aecb; --accent: #00ffff; --accent-2: #8fff58; --kill: #ff3854; --warn: #ffd060;
  --edge: rgba(0, 255, 255, .22); --glow: rgba(0, 255, 255, .22);
  --font: "Inter", -apple-system, "SF Pro Text", system-ui, "Segoe UI", sans-serif;
  --mono: "Codex Mono", ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --radius: 18px; --radius-sm: 12px; --gap: 1.25rem; --max: 1080px; --pad: clamp(1rem, 4vw, 2rem);
}
@media (prefers-color-scheme: light) {
  :root { --bg-top: #eaf3ff; --bg-bottom: #d4e6fb; --panel-top: #fbfdff; --panel-bottom: #eef5fd; --text: #0f1d33; --text-2: #3d4f6b;
          --accent: #006c8f; --accent-2: #1d7a2b; --kill: #c4162f; --warn: #8a5a00; --edge: rgba(0, 90, 140, .28); --glow: rgba(0, 120, 200, .16); }
}
* { box-sizing: border-box; }
html { color-scheme: dark light; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0; min-height: 100vh; font: 400 1.0625rem/1.6 var(--font); font-feature-settings: "cv11", "ss03"; -webkit-font-smoothing: antialiased; color: var(--text);
  background: radial-gradient(900px 520px at 12% -5%, var(--glow), transparent 62%), linear-gradient(var(--bg-top), var(--bg-bottom)) fixed;
  padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); padding-bottom: env(safe-area-inset-bottom);
}
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 1rem; top: 1rem; background: var(--bg-bottom); padding: .5rem 1rem; z-index: 9; }
.shell { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) 4rem; }
header.masthead { display: flex; align-items: center; gap: 1rem; padding: max(1.25rem, env(safe-area-inset-top)) 0 1rem; flex-wrap: wrap; }
.mark { width: 44px; height: 44px; border-radius: 10px; box-shadow: 0 0 28px var(--glow); }
.wordmark { margin: 0; font-weight: 700; font-size: 1.25rem; letter-spacing: -.01em; } .wordmark a { color: var(--text); text-decoration: none; }
nav { margin-left: auto; display: flex; gap: 1.25rem; flex-wrap: wrap; } nav a { color: var(--text-2); text-decoration: none; font-weight: 500; } nav a:hover, nav a[aria-current] { color: var(--text); }
h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 1rem; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); letter-spacing: -.02em; line-height: 1.15; margin: 4rem 0 .75rem; }
h3 { font-size: 1.15rem; margin: 0 0 .35rem; }
p { margin: 0 0 1rem; } .lede { font-size: 1.25rem; color: var(--text-2); max-width: 36rem; }
.hero { display: grid; gap: 2.5rem; align-items: center; padding: 2rem 0 1rem; }
@media (min-width: 860px) { .hero { grid-template-columns: 1.05fr .95fr; } }
.hero h1 em { font-style: normal; color: var(--accent); text-shadow: 0 0 30px var(--glow); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.5rem; }
.button { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.25rem; border-radius: 14px; font-weight: 600; text-decoration: none;
  background: var(--accent); color: #04121a; border: 1px solid var(--accent); box-shadow: 0 0 24px var(--glow); }
@media (prefers-color-scheme: light) { .button { color: #fff; } }
.button:hover { filter: brightness(1.08); }
.button--quiet { background: transparent; color: var(--text); border-color: var(--edge); box-shadow: none; }
.pill { display: inline-block; padding: .35rem .8rem; border: 1px dashed var(--edge); border-radius: 999px; color: var(--text-2); font-size: .95rem; }
.shots { display: grid; gap: var(--gap); } .shots img { width: 100%; height: auto; display: block; }
.frame { border-radius: var(--radius); border: 1px solid var(--edge); background: linear-gradient(var(--panel-top), var(--panel-bottom)); padding: .6rem; box-shadow: 0 12px 60px rgba(0,0,0,.35), 0 0 40px var(--glow); }
.frame img { border-radius: calc(var(--radius) - 6px); }
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.card { border: 1px solid var(--edge); border-radius: var(--radius); padding: 1.25rem 1.35rem; background: linear-gradient(var(--panel-top), var(--panel-bottom)); }
.card p { color: var(--text-2); margin: 0; }
.split { display: grid; gap: 2rem; align-items: center; } @media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } .split.flip > :first-child { order: 2; } }
.phones { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; } .phones .frame { width: min(46%, 230px); padding: .4rem; border-radius: 26px; } .phones img { border-radius: 20px; }
code, pre, kbd { font-family: var(--mono); font-size: .92em; } code { background: rgba(127,127,160,.16); padding: .1em .4em; border-radius: 6px; }
pre { background: var(--bg-bottom); border: 1px solid var(--edge); border-radius: var(--radius-sm); padding: 1rem 1.1rem; overflow-x: auto; line-height: 1.5; } pre code { background: none; padding: 0; }
.themes { display: flex; flex-wrap: wrap; gap: .6rem; } .themes img { width: 64px; height: 64px; border-radius: 15px; }
.note { border-left: 4px solid var(--warn); padding: .6rem 1rem; background: rgba(255,208,96,.08); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text); }
.note.good { border-color: var(--accent-2); background: rgba(143,255,88,.07); }
table { border-collapse: collapse; width: 100%; } th, td { text-align: left; padding: .55rem .75rem; border-bottom: 1px solid var(--edge); vertical-align: top; } th { color: var(--text-2); font-weight: 600; }
details { border: 1px solid var(--edge); border-radius: var(--radius-sm); padding: .8rem 1.1rem; margin: .6rem 0; background: linear-gradient(var(--panel-top), var(--panel-bottom)); }
summary { cursor: pointer; font-weight: 600; } details[open] summary { margin-bottom: .5rem; } details p { color: var(--text-2); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: 1rem 0; } .kv dt { color: var(--text-2); } .kv dd { margin: 0; overflow-wrap: anywhere; }
footer { border-top: 1px solid var(--edge); margin-top: 4rem; padding-top: 1.5rem; color: var(--text-2); font-size: .95rem; display: flex; gap: 1.25rem; flex-wrap: wrap; }
footer a { color: var(--text-2); }
.prose { max-width: 42rem; } .prose h2 { margin-top: 2.5rem; font-size: 1.4rem; }
img { max-width: 100%; height: auto; }
.frame img { display: block; width: 100%; }
[hidden] { display: none !important; }   /* an author display: rule would otherwise beat the UA [hidden] */
