Files
internetforkids/static/css/main.css
Christian Gick 48bae02b88
All checks were successful
Deploy Internet for Kids / Build & Push (push) Successful in 13s
Deploy Internet for Kids / Deploy (push) Successful in 5s
Deploy Internet for Kids / Health Check (push) Successful in 2s
Deploy Internet for Kids / Smoke Tests (push) Successful in 3s
Deploy Internet for Kids / IndexNow Ping (push) Successful in 8s
Deploy Internet for Kids / Promote to Latest (push) Successful in 1s
Deploy Internet for Kids / Rollback (push) Has been skipped
Deploy Internet for Kids / Audit (push) Successful in 1s
feat: use Agiliton lime branding colors throughout
Enforced=#84cc16, Passed=#65a30d, Progress=#a3e635, Guidelines=#d9f99d
Links and accents use lime-600 (#65a30d) from Agiliton brand palette.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-03 14:41:52 +03:00

325 lines
8.1 KiB
CSS

/* Custom font imports */
@font-face {
font-family: 'Newsreader';
font-style: normal;
font-weight: 400 700;
font-display: swap;
src: url(/fonts/newsreader/newsreader-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: 'Newsreader';
font-style: normal;
font-weight: 400 700;
font-display: swap;
src: url(/fonts/newsreader/newsreader-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
font-family: 'Newsreader';
font-style: italic;
font-weight: 400 500;
font-display: swap;
src: url(/fonts/newsreader/newsreader-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;
}
@font-face {
font-family: 'Newsreader';
font-style: italic;
font-weight: 400 500;
font-display: swap;
src: url(/fonts/newsreader/newsreader-italic-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* CSS Variables */
:root {
--ifk-font: 'Newsreader', 'Times New Roman', serif;
--ifk-text: #1c1917;
--ifk-bg: #fafaf9;
--ifk-accent: #65a30d;
--ifk-accent-hover: #4d7c0f;
--ifk-secondary: #84cc16;
}
/* Utility classes for colors */
.text-ifk-accent { color: var(--ifk-accent); }
.text-ifk-text { color: var(--ifk-text); }
.bg-ifk-bg { background-color: var(--ifk-bg); }
.hover\:text-ifk-accent:hover { color: var(--ifk-accent); }
.hover\:text-ifk-accent-hover:hover { color: var(--ifk-accent-hover); }
/* Font family utility */
.font-newsreader { font-family: var(--ifk-font); }
/* Tailwind-equivalent utilities */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
.flex { display: flex; }
.flex-1 { flex: 1 1 0%; }
.flex-wrap { flex-wrap: wrap; }
.inline-block { display: inline-block; }
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.p-4 { padding: 1rem; }
.pt-8 { padding-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mr-2 { margin-right: 0.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-20 { margin-top: 5rem; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-40 { z-index: 40; }
.border { border: 1px solid #e5e7eb; }
.border-t { border-top: 1px solid #e5e7eb; }
.border-b { border-bottom: 1px solid #e5e7eb; }
.rounded { border-radius: 0.25rem; }
.bg-white { background-color: #fff; }
.bg-gray-50 { background-color: #f9fafb; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-4xl { font-size: 2.75rem; line-height: 1.15; }
.font-semibold { font-weight: 600; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.025em; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.text-gray-600 { color: #4b5563; }
.hover\:bg-gray-50:hover { background-color: #f9fafb; }
@media (min-width: 768px) { .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); } }
/* Global typography */
body {
background-color: var(--ifk-bg);
color: var(--ifk-text);
font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}
article, .prose {
font-family: var(--ifk-font);
}
h1, h2, h3, h4, h5, h6 {
font-family: var(--ifk-font);
color: var(--ifk-text);
font-weight: 600;
}
h1, .article-title {
font-size: 2.75rem;
line-height: 1.15;
letter-spacing: -0.01em;
margin-bottom: 1.5rem;
}
h2 {
font-size: 1.85rem;
line-height: 1.25;
margin-top: 3rem;
margin-bottom: 1.25rem;
}
h3 {
font-size: 1.5rem;
line-height: 1.3;
margin-top: 2.5rem;
margin-bottom: 1rem;
}
/* Article content */
article p {
font-size: 1.375rem;
line-height: 1.6;
margin-bottom: 1.5rem;
font-family: var(--ifk-font);
}
/* Links */
article a {
color: var(--ifk-accent);
text-decoration: underline;
text-decoration-thickness: 1px;
text-underline-offset: 2px;
transition: all 0.2s ease;
}
article a:hover {
color: var(--ifk-accent-hover);
text-decoration-thickness: 2px;
}
/* Blockquotes */
blockquote {
font-family: var(--ifk-font);
font-style: italic;
font-size: 1.5rem;
line-height: 1.6;
border-left: 3px solid var(--ifk-secondary);
padding-left: 1.5rem;
margin: 2rem 0;
color: var(--ifk-text);
opacity: 0.85;
}
/* Code blocks */
code {
font-family: 'Courier New', monospace;
font-size: 0.9rem;
background: #f3f4f6;
padding: 0.1rem 0.4rem;
border-radius: 0.25rem;
}
pre {
background: #1f2937;
color: #f3f4f6;
padding: 1.5rem;
border-radius: 0.5rem;
overflow-x: auto;
font-family: 'Courier New', monospace;
font-size: 0.9rem;
line-height: 1.5;
margin: 1.5rem 0;
}
pre code {
background: none;
color: inherit;
padding: 0;
border-radius: 0;
}
/* Tables */
table {
width: 100%;
border-collapse: collapse;
margin: 1.5rem 0;
font-family: var(--ifk-font);
font-size: 1.1rem;
line-height: 1.6;
}
th, td {
padding: 0.75rem 1rem;
border: 1px solid #e5e7eb;
text-align: left;
}
th {
background: #f3f4f6;
font-weight: 600;
}
/* Lists */
ul, ol {
margin-left: 1.5rem;
margin-bottom: 1.5rem;
}
li {
margin-bottom: 0.5rem;
font-family: var(--ifk-font);
font-size: 1.375rem;
line-height: 1.6;
}
/* Navigation */
nav, header, footer {
font-family: system-ui, -apple-system, sans-serif;
}
nav a {
text-decoration: none;
transition: color 0.2s ease;
}
nav a:hover {
color: var(--ifk-accent);
}
/* Article metadata */
.article-meta, .post-meta, time, .reading-time {
font-family: system-ui, -apple-system, sans-serif;
font-size: 0.95rem;
color: #6b7280;
}
/* Tags */
.taxonomy-term, [href*="/tags/"], [href*="/categories/"] {
font-family: system-ui, -apple-system, sans-serif;
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--ifk-accent);
text-decoration: none;
}
.taxonomy-term:hover, [href*="/tags/"]:hover, [href*="/categories/"]:hover {
color: var(--ifk-accent-hover);
text-decoration: underline;
}
/* Table of Contents */
#TableOfContents {
font-family: system-ui, -apple-system, sans-serif;
font-size: 0.95rem;
line-height: 1.7;
}
#TableOfContents a {
color: var(--ifk-accent);
text-decoration: none;
}
#TableOfContents a:hover {
text-decoration: underline;
}
/* Status badges (for shortcodes) */
.csm-enforced { background: #84cc16; color: white; }
.csm-passed { background: #65a30d; color: white; }
.csm-progress { background: #a3e635; color: #365314; }
.csm-guidelines { background: #d9f99d; color: #365314; }
/* Shortcode-specific overrides */
.ifk-stat-num { font-family: var(--ifk-font); }
.ifk-stat-label { font-family: system-ui, -apple-system, sans-serif; }
.ifk-chart-card h4 { font-family: system-ui, -apple-system, sans-serif; }
/* Responsive design */
@media (max-width: 768px) {
h1, .article-title {
font-size: 2rem;
}
h2 {
font-size: 1.5rem;
}
article p, li {
font-size: 1.1rem;
}
}