:root {
    --black: #090806;
    --black-2: #12100d;
    --brown: #5a2e16;
    --copper: #a9602f;
    --gold: #c6a85a;
    --sand: #f3e8d3;
    --cream: #faf8f2;
    --muted: #bcae9c;
    --max: 1320px;
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--black);
    color: var(--cream);
    font-family: Inter, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
p {
    margin-top: 0;
}

/* Shared heading scale. Font-size priority deliberately overrides legacy ID/media
   rules in page styles loaded later; families, weights and colors stay untouched. */
:root {
    --site-h1: clamp(42px, 3.5vw, 48px);
    --site-h2: clamp(28px, 2.5vw, 36px);
    --site-h3: clamp(20px, 1.8vw, 26px);
    --site-card-title: clamp(18px, 1.55vw, 22px);
}
:is(.home, .tatuador-page, .studio-page, .b2b-page) h1 { font-size: var(--site-h1) !important; }
:is(.home, .tatuador-page, .studio-page, .b2b-page) h2 { font-size: var(--site-h2) !important; }
:is(.home, .tatuador-page, .studio-page, .b2b-page) h3 { font-size: var(--site-h3) !important; }
:is(.home, .tatuador-page, .studio-page, .b2b-page) :is(h1,h2,h3) {
    line-height: 1.15 !important; letter-spacing: -.02em !important;
    overflow-wrap: anywhere; text-wrap: balance;
}
:is(.home, .tatuador-page, .studio-page, .b2b-page) :is(h1,h2,h3) :is(span,em,strong) {
    font-size: inherit !important; line-height: inherit !important; letter-spacing: inherit !important;
}
:is(.profile-card, .tat-ecosystem-card, .tat-product-card, .tat-simple-product,
    .tat-finishing-card, .tat-differentials__grid, .studio-pillars, .studio-steps,
    .b2b-catalog__item, .b2b-admin-card) :is(h2,h3) { font-size: var(--site-card-title) !important; }
.tatuador-page :is(.tat-manifesto,.tat-ecosystem,.tat-products,.tat-differentials,.tat-stores) {
    padding-block: clamp(40px, 5vw, 72px);
}
.tatuador-page .tat-section-title { margin-bottom: 32px; }
.tatuador-page .tat-manifesto__grid { gap: clamp(24px, 5vw, 64px); }
.studio-page .studio-hero { min-height: 0; padding-block: 48px; }
.studio-page :is(.studio-section-heading,.studio-process__heading) { margin-bottom: 28px; }
@media (max-width: 700px) {
    :root {
        --site-h1: clamp(28px, 8.5vw, 34px);
        --site-h2: clamp(24px, 6.5vw, 28px);
        --site-h3: clamp(18px, 5vw, 22px);
        --site-card-title: clamp(16px, 4.5vw, 20px);
    }
    .studio-page .studio-hero { padding-block: 32px; }
}

/* Shared brand scale. Original artwork remains untouched and uncropped. */
/* Tatuador hero only: compact typography and spacing, without changing Home. */
.tatuador-page .tat-hero { min-height: 0; }
.tatuador-page .tat-hero__content { padding-block: 48px; }
.tatuador-page .tat-hero h1 {
    font-size: clamp(42px, 3.5vw, 48px);
    line-height: 1.08;
    letter-spacing: -.025em;
    margin-block: 16px 20px;
}
.tatuador-page .tat-hero__actions { margin-top: 24px; }
@media (max-width: 700px) {
    .tatuador-page .tat-hero__content { padding-block: 32px 36px; }
    .tatuador-page .tat-hero h1 { font-size: clamp(28px, 8.5vw, 34px); }
    .tatuador-page .tat-hero__actions { margin-top: 22px; }
}

.home .brand-logo { width: 112px; height: auto; object-fit: contain; }
.home .header { padding-top: 16px; }
.home .footer-logo, .tatuador-page .tat-footer__logo, .studio-page .studio-footer__brand img { width: 64px; height: auto; object-fit: contain; }
.b2b-page .b2b-header img, .tatuador-page .tat-header__logo, .studio-page .studio-brand img {
    width: 72px; height: auto; object-fit: contain; flex-shrink: 0;
}
.b2b-page .b2b-header { min-height: 64px; gap: 16px; }
.tatuador-page .tat-header__container { height: auto; min-height: 64px; padding-block: 6px; }
.studio-page .studio-header__inner { min-height: 64px; }
.home .footer-brand { gap: 12px; }
@media (max-width: 700px) {
    .home .brand-logo { width: 92px; }
    .home .header { padding-top: 12px; }
    .b2b-page .b2b-header img, .tatuador-page .tat-header__logo, .studio-page .studio-brand img { width: 60px; }
    .b2b-page .b2b-header { min-height: 56px; }
    .tatuador-page .tat-header__brand { align-self: flex-start; }
    .tatuador-page .tat-header__container { gap: 4px; padding-block: 6px; }
    .home .footer-logo, .tatuador-page .tat-footer__logo, .studio-page .studio-footer__brand img { width: 56px; }
}
