ghostguild-org/app/assets/css/main.css
Jennie Robinson Faber 127d2974c8 feat(layout): add PageShell, ColumnsLayout, PageSection primitives
Introduces three new layout primitives (no consumers yet). Adds
--page-pad-x/y/collapse CSS tokens to :root and .dark. Updates
PageHeader to read padding from tokens. Removes ignored size="large"
props from welcome and series pages. Fixes stray markdown in SidebarLayout.
2026-04-08 15:51:38 +01:00

274 lines
5.6 KiB
CSS

/*
* Ghost Guild Design System — Zine Direction
* ============================================
*
* Two fonts: Brygada 1918 (display/serif), Commit Mono (body/mono)
* Dashed borders, cream backgrounds, content-dense zine layout
* Single palette via CSS custom properties, minimal Tailwind @theme mapping
*/
@import "./fonts.css";
@import "tailwindcss";
@import "@nuxt/ui";
/* ---- COLOR TOKENS ---- */
:root {
--bg: #f4efe4;
--input-bg: #faf8f2;
--surface: #e8dfc8;
--surface-hover: #e0d6bc;
--border: #b8a880;
--border-d: #a89470;
--candle: #7a5a10;
--candle-dim: #866518;
--candle-faint: #c4a448;
--ember: #8a4420;
--text: #2a2015;
--text-bright: #1a1008;
--text-dim: #5a5040;
--text-faint: #746a58;
--parch: #2a2015;
--parch-hover: #3a3025;
--parch-text: #ede4d0;
--parch-text-dim: #b8ae98;
--c-community: #7a4838;
--c-founder: #8a4420;
--c-practitioner: #2a4650;
--green: #4a6a38;
--green-bg: rgba(74, 106, 56, 0.08);
--ember-bg: rgba(138, 68, 32, 0.1);
--page-pad-x: 28px;
--page-pad-y: 24px;
--page-collapse: 1024px;
}
.dark {
--bg: #131210;
--input-bg: #1c1a17;
--surface: #1a1815;
--surface-hover: #252220;
--border: #2a2520;
--border-d: #3a3530;
--candle: #d4a03a;
--candle-dim: #b8922e;
--candle-faint: #8a7030;
--ember: #ca6a3a;
--text: #a89880;
--text-bright: #d0c8b0;
--text-dim: #958774;
--text-faint: #8b7b62;
--parch: #ede4d0;
--parch-hover: #d4c8a8;
--parch-text: #2a2015;
--parch-text-dim: #5a5040;
--c-community: #a06850;
--c-founder: #c06030;
--c-practitioner: #4a7080;
--green: #6e9c52;
--green-bg: rgba(110, 156, 82, 0.12);
--ember-bg: rgba(202, 106, 58, 0.14);
--page-pad-x: 28px;
--page-pad-y: 24px;
--page-collapse: 1024px;
}
/* ---- TAILWIND @THEME MAPPING ---- */
@theme {
--font-sans: "Commit Mono", monospace;
--font-body: "Commit Mono", monospace;
--font-mono: "Commit Mono", monospace;
--font-display: "Brygada 1918", serif;
--font-serif: "Brygada 1918", serif;
/* Map primary to candle for Nuxt UI components */
--color-primary-500: var(--candle);
--color-primary-600: var(--candle-dim);
--color-primary-400: var(--candle-faint);
}
/* ---- BASE STYLES ---- */
body {
background: var(--bg);
color: var(--text);
font-family: "Commit Mono", monospace;
font-size: 13px;
line-height: 1.6;
-webkit-font-smoothing: antialiased;
}
/* ---- NOISE TEXTURE OVERLAY ---- */
body::after {
content: "";
position: fixed;
inset: 0;
z-index: 9999;
pointer-events: none;
background: url("~/assets/images/noise.webp") repeat;
opacity: 0.025;
}
a {
color: var(--candle);
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
p a, blockquote a {
text-decoration: underline;
text-underline-offset: 2px;
}
/* ---- SECTION LABELS ---- */
.section-label {
font-size: 10px;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--text-faint);
margin-bottom: 10px;
}
/* ---- CIRCLE BADGES (dashed) ---- */
.badge {
display: inline-block;
font-size: 10px;
letter-spacing: 0.06em;
text-transform: uppercase;
padding: 2px 8px;
border: 1px dashed;
}
.badge.community {
color: var(--c-community);
border-color: rgba(122, 72, 56, 0.35);
}
.badge.founder {
color: var(--c-founder);
border-color: rgba(138, 68, 32, 0.35);
}
.badge.practitioner {
color: var(--c-practitioner);
border-color: rgba(42, 70, 80, 0.35);
}
.badge.all {
color: var(--text-dim);
border-color: var(--border);
}
/* ---- BUTTONS ---- */
.btn {
font-family: "Commit Mono", monospace;
font-size: 12px;
padding: 7px 18px;
border: 1px dashed var(--border);
background: var(--bg);
color: var(--text);
cursor: pointer;
letter-spacing: 0.04em;
transition: all 0.15s;
}
.btn:hover {
background: var(--surface-hover);
border-color: var(--border-d);
}
.btn-primary {
background: var(--candle);
color: var(--bg);
border-color: var(--candle);
border-style: solid;
}
.btn-primary:hover {
background: var(--candle-dim);
border-color: var(--candle-dim);
}
.btn-danger {
color: var(--ember);
border-color: var(--ember);
}
.btn-danger:hover {
background: var(--ember);
color: var(--bg);
border-style: solid;
}
/* ---- FORM FIELDS ---- */
.field {
margin-bottom: 12px;
}
.field label {
font-size: 10px;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--text-faint);
margin-bottom: 3px;
display: block;
}
.field input,
.field select,
.field textarea {
width: 100%;
padding: 5px 8px;
font-family: "Commit Mono", monospace;
font-size: 13px;
color: var(--text-bright);
background: var(--input-bg);
border: 1px dashed var(--border);
outline: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
border-color: var(--candle);
border-style: solid;
}
/* ---- DASHED BOX ---- */
.dashed-box {
border: 1px dashed var(--border);
padding: 20px 24px;
transition: border-color 0.2s;
}
.dashed-box:hover {
border-color: var(--candle-faint);
}
.dashed-box.no-hover:hover {
border-color: var(--border);
}
/* ---- SEGMENTED CONTROL (flush dashed-border groups) ---- */
/* Negative-margin overlap: every item keeps all 4 borders,
siblings overlap by 1px, active item paints on top via z-index. */
.segmented {
display: flex;
}
.segmented > * {
position: relative;
}
.segmented > * + * {
margin-left: -1px;
}
/* ---- SECTION DIVIDERS ---- */
.section-divider {
display: block;
width: 100%;
max-width: none;
box-sizing: border-box;
border: 0;
border-top: 1px dashed var(--border);
margin: 20px 0 14px;
padding: 0;
flex: 0 0 auto;
align-self: stretch;
min-width: 0;
}
/* ---- MOBILE ---- */
@media (max-width: 1023px) {
body {
overflow-x: hidden;
}
}