danielrosehill's picture
Add link and footnote to Anthropic docs quote, enhance styling
90c556c
:root {
--primary: #6366f1;
--primary-dark: #4f46e5;
--secondary: #8b5cf6;
--accent: #ec4899;
--bg-dark: #020617;
--bg-card: #0f172a;
--bg-card-hover: #1e293b;
--text-primary: #f8fafc;
--text-secondary: #e2e8f0;
--text-muted: #94a3b8;
--border: #334155;
--code-bg: #0f172a;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
background: var(--bg-dark);
color: var(--text-primary);
line-height: 1.7;
position: relative;
overflow-x: hidden;
}
.hero-gradient {
position: fixed;
top: 0;
left: 0;
right: 0;
height: 400px;
background: linear-gradient(135deg,
rgba(99, 102, 241, 0.12) 0%,
rgba(139, 92, 246, 0.12) 50%,
rgba(236, 72, 153, 0.12) 100%);
filter: blur(60px);
z-index: -1;
pointer-events: none;
}
.container {
max-width: 900px;
margin: 0 auto;
padding: 3rem 2rem;
position: relative;
z-index: 1;
}
.header-badge-container {
display: flex;
gap: 1rem;
justify-content: center;
margin-bottom: 2rem;
}
.emoji-badge {
font-size: 2.5rem;
animation: float 3s ease-in-out infinite;
display: inline-block;
}
.emoji-badge:nth-child(2) {
animation-delay: 0.5s;
}
.emoji-badge:nth-child(3) {
animation-delay: 1s;
}
@keyframes float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-10px); }
}
/* Markdown Content Styling */
#content h1 {
font-size: 2.75rem;
font-weight: 800;
color: var(--text-primary);
margin-bottom: 0.5rem;
line-height: 1.2;
}
/* Subtitle styling */
#content h1 + p {
font-size: 1.5rem;
color: var(--text-secondary);
font-weight: 500;
margin-bottom: 2.5rem;
font-style: normal;
}
#content h2 {
font-size: 2.25rem;
font-weight: 700;
color: var(--text-primary);
margin-top: 3rem;
margin-bottom: 1.5rem;
padding-bottom: 0.5rem;
border-bottom: 2px solid var(--border);
position: relative;
}
#content h2::before {
content: '';
position: absolute;
bottom: -2px;
left: 0;
width: 60px;
height: 2px;
background: linear-gradient(90deg, var(--primary), var(--secondary));
}
#content h3 {
font-size: 1.625rem;
font-weight: 600;
color: var(--text-primary);
margin-top: 2rem;
margin-bottom: 1rem;
}
#content p {
color: var(--text-secondary);
margin-bottom: 1.25rem;
font-size: 1.125rem;
line-height: 1.8;
}
#content strong {
color: var(--text-primary);
font-weight: 600;
}
#content em {
color: var(--text-secondary);
font-style: italic;
}
/* Badge Styling */
#content img[src*="shields.io"],
#content img[src*="badge"] {
display: inline-block !important;
margin: 0.25rem !important;
box-shadow: none !important;
border: none !important;
border-radius: 4px !important;
vertical-align: middle;
height: auto !important;
max-height: 20px;
}
#content p:has(img[src*="shields.io"]) {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
align-items: center;
margin-bottom: 1.5rem;
}
#content img[alt*="shield"] {
display: inline-block;
margin: 0 0.25rem;
}
/* Images */
#content img {
max-width: 100%;
height: auto;
border-radius: 12px;
margin: 2rem 0;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
border: 1px solid var(--border);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#content img:hover {
transform: translateY(-4px) scale(1.01);
box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
}
/* Lists */
#content ul, #content ol {
margin-left: 1.5rem;
margin-bottom: 1.5rem;
color: var(--text-secondary);
}
#content li {
margin-bottom: 0.75rem;
padding-left: 0.5rem;
font-size: 1.125rem;
line-height: 1.8;
}
#content ul li::marker {
color: var(--primary);
}
/* Code blocks */
#content code {
background: var(--code-bg);
padding: 0.2rem 0.5rem;
border-radius: 4px;
font-family: 'JetBrains Mono', monospace;
font-size: 0.9rem;
color: var(--accent);
border: 1px solid var(--border);
}
#content pre {
background: var(--code-bg);
padding: 1.5rem;
border-radius: 8px;
overflow-x: auto;
margin: 1.5rem 0;
border: 1px solid var(--border);
}
#content pre code {
background: none;
padding: 0;
border: none;
color: var(--text-secondary);
}
/* Blockquotes */
#content blockquote {
border-left: 5px solid var(--primary);
background: linear-gradient(135deg,
rgba(99, 102, 241, 0.08) 0%,
rgba(139, 92, 246, 0.05) 100%);
padding: 2rem;
margin: 2.5rem 0;
border-radius: 0 12px 12px 0;
font-style: italic;
color: var(--text-primary);
font-size: 1.25rem;
line-height: 1.7;
box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
position: relative;
}
#content blockquote::before {
content: '"';
position: absolute;
top: -10px;
left: 20px;
font-size: 4rem;
color: var(--primary);
opacity: 0.3;
font-family: Georgia, serif;
}
#content blockquote p {
margin-bottom: 0;
position: relative;
z-index: 1;
}
/* Links */
#content a {
color: var(--primary);
text-decoration: none;
border-bottom: 1px solid transparent;
transition: all 0.2s ease;
}
#content a:hover {
color: var(--secondary);
border-bottom-color: var(--secondary);
}
/* Horizontal Rules */
#content hr {
border: none;
height: 2px;
background: linear-gradient(90deg,
transparent 0%,
var(--border) 50%,
transparent 100%);
margin: 3rem 0;
}
/* Special callout boxes for important sections */
#content p:has(img[alt*="shield"]) {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-bottom: 2rem;
}
/* Footer */
.footer {
margin-top: 5rem;
padding-top: 2rem;
border-top: 1px solid var(--border);
text-align: center;
}
.footer p {
color: var(--text-muted);
font-size: 0.95rem;
margin-bottom: 0.5rem;
}
.footer a {
color: var(--primary);
text-decoration: none;
transition: color 0.2s ease;
}
.footer a:hover {
color: var(--secondary);
}
.footer-date {
font-family: 'JetBrains Mono', monospace;
font-size: 0.85rem;
color: var(--text-muted);
}
/* Error state */
.error {
background: var(--bg-card);
padding: 2rem;
border-radius: 8px;
text-align: center;
color: var(--accent);
}
/* Responsive Design */
@media (max-width: 768px) {
.container {
padding: 2rem 1.5rem;
}
#content h1 {
font-size: 2rem;
}
#content h2 {
font-size: 1.5rem;
}
#content h3 {
font-size: 1.25rem;
}
.emoji-badge {
font-size: 2rem;
}
#content img {
margin: 1.5rem 0;
}
}
/* Smooth scrolling */
html {
scroll-behavior: smooth;
}
/* Selection styling */
::selection {
background: var(--primary);
color: white;
}