/* Mobile: 375px - Desktop: 1440px */
/* Family: [Inter](https://fonts.google.com/specimen/Inter) - Weights: 400, 700, 800 */
/* Font size (paragraph): 15px */

@font-face {
    font-family: 'Inter';
    font-weight: 400;
    src: url('../fonts/static/Inter-Regular.ttf');
}

@font-face {
    font-family: 'Inter';
    font-weight: 700;
    src: url('../fonts/static/Inter-Bold.ttf');
}

@font-face {
    font-family: 'Inter';
    font-weight: 800;
    src: url('../fonts/static/Inter-ExtraBold.ttf');
}

:root {
    /* Primary Colors */
    --soft-orange: hsl(35, 77%, 62%);
    --soft-red: hsl(5, 85%, 63%);

    /* Neutral Colors */
    --off-white: hsl(36, 100%, 99%);
    --grayish-blue: hsl(233, 8%, 79%);
    --dark-grayish-blue: hsl(236, 13%, 42%);
    --very-dark-blue: hsl(240, 100%, 5%);
}

* {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Inter';
    background-color: var(--off-white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.page {
    max-width: 360px;
    padding: 15px;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    margin-top: 10px;
}

.icon {
    width: 42px;
    height: 24px;
}

.menu-btn {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1001;
    background: none;
    border: none;
    cursor: pointer;
}

.menu {
    position: fixed;
    top: 0;
    right: 0;

    width: 70%;
    max-width: 150px;
    height: 100vh;

    background-color: hsl(36, 100%, 99%);
    padding: 6rem 2rem;

    display: flex;
    flex-direction: column;
    gap: 1.5rem;

    list-style: none;

    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    margin: 0;
}

.menu a {
  text-decoration: none;
  font-size: 1.2rem;
  color: #00001a;
}

.menu.open {
    transform: translateX(0);
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 900;
}

.top img {
    width: 100%
}

.top h1 {
    width: 70%;
    font-weight: 800;
    margin: 10px 0 10px 0;
}

.top p {
    margin: 0 0 20px 0;
    color: var(--dark-grayish-blue);
    font-size: 0.9rem;
}

.top button {
    background-color: var(--soft-red);
    padding: 15px 30px;
    border: none;
    font-family: 'Inter';
    font-weight: 700;
    letter-spacing: 3px;
    cursor: pointer;
}

.top button:hover {
    background-color: var(--very-dark-blue);
    color: var(--off-white)
}

.new-card {
    background-color: var(--very-dark-blue);
    padding: 20px;
    margin: 50px 0 40px 0;
}

.new-card h1 {
    color: var(--soft-orange);
    margin: 0
}

.new-card h2 {
    color: var(--off-white);
    font-size: 1.25rem;
    margin-bottom: 0;
}

.new-card p {
    color: var(--grayish-blue);
    font-size: 0.9rem;
    margin-top: 10px;
}

.new-item {
    padding: 0.8rem 0;
    border-bottom: 1px solid hsl(233, 8%, 79%);
}

.new-item:last-child {
    border-bottom: none;
}

.top-news {
    display: flex;
    margin-bottom: 30px;
}

.top-news:last-child {
    margin-bottom: 0;
}

.top-news img {
    width: 128px;
    height: 128px;
}

.content {
    margin: 0 0 0 20px;
}

.top-news h1 {
    color: var(--soft-red);
    margin: 0;
}

.top-news h2 {
    margin: 10px 0 0 0;
    font-weight: 800;
    font-size: 1rem;
}

.top-news h2:hover {
    color: var(--soft-red);
    cursor: pointer;
}

.top-news p {
    color: var(--dark-grayish-blue);
    font-size: 0.9rem;
}

.hidden {
  display: none;
}

@media (min-width: 768px) {

    .page {
        max-width: 1100px;
    }

    header {
        margin-bottom: 40px;
    }

    .icon {
        width: 60px;
        height: 34px;
    }

    .top {
        flex: 2.4;
    }

    .top img {
        margin-bottom: 30px;
    }

    .top h1 {
        font-size: 3rem;
        margin: 0;
        grid-column: 1;
        align-self: start;
        width: auto;
    }

    .top p {
        margin: 0 0 20px 0;
        font-size: 0.95rem;
    }

    .top button {
        padding: 10px 28px;
        font-size: 0.85rem;
        width: fit-content;
    }

    .top-content {
        display: flex;
        align-items: flex-start;
        gap: 80px;
    }

    .new-card {
        max-width: 400px;
        flex: 1;
        margin: 0;
    }

    .menu {
        position: static;
        transform: none;
        height: auto;
        width: auto;
        max-width: 100%;

        flex-direction: row;
        gap: 2rem;

        background: transparent;
        padding: 0;
    }

    .menu-btn {
        display: none;
    }

    .menu a {
        color: var(--dark-grayish-blue);
        text-decoration: none;
        font-size: 0.9rem;
    }

    .menu a:hover {
        color: var(--soft-red);
    }

    .new-item h2:hover {
        color: var(--soft-orange);
        cursor: pointer;
    }

    .flex-row {
        display: flex;
        gap: 30px;
    }

    .flex-column {
        display: flex;
        flex-direction: column;
    }

    .margin-50 {
        margin-top: 50px;
    }

    .overlay {
        display: none !important;
    }

}

