@import url('https://fonts.googleapis.com/css2?family=Inter:wght@700;800;900&display=swap');

body,html {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        background-color: #000000;
        
}
html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after {
    box-sizing: inherit;
}

html {
    box-sizing: border-box;
}

:root{
    --ui-transition-duration: 220ms;
    --ui-transition-ease: cubic-bezier(.2,.9,.2,1);
}

/* Layout: keep footer at bottom when page content is short */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}
.logo {
    text-decoration: none;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #ffffff;
    font-weight: 900;
    font-size: 1.6rem;
    
    text-transform: uppercase;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 6px 8px;
}
.logo span {
    font-family: inherit;
    color: #ff6200;
    font-weight: 900;
    font-size: inherit;
}
.logo:hover {
    opacity: 0.95;
    text-decoration: none;
}
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: black;
    padding: 20px 20px;
    position: sticky; /* Keep header visible while scrolling */
    top: 0;
    z-index: 1200;
    backdrop-filter: saturate(120%);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* Animate layout changes when the viewport shifts */
.header,
.logo,
.header-nav a,
.hero-banner,
.emoji-grid,
.emoji-controls,
.site-footer,
.emoji-list{
    transition: all var(--ui-transition-duration) var(--ui-transition-ease);
}
.header-inner {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    padding-left: 3%;
    padding-right: 3%;
}
.header-nav  {
    display: flex;
    color: inherit;
    gap: 25px;
    flex-wrap: wrap;
}
.header-nav a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    letter-spacing: 0.24em;
}

.site-footer {
    justify-content: space-between;
    margin-top: auto;
    background: #050505;
    border-top: 1px solid #27272a;
    padding: 72px 12% 40px;
    display: flex;
    flex-direction: column;
    gap: 56px;
    color: rgba(248, 250, 252, 0.8);
}

.site-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    column-gap: 112px;
    row-gap: 56px;
    width: min(1100px, 100%);
    margin: 0 auto;
}

.site-footer__content {
    display: flex;

    flex-direction: column;
    gap: 22px;
    max-width: 320px;
}

.site-footer-content > .site-footer__content:first-child {
    margin-right: clamp(48px, 10vw, 160px);
    flex-basis: 280px;
}

.site-footer-content1 > .site-footer__content {
    flex: 1 1 200px;
    max-width: 260px;
}

.site-footer .logo {
    font-size: clamp(1.6rem, 2vw, 2.1rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0;
    color: #f8fafc;
}

.site-footer .logo span {
    color: #ff4d00;
    letter-spacing: 0.18em;
}

.site-footer__content p {
    margin: 0;
    max-width: 360px;
    color: rgba(248, 250, 252, 0.82);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.68rem;
    line-height: 1.8;
}

.site-footer-content1 {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 60px;
}

.site-footer__content h3 {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #fbfbfb;
}

.site-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.site-footer__list a {
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 0.72rem;
    font-weight: 600;
    transition: color var(--ui-transition-duration) var(--ui-transition-ease);
}

.site-footer__list a:link,
.site-footer__list a:visited {
    color: rgba(248, 250, 252, 0.9);
}

.site-footer__list a:hover,
.site-footer__list a:focus-visible {
    color: #ff4d00;
    text-decoration: underline;
    outline: none;
}

.emoji-grid__breadcrumb {
    font-size: 12px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-weight: 600;
    color: #ff4d00;
    opacity: 0.92;
}

.site-footer__bottom {
    padding-top: 24px;
    border-top: 1px solid #27272a;
    text-align: center;
    color: rgba(248, 250, 252, 0.7);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.7rem;
}
@media (max-width: 1024px) {
    .header {
        padding: 18px 16px;
    }
    .header-inner {
        padding-left: 5%;
        padding-right: 5%;
    }
    .header-nav {
        gap: 18px;
    }
    .header-nav a {
        letter-spacing: 0.18em;
        font-size: 0.84rem;
    }
    .site-footer {
        padding: 56px 10% 32px;
        gap: 40px;
    }
    .site-footer-content {
        column-gap: 64px;
    }
    .site-footer-content1 {
        gap: 40px;
    }
}

@media (max-width: 680px) {
    .header {
        padding: 16px 14px;
        min-height: 74px;
    }
    .header-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }
    .header-nav {
        display: flex;
        flex-wrap: nowrap;
        width: auto;
        justify-content: center;
        gap: 18px;
    }
    .header-nav a {
        font-size: 0.8rem;
        letter-spacing: 0.12em;
        padding: 4px 0;
    }
    .site-footer {
        padding: 48px 8% 30px;
        gap: 32px;
    }
    .site-footer-content {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        row-gap: 32px;
    }
    .site-footer-content > .site-footer__content:first-child {
        margin-right: 0;
        flex-basis: auto;
    }
    .site-footer-content1 {
        justify-content: flex-start;
        gap: 32px;
    }
    .site-footer__content p {
        max-width: none;
    }
    .site-footer__content h3,
    .site-footer__list a {
        letter-spacing: 0.2em;
    }
    .site-footer__bottom {
        font-size: 0.66rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 18px 14px;
        min-height: 78px;
    }
    .header-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }
    .logo {
        font-size: 1.28rem;
        padding: 4px 4px;
        gap: 1px;
    }
    .logo span {
        font-size: inherit;
    }
    .header-nav {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        flex-wrap: nowrap;
    }
    .header-nav a {
        font-size: 0.75rem;
        letter-spacing: 0.1em;
        padding: 4px 0;
    }
    .site-footer {
        padding: 40px 7% 28px;
        gap: 28px;
    }
    .site-footer-content {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: flex-start;
        column-gap: 38px;
        row-gap: 26px;
    }
    .site-footer-content > .site-footer__content:first-child {
        flex-basis: 200px;
        margin-right: 26px;
    }
    .site-footer-content1 {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 20px 34px;
        text-align: left;
    }
    .site-footer-content1 > .site-footer__content {
        flex: 1 1 140px;
        align-items: flex-start;
        max-width: none;
        gap: 10px;
    }
    .site-footer__content {
        gap: 10px;
    }
    .site-footer__list {
        gap: 6px;
        justify-items: start;
    }
}

/* Android / small-screen (mobile) overrides
     - Only change sizes, padding and simple layout for header, body and footer
     - Keep format small and clear so it's easy to understand
     - Do not change non-mobile rules outside this block
*/
@media (max-width: 412px) {
    /* Header: smaller padding and logo size */
    .header {
        padding: 12px 10px;
    }
    .logo {
        font-size: 0.96rem; /* slightly smaller logo */
        padding: 4px 3px;
    }
    .logo span {
        font-size: inherit;
    }
    .header-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    .header-nav {
        display: flex;
        flex-direction: row;
        gap: 8px;
        flex-wrap: nowrap;
    }
    .header-nav a { font-size: 0.72rem; letter-spacing: 0.1em; padding: 3px 2px; }

    

    /* Slight global reduction for mobile to keep layout compact */
    body { font-size: 14px; }

    .site-footer {
        padding: 36px 7% 24px;
        gap: 26px;
    }
    .site-footer-content {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: flex-start;
        column-gap: 32px;
        row-gap: 22px;
    }
    .site-footer-content > .site-footer__content:first-child {
        margin-right: 22px;
        flex-basis: 182px;
    }
    .site-footer-content1 {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 18px 30px;
        text-align: left;
    }
    .site-footer-content1 > .site-footer__content {
        align-items: flex-start;
        max-width: none;
        flex: 1 1 140px;
        gap: 10px;
    }
    .site-footer__content {
        gap: 8px;
    }
    .site-footer .logo {
        font-size: 1.4rem;
        letter-spacing: 0.14em;
    }
    .site-footer__content p {
        letter-spacing: 0.08em;
        font-size: 0.64rem;
    }
    .site-footer__content h3 {
        font-size: 0.78rem;
        letter-spacing: 0.24em;
    }
    .site-footer__list a {
        font-size: 0.68rem;
        letter-spacing: 0.24em;
    }
    .site-footer__bottom {
        letter-spacing: 0.12em;
        font-size: 0.64rem;
    }
}
