vars.css

9.0 KB · raw

1@font-face {2  font-family: "Cormorant Garamond";3  font-weight: 300;4  font-style: italic;5  src: url("/fonts/CormorantGaramond-LightItalic.woff2") format("woff2");6  font-display: block;7}89@font-face {10  font-family: "Cormorant Garamond";11  font-weight: 300;12  font-style: normal;13  src: url("/fonts/CormorantGaramond-Light.woff2") format("woff2");14  font-display: block;15}1617@font-face {18  font-family: "Cormorant Garamond";19  font-weight: 400;20  font-style: normal;21  src: url("/fonts/CormorantGaramond-Regular.woff2") format("woff2");22  font-display: block;23}2425@font-face {26  font-family: "Cormorant Garamond";27  font-weight: 400;28  font-style: italic;29  src: url("/fonts/CormorantGaramond-RegularItalic.woff2") format("woff2");30  font-display: block;31}3233@font-face {34  font-family: "IBM Plex Mono";35  font-weight: 300;36  font-style: normal;37  src: url("/fonts/IBMPlexMono-Light.woff2") format("woff2");38  font-display: optional;39}4041@font-face {42  font-family: "IBM Plex Mono";43  font-weight: 300;44  font-style: italic;45  src: url("/fonts/IBMPlexMono-LightItalic.woff2") format("woff2");46  font-display: optional;47}4849@font-face {50  font-family: "IBM Plex Mono";51  font-weight: 400;52  font-style: normal;53  src: url("/fonts/IBMPlexMono-Regular.woff2") format("woff2");54  font-display: optional;55}5657@font-face {58  font-family: "Inter Variable";59  font-weight: 100 900;60  font-style: normal;61  src: url("/fonts/InterVariable.woff2") format("woff2-variations");62  font-display: optional;63}6465@font-face {66  font-family: "Inter";67  font-weight: 400;68  font-style: normal;69  src: url("/fonts/Inter-Regular.woff2") format("woff2");70  font-display: optional;71}7273@font-face {74  font-family: "PeachScript";75  font-weight: 400;76  font-style: normal;77  src: url("/fonts/PeachScript-Regular.otf") format("opentype");78  font-display: block;79}8081:root {82  --bg: #0C0A06;83  --s1: #131109;84  --s2: #1A1710;85  --s3: #221F14;86  --bg-1: var(--s1);87  --bg-2: var(--s2);88  --bg-3: var(--s3);89  --t0: #F0E8D8;90  --t1: rgba(240, 232, 216, 0.50);91  --t2: rgba(240, 232, 216, 0.20);92  --t3: rgba(240, 232, 216, 0.07);93  --t4: rgba(240, 232, 216, 0.04);94  --ac: #E8956D;95  --surface-card: rgba(240, 232, 216, 0.02);96  --surface-elevated: rgba(19, 17, 9, 0.88);97  --shell-top-solid: #000000;98  --shell-top-fade: rgba(12, 10, 6, 0.95);99  --shell-accent-a: color-mix(in srgb, var(--peach-accent) 8%, transparent);100  --shell-accent-b: color-mix(in srgb, var(--peach-accent) 6%, transparent);101  --breach: rgba(220, 80, 60, 0.7);102  --health: rgba(100, 210, 100, 0.75);103  --totp-tag: rgba(120, 175, 255, 0.75);104  --copy-shadow: 0 2px 8px rgba(0,0,0,0.55), 0 14px 48px rgba(0,0,0,0.7), 0 0 0 1px rgba(240,232,216,0.04);105  --font-display: "Cormorant Garamond", "Times New Roman", serif;106  --font-display-style: italic;107  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;108  --font-ui: "Inter Variable", "Inter", system-ui, sans-serif;109  /* Body-text scale; multiplied into key font-size declarations so users110     can request small / default / large without breaking dense layouts.111     XL was deliberately excluded — clips Vault and Health. */112  --peach-text-scale: 1;113  --spring: cubic-bezier(0.16, 1, 0.3, 1);114  --retreat: cubic-bezier(0.4, 0, 1, 1);115  --settle: cubic-bezier(0.34, 1.56, 0.64, 1);116  --dur-enter: 500ms;117  --dur-exit: 280ms;118  --dur-micro: 150ms;119  --peach-bg: var(--bg);120  --peach-s1: var(--s1);121  --peach-s2: var(--s2);122  --peach-s3: var(--s3);123  --peach-t0: var(--t0);124  --peach-t1: var(--t1);125  --peach-t2: var(--t2);126  --peach-t3: var(--t3);127  --peach-t4: var(--t4);128  --peach-text: var(--peach-t4);129  --peach-text-dim: var(--peach-t1);130  --peach-bg-card: var(--surface-card);131  --peach-border: var(--peach-t3);132  --peach-mono: var(--font-mono);133  --peach-accent: var(--ac);134  --peach-accent-dim: color-mix(in srgb, var(--peach-accent) 25%, transparent);135  --peach-glow: #F49C702A;        /* accent bloom behind buttons/illustrations — set by applyAccent() */136  --peach-surface-tint: #F49C7009; /* accent tint on card surfaces — set by applyAccent() */137  --peach-border-accent: #F49C7024; /* accent-tinted border for active states — set by applyAccent() */138  --peach-breach: var(--breach);139  --peach-health-ok: var(--health);140  --peach-health-bad: var(--breach);141  /* Yellow for transient network misses — the dial didn't reach the peer but142     the alarm will retry. Distinct from breach/red so alarm fatigue doesn't143     train the user to ignore a real indicator. */144  --peach-health-warn: #d8a13a;145  --peach-totp-tag: var(--totp-tag);146  --peach-sync-ok: #5ebd5e;147  --peach-sync-busy: #c8a840;148  --peach-sync-warn: #d8a13a;149  --peach-sync-off: var(--peach-t2);150  --peach-sync-err: var(--peach-breach);151  --peach-curve-arrival: var(--spring);152  --peach-curve-departure: var(--retreat);153  --peach-curve-settle: var(--settle);154  --peach-dur-80: 80ms;155  --peach-dur-150: 150ms;156  --peach-dur-280: 280ms;157  --peach-dur-380: 380ms;158  --peach-dur-500: 500ms;159  --peach-dur-600: 600ms;160  --peach-copy-clear: 1.4s;161  --peach-rune-idle: rgba(245, 240, 234, 0.16);162  --peach-ghost-opacity: 0.03;163  --stack-protect-fg: #FFEEDD;164  --stack-protect-bg: linear-gradient(155deg, #B85A3A 0%, #6E2818 100%);165  --stack-vault-fg: #E5EEFA;166  --stack-vault-bg: linear-gradient(155deg, #2A3A4D 0%, #0F1620 100%);167  --stack-sync-fg: #E6F2DE;168  --stack-sync-bg: linear-gradient(155deg, #3A4E3A 0%, #15241A 100%);169  --stack-appear-fg: #F4E9D2;170  --stack-appear-bg: linear-gradient(155deg, #5A4A2C 0%, #281D10 100%);171  --stack-shortcut-fg: #E4E0D6;172  --stack-shortcut-bg: linear-gradient(155deg, #3A3A45 0%, #1A1A22 100%);173  --stack-pro-fg: #FFF1DD;174  --stack-pro-bg: linear-gradient(155deg, #C2884A 0%, #6E3E1A 100%);175  --stack-feedback-fg: #EEE4F2;176  --stack-feedback-bg: linear-gradient(155deg, #4A3A4E 0%, #1D1424 100%);177  --stack-card-radius: 16px;178  --stack-tab-h: 56px;179  --stack-tab-overlap: 14px;180  --stack-pad: 14px;181  --stack-spring: cubic-bezier(0.18, 0.9, 0.22, 1.02);182  /* Tell the browser engine which color schemes the UI knows how to render —183     this gets us correct form-control colors and scrollbar tinting in the184     WebView when the user follows the system theme. */185  color-scheme: dark light;186}187188.light {189  /* Warm parchment restoration — pixel-sampled from reference screenshots.190     Outer bg is hsl(50,16%,93%), card surfaces shift to hsl(35,36-49%,91-92%).191     The two hue families are intentional — do not normalize them to one hue. */192  --bg: #EFEEE9;193  --s1: #F0E9DF;194  --s2: #F5EDE2;195  --s3: #EEE7DD;196  --bg-1: var(--s1);197  --bg-2: var(--s2);198  --bg-3: var(--s3);199  --t0: #1A1208;200  --t1: #3D2E18;201  --t2: #A8A099;202  --t3: #DDD5CB;203  --t4: rgba(26, 18, 8, 0.06);204  --surface-card: #F0E9DF;205  --surface-elevated: rgba(245, 237, 226, 0.97);206  --shell-top-solid: rgba(239, 238, 233, 0.98);207  --shell-top-fade: rgba(245, 237, 226, 0.96);208  --shell-accent-a: color-mix(in srgb, var(--peach-accent) 6%, transparent);209  --shell-accent-b: color-mix(in srgb, var(--peach-accent) 3%, transparent);210  --copy-shadow: 0 2px 8px rgba(80, 56, 32, 0.10), 0 14px 48px rgba(80, 56, 32, 0.10), 0 0 0 1px rgba(26, 18, 8, 0.05);211  --peach-rune-idle: rgba(26, 18, 8, 0.12);212  --peach-ghost-opacity: 0.06;213214  /* Light-only semantic tokens from restoration brief */215  --peach-bg-card: #F0E9DF;216  --peach-bg-row: #F2EBE1;217  --peach-bg-input: #EEE7DD;218  --peach-bg-elevated: #F5EDE2;219  --peach-bg-search: #F2EBE1;220  --peach-text-label: #79766F;221  --peach-text-link: #B87155;222  --peach-text-dim: #9E9890;223  --peach-border-subtle: #E8E2D8;224  --peach-border-strong: #C4BAB0;225  --peach-breach-bg: #F1E5D9;226  --peach-breach-text: #DA6931;227  --peach-warning-text: #DA6931;228}229230/* ─── Text size scaling ────────────────────────────────────────────────231   Implemented via `zoom` on html so every existing px-based font-size in232   popup.css scales proportionally without rewriting individual rules.233   Capped at 1.08 — large enough to noticeably help, small enough that the234   dense Vault and Health views don't clip the fixed-size popup surface.235   The CSS custom property is also exposed so desktop / mobile builds can236   use a calc() multiplier on layouts that don't fit `zoom` semantics. */237[data-text-size="medium"] { --peach-text-scale: 1; }238[data-text-size="large"]  { --peach-text-scale: 1.08; }239html { background: var(--bg); }240html[data-text-size="large"] { zoom: 1.08; }241242/* ─── Reduced motion ───────────────────────────────────────────────────243   User-explicit setting OR OS-level prefers-reduced-motion both collapse244   transitions and ambient animations to instant. The user-explicit form245   takes precedence and works even when the OS hasn't been configured. */246[data-motion="reduce"] *,247[data-motion="reduce"] *::before,248[data-motion="reduce"] *::after {249  animation-duration: 0.001ms !important;250  animation-delay: 0.001ms !important;251  animation-iteration-count: 1 !important;252  transition-duration: 0.001ms !important;253  transition-delay: 0.001ms !important;254  scroll-behavior: auto !important;255}