/* ---- Brand typefaces, self-hosted: no third-party requests ---- */

@font-face {
    font-family: 'Archivo';
    src: url('fonts/archivo.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Source Serif 4';
    src: url('fonts/source-serif-4.woff2') format('woff2-variations');
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}


/* ---- Brand tokens (brand/Marca.dc.html) ---- */

:root {
    --paper:     #FAF9F6;
    --panel:     #F1EEE7;
    --ink:       #1B1A18;
    --muted:     #4A4740;
    --muted-2:   #6E6A63;
    --rule:      #DEDBD3;
    --rule-2:    #D2CDC2;
    --accent:    #A8412F;

    --sans: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--serif);
    background: var(--paper);
    color: var(--ink);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 940px;
    margin: auto;
    padding: 0 32px;
}

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

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}


/* ---- Navigation ---- */

nav {
    border-bottom: 1px solid var(--rule);
    background: var(--paper);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav {
    max-width: 940px;
    margin: auto;
    padding: 18px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 11px;
}

.logo svg {
    display: block;
    width: 26px;
    height: 26px;
}

.wordmark {
    font-family: var(--sans);
    line-height: 1;
}

.wordmark .w1 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--ink);
}

.wordmark .w2 {
    font-size: 7.5px;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--muted-2);
    margin-top: 4px;
}

.nav .contact-link {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-2);
    transition: color 0.15s;
}

.nav .contact-link:hover {
    color: var(--accent);
}


/* ---- Hero ---- */

.hero {
    padding: 120px 0 110px;
    border-bottom: 1px solid var(--rule);
}

.hero-content {
    max-width: 760px;
}

.small-title {
    font-family: var(--sans);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 22px;
}

h1 {
    font-family: var(--sans);
    font-size: clamp(40px, 6.2vw, 62px);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.02em;
    margin-bottom: 26px;
    color: var(--ink);
    text-wrap: balance;
}

.hero p {
    font-size: 20px;
    line-height: 1.5;
    color: var(--muted);
    max-width: 640px;
    margin-bottom: 34px;
    text-wrap: pretty;
}

.button {
    display: inline-block;
    font-family: var(--sans);
    background: var(--ink);
    color: var(--paper);
    padding: 14px 26px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background 0.15s;
}

.button:hover {
    background: var(--accent);
}


/* ---- Sections ---- */

section {
    padding: 88px 0;
}

h2 {
    font-family: var(--sans);
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.018em;
    line-height: 1.15;
    margin-bottom: 34px;
    color: var(--ink);
    text-wrap: balance;
}

.intro {
    max-width: 680px;
    font-size: 18px;
    line-height: 1.58;
    color: var(--muted);
    text-wrap: pretty;
}

.intro strong {
    color: var(--ink);
    font-weight: 600;
}


/* ---- Services ---- */

.services {
    background: var(--panel);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}

.service-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    max-width: 820px;
    background: var(--rule-2);
    border: 1px solid var(--rule-2);
}

.service {
    background: var(--panel);
    padding: 28px 26px;
}

.service h3 {
    font-family: var(--sans);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 9px;
    color: var(--ink);
}

.service p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.52;
    text-wrap: pretty;
}


/* ---- Experience ---- */

.experience-list {
    max-width: 820px;
    border-top: 1px solid var(--rule);
}

.experience-item {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 26px;
    padding: 24px 0;
    border-bottom: 1px solid var(--rule);
    align-items: start;
}

.experience-item .years {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--accent);
    padding-top: 3px;
}

.experience-item strong {
    display: block;
    font-family: var(--sans);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
    color: var(--ink);
}

.experience-item span {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.52;
}


/* ---- Clients ---- */

/* flex, not grid: five items in a three-column grid leaves a phantom
   sixth cell that shows through as a block of rule colour */
.client-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    max-width: 820px;
    background: var(--rule-2);
    border: 1px solid var(--rule-2);
}

.client {
    flex: 1 1 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--paper);
    padding: 30px 20px;
    text-align: center;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    transition: color 0.15s, background 0.15s;
}

a.client:hover {
    color: var(--accent);
    background: var(--panel);
}

.client-no-link {
    color: var(--muted-2);
    cursor: default;
}


/* ---- Contact ---- */

.contact {
    background: var(--ink);
    color: var(--paper);
}

.contact h2 {
    color: var(--paper);
}

.contact p {
    color: #B5B0A6;
    font-size: 18px;
    line-height: 1.55;
    margin-bottom: 28px;
    max-width: 620px;
}

.email {
    display: inline-block;
    font-family: var(--sans);
    font-size: 19px;
    font-weight: 500;
    color: var(--paper);
    border-bottom: 1px solid #6B665D;
    padding-bottom: 5px;
    transition: color 0.15s, border-color 0.15s;
}

.email:hover {
    color: #E08A72;
    border-color: #E08A72;
}


/* ---- Footer ---- */

footer {
    text-align: center;
    padding: 34px 32px;
    color: var(--muted-2);
    font-family: var(--sans);
    font-size: 12px;
    line-height: 1.8;
    letter-spacing: 0.02em;
}


/* ---- Mobile ---- */

@media (max-width: 650px) {

    .container { padding: 0 22px; }
    .nav { padding: 16px 22px; }
    .nav .contact-link { display: none; }

    .hero { padding: 76px 0 70px; }
    section { padding: 60px 0; }

    h2 { font-size: 28px; margin-bottom: 26px; }

    .service-list { grid-template-columns: 1fr; }
    .client { flex: 1 1 100%; }

    .experience-item {
        grid-template-columns: 1fr;
        gap: 6px;
    }

}


/* ---- Legal page ---- */

.legal {
    padding: 76px 0 96px;
}

.legal .container {
    max-width: 760px;
}

.legal h1 {
    font-size: clamp(32px, 4.6vw, 44px);
    margin-bottom: 12px;
}

.legal .updated {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 54px;
}

.legal h2 {
    font-size: 24px;
    margin: 54px 0 18px;
    padding-top: 26px;
    border-top: 1px solid var(--rule);
}

.legal h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.legal h3 {
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    margin: 26px 0 8px;
}

.legal p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.62;
    margin-bottom: 14px;
    text-wrap: pretty;
}

.legal a {
    color: var(--accent);
    border-bottom: 1px solid rgba(168, 65, 47, 0.3);
}

.legal a:hover {
    border-bottom-color: var(--accent);
}

.legal ul {
    list-style: none;
    margin: 0 0 14px;
}

.legal li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.62;
}

.legal li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.74em;
    width: 6px;
    height: 1px;
    background: var(--rule-2);
}

.identity {
    border: 1px solid var(--rule-2);
    background: var(--panel);
    padding: 26px 28px;
    margin-bottom: 8px;
}

.identity dl {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 11px 20px;
    margin: 0;
}

.identity dt {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted-2);
    padding-top: 3px;
}

.identity dd {
    margin: 0;
    font-size: 16px;
    color: var(--ink);
    line-height: 1.5;
}

.todo {
    color: var(--accent);
    font-weight: 600;
}

.footer-links {
    margin-top: 6px;
}

.footer-links a {
    color: var(--muted-2);
    border-bottom: 1px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.footer-links a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

@media (max-width: 650px) {
    .legal { padding: 52px 0 68px; }
    .legal h2 { font-size: 21px; }
    .identity { padding: 20px 20px; }
    .identity dl { grid-template-columns: 1fr; gap: 4px 0; }
    .identity dd { margin-bottom: 12px; }
}
