/* =========================================================
   ROOT VARIABLES
   ========================================================= */

:root {
    --bg: #f3eddf;
    --surface: #fffaf0;
    --surface2: #e8dfca;

    --text: #25231f;
    --text2: #554f45;
    --muted: #817765;

    --line: #b9aa8d;
    --line-dark: #70644f;

    --red: #e11d48;
    --blue: #2563eb;
    --yellow: #e9b949;

    --radius: 2px;

--head: "Chakra Petch", Arial, sans-serif;
--body: "IBM Plex Sans", Arial, sans-serif;
}


/* =========================================================
   RESET / BASE
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--text);

    font-family: var(--body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;

    background-image:
        linear-gradient(
            rgba(70, 60, 40, 0.025) 1px,
            transparent 1px
        );

    background-size: 100% 4px;
}

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

a:hover {
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: 1180px;

    margin: 0 auto;
    padding: 0 16px;
}


/* =========================================================
   HEADER
   ========================================================= */

header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--surface);  
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 56px;

    gap: 16px;
}


/* =========================================================
   BRAND
   ========================================================= */

.brand {
    display: flex;
    align-items: center;

    gap: 9px;

    white-space: nowrap;
}

.logo-img {
    width: 38px;
    height: 38px;

    object-fit: contain;
    image-rendering: auto;
}

.logo-text {
    font-family: var(--head);
    font-size: 25px;
    font-weight: 700;
    line-height: 1;

    letter-spacing: 0.2px;
}

.logo-text span {
    color: var(--red);
}


/* =========================================================
   SEARCH
   ========================================================= */

.search {
    display: flex;
    align-items: center;

    flex: 1;
    max-width: 390px;

    padding: 0;

    background: #ffffff;

    border: 1px solid var(--line-dark);
    border-radius: 5px;
    overflow: hidden;
}

.search input {
    width: 100%;
    height: 36px;

    padding: 0 10px;

    border: 0;
    outline: 0;

    background: transparent;
    color: var(--text);

    font-family: var(--body);
    font-size: 14px;
    font-weight: 500;
}

.search input::placeholder {
    color: var(--muted);
}

.search button {
    width: 38px;
    height: 36px;

    padding: 0;

    border: 0;
    border-left: 1px solid var(--line);

    background: var(--surface2);

    cursor: pointer;
}

.search button:hover {
    background: #ddd2bb;
}

.search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    padding: 0;
    border: 0;

    background: transparent;
    color: var(--text);

    cursor: pointer;
}

.search-submit:hover {
    color: var(--red);
}

.search-submit:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: -2px;
}

.search-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}
/* =========================================================
   DESKTOP NAVIGATION
   ========================================================= */

.nav {
    display: flex;
    align-items: stretch;

    align-self: stretch;
}

.nav a {
    display: flex;
    align-items: center;

    padding: 0 9px;

    color: var(--text2);

    font-family: var(--head);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;

    letter-spacing: 0.4px;
}

.nav a:hover,
.nav a.selected {
    background: var(--surface2);
    color: var(--red);
}


/* =========================================================
   HEADER BUTTONS
   ========================================================= */

.btn-icon-toggle,
.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    padding: 0;

    border: 0;
    border-radius: 0;

    background: transparent;
    color: var(--text);

    cursor: pointer;
}

.btn-icon-toggle:hover,
.menu-toggle:hover {
    color: var(--red);
}

.btn-icon-toggle svg {
    width: 17px;
    height: 17px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.theme-btn .icon-moon {
    display: none;
}

.theme-btn .icon-sun {
    display: block;
    color: #a66b00;
}

.menu-toggle {
    display: none;

    font-size: 18px;
}


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

.main-nav-mobile {
    display: none;

    padding: 4px 0 10px;

    border-top: 1px solid var(--line);
}

.main-nav-mobile.active {
    display: block;
}

.main-nav-mobile a {
    display: block;

    padding: 10px 12px;

    color: var(--text2);

    font-family: var(--head);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.1;
}

.main-nav-mobile a:hover {
    color: var(--red);
    background: var(--surface2);
}


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

.site-footer {
    padding: 32px 0 22px;

  
    border-top: 2px solid var(--line-dark);

    background: #ded3bd;

    color: var(--text2);

    font-size: 14px;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 42px;

    padding-bottom: 24px;
}


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

.footer-column h4 {
    margin: 0 0 12px;
    padding: 0 0 7px;

    color: var(--text);

    font-family: var(--head);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;

    letter-spacing: 1px;

   
}

.footer-column h4::after {
    content: "";

    display: block;

    width: 34px;
    height: 2px;

    margin-top: 7px;

    background: var(--red);
}

.footer-column ul {
    margin: 0;
    padding: 0;

    list-style: none;
}

.footer-column li {
    margin: 0 0 8px;
}

.footer-column a {
    color: var(--text2);
}

.footer-column a:hover {
    color: var(--red);

    text-decoration: underline;
    text-underline-offset: 3px;
}


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

.footer-bottom {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 28px;

    padding-top: 17px;

    border-top: 1px solid var(--line);

    color: var(--muted);

    font-size: 12px;
}

.footer-bottom .disclaimer {
    max-width: 720px;

    text-align: right;
    line-height: 1.5;
}


/* =========================================================
   DARK MODE
   ========================================================= */

body.dark {
    --bg: #171713;
    --surface: #211f1a;
    --surface2: #302c24;

    --text: #eee5d2;
    --text2: #c1b59e;
    --muted: #938872;

    --line: #4e473a;
    --line-dark: #82745c;

    --red: #fb5475;
    --blue: #60a5fa;
    --yellow: #f2c75c;

    background-color: var(--bg);
}
body.dark header {
    background: var(--surface);
}

body.dark .search {
    background: #181713;
}

body.dark .search input {
    color: var(--text);
}

body.dark .search button {
    background: var(--surface2);
}

body.dark .site-footer {
    background: #1d1b17;
}

body.dark .theme-btn .icon-sun {
    display: none;
}

body.dark .theme-btn .icon-moon {
    display: block;
    color: #d6c9a9;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 920px) {

    .nav {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .search {
        max-width: none;
    }

    .header-inner {
        gap: 9px;
    }

}


/* =========================================================
   SMALL TABLET
   ========================================================= */

@media (max-width: 768px) {

    .footer-main {
        grid-template-columns: 1fr 1fr;

        gap: 25px 22px;
    }

    .footer-column:last-child {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;

        gap: 9px;
    }

    .footer-bottom .disclaimer {
        max-width: none;

        text-align: left;
    }

}


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

@media (max-width: 480px) {

    .container {
        padding: 0 12px;
    }

    .logo-text {
        display: none;
    }

    .logo-img {
        width: 34px;
        height: 34px;
    }

    .header-inner {
        min-height: 60px;
    }

    .search input {
        font-size: 13px;
    }

    .footer-main {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .footer-column:last-child {
        grid-column: auto;
    }

}

/* =========================================================
   BREADCRUMB
   Shared across list/detail/type/static pages.
   ========================================================= */

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;

    margin: 0 0 24px;

    color: var(--muted);

    font: 500 13px/1.4 var(--body);
}

.breadcrumb a {
    color: var(--text2);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.breadcrumb > span:last-child {
    color: var(--text);
}

@media (max-width: 520px) {

    .breadcrumb {
        margin-bottom: 18px;
        font-size: 12px;
    }

}
