Files
website/src/styles/global.css
T
2026-08-02 17:37:56 -05:00

225 lines
3.9 KiB
CSS

/* Green Tea. — marketing site global styles */
@font-face {
font-family: 'Zen Maru Gothic';
font-style: normal;
font-weight: 500;
font-display: swap;
src: url('/fonts/zen-maru-gothic-latin-500.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: 'Zen Maru Gothic';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url('/fonts/zen-maru-gothic-latin-700.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;
}
:root {
--base: #0d1117;
--panel: #161b22;
--matcha: #5fb88a;
--matcha-deep: #3fa873;
--violet: #7c6cf0;
--ink: #e6edf3;
--dim: #8b949e;
--font-heading: 'Zen Maru Gothic', var(--font-body);
--font-body:
-apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
--max-width: 1120px;
--gutter: 24px;
}
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
color-scheme: dark;
}
body {
margin: 0;
background: var(--base);
color: var(--ink);
font-family: var(--font-body);
font-size: 1rem;
line-height: 1.7;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}
h1,
h2,
h3,
h4 {
font-family: var(--font-heading);
font-weight: 700;
line-height: 1.3;
color: var(--ink);
margin: 0 0 0.6em;
}
h1 {
font-size: clamp(2.25rem, 4vw, 3.25rem);
}
h2 {
font-size: clamp(1.75rem, 3vw, 2.25rem);
}
h3 {
font-size: 1.375rem;
}
p {
margin: 0 0 1.25em;
color: var(--ink);
}
a {
color: var(--matcha);
text-decoration: none;
text-underline-offset: 0.2em;
}
a:hover,
a:focus-visible {
color: var(--matcha-deep);
text-decoration: underline;
}
::selection {
background: var(--matcha-deep);
color: var(--base);
}
.wrap {
max-width: var(--max-width);
margin: 0 auto;
padding: 0 var(--gutter);
}
/* Prose defaults — used by blog posts and long-form content */
.prose {
max-width: 70ch;
}
.prose p,
.prose ul,
.prose ol {
margin-bottom: 1.4em;
}
.prose h2,
.prose h3 {
margin-top: 2em;
}
.prose code {
background: var(--panel);
border-radius: 4px;
padding: 0.15em 0.4em;
font-size: 0.9em;
}
.prose pre {
background: var(--panel);
border-radius: 8px;
padding: 1.25em;
overflow-x: auto;
}
.prose pre code {
background: none;
padding: 0;
}
.prose blockquote {
border-left: 3px solid var(--matcha-deep);
margin: 1.5em 0;
padding-left: 1.25em;
color: var(--dim);
}
section {
padding-block: clamp(3rem, 8vw, 6rem);
overflow-x: clip;
}
/* Shared marketing primitives — used across landing sections */
.section--panel {
background: var(--panel);
}
.kicker {
display: inline-block;
font-size: 0.8rem;
font-weight: 600;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--matcha);
margin: 0 0 0.85em;
}
.btn {
display: inline-flex;
align-items: center;
gap: 0.4em;
padding: 0.7em 1.4em;
border-radius: 8px;
font-weight: 600;
font-size: 0.95rem;
border: 1px solid transparent;
line-height: 1.2;
transition:
background-color 0.15s ease,
border-color 0.15s ease,
color 0.15s ease;
}
.btn:hover,
.btn:focus-visible {
text-decoration: none;
}
.btn--primary {
background: var(--matcha);
color: var(--base);
}
.btn--primary:hover,
.btn--primary:focus-visible {
background: var(--matcha-deep);
color: var(--base);
}
.btn--ghost {
background: transparent;
border-color: color-mix(in srgb, var(--dim) 45%, transparent);
color: var(--ink);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
border-color: var(--matcha);
color: var(--matcha);
}
.btn-row {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.9rem;
}