:root {
    color-scheme: light;
}

body {
    background: #f3f1ef;
    background-attachment: initial;
    color: #282522;
    font-family: "Alan Sans", Arial, sans-serif;
}

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

#baseboard *,
#container * {
    font-family: "Alan Sans", Arial, sans-serif;
}

#baseboard .brand {
    font-family: "Sixtyfour", Georgia, serif;
}

#baseboard .material-symbols-outlined,
#container .material-symbols-outlined {
    font-family: "Material Symbols Outlined";
}

#baseboard {
    --font: #f7f2ec;
    --bg-dark: #191514;
    --bg-dark-opacity: #191514cc;
    --bg-light: #3a211c;
    --color-pry: #a8563e;
    --lines: #e6dfd9;
    --eternal-blue: #a8563e;
    position: relative;
    min-height: 350px;
    overflow: visible;
    border: 0;
    background:
        radial-gradient(ellipse at 50% 105%, #743d2a 0, transparent 48%),
        linear-gradient(115deg, #1c1716 0%, #30211d 55%, #181514 100%);
}

#baseboard::before {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, #130f0ee6, #201614a8 50%, #130f0ee6),
        url("../assets/banner.webp") center 44% / cover no-repeat;
    content: "";
    opacity: 0.32;
    pointer-events: none;
}

.site-header,
.hero {
    position: relative;
    z-index: 1;
}

.site-header {
    display: flex;
    align-items: center;
    z-index: 5;
    gap: 24px;
    width: min(1180px, calc(100% - 48px));
    min-height: 72px;
    margin: 0 auto;
    border-bottom: 1px solid #ffffff20;
}

.brand {
    flex: 0 0 auto;
    color: #fff7ef;
    font-family: "Sixtyfour", Georgia, serif;
    font-size: 1.45rem;
    letter-spacing: -0.09em;
}

#site-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
}

#site-navigation .site-nav,
.account-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 13px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #f7f2ec;
    font: inherit;
    font-size: 0.91rem;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease;
}

#site-navigation .site-nav:hover,
#site-navigation .site-nav:focus-visible,
.account-link:hover,
.account-link:focus-visible {
    background: #ffffff1c;
    color: #fff;
}

#baseboard .account-link:disabled {
    background: #ffffff1c;
    color: #fff;
    cursor: default;
}

#site-navigation .site-nav:disabled {
    background: #ffffff1c;
    color: #fff;
    cursor: default;
}

.account-link {
    gap: 7px;
    border: 1px solid #ffffff40;
}

.account-link .material-symbols-outlined {
    font-size: 21px;
}

.account-link #account-avatar {
    display: none;
    width: 29px;
    height: 29px;
    border: 2px solid #f2dfd4;
    border-radius: 50%;
    object-fit: cover;
}

.account-link.has-avatar #account-avatar {
    display: block;
}

.account-link.has-avatar > .material-symbols-outlined {
    display: none;
}

.menu-toggle {
    display: none;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 278px;
    padding: 38px 24px 58px;
    text-align: center;
}

.hero .eyebrow,
.section-heading .eyebrow,
.about-page .eyebrow,
.community-page .eyebrow {
    margin-bottom: 8px;
    color: #dca58e;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 700px;
    color: #fff8f2;
    font-family: "Alan Sans", Arial, sans-serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 750;
    line-height: 1.12;
}

.hero > p:not(.eyebrow) {
    margin-top: 12px;
    color: #e1d2c9;
    font-size: 1rem;
}

#search {
    width: min(480px, 100%);
    margin-top: 24px;
}

#search form {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 4px 5px 4px 18px;
    border: 1px solid #ffffffa8;
    border-radius: 999px;
    background: #fffdfa;
    box-shadow: 0 8px 24px #130d0b4d;
}

#search input[type="search"] {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #292522;
    font: inherit;
    font-size: 0.95rem;
}

#search input::placeholder {
    color: #827a74;
}

#search button {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #7a392b;
    color: #fff;
    cursor: pointer;
}

#container {
    --font: #302b27;
    --dark: #f3efeb;
    --dark-opacity: #f3efebe8;
    --bg-dark: #f4f1ee;
    --bg-dark-opacity: #f4f1eee8;
    --bg-light: #ede4dc;
    --color-pry: #7a392b;
    --lines: #ded8d2;
    --eternal-blue: #8f4b3b;
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 48px));
    min-height: 360px;
    margin: -22px auto 40px;
    padding: clamp(22px, 4vw, 48px);
    overflow: visible;
    border: 1px solid #2f20151a;
    border-radius: 18px;
    background: #e3e1df;
    box-shadow: 0 18px 44px #32261d16;
    color: #302b27;
}

#container #posts {
    display: block;
    width: 100%;
    min-height: 0;
    margin: 0;
}

#container #posts .section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 24px;
}

#container #posts .section-heading .eyebrow {
    margin-bottom: 6px;
    color: #8b5140;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

#container #posts .section-heading h2 {
    color: #282522;
    font-family: "Alan Sans", Arial, sans-serif;
    font-size: clamp(1.45rem, 2.8vw, 2rem);
    line-height: 1.2;
}

#container #posts .section-note {
    max-width: 280px;
    color: #6f6862;
    font-size: 0.88rem;
    text-align: right;
}

#container #posts > ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px 20px;
    width: 100%;
    min-height: 0;
    margin: 0;
}

#container #posts > ul > li.story-card {
    width: 100%;
    min-width: 0;
    min-height: 0;
    max-height: none;
    margin: 0;
    overflow: visible;
    color: inherit;
}

#container #posts > ul > li.story-card {
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 1px solid #44362d12;
    border-radius: 9px;
    background: #f5f2ef;
    box-shadow: 0 4px 12px #30211612;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

#container #posts > ul > li.story-card:hover,
#container #posts > ul > li.story-card:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 9px 20px #30211624;
}

#container #posts > ul > li.story-card > img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 0.72;
    margin: 0;
    border-radius: 0;
    object-fit: cover;
}

#container #posts > ul > li.story-card > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: auto;
    margin: 0;
    padding: 12px 12px 7px;
    overflow: hidden;
    border: 0;
}

#container #posts > ul > li.story-card > div > label {
    width: auto;
    overflow: hidden;
    color: #2e2925;
    font-size: 0.91rem;
    font-weight: 700;
    text-overflow: ellipsis;
    text-transform: none;
    white-space: nowrap;
}

#container #posts > ul > li.story-card > div > h3 {
    flex: 0 0 auto;
    width: auto;
    padding: 0;
    border: 0;
    color: #82766d;
    font-size: 0.68rem;
    font-weight: 500;
    text-align: right;
}

#container #posts > ul > li.story-card > p {
    display: -webkit-box;
    width: auto;
    min-height: 0;
    max-height: none;
    margin: 0;
    padding: 0 12px 36px;
    overflow: hidden;
    color: #6e6660;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

#container #posts > ul > li.story-card > hgroup {
    position: absolute;
    z-index: 2;
    right: 9px;
    bottom: 8px;
    display: flex;
    align-items: center;
    padding: 3px 7px;
    border-radius: 999px;
    background: #eee7e1;
    color: #6f4135;
    font-size: 0.75rem;
}

#container #posts .story-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    min-height: 0;
    max-height: none;
    margin: 0;
}

#container #posts .story-like {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 44px;
    min-height: 36px;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

#container #posts .story-like:hover,
#container #posts .story-like.is-liked {
    border-color: currentColor;
}

#container #posts .story-like:disabled { opacity: .6; cursor: wait; }
#container #posts .story-like .like-count { color: inherit; }

#container #posts > ul > li.story-card > hgroup .material-symbols-outlined {
    margin-right: 3px;
    color: #8b5140;
    font-size: 16px;
}

#container #posts #load {
    display: flex;
    width: 100%;
    min-height: 0;
    margin-top: 20px;
}

#container #posts #load > ul {
    position: static;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    height: auto;
    animation: none;
}

#container #posts #load > ul > li {
    width: 100%;
    height: 250px;
    margin: 0;
    border-radius: 9px;
    background: #f2eeeb;
}

#container #posts #load .lineanimation {
    background: linear-gradient(90deg, #e8e2dd 20%, #d7cec7 50%, #e8e2dd 80%);
}

#container #posts #load .skeleton-title {
    width: calc(100% - 24px);
    min-height: 12px;
    margin: 12px 0 0;
    border-radius: 5px;
}

#container #posts #load .skeleton-lines {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    margin-top: 8px;
}

#container #posts #load .skeleton-lines div {
    width: calc(100% - 24px);
    min-height: 8px;
    margin-top: 7px;
    border-radius: 5px;
    background: #e6e0db;
}

#container #posts #rodape {
    opacity: 1;
    transform: none;
    display: none;
    width: 100%;
    margin: 26px 0 0;
    padding: 12px;
    border-radius: 8px;
    background: #f2eeeb;
    color: #5e554f;
    font-size: 0.9rem;
    text-align: center;
    animation: none;
}

.catalog-pagination { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 24px; }
.catalog-pagination a { padding: 10px 16px; border: 1px solid currentColor; border-radius: 999px; color: #754033; }
.seo-introduction { margin-top: 32px; padding-top: 24px; border-top: 1px solid #81706550; }
.seo-introduction h2 { margin-bottom: 12px; font-size: 1.35rem; color: inherit; }
.seo-introduction p { line-height: 1.8; color: inherit; }
html[data-theme="dark"] .catalog-pagination a { color: #f0b29a; }

#container #posts #rodape button {
    margin-left: 10px;
    padding: 7px 12px;
    border: 0;
    border-radius: 999px;
    background: #7a392b;
    color: #fff;
    font: inherit;
    cursor: pointer;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

@media (max-width: 900px) {
    #site-navigation {
        gap: 2px;
    }

    #site-navigation .site-nav,
    .account-link {
        padding-right: 9px;
        padding-left: 9px;
        font-size: 0.82rem;
    }

    #container #posts > ul,
    #container #posts #load > ul {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    #baseboard {
        min-height: 340px;
    }

    .site-header {
        justify-content: space-between;
        width: calc(100% - 32px);
        min-height: 64px;
        gap: 8px;
    }

    .brand {
        font-size: 1.25rem;
    }

    .menu-toggle {
        display: inline-grid;
        order: 3;
        width: 42px;
        height: 42px;
        place-items: center;
        border: 1px solid #ffffff40;
        border-radius: 50%;
        background: transparent;
        color: #fff7ef;
        cursor: pointer;
    }

    #site-navigation {
        position: absolute;
        top: 58px;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
        margin: 0;
        padding: 10px;
        border: 1px solid #ffffff26;
        border-radius: 12px;
        background: #201815f5;
        box-shadow: 0 12px 28px #0005;
    }

    #site-navigation.is-open {
        display: flex;
    }

    #site-navigation .site-nav {
        justify-content: flex-start;
        width: 100%;
        min-height: 42px;
        padding: 0 12px;
        font-size: 0.95rem;
    }

    .account-link {
        min-height: 40px;
        margin-left: auto;
        padding: 0 9px;
    }

    .account-link > span:last-child {
        display: none;
    }

    .hero {
        min-height: 276px;
        padding: 36px 20px 48px;
    }

    .hero h1 {
        max-width: 460px;
        font-size: clamp(1.9rem, 8vw, 2.6rem);
    }

    .hero > p:not(.eyebrow) {
        max-width: 340px;
        font-size: 0.9rem;
        line-height: 1.5;
    }

    #container {
        width: calc(100% - 24px);
        margin-top: -18px;
        padding: 22px 16px;
        border-radius: 14px;
    }

    #container #posts .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
        margin-bottom: 18px;
    }

    #container #posts .section-note {
        max-width: none;
        text-align: left;
    }

    #container #posts > ul,
    #container #posts #load > ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 12px;
    }

    #container #posts > ul > li.story-card > div {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
        padding: 10px 9px 6px;
    }

    #container #posts > ul > li.story-card > div > label {
        max-width: 100%;
    }

    #container #posts > ul > li.story-card > div > h3 {
        text-align: left;
    }

    #container #posts > ul > li.story-card > p {
        padding: 0 9px 34px;
        font-size: 0.76rem;
    }

    #container #posts #load > ul > li {
        height: 190px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #container #posts > ul > li.story-card {
        transition: none;
    }
}
