355 lines
9.3 KiB
CSS
355 lines
9.3 KiB
CSS
@import "tailwindcss";
|
|
|
|
/* ── Self-hosted variable fonts ────────────────────────────────────────────
|
|
Geist for UI, Instrument Serif for editorial display headings, Geist Mono
|
|
for micro-type (eyebrows, prices, order numbers). */
|
|
@font-face {
|
|
font-family: "Geist";
|
|
font-style: normal;
|
|
font-weight: 100 900;
|
|
font-display: swap;
|
|
src: url("/fonts/geist-latin.woff2") format("woff2");
|
|
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
}
|
|
@font-face {
|
|
font-family: "Geist";
|
|
font-style: normal;
|
|
font-weight: 100 900;
|
|
font-display: swap;
|
|
src: url("/fonts/geist-latin-ext.woff2") format("woff2");
|
|
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
}
|
|
@font-face {
|
|
font-family: "Geist Mono";
|
|
font-style: normal;
|
|
font-weight: 100 900;
|
|
font-display: swap;
|
|
src: url("/fonts/geist-mono-latin.woff2") format("woff2");
|
|
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
}
|
|
@font-face {
|
|
font-family: "Instrument Serif";
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
font-display: swap;
|
|
src: url("/fonts/instrument-serif-latin.woff2") format("woff2");
|
|
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
}
|
|
@font-face {
|
|
font-family: "Instrument Serif";
|
|
font-style: italic;
|
|
font-weight: 400;
|
|
font-display: swap;
|
|
src: url("/fonts/instrument-serif-italic-latin.woff2") format("woff2");
|
|
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
}
|
|
|
|
/* Theme is toggled by a `.dark` class on <html> (see ThemeProvider). */
|
|
@custom-variant dark (&:where(.dark, .dark *));
|
|
|
|
@theme {
|
|
/* Editorial retail palette: warm ink on paper, one ochre accent. */
|
|
--color-brand-50: #f4f3f1;
|
|
--color-brand-100: #e7e5e1;
|
|
--color-brand-200: #d6d3cc;
|
|
--color-brand-400: #78716c;
|
|
--color-brand-500: #33302c;
|
|
--color-brand-600: #1c1917;
|
|
--color-brand-700: #0c0a09;
|
|
--color-accent-300: #fcd34d;
|
|
--color-accent-400: #fbbf24;
|
|
--color-accent-500: #d97706;
|
|
|
|
--font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
--font-display: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
|
|
--font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
--font-serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
|
|
|
|
--radius-xl: 14px;
|
|
--radius-2xl: 18px;
|
|
--radius-3xl: 26px;
|
|
}
|
|
|
|
@layer base {
|
|
:root {
|
|
--surface: #fffefc;
|
|
--surface-raised: #ffffff;
|
|
--canvas: #f5f3ee;
|
|
--surface-muted: #f0ede6;
|
|
--border: #e6e1d7;
|
|
--border-strong: #d6cfc1;
|
|
--text: #1a1814;
|
|
--text-muted: #6a6357;
|
|
--text-faint: #928b7d;
|
|
--accent-ink: #a35a12;
|
|
--warn-ink: #b45309;
|
|
--edge: rgba(255, 255, 255, 0.8);
|
|
--shadow-color: 26 22 16;
|
|
color-scheme: light;
|
|
}
|
|
|
|
.dark {
|
|
--surface: #0d0c0a;
|
|
--surface-raised: #14120f;
|
|
--canvas: #080706;
|
|
--surface-muted: #1a1815;
|
|
--border: #29261f;
|
|
--border-strong: #3a362c;
|
|
--text: #f2efe9;
|
|
--text-muted: #a8a196;
|
|
--text-faint: #7c766a;
|
|
--accent-ink: #f2c14e;
|
|
--warn-ink: #fcd34d;
|
|
--edge: rgba(255, 255, 255, 0.06);
|
|
--shadow-color: 0 0 0;
|
|
color-scheme: dark;
|
|
}
|
|
|
|
* {
|
|
border-color: var(--border);
|
|
}
|
|
|
|
html,
|
|
body {
|
|
background: var(--surface);
|
|
color: var(--text);
|
|
}
|
|
|
|
body {
|
|
font-family: var(--font-sans);
|
|
font-feature-settings: "cv11" 1, "ss01" 1;
|
|
-webkit-font-smoothing: antialiased;
|
|
text-rendering: optimizeLegibility;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4 {
|
|
text-wrap: balance;
|
|
}
|
|
|
|
p {
|
|
text-wrap: pretty;
|
|
}
|
|
|
|
a {
|
|
color: inherit;
|
|
}
|
|
}
|
|
|
|
@layer components {
|
|
.page {
|
|
@apply mx-auto w-full max-w-6xl px-5;
|
|
}
|
|
|
|
.surface {
|
|
background: var(--surface);
|
|
}
|
|
|
|
.muted {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.card {
|
|
@apply rounded-2xl border p-6;
|
|
background: var(--surface);
|
|
border-color: var(--border);
|
|
box-shadow: 0 1px 2px rgb(var(--shadow-color) / 0.04), 0 12px 28px -20px rgb(var(--shadow-color) / 0.14);
|
|
}
|
|
|
|
.panel {
|
|
@apply rounded-2xl border;
|
|
background: var(--surface-raised);
|
|
border-color: var(--border);
|
|
box-shadow:
|
|
inset 0 1px 0 0 var(--edge),
|
|
0 1px 2px rgb(var(--shadow-color) / 0.04),
|
|
0 22px 44px -28px rgb(var(--shadow-color) / 0.2);
|
|
}
|
|
|
|
.glass {
|
|
@apply rounded-2xl border backdrop-blur-md;
|
|
background: color-mix(in srgb, var(--surface) 70%, transparent);
|
|
border-color: color-mix(in srgb, var(--border) 80%, transparent);
|
|
}
|
|
|
|
.kicker {
|
|
@apply inline-flex items-center gap-2 font-mono text-[11px] font-medium uppercase tracking-[0.22em];
|
|
color: var(--text-faint);
|
|
}
|
|
|
|
.eyebrow {
|
|
@apply inline-flex items-center gap-2 text-xs font-semibold uppercase tracking-[0.18em];
|
|
}
|
|
|
|
.chip {
|
|
@apply inline-flex items-center gap-1.5 rounded-full border px-2.5 py-1 text-xs font-medium;
|
|
background: var(--surface);
|
|
border-color: var(--border);
|
|
}
|
|
|
|
.rule {
|
|
height: 1px;
|
|
background: linear-gradient(to right, transparent, var(--border-strong) 12%, var(--border-strong) 88%, transparent);
|
|
}
|
|
|
|
.btn,
|
|
.btn-primary,
|
|
.btn-secondary,
|
|
.btn-ghost,
|
|
.btn-danger {
|
|
@apply inline-flex items-center justify-center gap-2 rounded-xl px-4 py-2 text-sm font-medium transition duration-200;
|
|
}
|
|
.btn:disabled,
|
|
.btn-primary:disabled,
|
|
.btn-secondary:disabled,
|
|
.btn-ghost:disabled,
|
|
.btn-danger:disabled {
|
|
@apply cursor-not-allowed opacity-60;
|
|
}
|
|
|
|
.btn-primary {
|
|
@apply text-white;
|
|
background: linear-gradient(180deg, color-mix(in srgb, var(--color-brand-500) 88%, white), var(--color-brand-600));
|
|
box-shadow:
|
|
inset 0 1px 0 0 rgba(255, 255, 255, 0.18),
|
|
0 1px 2px rgb(var(--shadow-color) / 0.2),
|
|
0 14px 26px -14px rgb(var(--shadow-color) / 0.5);
|
|
}
|
|
.btn-primary:hover:not(:disabled) {
|
|
background: linear-gradient(180deg, var(--color-brand-500), var(--color-brand-700));
|
|
transform: translateY(-1px);
|
|
}
|
|
.btn-primary:active:not(:disabled) {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.btn-secondary {
|
|
@apply border;
|
|
background: var(--surface-raised);
|
|
color: var(--text);
|
|
border-color: var(--border-strong);
|
|
box-shadow: inset 0 1px 0 0 var(--edge);
|
|
}
|
|
.btn-secondary:hover:not(:disabled) {
|
|
background: var(--surface-muted);
|
|
}
|
|
|
|
.btn-ghost {
|
|
color: var(--text-muted);
|
|
}
|
|
.btn-ghost:hover:not(:disabled) {
|
|
background: var(--surface-muted);
|
|
color: var(--text);
|
|
}
|
|
|
|
.btn-danger {
|
|
@apply bg-red-600 text-white;
|
|
}
|
|
.btn-danger:hover:not(:disabled) {
|
|
@apply bg-red-700;
|
|
}
|
|
|
|
.label {
|
|
@apply mb-1 block text-sm font-medium;
|
|
}
|
|
|
|
.input {
|
|
@apply w-full rounded-xl border px-3 py-2 text-sm outline-none;
|
|
background: var(--surface);
|
|
color: var(--text);
|
|
border-color: var(--border);
|
|
}
|
|
.input:focus {
|
|
border-color: var(--color-brand-500);
|
|
box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-brand-500) 20%, transparent);
|
|
}
|
|
|
|
.badge {
|
|
@apply inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-semibold;
|
|
}
|
|
}
|
|
|
|
@layer utilities {
|
|
/* Editorial display: serif, tight but not cramped, no heavy weight. */
|
|
.font-display,
|
|
.display {
|
|
font-family: var(--font-display);
|
|
letter-spacing: -0.01em;
|
|
line-height: 1.02;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.tabular {
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.shadow-soft {
|
|
box-shadow:
|
|
inset 0 1px 0 0 var(--edge),
|
|
0 1px 2px rgb(var(--shadow-color) / 0.04),
|
|
0 30px 60px -36px rgb(var(--shadow-color) / 0.26);
|
|
}
|
|
|
|
.animate-marquee {
|
|
animation: marquee 40s linear infinite;
|
|
}
|
|
|
|
.grain::after {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0;
|
|
pointer-events: none;
|
|
opacity: 0.5;
|
|
mix-blend-mode: overlay;
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
|
|
}
|
|
}
|
|
|
|
@keyframes marquee {
|
|
from {
|
|
transform: translateX(0);
|
|
}
|
|
to {
|
|
transform: translateX(-50%);
|
|
}
|
|
}
|
|
|
|
.js [data-reveal] {
|
|
opacity: 0;
|
|
transform: translateY(16px);
|
|
transition:
|
|
opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
|
|
transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
|
|
transition-delay: var(--reveal-delay, 0ms);
|
|
}
|
|
.js [data-reveal].is-in {
|
|
opacity: 1;
|
|
transform: none;
|
|
}
|
|
|
|
:focus-visible {
|
|
outline: 2px solid var(--color-brand-500);
|
|
outline-offset: 2px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
html {
|
|
scroll-behavior: smooth;
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
* {
|
|
animation-duration: 0.01ms !important;
|
|
transition-duration: 0.01ms !important;
|
|
}
|
|
[data-reveal] {
|
|
opacity: 1;
|
|
transform: none;
|
|
}
|
|
html {
|
|
scroll-behavior: auto;
|
|
}
|
|
}
|