Files
webb/src/app/globals.css
T

228 lines
6.5 KiB
CSS
Raw Normal View History

2026-11-06 10:53:55 +05:30
/* Hallmark · shape: Narrative Workflow (draw cf1b96) · genre: editorial · theme: Studio (deal 1/3, seed photo-editing-tools-web-9d55·b0c4e30f·2026-11-06·r0) · redesign: full
* hero: Counter · nav: banner over a retracting bar · footer: statement · imagery: photographs · signature: crop-marked before-after studio loupe
* axes: light/roman-serif/warm · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V4 · weakest: V, photo tools often default to generic dark neon; took cool studio-white proof paper with cadmium orange */
@import url("./tokens.css");
@import url("./base.css");
@import url("https://fonts.googleapis.com/css2?family=Hedvig+Letters+Serif:[email protected]&family=Geist:wght@300;400;500;600;700&display=swap");
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
:root {
2026-11-06 10:53:55 +05:30
--color-primary: var(--color-accent);
--color-primary-hover: var(--color-accent-hi);
--color-primary-light: var(--color-accent-soft);
--color-surface: var(--color-paper);
--color-surface-subtle: var(--color-paper-2);
--color-surface-card: var(--color-paper-hi);
--theme-radius: 3px;
--theme-max-width: 1440px;
--font-sans: var(--font-body);
--font-serif: var(--font-display);
}
2026-11-06 10:53:55 +05:30
html, body {
overflow-x: clip;
}
html {
scroll-behavior: smooth;
2026-11-06 10:53:55 +05:30
background-color: var(--color-paper);
color: var(--color-ink);
}
2026-11-06 10:53:55 +05:30
/* Lenis integration */
html.lenis,
html.lenis body {
height: auto;
scroll-behavior: auto !important;
}
.lenis.lenis-smooth {
scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
overscroll-behavior: contain;
}
.lenis.lenis-stopped {
overflow: clip;
}
2026-11-06 10:53:55 +05:30
body {
color: var(--color-ink);
background-color: var(--color-paper);
font-family: var(--font-body);
font-size: var(--text-md);
line-height: 1.55;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}
2026-11-06 10:53:55 +05:30
::selection {
background: color-mix(in oklab, var(--color-accent) 24%, transparent);
color: var(--color-ink);
}
:focus-visible {
outline: 2px solid var(--color-focus);
outline-offset: 2px;
}
h1, h2, h3, h4, .font-display {
2026-11-06 10:53:55 +05:30
font-family: var(--font-display);
color: var(--color-ink);
letter-spacing: var(--tracking-display);
font-weight: var(--display-weight, 400);
font-synthesis: none;
overflow-wrap: break-word;
min-width: 0;
}
}
2026-11-06 10:53:55 +05:30
/* Studio Theme Components & Craft Rules */
.studio-proof-grid {
background-image: radial-gradient(circle at 1px 1px, var(--color-dot) 1px, transparent 0);
background-size: 24px 24px;
}
2026-11-06 10:53:55 +05:30
/* Crop marks for tactile proof sheet framing */
.crop-marked {
position: relative;
}
2026-11-06 10:53:55 +05:30
.crop-marked::before {
content: "";
position: absolute;
2026-11-06 10:53:55 +05:30
inset: -6px;
pointer-events: none;
2026-11-06 10:53:55 +05:30
background:
linear-gradient(to right, var(--color-mark) 1px, transparent 1px) 0 0 / 12px 1px no-repeat,
linear-gradient(to bottom, var(--color-mark) 1px, transparent 1px) 0 0 / 1px 12px no-repeat,
linear-gradient(to left, var(--color-mark) 1px, transparent 1px) 100% 0 / 12px 1px no-repeat,
linear-gradient(to bottom, var(--color-mark) 1px, transparent 1px) 100% 0 / 1px 12px no-repeat,
linear-gradient(to right, var(--color-mark) 1px, transparent 1px) 0 100% / 12px 1px no-repeat,
linear-gradient(to top, var(--color-mark) 1px, transparent 1px) 0 100% / 1px 12px no-repeat,
linear-gradient(to left, var(--color-mark) 1px, transparent 1px) 100% 100% / 12px 1px no-repeat,
linear-gradient(to top, var(--color-mark) 1px, transparent 1px) 100% 100% / 1px 12px no-repeat;
z-index: 2;
}
2026-11-06 10:53:55 +05:30
/* Clean sheet container */
.studio-sheet {
background: var(--color-paper-hi);
border: var(--rule-hair) solid var(--color-rule);
border-radius: var(--radius-card);
box-shadow: var(--shadow-sheet);
transition-property: border-color, box-shadow;
transition-duration: var(--dur-short);
transition-timing-function: var(--ease-out);
}
2026-11-06 10:53:55 +05:30
.studio-sheet:hover {
border-color: color-mix(in oklab, var(--color-ink) 25%, var(--color-rule));
}
2026-11-06 10:53:55 +05:30
/* Buttons adhering to Floor rule 1, 2, 7a, 10a */
.btn-primary {
display: inline-flex;
2026-11-06 10:53:55 +05:30
align-items: center;
justify-content: center;
gap: var(--space-xs);
padding: var(--space-sm) var(--space-lg);
font-family: var(--font-body);
font-size: var(--text-sm);
font-weight: 500;
color: var(--color-accent-ink);
background-color: var(--color-accent);
border: var(--rule-hair) solid var(--color-accent);
border-radius: var(--radius-pill);
cursor: pointer;
text-decoration: none;
transition-property: background-color, border-color, transform;
transition-duration: var(--dur-micro);
transition-timing-function: var(--ease-out);
}
2026-11-06 10:53:55 +05:30
.btn-primary:hover {
background-color: var(--color-accent-hi);
border-color: var(--color-accent-hi);
transform: translateY(-1px);
}
2026-11-06 10:53:55 +05:30
.btn-primary:active,
.btn-secondary:active,
button:active {
transform: translateY(0);
}
2026-11-06 10:53:55 +05:30
button:disabled,
.btn-primary:disabled,
.btn-secondary:disabled,
[aria-disabled="true"] {
opacity: 0.5;
cursor: not-allowed;
transform: none;
}
2026-11-06 10:53:55 +05:30
.btn-secondary {
display: inline-flex;
align-items: center;
justify-content: center;
gap: var(--space-xs);
padding: var(--space-sm) var(--space-lg);
font-family: var(--font-body);
font-size: var(--text-sm);
font-weight: 500;
color: var(--color-ink);
background-color: var(--color-paper-hi);
border: var(--rule-hair) solid var(--color-rule);
border-radius: var(--radius-pill);
cursor: pointer;
text-decoration: none;
transition-property: background-color, border-color, transform;
transition-duration: var(--dur-micro);
transition-timing-function: var(--ease-out);
}
2026-11-06 10:53:55 +05:30
.btn-secondary:hover {
background-color: var(--color-paper-2);
border-color: var(--color-ink-2);
transform: translateY(-1px);
}
2026-11-06 10:53:55 +05:30
/* Labels adhering to Gate 9 & Gate 67: body face, smaller, sentence case, untracked */
.studio-label {
font-family: var(--font-body);
font-size: var(--text-xs);
font-weight: 500;
color: var(--color-muted);
text-transform: none;
letter-spacing: normal;
}
2026-11-06 10:53:55 +05:30
/* Accessible skip link */
.skip-link {
2026-11-06 10:53:55 +05:30
position: absolute;
top: -100px;
left: var(--space-md);
padding: var(--space-sm) var(--space-md);
background: var(--color-ink);
color: var(--color-paper);
font-size: var(--text-sm);
font-weight: 500;
z-index: var(--z-tooltip);
border-radius: var(--radius-card);
text-decoration: none;
transition-property: top;
transition-duration: var(--dur-short);
}
.skip-link:focus {
2026-11-06 10:53:55 +05:30
top: var(--space-md);
}