/* Data Master — Color Refresh 2026 */
:root {
    color-scheme: light;
    --ink-900: #121110;
    --ink-700: #2A2724;
    --ink-600: #3E3A35;
    --ink-200: #D2CBC2;
    --ink-100: #ECE7E1;
    --ink-50:  #F7F4F0;
    --terra-700: #A8452A;
    --terra-600: #C0522F;
    --terra-100: #F9E3DA;
    --sand-200: #E7DCD0;
    --sand-100: #F2EBE3;
    --sage-700: #3F6B4E;
    --sage-100: #E4EEE6;
    --white: #FFFFFF;

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --radius: 10px;
    --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink-900);
    background: var(--ink-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }
a:focus-visible, .btn:focus-visible {
    outline: 3px solid var(--terra-600);
    outline-offset: 3px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* --- Header --- */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--ink-100);
}
.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.brand svg { width: 30px; height: 32px; flex: none; }
.brand-name {
    display: block;
    font-size: 19px;
    line-height: 1.1;
    letter-spacing: -0.01em;
    white-space: nowrap;
}
.brand-name b { font-weight: 700; }
.brand-name span { font-weight: 500; }
.brand-tag {
    display: block;
    font-size: 11.5px;
    color: var(--sage-700);
    font-weight: 500;
}

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--ink-200);
    border-radius: 8px;
    background: var(--ink-50);
}
.lang-switch button {
    appearance: none;
    border: 0;
    margin: 0;
    padding: 6px 10px;
    border-radius: 6px;
    background: transparent;
    color: var(--ink-600);
    font: 600 13px/1 var(--font);
    letter-spacing: 0.04em;
    cursor: pointer;
}
.lang-switch button:hover { color: var(--ink-900); }
.lang-switch button[aria-pressed="true"] {
    background: var(--white);
    color: var(--ink-900);
    box-shadow: 0 1px 2px rgba(18, 17, 16, 0.12);
}
.lang-switch button:focus-visible { outline: 3px solid var(--terra-600); outline-offset: 2px; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
    white-space: nowrap;
}
.btn-primary { background: var(--ink-900); color: var(--ink-50); }
.btn-primary:hover { background: var(--ink-700); }
.btn-accent { background: var(--terra-600); color: var(--white); }
.btn-accent:hover { background: var(--terra-700); }
.btn-ghost { background: var(--white); color: var(--ink-900); border-color: var(--ink-200); }
.btn-ghost:hover { border-color: var(--ink-900); }

/* --- Hero --- */
.hero { padding: 64px 0 40px; }
.eyebrow {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--terra-600);
}
h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.03em;
}
.lead {
    margin: 18px 0 0;
    max-width: 640px;
    font-size: 18.5px;
    color: var(--ink-600);
}
.steps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    font-size: 15px;
    color: var(--ink-600);
}
.steps li { display: flex; align-items: center; gap: 10px; }
.steps .n {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--sage-100);
    color: var(--sage-700);
    font-weight: 700;
    font-size: 13px;
    flex: none;
}

/* --- Template grid --- */
.templates { padding: 16px 0 64px; }
h2 {
    margin: 0 0 20px;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
    border-color: var(--ink-200);
    box-shadow: 0 10px 28px rgba(18, 17, 16, 0.07);
}
.card-band {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 112px;
    padding: 16px 20px;
    background: var(--sand-100);
    border-bottom: 1px solid var(--sand-200);
}
.card-band .icon {
    width: 44px;
    height: 44px;
    color: var(--ink-900);
}
.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--sand-200);
    color: var(--ink-600);
    font-size: 12.5px;
    font-weight: 600;
}
.card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
}
.card h3 {
    margin: 0;
    font-size: 19px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.card p {
    margin: 8px 0 0;
    font-size: 15.5px;
    color: var(--ink-600);
}
.features {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    font-size: 14.5px;
    color: var(--ink-600);
}
.features li {
    position: relative;
    padding-left: 22px;
    margin-top: 4px;
}
.features li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 7px;
    width: 10px;
    height: 6px;
    border-left: 2px solid var(--sage-700);
    border-bottom: 2px solid var(--sage-700);
    transform: rotate(-45deg);
}
.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 20px;
}
.card-actions .btn { flex: 1 1 auto; }

/* --- CTA band --- */
.cta {
    background: var(--ink-900);
    color: var(--ink-50);
}
.cta .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 48px;
    padding-bottom: 48px;
}
.cta h2 { margin: 0; color: var(--ink-50); }
.cta p { margin: 8px 0 0; color: var(--ink-200); max-width: 560px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn-ghost {
    background: transparent;
    color: var(--ink-50);
    border-color: var(--ink-600);
}
.cta .btn-ghost:hover { border-color: var(--ink-50); }

/* --- Footer --- */
footer {
    padding: 24px 0;
    font-size: 14px;
    color: var(--ink-600);
    background: var(--ink-50);
}
footer .wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
}
footer a { color: var(--ink-900); font-weight: 600; text-decoration: none; }
footer a:hover { color: var(--terra-600); }

@media (max-width: 560px) {
    body { font-size: 16px; }
    .hero { padding: 40px 0 28px; }
    .lead { font-size: 17px; }
    .site-header .btn { padding: 9px 12px; font-size: 14px; }
    .header-actions { gap: 8px; }
    .lang-switch button { padding: 6px 8px; }
    .brand-tag { display: none; }
    .brand-name { font-size: 17px; }
    .brand svg { width: 26px; height: 28px; }
    .grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
    .wrap { padding: 0 16px; }
    .brand { gap: 7px; }
    .brand-name { font-size: 16px; }
    .header-actions { gap: 6px; }
    .site-header .btn { padding: 8px 10px; font-size: 13.5px; }
    .lang-switch button { padding: 6px 7px; font-size: 12.5px; }
}

@media (max-width: 350px) {
    .site-header .btn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}

/* --- Breadcrumb (sub-pages) --- */
.crumbs { padding: 18px 0 0; font-size: 14.5px; color: var(--ink-600); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--ink-200); }
.crumbs a { color: var(--ink-900); font-weight: 600; text-decoration: none; display: inline-block; padding: 6px 0; }
.crumbs a:hover { color: var(--terra-600); }

/* --- Home: collection groups and cards --- */
.groups { padding: 8px 0 64px; }
.group + .group { margin-top: 44px; }
.group-head { margin-bottom: 18px; }
.group-head h2 { margin: 0; }
.group-head p { margin: 6px 0 0; color: var(--ink-600); font-size: 16px; max-width: 640px; }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.ccard { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--ink-100); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: box-shadow .2s ease, border-color .2s ease; }
.ccard:hover { border-color: var(--ink-200); box-shadow: 0 10px 28px rgba(18, 17, 16, 0.07); }
.ccard:focus-visible { outline: 3px solid var(--terra-600); outline-offset: 3px; }
.ccard-art { height: 168px; background: var(--sand-100); border-bottom: 1px solid var(--sand-200); display: grid; place-items: center; padding: 18px; }
.ccard-art svg { width: 100%; height: 100%; max-width: 300px; }
.ccard-body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.ccard-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ccard h3 { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.count { flex: none; padding: 3px 10px; border-radius: 999px; background: var(--sage-100); color: var(--sage-700); font-size: 13px; font-weight: 700; }
.ccard p { margin: 8px 0 0; font-size: 15.5px; color: var(--ink-600); }
.ccard .go { margin-top: auto; padding-top: 18px; font-weight: 600; font-size: 15px; color: var(--terra-700); }
.ccard:hover .go { color: var(--terra-600); }
@media (max-width: 560px) { .cgrid { grid-template-columns: 1fr; } .ccard-art { height: 140px; } }
