/* Bounty Board — "The Ledger". A vintage bounty-poster / financial-ledger aesthetic on warm paper: engraved display serif, characterful grotesk UI, tabular mono numerals, hairline double-rules, stamped badges, paper grain. Hand-written CSS, no framework (§2.2). Design tokens below are the exact §10 values. */ /* ---- self-hosted variable fonts (no build step, CSP: font-src 'self') ---- */ @font-face { font-family: "Fraunces"; src: url("/static/fonts/Fraunces-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; } @font-face { font-family: "Schibsted Grotesk"; src: url("/static/fonts/SchibstedGrotesk-var.woff2") format("woff2"); font-weight: 400 900; font-display: swap; } @font-face { font-family: "Spline Sans Mono"; src: url("/static/fonts/SplineSansMono-var.woff2") format("woff2"); font-weight: 300 700; font-display: swap; } /* ---- §10 design tokens (exact) ---- */ :root[data-theme=light] { --bg:#f3ead9; --surface:#faf5ea; --surface2:#efe5d0; --border:#d8cbb0; --text:#2b2620; --muted:#6f6353; --accent:#8a5a2b; --accent-contrast:#fff; --ok:#3c6e47; --warn:#a06a1f; --err:#9c3a2e; --radius:2px; } :root[data-theme=dark] { --bg:#191714; --surface:#221f1b; --surface2:#2b2722; --border:#3a342c; --text:#ece5d8; --muted:#a59a87; --accent:#caa15e; --accent-contrast:#1a160f; --ok:#7fb78a; --warn:#d9a44a; --err:#d97b6c; --radius:2px; } /* derived, theme-aware atmosphere */ :root { --font-display: "Fraunces", Georgia, serif; --font-body: "Schibsted Grotesk", system-ui, sans-serif; --font-mono: "Spline Sans Mono", ui-monospace, monospace; --hairline: 1px solid var(--border); --ink-shadow: 0 1px 0 var(--border), 0 6px 18px -10px rgba(43, 38, 32, 0.45); --rule: linear-gradient(var(--border), var(--border)); } :root[data-theme=dark] { --ink-shadow: 0 1px 0 rgba(0,0,0,0.5), 0 8px 22px -10px rgba(0, 0, 0, 0.7); } /* ---- base ---- */ * { box-sizing: border-box; } html { font-size: 16px; } body { margin: 0; background: radial-gradient(1200px 480px at 50% -240px, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%), var(--bg); color: var(--text); font-family: var(--font-body); line-height: 1.55; letter-spacing: 0.005em; } /* paper grain over everything, including dialogs */ body::after { content: ""; position: fixed; inset: 0; z-index: 2147483646; pointer-events: none; opacity: 0.05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); } ::selection { background: var(--accent); color: var(--accent-contrast); } a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; text-underline-offset: 3px; } h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: 0.005em; margin: 0 0 16px; } h1 { font-size: 2.1rem; } h1::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 10px; border-top: var(--hairline); border-bottom: var(--hairline); } h2 { font-size: 1.25rem; } h3 { font-size: 1.02rem; } code, pre { font-family: var(--font-mono); } :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } /* numerals everywhere read like a ledger */ table, .badge, input[type=number] { font-variant-numeric: tabular-nums; } /* ---- layout ---- */ .container { max-width: 1100px; margin: 0 auto; padding: 32px 16px 64px; } .narrow { max-width: 460px; } /* staggered page reveal (one orchestrated moment, then calm) */ @media (prefers-reduced-motion: no-preference) { main.container > * { animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; } main.container > *:nth-child(1) { animation-delay: 0.03s; } main.container > *:nth-child(2) { animation-delay: 0.09s; } main.container > *:nth-child(3) { animation-delay: 0.15s; } main.container > *:nth-child(4) { animation-delay: 0.21s; } main.container > *:nth-child(5) { animation-delay: 0.27s; } main.container > *:nth-child(n+6) { animation-delay: 0.33s; } } @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } } /* ---- top navigation: a masthead rule ---- */ .topnav { display: flex; align-items: center; gap: 18px; background: var(--surface); border-bottom: 3px double var(--border); box-shadow: inset 0 -8px 14px -14px rgba(43,38,32,0.5); padding: 10px 20px; position: relative; } .topnav::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); } .topnav .brand { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; color: var(--text); letter-spacing: 0.01em; white-space: nowrap; } .topnav .brand::before { content: "◈ "; color: var(--accent); } .topnav .brand:hover { text-decoration: none; } .topnav .links { display: flex; gap: 2px; flex: 1; flex-wrap: wrap; } .topnav .links a { color: var(--muted); padding: 7px 11px; border-radius: var(--radius); font-weight: 500; font-size: 0.92rem; letter-spacing: 0.02em; border-bottom: 2px solid transparent; } .topnav .links a:hover { color: var(--text); background: var(--surface2); text-decoration: none; } .topnav .links a[aria-current=page] { color: var(--text); border-bottom-color: var(--accent); } .topnav .right { display: flex; align-items: center; gap: 8px; } /* ---- cards: printed stock ---- */ .card { background: var(--surface); border: var(--hairline); border-radius: var(--radius); box-shadow: var(--ink-shadow); padding: 24px; transition: transform 0.18s ease, box-shadow 0.18s ease; } .card + .card { margin-top: 16px; } .grid > .card { position: relative; overflow: hidden; } .grid > .card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--accent); opacity: 0.55; } .grid > .card:hover { transform: translateY(-3px); box-shadow: 0 1px 0 var(--border), 0 16px 28px -14px rgba(43,38,32,0.5); } /* ---- buttons: letterpress ---- */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-body); font-size: 0.86rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; white-space: nowrap; padding: 9px 16px 8px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: var(--radius); background: var(--surface2); color: var(--text); transition: transform 0.08s ease, filter 0.12s ease; } .btn:hover { filter: brightness(0.965); text-decoration: none; } .btn:active { transform: translateY(1px); border-bottom-width: 1px; margin-bottom: 1px; } .btn.primary { background: var(--accent); color: var(--accent-contrast); border-color: color-mix(in srgb, var(--accent) 70%, black); } .btn.danger { background: var(--err); color: #fff; border-color: color-mix(in srgb, var(--err) 70%, black); } .btn.ghost { background: transparent; border-color: transparent; } .btn.ghost:hover { border-color: var(--border); } .btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; } .btn.small { padding: 4px 10px 3px; font-size: 0.74rem; } /* ---- forms ---- */ label { display: block; font-weight: 700; font-size: 0.88rem; letter-spacing: 0.02em; margin-bottom: 5px; } .hint { color: var(--muted); font-size: 0.86rem; margin: 5px 0 0; } input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=date], input[type=file], select, textarea { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: var(--hairline); border-radius: var(--radius); padding: 9px 10px; transition: border-color 0.15s ease, box-shadow 0.15s ease; } input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); outline: none; } textarea { resize: vertical; min-height: 84px; } .field { margin-bottom: 18px; } .row { display: flex; gap: 16px; } .row > * { flex: 1; } .error-box, .ok-box { border: 1px solid var(--err); border-left-width: 4px; color: var(--err); background: color-mix(in srgb, var(--err) 7%, var(--surface)); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 16px; font-weight: 500; } .ok-box { border-color: var(--ok); color: var(--ok); background: color-mix(in srgb, var(--ok) 8%, var(--surface)); } .error-box:empty, .ok-box:empty { display: none; } /* ---- badges: rubber stamps & banknote chips ---- */ .badge { display: inline-block; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; padding: 2px 8px; border-radius: var(--radius); background: transparent; color: var(--muted); border: 1px solid var(--border); } .badge.accent { font-weight: 700; background: var(--surface); color: var(--accent); border: 1px solid var(--accent); box-shadow: inset 0 0 0 2px var(--surface), inset 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent); padding: 3px 10px; } .avatar { width: 32px; height: 32px; border-radius: var(--radius); background: var(--accent); color: var(--accent-contrast); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; object-fit: cover; overflow: hidden; border: 1px solid color-mix(in srgb, var(--accent) 70%, black); } .avatar.large { width: 96px; height: 96px; font-size: 2.1rem; } img.avatar { background: var(--surface2); } /* ---- tables: the ledger itself ---- */ table.list { width: 100%; border-collapse: collapse; } table.list th, table.list td { text-align: left; padding: 9px 10px; border-bottom: var(--hairline); } table.list th { font-family: var(--font-mono); color: var(--muted); font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; border-bottom: 2px solid var(--border); } table.list tbody tr:hover { background: color-mix(in srgb, var(--surface2) 60%, transparent); } table.list tbody tr:nth-child(even) { background: color-mix(in srgb, var(--surface2) 28%, transparent); } .grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); } .muted { color: var(--muted); } .spread { display: flex; justify-content: space-between; align-items: center; gap: 16px; } .stack > * + * { margin-top: 16px; } .mt { margin-top: 16px; } .kv-row { display: flex; gap: 8px; margin-bottom: 8px; } .kv-row input { flex: 1; } /* ---- toasts: telegram slips ---- */ #toasts { position: fixed; bottom: 16px; right: 16px; z-index: 2147483647; display: flex; flex-direction: column; gap: 8px; max-width: 360px; } .toast { background: var(--surface); border: var(--hairline); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 12px 16px; font-size: 0.92rem; box-shadow: 0 10px 24px -10px rgba(0,0,0,0.4); animation: slipIn 0.25s cubic-bezier(0.2, 0.7, 0.2, 1); } @keyframes slipIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } } .toast.err { border-left-color: var(--err); } .toast.ok { border-left-color: var(--ok); } /* ---- masthead (login / register) ---- */ .masthead { text-align: center; margin-bottom: 26px; } .masthead-kicker { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; } .masthead-title { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; letter-spacing: 0.01em; margin: 0; } .masthead-title::after { content: none; } .masthead-rule { display: flex; align-items: center; gap: 10px; margin: 14px auto 0; max-width: 280px; color: var(--accent); } .masthead-rule::before, .masthead-rule::after { content: ""; flex: 1; border-top: var(--hairline); border-bottom: var(--hairline); height: 3px; } /* ---- hover cards ---- */ .hovercard { position: absolute; z-index: 90; width: 300px; box-shadow: 0 14px 30px -12px rgba(0,0,0,0.45); animation: rise 0.18s ease; } /* ---- chat ---- */ .chat-layout { display: grid; grid-template-columns: 280px 1fr; gap: 18px; min-height: 70vh; } .chat-sidebar { overflow: auto; } .conv-list { list-style: none; margin: 8px 0 0; padding: 0; } .conv-list li { border-bottom: var(--hairline); } .conv-list li.active .conv-item { background: var(--surface2); box-shadow: inset 3px 0 0 var(--accent); } .conv-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; padding: 11px 10px; font: inherit; text-align: left; background: none; border: none; color: var(--text); cursor: pointer; border-radius: var(--radius); } .conv-item:hover { background: var(--surface2); } .chat-main { display: flex; flex-direction: column; } .chat-messages { flex: 1; overflow: auto; padding: 8px 0; min-height: 320px; } .chat-msg { max-width: 75%; margin: 10px 0; padding: 9px 13px; background: var(--surface2); border: var(--hairline); border-radius: var(--radius); font-size: 0.95rem; } .chat-msg.own { margin-left: auto; background: color-mix(in srgb, var(--accent) 11%, var(--surface2)); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); } .chat-msg p, .chat-msg ul, .chat-msg ol { margin: 4px 0; } .chat-img { max-width: 240px; max-height: 180px; cursor: zoom-in; border-radius: var(--radius); border: var(--hairline); } .chat-toolbar { display: flex; gap: 4px; margin-bottom: 8px; } .chat-composer { min-height: 60px; max-height: 200px; overflow: auto; background: var(--bg); border: var(--hairline); border-radius: var(--radius); padding: 10px; } .chat-composer:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); outline: none; } .chat-composer:empty::before { content: attr(data-placeholder); color: var(--muted); } .chat-attachments { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; } .lightbox { border: none; background: transparent; max-width: 92vw; max-height: 92vh; } .lightbox img { max-width: 90vw; max-height: 88vh; cursor: zoom-out; border: 4px solid var(--surface); } .lightbox::backdrop { background: rgba(12, 10, 8, 0.85); } @media (max-width: 800px) { .chat-layout { grid-template-columns: 1fr; } } /* ---- kanban: ledger columns ---- */ .kanban { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } .kanban-col { background: color-mix(in srgb, var(--surface2) 55%, transparent); border: var(--hairline); border-top: 3px double var(--border); border-radius: var(--radius); padding: 16px; min-height: 220px; } .kanban-col h2 { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); } /* ---- notification bell ---- */ .bell-badge { position: absolute; top: -4px; right: -4px; background: var(--err); color: #fff; font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700; padding: 1px 5px; border-radius: var(--radius); } .notif-panel { position: absolute; right: 0; top: 38px; z-index: 50; width: 330px; max-height: 420px; overflow: auto; background: var(--surface); border: var(--hairline); border-top: 3px double var(--border); border-radius: var(--radius); padding: 12px; box-shadow: 0 16px 32px -12px rgba(0,0,0,0.45); animation: rise 0.18s ease; } .notif-list { list-style: none; margin: 0 0 8px; padding: 0; } .notif-list li { padding: 9px 0; border-bottom: var(--hairline); } .notif-list a { color: var(--text); } .notif-list a:hover { text-decoration: none; opacity: 0.85; } /* ---- atomizing shimmer ---- */ .shimmer { position: relative; overflow: hidden; } .shimmer::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); animation: shimmer 1.6s infinite; } @keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } } input[type=range] { width: 100%; accent-color: var(--accent); } /* ---- tabs ---- */ .tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; } .tabs [aria-selected=true] { background: var(--accent); color: var(--accent-contrast); border-color: color-mix(in srgb, var(--accent) 70%, black); } /* ---- dialogs: paper slips ---- */ dialog { background: var(--surface); color: var(--text); border: var(--hairline); border-top: 4px double var(--accent); border-radius: var(--radius); padding: 26px; max-width: 90vw; max-height: 90vh; overflow: auto; box-shadow: 0 30px 70px -20px rgba(0,0,0,0.55); } dialog[open] { animation: rise 0.22s cubic-bezier(0.2, 0.7, 0.2, 1); } dialog::backdrop { background: rgba(20, 16, 12, 0.55); } fieldset { border: var(--hairline); border-radius: var(--radius); margin: 0 0 16px; padding: 16px; } legend { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 0 8px; } /* ---- scrollbars ---- */ * { scrollbar-width: thin; scrollbar-color: var(--border) transparent; } @media (max-width: 640px) { .row { flex-direction: column; gap: 0; } .topnav { flex-wrap: wrap; } h1 { font-size: 1.6rem; } }