@import "tailwindcss"; @source "../../../app/**/*.{vue,ts}"; /* * Medieval palette in flat colours: parchment, dark wood, oxblood, muted gold, * moss and iron. No gradients, glows or blur anywhere; depth comes from solid * borders and hard offset shadows. System fonts only: nothing to host or license. */ @theme { --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", ui-serif, serif; --color-parchment-50: #f3e7c9; --color-parchment-100: #e8d6ad; --color-parchment-200: #dcc595; --color-parchment-300: #c4a676; --color-ink-900: #2b1d10; --color-ink-700: #4a3420; --color-ink-500: #6e563b; --color-ink-400: #8a7253; --color-wood-950: #1f150c; --color-wood-900: #2f2013; --color-wood-800: #3e2b1a; --color-wood-700: #57391f; --color-wood-600: #75502e; --color-blood-800: #5c140f; --color-blood-700: #7b1e16; --color-blood-600: #962a1f; --color-gold-400: #d9b44a; --color-gold-500: #c49a2c; --color-gold-600: #9c7a1f; --color-moss-700: #3d5a26; --color-moss-600: #4f7231; --color-moss-500: #6a8c3f; --color-iron-600: #5a5f63; --color-iron-400: #8b9094; --shadow-hard: 3px 3px 0 0 rgb(47 32 19 / 0.35); } /* * Dense on purpose, like the old browser strategy games, but readable: a 16 px root * (17 px on wide screens; every rem grows with it, text-sm for body text), square frames, * thin lines, tan header bands, tight table rows. * No rounded cards, no pills, no big padding; icons only where they carry meaning. */ @layer base { html { font-size: 16px; } @media (min-width: 1800px) { html { font-size: 17px; } } /* The page always keeps its scrollbar, so nothing shifts when content grows; the fullscreen village (html.stage) doesn't scroll at all. */ html { overflow-y: scroll; } html.stage { overflow: hidden; } body { @apply bg-[#cdb488] font-sans text-ink-900 antialiased; background-image: var(--pat-backdrop); } button:not(:disabled), [role="button"]:not(:disabled) { cursor: pointer; } /* Tables in frames: a header band, tight rows, thin lines between them. */ .panel table th { @apply font-semibold; } } /* * One scrollbar everywhere: a dark wooden handle with carved notches in a parchment * track. Firefox only knows the two colours. */ @supports not selector(::-webkit-scrollbar) { * { scrollbar-color: var(--color-wood-700) var(--color-parchment-200); } } ::-webkit-scrollbar { width: 14px; height: 14px; } ::-webkit-scrollbar-track { background-color: var(--color-parchment-200); background-image: var(--pat-parchment-200); border-left: 1px solid var(--color-wood-700); } ::-webkit-scrollbar-track:horizontal { border-left: 0; border-top: 1px solid var(--color-wood-700); } ::-webkit-scrollbar-thumb { background-color: var(--color-wood-700); background-image: var(--pat-notches); border: 3px solid var(--color-parchment-200); } ::-webkit-scrollbar-thumb:hover { background-color: var(--color-wood-800); } ::-webkit-scrollbar-corner { background-color: var(--color-parchment-200); } ::-webkit-scrollbar-button { display: none; } /* * Generated patterns (app/utils/patterns.ts) on every surface of a colour: parchment * flecks, woven bands, wood grain. The colour stays the utility's; only the texture is added. */ @layer components { .bg-parchment-50 { background-image: var(--pat-parchment-50); } .bg-parchment-100 { background-image: var(--pat-parchment-100); } .bg-parchment-200 { background-image: var(--pat-parchment-200); } .bg-parchment-300 { background-image: var(--pat-parchment-300); } .bg-wood-950 { background-image: var(--pat-wood-950); } .bg-wood-900 { background-image: var(--pat-wood-900); } .bg-wood-800 { background-image: var(--pat-wood-800); } .bg-wood-700 { background-image: var(--pat-wood-700); } } @layer components { /* What floats over the village (bars, boxes, windows, cards) casts one hard shadow. */ .float { box-shadow: 3px 3px 0 0 var(--color-wood-950); } /* A scroll area that always shows its bar, so its content never shifts sideways. */ .scroll-y { overflow-y: scroll; overscroll-behavior: contain; } .panel { @apply border border-wood-700 bg-parchment-50; background-image: var(--pat-parchment-50); } /* Every header band alike: woven cloth with a stitched hem along its bottom. */ .panel-head { @apply flex flex-wrap items-center justify-between gap-2 border-b border-wood-700 bg-parchment-300 px-2 py-1; background-image: var(--pat-stitch), var(--pat-parchment-300); background-repeat: repeat-x, repeat; background-position: left bottom, 0 0; } .panel-title { @apply font-display text-base leading-snug font-semibold text-wood-950; font-variant: small-caps; letter-spacing: 0.02em; } .panel-body { @apply p-2.5; } .btn { @apply inline-flex items-center justify-center gap-1 rounded-[2px] border px-2.5 py-1 text-sm leading-tight font-semibold focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-gold-500 disabled:cursor-not-allowed disabled:opacity-45; } /* The everyday button: dark wood with light text. */ .btn-primary { @apply border-wood-950 bg-wood-800 text-parchment-50 hover:bg-wood-700 disabled:hover:bg-wood-800; background-image: var(--pat-wood-800); } /* Attacks only. */ .btn-attack { @apply border-blood-800 bg-blood-700 text-parchment-50 hover:bg-blood-600 disabled:hover:bg-blood-700; } .btn-outline { @apply border-wood-600 bg-parchment-100 text-wood-900 hover:bg-parchment-200; background-image: var(--pat-parchment-100); } .btn-ghost { @apply border-transparent text-wood-800 hover:bg-parchment-200; } .btn-danger { @apply border-transparent text-blood-700 hover:bg-parchment-200; } /* Fills an amount field with the most there is: "(20)" as a small button, not a text link. */ .btn-fill { @apply inline-flex min-w-10 items-center justify-center border border-wood-600 bg-parchment-100 px-1 py-0.5 text-xs font-semibold text-blood-700 tabular-nums hover:bg-parchment-200 disabled:cursor-not-allowed disabled:border-parchment-300 disabled:bg-transparent disabled:text-ink-400; } .input { @apply w-full rounded-none border border-wood-600 bg-[#fbf3df] px-1.5 py-1 text-sm text-ink-900 outline-none placeholder:text-ink-400 focus:border-wood-900; } .label { @apply mb-0.5 block text-sm font-semibold text-ink-700; } .badge { @apply inline-flex items-center gap-1 border px-1 text-xs leading-4 font-semibold whitespace-nowrap; } .badge-plain { @apply border-wood-600/50 bg-parchment-200 text-ink-700; } .badge-gold { @apply border-gold-600 bg-gold-400 text-wood-950; } .badge-moss { @apply border-moss-700 bg-moss-600 text-parchment-50; } .badge-blood { @apply border-blood-800 bg-blood-700 text-parchment-50; } /* A thin full-width notice with an (i) and a close cross. */ .alert { @apply border border-blood-700 bg-[#f0d6c8] px-2 py-1 text-sm text-blood-800; } /* The framed content column on the backdrop. */ .frame { @apply border border-wood-900 bg-parchment-100; background-image: var(--pat-parchment-100); } /* A data table: tan header band, tight rows, thin lines. */ .grid-table { @apply w-full border-collapse text-sm; } .grid-table th { @apply border-b border-wood-700 bg-parchment-200 px-1.5 py-0.5 text-left text-xs font-semibold text-ink-700; background-image: var(--pat-parchment-200); } .grid-table td { @apply border-b border-parchment-300 px-1.5 py-0.5; } }