:root {
--page-bg: #ffffff;
--hero-bg: linear-gradient(135deg, #f5f7ff 0%, #faf5ff 100%);
}
[data-bs-theme="dark"] {
--page-bg: #14161a;
--hero-bg: linear-gradient(135deg, #1a1d29 0%, #221b2e 100%);
}
*, *::before, *::after { box-sizing: border-box; }
html {
scroll-behavior: smooth;
}
body {
margin: 0;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 1rem;
line-height: 1.6;
color: var(--text-primary);
background: var(--page-bg);
-webkit-font-smoothing: antialiased;
}
a { color: var(--link-color); }
h1, h2, h3 {
line-height: 1.2;
margin: 0 0 0.6rem;
font-weight: 700;
}
p { margin: 0 0 1rem; }
.wrap {
width: 100%;
max-width: 68rem;
margin: 0 auto;
padding: 0 1.25rem;
}
.skip-link {
position: absolute;
left: -9999px;
top: 0;
z-index: 100;
padding: 0.6rem 1rem;
background: var(--surface);
border: 1px solid var(--border-strong);
border-radius: 0 0 0.5rem 0;
}
.skip-link:focus { left: 0; }
.site-header {
position: sticky;
top: 0;
z-index: 20;
background: var(--surface-header);
border-bottom: 1px solid var(--border-color);
}
.site-header .wrap {
display: flex;
align-items: center;
gap: 1rem;
min-height: 4rem;
flex-wrap: wrap;
}
.site-brand {
display: flex;
align-items: center;
gap: 0.6rem;
text-decoration: none;
color: var(--text-primary);
font-weight: 700;
font-size: 1.05rem;
margin-right: auto;
}
.site-brand img { display: block; width: 2rem; height: 2rem; }
.site-nav {
display: flex;
align-items: center;
gap: 1.25rem;
}
.site-nav a {
color: var(--text-secondary);
text-decoration: none;
font-size: 0.95rem;
}
.site-nav a:hover, .site-nav a:focus { color: var(--text-primary); text-decoration: underline; }
@media (max-width: 47.9375rem) {
.site-nav { display: none; }
.site-header .wrap { padding-block: 0.6rem; row-gap: 0.6rem; min-height: 0; }
.site-brand { margin-right: 0; width: 100%; }
.site-header .btn { flex: 1; }
.site-header .theme-toggle { flex: 0 0 auto; }
}
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.45rem;
margin: 0;
padding: 0.6rem 1.15rem;
border-radius: 0.5rem;
border: 1px solid transparent;
font-size: 0.95rem;
font-weight: 600;
text-decoration: none;
cursor: pointer;
transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn + .btn { margin-left: 0; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:focus-visible {
outline: 2px solid var(--primary-color);
outline-offset: 2px;
}
.btn-primary {
background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
color: #ffffff;
}
.btn-outline {
background: var(--surface);
color: var(--text-primary);
border-color: var(--border-strong);
}
.btn-lg { padding: 0.8rem 1.6rem; font-size: 1.05rem; }
.theme-toggle {
padding: 0.6rem;
line-height: 0;
}
.btn[hidden] { display: none; }
.theme-toggle svg {
display: block;
width: 1.1rem;
height: 1.1rem;
}
.hero {
background: var(--hero-bg);
border-bottom: 1px solid var(--border-color);
padding: 4rem 0 3.5rem;
text-align: center;
}
.hero h1 {
font-size: clamp(2rem, 5vw, 3rem);
max-width: 20ch;
margin-inline: auto;
text-wrap: balance;
}
.hero .lede {
font-size: clamp(1.05rem, 2.2vw, 1.25rem);
color: var(--text-secondary);
max-width: 44rem;
margin: 1rem auto 2rem;
}
.hero-actions {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
justify-content: center;
}
.hero-note {
margin: 1.5rem 0 0;
font-size: 0.9rem;
color: var(--text-secondary);
}
.hero-art {
margin-top: 2.5rem;
}
.hero-art .art-figure {
max-width: 24rem;
}
@media (min-width: 62rem) {
.hero { text-align: left; }
.hero-grid {
display: grid;
grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
align-items: center;
gap: 3.5rem;
}
.hero h1 { max-width: 17ch; margin-inline: 0; }
.hero .lede { margin-inline: 0; }
.hero-actions { justify-content: flex-start; }
.hero-art { margin-top: 0; }
.hero-art .art-figure { max-width: none; }
}
section { padding: 3.5rem 0; }
section[id] { scroll-margin-top: 5rem; }
section.alt { background: var(--surface-2); border-block: 1px solid var(--border-color); }
.section-head { max-width: 46rem; margin: 0 auto 2.5rem; text-align: center; }
.section-head h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
.section-head p { color: var(--text-secondary); margin: 0; }
.cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
gap: 1.25rem;
}
.card {
background: var(--surface);
border: 1px solid var(--border-color);
border-radius: 0.75rem;
padding: 1.5rem;
box-shadow: var(--shadow-sm);
transition: transform var(--dur-fast) ease, box-shadow var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.card h3 { font-size: 1.15rem; display: flex; align-items: center; gap: 0.65rem; }
.card p { color: var(--text-secondary); margin: 0; font-size: 0.95rem; }
.card .icon {
flex: none;
width: 2.25rem;
height: 2.25rem;
padding: 0.5rem;
border-radius: var(--radius-md);
background: var(--tint-accent-bg);
color: var(--primary-color);
}
.card:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-md);
border-color: var(--border-strong);
}
.card ul {
margin: 0.75rem 0 0;
padding-left: 1.1rem;
color: var(--text-secondary);
font-size: 0.95rem;
}
.card .tool-link { margin: 0.9rem 0 0; }
.callout {
max-width: 46rem;
margin: 0 auto;
background: var(--surface);
border: 1px solid var(--border-strong);
border-left: 4px solid var(--primary-color);
border-radius: 0.5rem;
padding: 1.25rem 1.5rem;
}
.callout h2 { font-size: 1.2rem; }
.callout p:last-child { margin-bottom: 0; }
.faq { max-width: 46rem; margin: 0 auto; }
.faq-item {
border-bottom: 1px solid var(--border-color);
padding: 1.25rem 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { font-size: 1.05rem; }
.faq-item p { color: var(--text-secondary); margin: 0; }
.site-footer {
background: var(--surface-header);
border-top: 1px solid var(--border-color);
padding: 2rem 0;
font-size: 0.9rem;
color: var(--text-secondary);
}
.site-footer .wrap {
display: flex;
flex-wrap: wrap;
gap: 1rem 1.5rem;
align-items: center;
justify-content: space-between;
}
.footer-line { text-wrap: pretty; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-links a { color: var(--text-secondary); text-decoration: none; }
.footer-links a:hover, .footer-links a:focus { color: var(--text-primary); text-decoration: underline; }
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
.btn, .card { transition: none; }
.btn:hover, .card:hover { transform: none; }
}
