comfy-accessability/style.css
2026-01-24 20:20:48 +00:00

581 lines
9.9 KiB
CSS

/* Material Design 2 - Comfy Solutions */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--primary-color: #5B7394;
--accent-color: #FDC95D;
--dark-color: #040D15;
--surface-color: #ffffff;
--surface-variant: #f5f5f5;
--text-primary: #1a1a1a;
--text-secondary: #424242;
--divider-color: #e0e0e0;
--focus-color: #FDC95D;
/* Material Design 2 elevation */
--elevation-1: 0px 2px 1px -1px rgba(0,0,0,0.2), 0px 1px 1px 0px rgba(0,0,0,0.14), 0px 1px 3px 0px rgba(0,0,0,0.12);
--elevation-2: 0px 3px 1px -2px rgba(0,0,0,0.2), 0px 2px 2px 0px rgba(0,0,0,0.14), 0px 1px 5px 0px rgba(0,0,0,0.12);
--elevation-4: 0px 2px 4px -1px rgba(0,0,0,0.2), 0px 4px 5px 0px rgba(0,0,0,0.14), 0px 1px 10px 0px rgba(0,0,0,0.12);
}
html {
scroll-behavior: smooth;
}
body {
font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
line-height: 1.5;
color: var(--text-primary);
background-color: var(--surface-color);
font-size: 14px;
font-weight: 400;
letter-spacing: 0.25px;
}
.container {
max-width: 960px;
margin: 0 auto;
padding: 0;
}
/* Skip Link */
.skip-link {
position: absolute;
top: -40px;
left: 0;
background: var(--primary-color);
color: white;
padding: 8px 16px;
text-decoration: none;
z-index: 100;
}
.skip-link:focus {
top: 0;
}
/* Header */
.header {
background-color: var(--primary-color);
color: white;
box-shadow: var(--elevation-4);
padding: 16px 24px;
position: sticky;
top: 0;
z-index: 1000;
}
.header-content {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 960px;
margin: 0 auto;
}
.header-left {
display: flex;
align-items: center;
gap: 40px;
}
.brand {
font-size: 20px;
font-weight: 500;
letter-spacing: 0.15px;
margin: 0;
color: white;
display: flex;
align-items: center;
gap: 12px;
}
.brand-link {
color: white;
text-decoration: none;
transition: color 0.2s ease;
}
.brand-link:hover {
color: #f0f0f0;
}
.brand-link:focus-visible {
outline: 3px solid var(--accent-color);
outline-offset: 2px;
border-radius: 2px;
}
/* Navigation Menu */
.nav-menu {
display: flex;
gap: 24px;
align-items: center;
}
.nav-link {
color: rgba(255, 255, 255, 0.87);
text-decoration: none;
font-size: 14px;
font-weight: 500;
letter-spacing: 0.4px;
transition: color 0.2s ease;
padding-bottom: 4px;
border-bottom: 2px solid transparent;
}
.nav-link:hover {
color: white;
}
.nav-link:focus-visible {
outline: 3px solid var(--accent-color);
outline-offset: 2px;
}
.nav-link.nav-active {
color: white;
border-bottom-color: var(--accent-color);
}
.brand-icon {
height: 28px;
width: 28px;
object-fit: contain;
}
/* Buttons */
.btn {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 0;
border: none;
border-radius: 4px;
font-family: 'Roboto', sans-serif;
font-size: 14px;
font-weight: 500;
letter-spacing: 0.4px;
text-decoration: none;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
text-transform: uppercase;
}
.btn-primary {
background-color: var(--primary-color);
color: white;
padding: 10px 24px;
box-shadow: var(--elevation-2);
}
.btn-primary:hover {
background-color: #3d4d63;
box-shadow: var(--elevation-4);
}
.btn-primary:active {
box-shadow: var(--elevation-1);
}
.btn-text {
color: var(--dark-color);
background-color: var(--accent-color);
padding: 8px 16px;
gap: 8px;
box-shadow: var(--elevation-1);
}
.btn-text:hover {
background-color: #fdd96f;
box-shadow: var(--elevation-2);
}
.btn-text:focus-visible {
outline: 3px solid var(--dark-color);
}
/* Material Icons */
.material-icons {
font-size: 24px;
width: 24px;
height: 24px;
display: inline-flex;
align-items: center;
justify-content: center;
}
.btn .material-icons {
font-size: 18px;
width: 18px;
height: 18px;
}
/* Main Content */
.main-content {
padding: 40px 24px;
max-width: 960px;
margin: 0 auto;
}
.hero {
text-align: center;
margin-bottom: 40px;
}
.hero h1 {
font-size: 32px;
font-weight: 300;
letter-spacing: 0.25px;
line-height: 1.4;
color: var(--dark-color);
margin: 0;
}
.content-section {
display: flex;
flex-direction: column;
gap: 24px;
}
.content-section h3 + p {
margin-top: -12px;
}
h3 {
font-size: 20px;
font-weight: 500;
letter-spacing: 0.15px;
color: var(--dark-color);
margin: 0 0 8px 0;
display: flex;
align-items: center;
gap: 12px;
}
h4 {
font-size: 16px;
font-weight: 500;
letter-spacing: 0.15px;
color: var(--dark-color);
margin: 0 0 8px 0;
display: flex;
align-items: center;
gap: 12px;
}
p {
font-size: 14px;
font-weight: 400;
letter-spacing: 0.25px;
line-height: 1.6;
color: var(--text-secondary);
margin: 0;
}
.leading-paragraph {
font-size: 16px;
font-weight: 400;
line-height: 1.7;
color: var(--text-primary);
margin: 0;
}
/* Links */
a {
color: var(--primary-color);
text-decoration: none;
transition: all 0.2s ease;
position: relative;
}
a:hover {
color: #3d4d63;
text-decoration: underline;
}
a:focus-visible {
outline: 3px solid var(--focus-color);
outline-offset: 2px;
}
/* Cards */
.verification-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
margin: 20px 0;
}
.card {
background-color: var(--surface-variant);
border-radius: 4px;
padding: 24px;
box-shadow: var(--elevation-1);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover {
box-shadow: var(--elevation-2);
transform: translateY(-2px);
}
.card h4 {
color: var(--primary-color);
margin-bottom: 12px;
}
.card p {
margin: 0;
color: var(--text-secondary);
}
.card a {
color: var(--primary-color);
font-weight: 500;
}
/* Boxes */
.commitment-box,
.contact-box {
background-color: var(--surface-variant);
border-left: 4px solid var(--accent-color);
border-radius: 4px;
padding: 24px;
box-shadow: var(--elevation-1);
}
.contact-box {
background-color: var(--dark-color);
color: white;
border-left-color: var(--accent-color);
}
.contact-box h3 {
color: white;
margin-bottom: 16px;
}
.contact-box p {
color: rgba(255, 255, 255, 0.87);
}
.contact-box a {
color: var(--accent-color);
}
.contact-box a:hover {
color: #fdd96f;
}
.contact-box .btn-primary {
background-color: var(--accent-color);
color: var(--dark-color);
margin-top: 16px;
}
.contact-box .btn-primary:hover {
background-color: #fdd96f;
}
/* Language Content */
.language-content {
opacity: 1;
transition: opacity 0.3s ease;
}
.language-content.hidden {
display: none;
}
/* Footer */
.footer {
border-top: 1px solid var(--divider-color);
padding: 24px;
text-align: center;
color: var(--text-secondary);
font-size: 12px;
letter-spacing: 0.4px;
margin-top: 32px;
}
/* Accessibility */
*:focus-visible {
outline: 3px solid var(--focus-color);
outline-offset: 2px;
}
/* Print Styles */
@media print {
.header,
.footer {
display: none;
}
.btn {
display: none;
}
}
/* Documents Page */
.documents-grid {
display: flex;
flex-direction: column;
gap: 32px;
}
.document-category {
display: flex;
flex-direction: column;
gap: 16px;
}
.document-category h2 {
margin: 0 0 8px 0;
padding-bottom: 12px;
border-bottom: 2px solid var(--accent-color);
}
.document-card {
background-color: var(--surface-variant);
border-radius: 4px;
padding: 24px;
box-shadow: var(--elevation-1);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.document-card:hover {
box-shadow: var(--elevation-2);
transform: translateY(-2px);
}
.document-card h3 {
font-size: 18px;
font-weight: 500;
letter-spacing: 0.15px;
color: var(--primary-color);
margin: 0 0 8px 0;
}
.document-card p {
font-size: 14px;
color: var(--text-secondary);
margin: 0;
}
/* Responsive Design */
@media (max-width: 768px) {
.header {
padding: 12px 16px;
}
.header-content {
flex-direction: column;
align-items: flex-start;
gap: 12px;
}
.header-left {
gap: 16px;
}
.nav-menu {
gap: 16px;
font-size: 13px;
}
.nav-link {
padding-bottom: 2px;
}
.brand {
font-size: 18px;
}
.main-content {
padding: 28px 16px;
}
.hero h2 {
font-size: 24px;
}
.verification-cards {
grid-template-columns: 1fr;
gap: 16px;
}
.card,
.commitment-box,
.contact-box {
padding: 16px;
}
h3 {
font-size: 18px;
}
h4 {
font-size: 14px;
}
}
@media (max-width: 480px) {
.main-content {
padding: 24px 12px;
}
.hero h2 {
font-size: 20px;
}
.content-section {
gap: 20px;
}
h3 {
font-size: 16px;
}
h4 {
font-size: 14px;
}
.card,
.commitment-box,
.contact-box {
padding: 16px;
}
.btn {
width: 100%;
justify-content: center;
}
}
/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
* {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}
/* High Contrast Mode */
@media (prefers-contrast: more) {
a {
text-decoration: underline;
}
.btn {
border: 2px solid currentColor;
}
}