:root {
    color-scheme: light;
    --cream-50: #fffdf7;
    --cream-100: #fff8e8;
    --cream-200: #f8edcf;
    --cream-300: #ecd9aa;
    --brown-500: #a96838;
    --brown-600: #875032;
    --brown-700: #633c2d;
    --brown-800: #4d2f26;
    --brown-900: #342019;
    --ink: #38261f;
    --muted: #806f65;
    --line: rgba(93, 58, 42, 0.14);
    --surface: rgba(255, 253, 247, 0.88);
    --shadow: 0 24px 70px rgba(86, 52, 36, 0.13);
}

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

html {
    min-width: 320px;
    background: var(--cream-100);
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background:
        radial-gradient(circle at 50% -8%, rgba(255, 255, 255, 0.96) 0, rgba(255, 255, 255, 0) 34rem),
        linear-gradient(145deg, #fffaf0 0%, #f8edcf 48%, #f3e0bd 100%);
    font-family: "DM Sans", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

button {
    font: inherit;
}

svg {
    display: block;
    width: 1.25rem;
    height: 1.25rem;
}

.page-decoration {
    position: fixed;
    z-index: 0;
    border: 1px solid rgba(135, 80, 50, 0.09);
    border-radius: 999px;
    pointer-events: none;
}

.decoration-one {
    top: -10rem;
    left: -11rem;
    width: 27rem;
    height: 27rem;
    background: rgba(255, 250, 232, 0.56);
}

.decoration-two {
    right: -12rem;
    bottom: -9rem;
    width: 31rem;
    height: 31rem;
    background: rgba(198, 130, 76, 0.08);
}

.page-grain {
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.34;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.045'/%3E%3C/svg%3E");
    pointer-events: none;
}

.linktree-shell {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 2rem), 46rem);
    margin-inline: auto;
    padding: 2rem 0 3rem;
}

.profile-card,
.links-section,
.products-section,
.store-card {
    border: 1px solid rgba(93, 58, 42, 0.12);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.profile-card {
    position: relative;
    overflow: hidden;
    padding: 1.25rem 2.25rem 2.35rem;
    border-radius: 2.25rem;
    background:
        radial-gradient(circle at 82% 7%, rgba(197, 119, 59, 0.18) 0, rgba(197, 119, 59, 0) 15rem),
        var(--surface);
    text-align: center;
}

.profile-card::after {
    position: absolute;
    right: -2.5rem;
    bottom: -5rem;
    width: 11rem;
    height: 11rem;
    border: 1px solid rgba(135, 80, 50, 0.1);
    border-radius: 50%;
    content: "";
}

.profile-toolbar {
    display: flex;
    position: relative;
    z-index: 2;
    align-items: center;
    justify-content: space-between;
    min-height: 2.75rem;
}

.availability {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(38, 126, 80, 0.16);
    border-radius: 999px;
    color: #386549;
    background: rgba(222, 245, 226, 0.72);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.availability > span {
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 50%;
    background: #47a469;
    box-shadow: 0 0 0 4px rgba(71, 164, 105, 0.13);
}

.share-button {
    display: inline-grid;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--brown-700);
    background: rgba(255, 255, 255, 0.68);
    place-items: center;
}

.share-button:hover {
    transform: translateY(-2px);
    border-color: rgba(135, 80, 50, 0.32);
    background: #fff;
}

.profile-logo {
    display: grid;
    position: relative;
    width: 7.25rem;
    height: 7.25rem;
    margin: 0.6rem auto 1.15rem;
    place-items: center;
}

.profile-logo img {
    position: relative;
    z-index: 1;
    width: 6.3rem;
    height: 6.3rem;
    border: 0.45rem solid rgba(255, 255, 255, 0.94);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 14px 35px rgba(91, 57, 39, 0.18);
}

.logo-ring {
    position: absolute;
    inset: 0;
    border: 1px dashed rgba(135, 80, 50, 0.33);
    border-radius: 50%;
}

.profile-eyebrow,
.section-kicker {
    margin: 0;
    color: var(--brown-500);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.profile-card h1 {
    margin: 0.38rem 0 0;
    color: var(--brown-800);
    font-family: "Playfair Display", serif;
    font-size: clamp(2.05rem, 8vw, 3.15rem);
    line-height: 1.06;
    letter-spacing: -0.035em;
}

.profile-description {
    max-width: 31rem;
    margin: 0.8rem auto 0;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.7;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 1.35rem;
}

.profile-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.48rem 0.68rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #705d53;
    background: rgba(255, 255, 255, 0.5);
    font-size: 0.74rem;
    font-weight: 600;
}

.profile-meta svg {
    width: 0.95rem;
    height: 0.95rem;
    color: var(--brown-500);
}

.links-section,
.products-section {
    margin-top: 1rem;
    padding: 1.6rem;
    border-radius: 2rem;
    background: rgba(255, 253, 247, 0.79);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.section-heading h2,
.store-card h2 {
    margin: 0.22rem 0 0;
    color: var(--brown-800);
    font-family: "Playfair Display", serif;
    font-size: 1.55rem;
    line-height: 1.2;
}

.section-count {
    flex: none;
    padding: 0.42rem 0.65rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    font-weight: 700;
}

.link-list {
    display: grid;
    gap: 0.72rem;
}

.link-card {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr) 2rem;
    align-items: center;
    gap: 0.85rem;
    min-height: 4.8rem;
    padding: 0.68rem 0.85rem;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.7);
}

.link-card:hover {
    transform: translateY(-2px);
    border-color: rgba(135, 80, 50, 0.3);
    background: #fffdf8;
    box-shadow: 0 12px 28px rgba(91, 57, 39, 0.1);
}

.link-card.is-primary {
    border-color: transparent;
    color: #fffaf1;
    background: linear-gradient(135deg, var(--brown-700), var(--brown-500));
    box-shadow: 0 16px 34px rgba(116, 66, 42, 0.24);
}

.link-card.is-primary:hover {
    background: linear-gradient(135deg, var(--brown-800), #b26c38);
}

.link-icon {
    display: grid;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    color: var(--brown-600);
    background: var(--cream-200);
    place-items: center;
}

.is-primary .link-icon {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.link-copy {
    min-width: 0;
}

.link-copy strong,
.link-copy small {
    display: block;
}

.link-copy strong {
    font-size: 0.95rem;
    line-height: 1.3;
}

.link-copy small {
    overflow: hidden;
    margin-top: 0.24rem;
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.is-primary .link-copy small {
    color: rgba(255, 250, 241, 0.74);
}

.link-arrow {
    display: grid;
    width: 2rem;
    height: 2rem;
    transition: transform 180ms ease;
    border-radius: 50%;
    color: var(--brown-500);
    place-items: center;
}

.link-card:hover .link-arrow {
    transform: translate(2px, -2px);
}

.is-primary .link-arrow {
    color: #fff;
    background: rgba(255, 255, 255, 0.11);
}

.link-arrow svg {
    width: 1rem;
    height: 1rem;
}

.section-link {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 0.35rem;
    color: var(--brown-600);
    font-size: 0.76rem;
    font-weight: 700;
}

.section-link svg {
    width: 1rem;
    height: 1rem;
    transition: transform 180ms ease;
}

.section-link:hover svg {
    transform: translateX(3px);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.product-grid.has-single-product {
    grid-template-columns: 1fr;
}

.product-grid.has-single-product .product-card {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.product-grid.has-single-product .product-image {
    aspect-ratio: 4 / 3;
}

.product-grid.has-single-product .product-content {
    align-self: center;
    padding: 1.3rem;
}

.product-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.72);
}

.product-image {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--cream-200);
}

.product-image::after {
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(to top, rgba(52, 32, 25, 0.18), transparent);
    content: "";
}

.product-image img {
    width: 100%;
    height: 100%;
    transition: transform 350ms ease;
    object-fit: cover;
}

.product-card:hover .product-image img {
    transform: scale(1.035);
}

.favorite-badge {
    display: inline-flex;
    position: absolute;
    z-index: 1;
    top: 0.7rem;
    left: 0.7rem;
    align-items: center;
    gap: 0.3rem;
    padding: 0.38rem 0.55rem;
    border-radius: 999px;
    color: #fff8ec;
    background: rgba(83, 45, 31, 0.82);
    box-shadow: 0 5px 16px rgba(40, 24, 18, 0.2);
    font-size: 0.66rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.favorite-badge svg {
    width: 0.75rem;
    height: 0.75rem;
    color: #efbd8c;
}

.product-content {
    padding: 0.9rem;
}

.product-category {
    color: var(--brown-500);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.product-content h3 {
    overflow: hidden;
    margin: 0.28rem 0 0.75rem;
    color: var(--brown-800);
    font-size: 0.96rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.product-footer > strong {
    color: var(--brown-600);
    font-size: 0.93rem;
}

.product-footer > a {
    display: grid;
    flex: none;
    width: 2.25rem;
    height: 2.25rem;
    transition: transform 180ms ease, background 180ms ease;
    border-radius: 0.78rem;
    color: #fff;
    background: var(--brown-500);
    place-items: center;
}

.product-footer > a:hover {
    transform: translateY(-2px);
    background: var(--brown-700);
}

.product-footer svg {
    width: 1rem;
    height: 1rem;
}

.marketplace-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.75rem;
}

.marketplace-list a {
    padding: 0.32rem 0.48rem;
    transition: border-color 180ms ease, color 180ms ease;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.63rem;
    font-weight: 700;
}

.marketplace-list a:hover {
    border-color: var(--brown-500);
    color: var(--brown-600);
}

.store-card {
    display: grid;
    grid-template-columns: 3.35rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1.35rem;
    border-radius: 1.8rem;
    background: linear-gradient(135deg, rgba(255, 253, 247, 0.9), rgba(255, 247, 226, 0.76));
}

.store-icon {
    display: grid;
    width: 3.35rem;
    height: 3.35rem;
    border-radius: 1.05rem;
    color: var(--brown-600);
    background: var(--cream-200);
    place-items: center;
}

.store-card h2 {
    font-size: 1.25rem;
}

.store-card p {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.45;
}

.store-card > a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.65rem 0.8rem;
    border-radius: 0.85rem;
    color: #fff;
    background: var(--brown-700);
    font-size: 0.72rem;
    font-weight: 700;
}

.store-card > a svg {
    width: 0.9rem;
    height: 0.9rem;
}

.linktree-footer {
    padding: 2rem 1rem 0;
    color: var(--muted);
    text-align: center;
}

.linktree-footer img {
    width: 3.15rem;
    height: 3.15rem;
    border-radius: 50%;
    object-fit: cover;
    opacity: 0.86;
}

.linktree-footer p {
    margin: 0.6rem 0 0;
    color: var(--brown-700);
    font-size: 0.76rem;
    font-weight: 700;
}

.linktree-footer span {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.68rem;
}

.toast {
    display: flex;
    position: fixed;
    z-index: 20;
    right: 50%;
    bottom: 1.25rem;
    align-items: center;
    gap: 0.55rem;
    min-width: 14rem;
    padding: 0.85rem 1rem;
    transform: translateX(50%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1rem;
    color: #fff9ef;
    background: rgba(52, 32, 25, 0.94);
    box-shadow: 0 16px 40px rgba(52, 32, 25, 0.24);
    font-size: 0.78rem;
    font-weight: 600;
    backdrop-filter: blur(12px);
}

.toast[hidden] {
    display: none;
}

.toast svg {
    width: 1.05rem;
    height: 1.05rem;
    color: #bce2c6;
}

@media (max-width: 600px) {
    .linktree-shell {
        width: min(calc(100% - 1rem), 46rem);
        padding-top: 0.5rem;
    }

    .profile-card {
        padding: 0.8rem 1.15rem 1.75rem;
        border-radius: 1.65rem;
    }

    .availability {
        padding-inline: 0.65rem;
        font-size: 0.66rem;
    }

    .profile-logo {
        width: 6.45rem;
        height: 6.45rem;
        margin-top: 0.35rem;
    }

    .profile-logo img {
        width: 5.65rem;
        height: 5.65rem;
    }

    .profile-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .profile-meta {
        gap: 0.45rem;
    }

    .profile-meta span {
        padding-inline: 0.55rem;
        font-size: 0.66rem;
    }

    .links-section,
    .products-section {
        padding: 1.15rem;
        border-radius: 1.55rem;
    }

    .link-card {
        grid-template-columns: 2.65rem minmax(0, 1fr) 1.75rem;
        min-height: 4.35rem;
        gap: 0.7rem;
        padding: 0.58rem 0.68rem;
        border-radius: 1.05rem;
    }

    .link-icon {
        width: 2.65rem;
        height: 2.65rem;
        border-radius: 0.85rem;
    }

    .link-copy strong {
        font-size: 0.87rem;
    }

    .link-copy small {
        font-size: 0.67rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        display: grid;
        grid-template-columns: 7.3rem minmax(0, 1fr);
        min-height: 7.3rem;
    }

    .product-grid.has-single-product .product-card {
        grid-template-columns: 7.3rem minmax(0, 1fr);
    }

    .product-image,
    .product-grid.has-single-product .product-image {
        height: 100%;
        aspect-ratio: auto;
    }

    .product-grid.has-single-product .product-content {
        padding: 0.8rem;
    }

    .product-content {
        align-self: center;
        padding: 0.8rem;
    }

    .favorite-badge {
        top: 0.45rem;
        left: 0.45rem;
        padding: 0.28rem 0.4rem;
        font-size: 0.58rem;
    }

    .store-card {
        grid-template-columns: 2.8rem minmax(0, 1fr);
        gap: 0.8rem;
        padding: 1.05rem;
        border-radius: 1.45rem;
    }

    .store-icon {
        width: 2.8rem;
        height: 2.8rem;
        border-radius: 0.9rem;
    }

    .store-card > a {
        grid-column: 1 / -1;
        justify-content: center;
    }
}

@media (max-width: 380px) {
    .profile-meta span:last-child {
        display: none;
    }

    .section-count {
        display: none;
    }

    .product-card {
        grid-template-columns: 6.4rem minmax(0, 1fr);
    }

    .product-grid.has-single-product .product-card {
        grid-template-columns: 6.4rem minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
