/* Shared site header */
body.page-index header.site-header,
body.page-palette header.site-header,
body.page-color header.site-header,
body.page-palette-inspector header.site-header,
body.page-contrast header.site-header,
body.page-blog header.site-header,
body.page-article header.site-header {
    background: #fff;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 8%;
}

body .site-logo {
    color: #222;
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
}

body .site-logo img {
    display: block;
    width: 168px;
    height: auto;
}

body.page-index .site-nav a,
body.page-palette .site-nav a,
body.page-color .site-nav a,
body.page-palette-inspector .site-nav a,
body.page-contrast .site-nav a,
body.page-blog .site-nav a,
body.page-article .site-nav a {
    color: #555;
    margin-left: 20px;
    text-decoration: none;
}

body .site-nav a:hover,
body .site-nav a:focus-visible {
    color: #111;
    text-decoration: underline;
}

/* index.html */
body.page-index,
body.page-index * {
    box-sizing:border-box;
    margin:0;
    padding:0;
    font-family:Arial, Helvetica, sans-serif;
}

body.page-index {
    background:#f7f8fa;
    color:#222;
}

body.page-index header {

    background:white;
    padding:25px 8%;
    border-bottom:1px solid #ddd;

    display:flex;
    justify-content:space-between;
    align-items:center;

}

body.page-index .logo {

    font-size:28px;
    font-weight:bold;

}

body.page-index nav a {

    margin-left:20px;
    text-decoration:none;
    color:#555;

}

body.page-index .hero {

    text-align:center;
    padding:90px 20px;

}

body.page-index .hero h1 {

    font-size:48px;
    margin-bottom:20px;

}

body.page-index .hero p {

    font-size:20px;
    color:#666;
    margin-bottom:35px;

}

body.page-index .search {

    max-width:650px;
    margin:auto;
    display:flex;

}

body.page-index .search input {

    flex:1;

    padding:18px;

    font-size:18px;

    border:1px solid #ccc;

    border-radius:8px 0 0 8px;

}

body.page-index .search button {

    padding:18px 35px;

    border:none;

    background:#111;

    color:white;

    cursor:pointer;

    font-size:16px;

    border-radius:0 8px 8px 0;

}

body.page-index section {

    padding:50px 8%;

}

body.page-index .grid {

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(220px,1fr));

    gap:25px;

}

body.page-index .card {

    background:white;

    border-radius:12px;

    overflow:hidden;

    box-shadow:0 3px 12px rgba(0,0,0,.08);

}

body.page-index .swatch {

    height:160px;

}

body.page-index .info {

    padding:20px;

}

body.page-index .info h3 {

    margin-bottom:8px;

}

body.page-index .palette {

    display:flex;

    height:100px;

}

body.page-index .palette div {

    flex:1;

}

body.page-index .tool {

    padding:25px;

}

body.page-index footer {

    background:#111;

    color:white;

    text-align:center;

    padding:40px;

}

body.page-index .card {
    background:white;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 3px 12px rgba(0,0,0,.08);
    transition:transform .2s ease, box-shadow .2s ease;
}

body.page-index .card:hover {
    transform:translateY(-5px);
    box-shadow:0 8px 20px rgba(0,0,0,.15);
}

body.page-index .palette-grid {

display:grid;

grid-template-columns:
repeat(auto-fit,minmax(280px,1fr));

gap:25px;

}

body.page-index .card-link {

text-decoration:none;

color:inherit;

}

body.page-index .palette-card {

background:white;

border-radius:15px;

overflow:hidden;

box-shadow:
0 5px 20px rgba(0,0,0,.08);

transition:.2s;

}

body.page-index .palette-card:hover {

transform:translateY(-5px);

}

body.page-index .mini-palette {

display:flex;

height:100px;

}

body.page-index .mini-palette div {

flex:1;

}

body.page-index .info {

padding:20px;

}

body.page-index .info h3 {

margin-top:0;

}

body.page-index .journal-section {
    padding-top: 0;
}

body.page-index .journal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 24px;
}

body.page-index .journal-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .08);
    transition: transform .2s ease, box-shadow .2s ease;
}

body.page-index .journal-card:hover,
body.page-index .journal-card:focus-visible {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
}

body.page-index .journal-card__swatch {
    min-height: 120px;
}

body.page-index .journal-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px 20px 56px;
}

body.page-index .journal-card__category {
    margin-bottom: 10px;
    color: #6366f1;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body.page-index .journal-card__content h3 {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.25;
}

body.page-index .journal-card__description {
    margin-bottom: 16px;
    color: #5c667a;
    font-size: 15px;
    line-height: 1.5;
}

body.page-index .journal-button {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 20px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    background: #111;
    border: 1px solid #111;
    border-radius: 8px;
}

body.page-index .journal-button:hover,
body.page-index .journal-button:focus-visible {
    color: #fff;
    background: #333;
    border-color: #333;
}

/* palette.html */
body.page-palette,
body.page-palette * {
box-sizing:border-box;
font-family:Arial, Helvetica, sans-serif;
}

body.page-palette {
margin:0;
background:#f5f6f8;
color:#222;
}

body.page-palette header {

background:white;
padding:25px 8%;
border-bottom:1px solid #ddd;

}

body.page-palette header h1 {
margin:0;
}

body.page-palette .container {

max-width:1200px;
margin:auto;
padding:40px 20px;

}

body.page-palette .hero {

text-align:center;
padding:40px 20px;

}

body.page-palette .hero h1 {

font-size:38px;
margin-bottom:10px;

}

body.page-palette .hero p {

color:#666;

}

body.page-palette .controls {

display:flex;
justify-content:center;
align-items:center;
gap:15px;
flex-wrap:wrap;
margin-top:25px;

}

body.page-palette select {

padding:12px 18px;

border-radius:8px;

border:1px solid #ccc;

font-size:16px;

background:white;

}

body.page-palette button {

padding:12px 20px;

border:none;

border-radius:8px;

background:#111;

color:white;

cursor:pointer;

}

body.page-palette button:hover {

opacity:.85;

}

body.page-palette .palette {

display:grid;

grid-template-columns:
repeat(auto-fit,minmax(180px,1fr));

gap:20px;

}

body.page-palette .card {

background:white;

border-radius:15px;

overflow:hidden;

box-shadow:
0 5px 20px rgba(0,0,0,.08);

}

body.page-palette .swatch {

height:220px;

display:flex;

align-items:center;

justify-content:center;

font-size:22px;

font-weight:bold;

cursor:pointer;

}

body.page-palette .details {

padding:18px;

text-align:center;

}

body.page-palette .hex-input {

display:block;

width:100%;

margin:0 0 10px;

padding:9px 10px;

border:1px solid #ccc;

border-radius:6px;

font-size:14px;

font-weight:bold;

letter-spacing:.04em;

text-align:center;

text-transform:uppercase;

}

body.page-palette .hex-input:focus {

border-color:#111;

outline:2px solid rgba(17,17,17,.15);

outline-offset:1px;

}

body.page-palette .hex-input.invalid {

border-color:#c62828;

outline-color:rgba(198,40,40,.2);

}

body.page-palette .details button {

font-size:13px;

padding:8px 14px;

margin:4px;

}

body.page-palette .export {

margin-top:50px;

background:white;

padding:25px;

border-radius:15px;

box-shadow:
0 5px 20px rgba(0,0,0,.08);

}

body.page-palette .controls {
flex-direction:column;
gap:20px;
}

body.page-palette .palette-type-buttons {
display:flex;
justify-content:center;
gap:9px;
max-width:940px;
flex-wrap:wrap;
}

body.page-palette .palette-type-button {
padding:10px 14px;
border:1px solid #d1d5db;
border-radius:999px;
background:#fff;
color:#374151;
font-size:14px;
font-weight:600;
}

body.page-palette .palette-type-button:hover,
body.page-palette .palette-type-button:focus-visible {
border-color:#111827;
background:#f3f4f6;
opacity:1;
}

body.page-palette .palette-type-button.is-active {
border-color:#111827;
background:#111827;
color:#fff;
}

body.page-palette .palette-actions,
body.page-palette .export-actions {
display:flex;
justify-content:center;
gap:12px;
flex-wrap:wrap;
}

body.page-palette .palette-actions button,
body.page-palette .export-actions button {
background:#fff;
border:1px solid #d1d5db;
color:#1f2937;
font-weight:700;
}

body.page-palette .palette-actions button:hover,
body.page-palette .export-actions button:hover {
background:#f3f4f6;
opacity:1;
}

body.page-palette .palette-actions .primary-action,
body.page-palette .export-actions .primary-action {
border-color:#111827;
background:#111827;
color:#fff;
}

body.page-palette .palette-actions .primary-action:hover,
body.page-palette .export-actions .primary-action:hover {
background:#374151;
}

body.page-palette .export {
display:flex;
align-items:center;
justify-content:space-between;
gap:24px;
padding:30px;
border:1px solid #e5e7eb;
}

body.page-palette .export-heading h2 {
margin:0 0 8px;
}

body.page-palette .export-heading p {
margin:0;
color:#6b7280;
}

body.page-palette .export-eyebrow {
margin-bottom:7px !important;
color:#4f46e5 !important;
font-size:12px;
font-weight:700;
letter-spacing:.08em;
text-transform:uppercase;
}

body.page-palette .export-actions {
justify-content:flex-end;
}

@media (max-width: 700px) {
body.page-palette .export {
flex-direction:column;
align-items:stretch;
}

body.page-palette .export-actions {
justify-content:flex-start;
}
}

body.page-palette .toast {

position:fixed;

right:30px;

bottom:30px;

padding:15px 25px;

border-radius:12px;

font-weight:bold;

opacity:0;

transform:translateY(100px);

transition:.3s;

}

body.page-palette .toast.show {

opacity:1;

transform:translateY(0);

}

/* color.html */
body.page-color,
body.page-color * {
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

body.page-color {
    margin:0;
    background:#f5f6f8;
    color:#222;
}

body.page-color .hero {

    padding:80px 20px;
    text-align:center;

}

body.page-color .hero h1 {

    font-size:60px;
    margin:0 0 10px;

}

body.page-color .hero h2 {

    margin:10px;

}

body.page-color .hero button {

    padding:10px 18px;
    margin:5px;
    border:none;
    border-radius:6px;
    cursor:pointer;

}

body.page-color .container {

    max-width:1200px;
    margin:auto;
    padding:40px 20px;

}

body.page-color .grid {

    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(260px,1fr));

    gap:20px;

}

body.page-color .card {

    background:white;
    padding:25px;
    border-radius:12px;
    box-shadow:0 3px 12px rgba(0,0,0,.1);

}

body.page-color .value {

    background:#eee;
    padding:12px;
    margin:10px 0;
    border-radius:6px;

}

body.page-color .code {

    background:#111;
    color:white;
    padding:20px;
    border-radius:8px;
    font-family:monospace;

}

body.page-color .color-section {

    margin-top:30px;

}

/* The generated description is three independent, readable content blocks. */
body.page-color #colorDescription {

    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:24px;

}

body.page-color #colorDescription h2 {

    margin-top:0;

}

body.page-color #colorDescription p {

    margin-bottom:0;
    line-height:1.6;

}

@media (max-width:800px) {

    body.page-color #colorDescription {
        grid-template-columns:1fr;
    }

}

body.page-color .color-boxes {

    display:flex;
    height:140px;
    border-radius:10px;
    overflow:hidden;

}

body.page-color .color-boxes a {

    flex:1;
    display:flex;
    text-decoration:none;

}

body.page-color .color-boxes--scale {
    display:grid;
    grid-template-columns:repeat(10, minmax(0, 1fr));
}

body.page-color .color-boxes--scale a {
    min-width:0;
}

body.page-color .color-box {

    flex:1;
    width:100%;

    display:flex;
    align-items:flex-end;
    justify-content:center;

    padding-top:20px;
    padding-bottom:20px;

    font-size:13px;
    font-weight:bold;

    cursor:pointer;

    transition:transform .2s ease;

}

body.page-color .color-box {
    position:relative;

    flex:1;
    width:100%;

    display:flex;
    align-items:flex-end;
    justify-content:center;

    padding:20px;

    font-size:13px;
    font-weight:bold;

    cursor:pointer;

    transition:.2s;
}

body.page-color .color-box:hover {
    transform:scale(1.04);
    z-index:2;
}

body.page-color .copy-btn {

    position:absolute;

    top:10px;
    right:10px;

    width:28px;
    height:28px;

    border-radius:6px;

    background:rgba(255,255,255,.25);

    backdrop-filter:blur(6px);

    display:flex;
    align-items:center;
    justify-content:center;

    opacity:0;

    transition:.2s;

    font-size:16px;

}

body.page-color .color-box:hover .copy-btn {

    opacity:1;

}

body.page-color .copy-btn:hover {

    background:rgba(255,255,255,.45);

}

body.page-color footer {

    background:#111;
    color:white;
    text-align:center;
    padding:40px;

}

body.page-color .copy-btn {

    position:absolute;
    top:10px;
    right:10px;

    width:34px;
    height:34px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:8px;

    background:rgba(255,255,255,.18);

    backdrop-filter:blur(8px);

    opacity:0;

    transition:.2s;

}

body.page-color .color-box:hover .copy-btn {

    opacity:1;

}

body.page-color .copy-btn:hover {

    background:rgba(255,255,255,.35);

}

body.page-color .copy-icon {

    width:18px;
    height:18px;

}

body.page-color .toast {

    position:fixed;

    bottom:30px;
    right:30px;

    min-width:240px;

    padding:18px 24px;

    border-radius:14px;

    font-size:18px;
    font-weight:600;

    text-align:center;

    box-shadow:0 15px 40px rgba(0,0,0,.25);

    transform:translateY(120px);

    opacity:0;

    transition:
        transform .3s ease,
        opacity .3s ease;

    z-index:99999;

}

body.page-color .toast.show {

    transform:translateY(0);

    opacity:1;

}

body.page-color .toast-icon {

    width:26px;
    height:26px;

    display:flex;
    align-items:center;
    justify-content:center;

}

body.page-color .toast-icon svg {

    width:20px;
    height:20px;

}

body.page-color .toast-text {

    font-weight:600;

}

/* palette-inspector.html */
body.page-palette-inspector,
body.page-palette-inspector * {
box-sizing:border-box;
font-family:Arial,Helvetica,sans-serif;
}

body.page-palette-inspector {

margin:0;

background:#f5f6f8;

color:#222;

}

body.page-palette-inspector header {

background:white;

padding:25px 8%;

border-bottom:1px solid #ddd;

}

body.page-palette-inspector .container {

max-width:1200px;

margin:auto;

padding:40px 20px;

}

body.page-palette-inspector .hero {

text-align:center;

padding:40px 20px;

}

body.page-palette-inspector .hero h1 {

font-size:40px;

}

body.page-palette-inspector .palette-preview {

display:flex;

height:220px;

border-radius:15px;

overflow:hidden;

margin:40px 0;

}

body.page-palette-inspector .preview-color {

flex:1;

display:flex;

align-items:flex-end;

justify-content:center;

padding:20px;

font-weight:bold;

font-size:18px;

}

body.page-palette-inspector .colors {

display:grid;

grid-template-columns:
repeat(auto-fit,minmax(280px,1fr));

gap:25px;

}

body.page-palette-inspector .card {

background:white;

border-radius:15px;

overflow:hidden;

box-shadow:
0 5px 20px rgba(0,0,0,.08);

}

body.page-palette-inspector .card-color {

height:140px;

display:flex;

align-items:center;

justify-content:center;

font-size:22px;

font-weight:bold;

cursor:pointer;

}

body.page-palette-inspector .details {

padding:25px;

}

body.page-palette-inspector .details p {

margin:8px 0;

color:#555;

}

body.page-palette-inspector button {

background:#111;

color:white;

border:none;

padding:10px 15px;

border-radius:8px;

cursor:pointer;

}

body.page-palette-inspector .toast {

position:fixed;

bottom:30px;

right:30px;

padding:15px 25px;

border-radius:12px;

font-weight:bold;

opacity:0;

transform:translateY(100px);

transition:.3s;

}

body.page-palette-inspector .toast.show {

opacity:1;

transform:translateY(0);

}

/* contrast.html */
body.page-contrast,
body.page-contrast * {
box-sizing:border-box;
font-family:Arial, Helvetica, sans-serif;
}

body.page-contrast {
margin:0;
background:#f5f6f8;
color:#222;
}

body.page-contrast .contrast-container {
max-width:980px;
margin:0 auto;
padding:55px 20px 70px;
}

body.page-contrast .contrast-hero {
text-align:center;
margin-bottom:35px;
}

body.page-contrast .eyebrow {
margin:0 0 10px;
color:#666;
font-size:14px;
font-weight:bold;
letter-spacing:.08em;
text-transform:uppercase;
}

body.page-contrast h1 {
margin:0 0 12px;
font-size:42px;
}

body.page-contrast .contrast-hero p:last-child {
margin:0;
color:#666;
font-size:18px;
}

body.page-contrast .contrast-panel,
body.page-contrast .ratio-card,
body.page-contrast .score-card {
background:#fff;
border-radius:14px;
box-shadow:0 5px 20px rgba(0,0,0,.08);
}

body.page-contrast .contrast-panel {
padding:28px;
}

body.page-contrast .color-controls {
display:grid;
grid-template-columns:1fr auto 1fr;
align-items:end;
gap:20px;
}

body.page-contrast .color-control label {
display:block;
margin-bottom:8px;
font-weight:bold;
}

body.page-contrast .color-field {
display:flex;
gap:10px;
}

body.page-contrast input[type="color"] {
width:52px;
height:46px;
padding:3px;
border:1px solid #ccc;
border-radius:8px;
background:#fff;
cursor:pointer;
}

body.page-contrast .hex-field {
flex:1;
min-width:0;
padding:12px;
border:1px solid #ccc;
border-radius:8px;
font-size:16px;
font-weight:bold;
letter-spacing:.04em;
text-transform:uppercase;
}

body.page-contrast .swap-button {
width:46px;
height:46px;
border:0;
border-radius:50%;
background:#222;
color:#fff;
font-size:24px;
cursor:pointer;
}

body.page-contrast .input-error {
min-height:20px;
margin:14px 0 0;
color:#b42318;
font-size:14px;
}

body.page-contrast .contrast-preview {
margin:28px 0;
padding:48px 35px;
border-radius:14px;
transition:background-color .2s, color .2s;
}

body.page-contrast .preview-label {
margin:0 0 14px;
font-size:13px;
font-weight:bold;
letter-spacing:.08em;
text-transform:uppercase;
opacity:.75;
}

body.page-contrast .contrast-preview h2 {
margin:0 0 12px;
font-size:32px;
}

body.page-contrast .contrast-preview p:not(.preview-label) {
margin:0 0 24px;
font-size:18px;
}

body.page-contrast .contrast-preview button {
padding:11px 16px;
border:0;
border-radius:8px;
font-weight:bold;
}

body.page-contrast .results {
display:grid;
grid-template-columns:minmax(220px,.8fr) minmax(0,1.2fr);
gap:22px;
}

body.page-contrast .ratio-card,
body.page-contrast .score-card {
padding:26px;
}

body.page-contrast .ratio-card p,
body.page-contrast .ratio-card span,
body.page-contrast .score-note {
color:#666;
}

body.page-contrast .ratio-card p {
margin:0 0 10px;
font-weight:bold;
}

body.page-contrast .ratio-card strong {
display:block;
margin-bottom:10px;
font-size:34px;
letter-spacing:.08em;
}

body.page-contrast .ratio-card span {
font-size:14px;
}

body.page-contrast .score-card h2 {
margin:0 0 16px;
font-size:22px;
}

body.page-contrast .score-row {
display:flex;
justify-content:space-between;
padding:12px 0;
border-top:1px solid #eee;
}

body.page-contrast .pass { color:#157f3d; }
body.page-contrast .fail { color:#b42318; }

body.page-contrast .score-note {
margin:16px 0 0;
font-size:13px;
}

body.page-contrast .alternatives {
margin-top:48px;
}

body.page-contrast .alternatives > h2 {
margin:0 0 8px;
font-size:28px;
}

body.page-contrast .alternatives > p {
margin:0 0 20px;
color:#666;
}

body.page-contrast .alternative-grid {
display:grid;
grid-template-columns:repeat(2, minmax(0, 1fr));
gap:22px;
}

body.page-contrast .alternative-card {
padding:20px;
background:#fff;
border-radius:14px;
box-shadow:0 5px 20px rgba(0,0,0,.08);
}

body.page-contrast .alternative-preview {
display:flex;
align-items:center;
justify-content:center;
height:118px;
margin-bottom:18px;
border-radius:9px;
font-size:42px;
font-weight:bold;
}

body.page-contrast .alternative-card h3 {
margin:0 0 8px;
font-size:19px;
}

body.page-contrast .alternative-card p {
margin:0 0 12px;
color:#666;
}

body.page-contrast .alternative-card .alternative-codes {
color:#222;
font-family:monospace;
font-size:13px;
font-weight:bold;
}

body.page-contrast .alternative-card button {
width:100%;
padding:10px 14px;
border:0;
border-radius:8px;
background:#222;
color:#fff;
font-weight:bold;
cursor:pointer;
}

body.page-contrast footer {
padding:28px;
background:#fff;
border-top:1px solid #ddd;
text-align:center;
}

.site-footer {
    background: #fff !important;
    border-top: 1px solid #e5e7eb;
    color: #4b5563;
    padding: 48px 8% 40px !important;
    text-align: left !important;
}

.site-footer .footer-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-footer .footer-column { min-width: 0; }

.site-footer h2 {
    margin: 0 0 16px;
    min-height: 34px;
    display: flex;
    align-items: center;
    color: #111827;
    font-size: 16px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.site-footer .footer-logo {
    color: #111827;
    font-size: 28px;
    letter-spacing: normal;
    text-decoration: none;
    text-transform: none;
}

.site-footer .footer-logo img {
    display: block;
    width: 150px;
    height: auto;
    margin-bottom: 20px;
}

.site-footer p {
    max-width: 280px;
    margin: 0;
    color: #6b7280;
    line-height: 1.6;
}

.site-footer nav a {
    display: flex;
    align-items: center;
    width: fit-content;
    margin: 0 0 12px;
    color: #4b5563;
    text-decoration: none;
}

.site-footer nav a:hover,
.site-footer nav a:focus-visible,
.site-footer .footer-logo:hover,
.site-footer .footer-logo:focus-visible {
    color: #111827;
    text-decoration: underline;
}

.site-footer .footer-logo:hover img,
.site-footer .footer-logo:focus-visible img {
    opacity: .75;
}

.site-footer .color-dot {
    width: 12px;
    height: 12px;
    margin-right: 9px;
    border: 1px solid rgba(17, 24, 39, .2);
    border-radius: 50%;
}

.site-footer .color-dot--pink { background: #ff69b4; }
.site-footer .color-dot--red { background: #e53935; }
.site-footer .color-dot--gold { background: #f4b400; }



/* Optional: make footer links slightly more compact on mobile */

@media(max-width:768px){

    .site-footer{

        padding:40px 20px 25px;

    }


    .footer-grid{

        grid-template-columns:1fr;

        gap:30px;

    }

    .site-footer .footer-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }

}

.site-footer {
    background: #fff !important;
}

@media (max-width:650px) {
body.page-contrast .color-controls,
body.page-contrast .results,
body.page-contrast .alternative-grid { grid-template-columns:1fr; }
body.page-contrast .swap-button { justify-self:center; transform:rotate(90deg); }
body.page-contrast h1 { font-size:34px; }
body.page-contrast .contrast-preview { padding:35px 25px; }
body.page-color .color-boxes--scale {
    height:280px;
    grid-template-columns:repeat(5, minmax(0, 1fr));
}
body.page-color .color-boxes--scale .color-box {
    font-size:11px;
}
}

/* blog.html */
body.page-blog,
body.page-blog * {
    box-sizing: border-box;
}

body.page-blog {
    margin: 0;
    background: #f8fafc;
    color: #172033;
    font-family: Arial, Helvetica, sans-serif;
}

body.page-blog .blog-hero,
body.page-blog .blog-list {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

body.page-blog .blog-hero {
    padding: 90px 0 56px;
    text-align: center;
}

body.page-blog .blog-eyebrow,
body.page-blog .article-meta {
    margin: 0 0 12px;
    color: #6366f1;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

body.page-blog .blog-hero h1 {
    max-width: 720px;
    margin: 0 auto 18px;
    color: #111827;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.05;
}

body.page-blog .blog-hero > p:last-child {
    max-width: 620px;
    margin: 0 auto;
    color: #5c667a;
    font-size: 19px;
    line-height: 1.6;
}

body.page-blog .blog-list {
    padding-bottom: 80px;
}

body.page-blog .blog-featured,
body.page-blog .article-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

body.page-blog .blog-featured {
    display: grid;
    grid-template-columns: minmax(240px, .85fr) minmax(0, 1.15fr);
    margin-bottom: 28px;
}

body.page-blog .article-swatch {
    min-height: 175px;
    background: linear-gradient(135deg, #6366f1, #a5b4fc);
}

body.page-blog .article-swatch--featured {
    min-height: 100%;
    background: linear-gradient(135deg, #1d4ed8 0%, #60a5fa 45%, #fef3c7 45%, #f59e0b 100%);
}

body.page-blog .article-swatch--accessibility { background: linear-gradient(135deg, #111827 50%, #f9fafb 50%); }
body.page-blog .article-swatch--warm { background: linear-gradient(135deg, #ef4444, #f97316, #facc15); }
body.page-blog .article-swatch--brand { background: linear-gradient(135deg, #7c3aed, #ec4899, #fda4af); }
body.page-blog .article-swatch--values { background: linear-gradient(135deg, #0f766e, #2dd4bf, #ccfbf1); }

body.page-blog .article-content,
body.page-blog .article-card {
    padding: 30px;
}

body.page-blog .article-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

body.page-blog .article-card {
    display: flex;
    flex-direction: column;
}

body.page-blog .article-card .article-swatch {
    margin: -30px -30px 26px;
}

body.page-blog .article-card h2,
body.page-blog .blog-featured h2 {
    margin: 0 0 14px;
    font-size: 25px;
    line-height: 1.2;
}

body.page-blog .article-card p:not(.article-meta),
body.page-blog .blog-featured p:not(.article-meta) {
    margin: 0 0 22px;
    color: #5c667a;
    line-height: 1.6;
}

body.page-blog .article-card h2 a,
body.page-blog .blog-featured h2 a,
body.page-blog .article-link {
    color: #172033;
    text-decoration: none;
}

body.page-blog .article-card h2 a:hover,
body.page-blog .blog-featured h2 a:hover,
body.page-blog .article-link:hover,
body.page-blog .article-card h2 a:focus-visible,
body.page-blog .blog-featured h2 a:focus-visible,
body.page-blog .article-link:focus-visible {
    color: #4f46e5;
    text-decoration: underline;
}

body.page-blog .article-link {
    margin-top: auto;
    color: #4f46e5;
    font-weight: 700;
}

@media (max-width: 700px) {
    body.page-blog .blog-hero { padding: 64px 0 40px; }
    body.page-blog .blog-featured,
    body.page-blog .article-grid { grid-template-columns: 1fr; }
    body.page-blog .article-swatch--featured { min-height: 210px; }
}

/* article.html */
body.page-article,
body.page-article * {
    box-sizing: border-box;
}

body.page-article {
    margin: 0;
    background: #f8fafc;
    color: #253046;
    font-family: Arial, Helvetica, sans-serif;
}

body.page-article .article-page {
    width: min(820px, calc(100% - 40px));
    margin: 0 auto;
    padding: 78px 0 88px;
}

body.page-article .article-page__header {
    max-width: 760px;
    margin-bottom: 48px;
}

body.page-article .article-page__meta {
    margin: 0 0 14px;
    color: #4f46e5;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

body.page-article h1 {
    margin: 0 0 20px;
    color: #111827;
    font-size: clamp(38px, 6vw, 58px);
    line-height: 1.08;
}

body.page-article .article-page__intro {
    margin: 0;
    color: #5c667a;
    font-size: 21px;
    line-height: 1.55;
}

body.page-article .article-page__content {
    font-size: 18px;
    line-height: 1.75;
}

body.page-article .article-page__content > p {
    margin: 0 0 26px;
}

body.page-article .article-page__content h2 {
    margin: 48px 0 14px;
    color: #111827;
    font-size: 29px;
    line-height: 1.2;
}

body.page-article .article-colors {
    margin: 46px 0;
    padding: 32px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
}

body.page-article .article-colors h2 {
    margin-top: 0;
}

body.page-article .article-colors > div > p:last-child {
    margin-top: 0;
    color: #5c667a;
    font-size: 16px;
}

body.page-article code {
    padding: 2px 5px;
    background: #eef2ff;
    border-radius: 4px;
    color: #3730a3;
    font-size: .9em;
}

body.page-article .article-color-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 26px;
}

body.page-article .article-color-card {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    color: #172033;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

body.page-article .article-color-card:hover,
body.page-article .article-color-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
}

body.page-article .article-color-swatch {
    display: block;
    height: 120px;
}

body.page-article .article-color-info {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 14px;
}

body.page-article .article-color-info strong { font-size: 15px; }
body.page-article .article-color-info small { color: #667085; font-family: monospace; }

/* popular-palettes.html */
body.page-popular-palettes,
body.page-popular-palettes * {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body.page-popular-palettes {
    margin: 0;
    background: #f7f8fa;
    color: #172033;
}

body.page-popular-palettes header.site-header {
    background: #fff;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 8%;
}

body.page-popular-palettes .site-nav a {
    color: #555;
    margin-left: 20px;
    text-decoration: none;
}

body.page-popular-palettes .site-nav a:hover,
body.page-popular-palettes .site-nav a:focus-visible {
    color: #111;
    text-decoration: underline;
}

body.page-index .popular-palettes-link {
    display: inline-block;
    margin-top: 28px;
    color: #111;
    font-weight: bold;
}

body.page-popular-palettes .popular-palettes-page {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 72px 0 84px;
}

body.page-popular-palettes .popular-palettes-hero {
    max-width: 700px;
    margin: 0 auto 54px;
    text-align: center;
}

body.page-popular-palettes .popular-palettes-eyebrow {
    margin: 0 0 12px;
    color: #4f46e5;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

body.page-popular-palettes h1 {
    margin: 0 0 16px;
    font-size: clamp(38px, 6vw, 58px);
    line-height: 1.08;
}

body.page-popular-palettes .popular-palettes-hero > p:not(.popular-palettes-eyebrow) {
    margin: 0;
    color: #5c667a;
    font-size: 19px;
    line-height: 1.55;
}

body.page-popular-palettes .palette-search {
    display: block;
    margin-top: 30px;
}

body.page-popular-palettes .palette-search input {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid #cfd5df;
    border-radius: 10px;
    background: #fff;
    color: #172033;
    font-size: 16px;
}

body.page-popular-palettes .palette-search input:focus {
    border-color: #4f46e5;
    outline: 3px solid rgba(79, 70, 229, .18);
}

body.page-popular-palettes .popular-palettes-results-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

body.page-popular-palettes h2 { margin: 0; font-size: 27px; }
body.page-popular-palettes .popular-palettes-results-heading p { margin: 0; color: #667085; }

body.page-popular-palettes .popular-palettes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 22px;
}

body.page-popular-palettes .popular-palette-card {
    overflow: hidden;
    border: 1px solid #e3e6eb;
    border-radius: 14px;
    background: #fff;
    color: #172033;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .05);
    transition: transform .2s ease, box-shadow .2s ease;
}

body.page-popular-palettes .popular-palette-card:hover,
body.page-popular-palettes .popular-palette-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, .13);
}

body.page-popular-palettes .popular-palette-swatches { display: flex; height: 112px; }
body.page-popular-palettes .popular-palette-swatches span { flex: 1; }

body.page-popular-palettes .popular-palette-details { padding: 18px; }
body.page-popular-palettes .popular-palette-details h3 { margin: 0 0 9px; font-size: 18px; }
body.page-popular-palettes .popular-palette-details p {
    overflow: hidden;
    margin: 0;
    color: #667085;
    font-family: monospace;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.page-popular-palettes .palette-empty-state {
    margin: 36px 0;
    color: #667085;
    text-align: center;
}

body.page-popular-palettes .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 700px) {
    body.page-popular-palettes header.site-header { padding: 16px 20px; }
    body.page-popular-palettes .site-logo img { width: 140px; }
    body.page-popular-palettes .site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 14px; }
    body.page-popular-palettes .site-nav a { margin-left: 0; font-size: 14px; }
    body.page-popular-palettes .popular-palettes-page { padding: 52px 0 64px; }
    body.page-popular-palettes .popular-palettes-results-heading { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 600px) {
    body.page-article .article-page { padding: 54px 0 64px; }
    body.page-article .article-colors { padding: 22px; }
    body.page-article .article-color-grid { grid-template-columns: 1fr; }
}

/* Responsive shared navigation */
body .site-menu-toggle .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body .site-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #172033;
    cursor: pointer;
}

body .site-menu-toggle__icon,
body .site-menu-toggle__icon::before,
body .site-menu-toggle__icon::after {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    border-radius: 2px;
    background: currentColor;
    content: "";
    transition: transform .2s ease, opacity .2s ease;
}

body .site-menu-toggle__icon { position: relative; }
body .site-menu-toggle__icon::before { position: absolute; top: -7px; }
body .site-menu-toggle__icon::after { position: absolute; top: 7px; }

body .site-menu-toggle[aria-expanded="true"] .site-menu-toggle__icon { background: transparent; }
body .site-menu-toggle[aria-expanded="true"] .site-menu-toggle__icon::before { transform: translateY(7px) rotate(45deg); }
body .site-menu-toggle[aria-expanded="true"] .site-menu-toggle__icon::after { transform: translateY(-7px) rotate(-45deg); }

body .site-menu-toggle:focus-visible {
    outline: 3px solid rgba(79, 70, 229, .3);
    outline-offset: 2px;
}

@media (max-width: 700px) {
    body .site-header {
        position: relative;
        padding: 16px 20px !important;
    }

    body .site-logo img { width: 145px; }
    body .site-menu-toggle { display: inline-grid; place-items: center; }

    body .site-header .site-nav {
        position: absolute;
        z-index: 10;
        top: calc(100% + 1px);
        right: 20px;
        left: 20px;
        display: none;
        padding: 8px;
        border: 1px solid #e0e3e8;
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 12px 26px rgba(15, 23, 42, .15);
    }

    body .site-header .site-nav.is-open { display: grid; }

    body .site-nav a,
    body.page-index nav a,
    body.page-popular-palettes .site-nav a {
        display: block;
        margin: 0;
        padding: 12px 14px;
        border-radius: 6px;
    }

    body .site-nav a:hover,
    body .site-nav a:focus-visible {
        background: #f3f4f6;
        text-decoration: none;
    }
}

/* Small-screen layout safeguards */
@media (max-width: 650px) {
    body.page-index .hero { padding: 62px 20px; }
    body.page-index .hero h1 { font-size: clamp(36px, 11vw, 48px); }
    body.page-index .hero p { font-size: 18px; }
    body.page-index .search { flex-wrap: wrap; }
    body.page-index .search input,
    body.page-index .search button {
        width: 100%;
        border-radius: 8px;
    }
    body.page-index .search button { margin-top: 10px; }
    body.page-index section { padding: 38px 20px; }

    body.page-palette .container,
    body.page-color .container,
    body.page-palette-inspector .container { padding: 30px 16px; }
    body.page-palette .hero { padding: 28px 0; }
    body.page-palette .hero h1 { font-size: clamp(32px, 10vw, 38px); }
    body.page-palette .palette-type-buttons,
    body.page-palette .palette-actions,
    body.page-palette .export-actions { justify-content: stretch; }
    body.page-palette .palette-type-button,
    body.page-palette .palette-actions button,
    body.page-palette .export-actions button { flex: 1 1 140px; }

    body.page-color .hero { padding: 56px 16px; }
    body.page-color .hero h1 { font-size: clamp(38px, 12vw, 60px); overflow-wrap: anywhere; }
    body.page-color .color-boxes { height: 112px; }
    body.page-color .color-boxes a,
    body.page-palette-inspector .preview-color { min-width: 0; }
    body.page-color .color-box { padding: 10px 4px; font-size: 11px; overflow-wrap: anywhere; }
    body.page-color .copy-btn { opacity: 1; }

    body.page-palette-inspector .hero { padding: 28px 0; }
    body.page-palette-inspector .hero h1 { font-size: clamp(32px, 10vw, 40px); overflow-wrap: anywhere; }
    body.page-palette-inspector .palette-preview { height: 150px; margin: 26px 0; }
    body.page-palette-inspector .preview-color { padding: 8px 3px; font-size: 12px; overflow-wrap: anywhere; }
    body.page-palette-inspector .colors { grid-template-columns: 1fr; }

    body.page-color .toast,
    body.page-palette .toast,
    body.page-palette-inspector .toast {
        right: 16px;
        bottom: 16px;
        left: 16px;
        min-width: 0;
        max-width: none;
        text-align: center;
    }

    body.page-contrast .contrast-container { padding: 42px 16px 56px; }
    body.page-contrast .contrast-panel { padding: 20px; }
    body.page-contrast .contrast-preview { padding: 30px 20px; }
    body.page-contrast .contrast-preview h2 { font-size: 28px; }

    body.page-popular-palettes .popular-palettes-page { width: min(100% - 32px, 1200px); }
    body.page-popular-palettes .popular-palettes-grid { grid-template-columns: 1fr; }
}
