:root {
    --bg: #fff0e3;
    --ink: #151515;
    --line: #cdbfb4;
    --card: #fff5ec;
    --muted: #665d56;
    --hover: rgba(255, 255, 255, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Space Mono', monospace;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    text-align: center;
    padding: 38px 20px 30px;
}

.avatar {
    width: 96px;
    height: 96px;
    margin: 0 auto 20px;

    border-radius: 50%;
    overflow: hidden;

    background: #e6d5c7;

    display: grid;
    place-items: center;

    font-size: 22px;
}

.avatar img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.avatar span {
    font-size: 22px;
}


.hero h1 {
    margin: 0 0 9px;

    font-size: 24px;
    line-height: 1.25;
    font-weight: 400;
    letter-spacing: -0.5px;
}

.hero p {
    max-width: 520px;

    margin: 0 auto;

    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   REDES SOCIAIS
   ========================================================= */

.socials {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 18px;

    margin-top: 20px;
}

.socials a {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    text-decoration: none;

    transition:
        transform 0.18s ease,
        opacity 0.18s ease;
}

.socials a:hover {
    transform: translateY(-2px);
    opacity: 0.7;
}

.socials svg {
    width: 27px;
    height: 27px;

    display: block;
}


/* =========================================================
   HOME
   ========================================================= */

.home-grid {
    width: min(680px, calc(100% - 36px));

    margin: 20px auto 54px;

    display: grid;
    gap: 14px;
}


/* =========================================================
   CARDS DE CATEGORIA
   ========================================================= */

.category-card {
    min-height: 66px;

    border: 1px solid var(--line);
    border-radius: 34px;

    background: transparent;

    color: inherit;
    text-decoration: none;

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

    padding: 12px 20px;

    font-size: 15px;

    transition:
        background 0.18s ease,
        transform 0.18s ease,
        border-color 0.18s ease;
}

.category-card:hover {
    background: var(--hover);
    transform: translateY(-1px);
}

.category-card span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-card b {
    flex: 0 0 auto;

    margin-left: 18px;

    font-size: 18px;
    font-weight: 400;
}


/* =========================================================
   LISTA DE LINKS
   ========================================================= */

.links-list {
    width: min(760px, calc(100% - 36px));

    margin: 18px auto 50px;

    display: grid;
    gap: 12px;
}

.link-card {
    min-height: 66px;

    border: 1px solid var(--line);
    border-radius: 34px;

    background: transparent;

    color: inherit;
    text-decoration: none;

    display: flex;
    align-items: center;

    gap: 14px;

    padding: 12px 18px;

    transition:
        background 0.18s ease,
        transform 0.18s ease;
}

.link-card:hover {
    background: var(--hover);
    transform: translateY(-1px);
}

.link-icon {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    border-radius: 50%;
    overflow: hidden;

    background: #e7d7cc;
}

.link-icon img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.link-copy {
    flex: 1;
    min-width: 0;

    text-align: center;
}

.link-copy strong {
    display: block;

    font-size: 14px;
    line-height: 1.4;
    font-weight: 400;
}

.link-copy small {
    display: block;

    margin-top: 4px;

    color: var(--muted);

    font-size: 11px;
    line-height: 1.4;
}

.dots {
    flex: 0 0 auto;

    font-size: 19px;

    color: #756c65;
}


/* =========================================================
   PÁGINAS INTERNAS
   ========================================================= */

.page-wrap {
    width: min(760px, calc(100% - 36px));

    margin: 28px auto 50px;
}

.back {
    color: inherit;

    text-decoration: none;

    font-size: 13px;

    opacity: 0.8;

    transition: opacity 0.15s ease;
}

.back:hover {
    opacity: 1;
}

.page-title {
    text-align: center;

    padding: 34px 0 20px;
}

.page-title h1 {
    margin: 0 0 8px;

    font-size: 22px;
    line-height: 1.3;

    font-weight: 400;
}

.page-title p {
    margin: 0;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    padding: 0 20px 26px;

    text-align: center;

    color: var(--muted);

    font-size: 10px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 520px) {

    .hero {
        padding: 28px 18px 25px;
    }

    .avatar {
        width: 88px;
        height: 88px;

        margin-bottom: 17px;
    }

    .hero h1 {
        font-size: 21px;
    }

    .hero p {
        font-size: 13px;
        line-height: 1.55;
    }

    .socials {
        margin-top: 17px;
        gap: 15px;
    }

    .socials svg {
        width: 26px;
        height: 26px;
    }

    .home-grid {
        width: calc(100% - 28px);

        margin-top: 17px;

        gap: 12px;
    }

    .category-card {
        min-height: 62px;

        padding: 11px 18px;

        font-size: 14px;
    }

    .category-card b {
        font-size: 17px;
    }

    .links-list {
        width: calc(100% - 28px);
    }

    .link-card {
        min-height: 62px;

        padding: 10px 15px;
    }

    .link-icon {
        width: 40px;
        height: 40px;

        flex-basis: 40px;
    }

    .link-copy strong {
        font-size: 13px;
    }

    .page-wrap {
        width: calc(100% - 28px);
    }
}