
/* ==========================================
   DRESS TO IMPRESS LOVERS
   Retro pixel fashion blog
========================================== */

/* COLOR PALETTE + FONTS */

:root {
    --lime: #c5ff38;
    --pink: #ff3cac;
    --blue: #54dfff;
    --purple: #a78bfa;
    --black: #171717;
    --white: #fffdf7;
    --paper: #fff8e9;

    --pixel: "Press Start 2P", monospace;
    --retro: "VT323", monospace;
}


/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 25px;
}

body {
    background: var(--paper);
    color: var(--black);
    font-family: var(--retro);
    font-size: 22px;
    line-height: 1.5;
}

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

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

::selection {
    background: var(--pink);
    color: var(--white);
}


/* TYPOGRAPHY */

h1,
h2,
h3,
.logo,
.navbar,
.button,
.eyebrow,
.card-tag,
.profile-tags,
.read-more {
    font-family: var(--pixel);
}

h1 {
    font-size: clamp(2rem, 5vw, 4.5rem);
    line-height: 1.5;
    margin: 20px 0;
    overflow-wrap: anywhere;
}

h1 span,
h2 span {
    color: var(--pink);
}

h2 {
    font-size: clamp(1.25rem, 3vw, 2rem);
    line-height: 1.8;
    overflow-wrap: anywhere;
}

h3 {
    font-size: 0.85rem;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.eyebrow {
    font-size: 9px;
    line-height: 2;
    letter-spacing: 1px;
    margin-bottom: 18px;
}


/* ANNOUNCEMENT BAR */

.announcement {
    background: var(--lime);
    border-bottom: 3px solid var(--black);
    padding: 12px 5%;
    text-align: center;
    font-family: var(--pixel);
    font-size: 9px;
    line-height: 2;
}

.announcement span {
    margin-left: 15px;
    color: #b50069;
}


/* HEADER + LOGO */

.site-header {
    background: var(--white);
    border-bottom: 3px solid var(--black);
    padding: 22px 5%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.logo {
    display: block;
    max-width: 260px;
    flex-shrink: 0;
    white-space: normal;
    font-size: 10px;
    line-height: 2;
}

.logo span {
    display: block;
    color: var(--pink);
}

.logo small {
    display: block;
    font-size: 8px;
    color: #686868;
    margin-top: 3px;
}


/* NAVIGATION */

.navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 22px;
    font-size: 8px;
}

.navbar a {
    transition: color 0.2s ease;
}

.navbar a:hover,
.navbar a:focus-visible {
    color: #c50071;
}


/* HEADER BUTTON */

.header-button {
    display: inline-block;
    flex-shrink: 0;

    background: var(--blue);
    border: 3px solid var(--black);
    padding: 12px 14px;

    font-family: var(--pixel);
    font-size: 8px;
    line-height: 1.8;

    box-shadow: 4px 4px 0 var(--black);
    transition: 0.2s ease;
}

.header-button:hover {
    transform: translate(3px, 3px);
    box-shadow: 1px 1px 0 var(--black);
}


/* HERO SECTION */

.hero {
    background: var(--lime);
    border-bottom: 3px solid var(--black);

    padding: 80px 8%;

    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 65px;

    overflow: hidden;
}

.hero-content {
    min-width: 0;
}

.hero-description {
    max-width: 570px;
    font-size: 27px;
    line-height: 1.4;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}


/* GENERAL BUTTONS */

.button {
    display: inline-block;
    padding: 15px 18px;

    border: 3px solid var(--black);
    box-shadow: 5px 5px 0 var(--black);

    font-size: 8px;
    line-height: 2;
    text-align: center;

    transition: transform 0.2s ease,
                box-shadow 0.2s ease;
}

.button:hover {
    transform: translate(4px, 4px);
    box-shadow: 1px 1px 0 var(--black);
}

.button-pink {
    background: var(--pink);
}

.button-blue {
    background: var(--blue);
}

.pixel-note {
    margin-top: 28px;
    font-family: var(--pixel);
    font-size: 8px;
    line-height: 2;
}


/* HERO IMAGE */

.hero-art {
    position: relative;
    width: 100%;
    max-width: 440px;
    min-width: 0;
    margin: 0 auto;

    padding: 18px;
    background: var(--pink);
    border: 4px solid var(--black);
    box-shadow: 12px 12px 0 var(--black);

    transform: rotate(2deg);
}

.art-label {
    font-family: var(--pixel);
    font-size: 9px;
    text-align: center;
    line-height: 2;
    padding: 10px 0 15px;
}

.fashion-frame {
    height: 420px;
    overflow: hidden;
    background: var(--blue);
    border: 3px solid var(--black);
}

.fashion-frame img {
    transition: transform 0.5s ease;
}

.hero-art:hover .fashion-frame img {
    transform: scale(1.06);
}


/* FLOATING STICKERS */

.sticker {
    position: absolute;
    z-index: 2;

    background: var(--blue);
    border: 3px solid var(--black);
    box-shadow: 4px 4px 0 var(--black);

    padding: 12px;
    font-family: var(--pixel);
    font-size: 10px;
}

.sticker-top {
    top: 65px;
    right: -25px;
    transform: rotate(10deg);
}

.sticker-bottom {
    bottom: 35px;
    left: -25px;

    background: var(--lime);
    transform: rotate(-8deg);
}


/* MOVING TICKER */

.ticker {
    width: 100%;
    overflow: hidden;

    background: var(--pink);
    border-bottom: 3px solid var(--black);

    padding: 15px 0;
    white-space: nowrap;

    font-family: var(--pixel);
    font-size: 10px;
}

.ticker div {
    display: inline-block;
    width: max-content;

    animation: marquee 28s linear infinite;
}

.ticker:hover div {
    animation-play-state: paused;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}


/* BLOG SECTION */

.section {
    padding: 90px 7%;
}

.section-heading {
    text-align: center;
    margin-bottom: 50px;
}

.section-heading > p:last-child {
    margin-top: 12px;
    font-size: 25px;
}


/* BLOG GRID */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}


/* BLOG CARDS */

.blog-card {
    min-width: 0;
    background: var(--white);
    border: 3px solid var(--black);
    box-shadow: 7px 7px 0 var(--black);

    display: flex;
    flex-direction: column;

    transition: transform 0.25s ease,
                box-shadow 0.25s ease;
}

.blog-card:hover {
    transform: translateY(-7px);
    box-shadow: 10px 14px 0 var(--black);
}


/* BLOG IMAGE */

.card-image {
    position: relative;
    height: 245px;
    flex-shrink: 0;

    overflow: hidden;
    border-bottom: 3px solid var(--black);
}

.card-image img {
    transition: transform 0.4s ease;
}

.blog-card:hover .card-image img {
    transform: scale(1.06);
}

.image-pink {
    background: var(--pink);
}

.image-blue {
    background: var(--blue);
}

.image-green {
    background: var(--lime);
}


/* IMAGE LABELS */

.card-tag {
    position: absolute;
    top: 10px;
    left: 10px;

    background: var(--lime);
    border: 2px solid var(--black);
    padding: 9px;

    font-size: 7px;
    line-height: 1.8;
}


/* BLOG CONTENT */

.card-content {
    padding: 23px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1;
}

.card-date {
    color: #b50069;
    font-size: 19px;
    margin-bottom: 14px;
}

.card-content h3 {
    margin-bottom: 13px;
}

.card-content > p:not(.card-date):not(.post-author) {
    font-size: 23px;
    line-height: 1.4;
    margin-bottom: 18px;
}


/* POST AUTHOR */

.post-author {
    color: #555;
    font-family: var(--pixel);
    font-size: 7px;
    line-height: 2;
    margin-top: auto;
    margin-bottom: 18px;
}


/* READ MORE LINK */

.read-more {
    display: inline-block;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--pink);

    font-size: 8px;
    line-height: 2;

    transition: color 0.2s ease;
}

.read-more:hover {
    color: #b50069;
}


/* OUTFIT INSPIRATION SECTION */

.outfit-section {
    border-top: 3px solid var(--black);
}

.outfit-banner {
    background: var(--blue);
    border-bottom: 3px solid var(--black);

    padding: 60px 8%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 35px;
}

.outfit-banner h2 {
    margin-bottom: 12px;
}

.outfit-banner > div > p:last-child {
    font-size: 26px;
    line-height: 1.4;
}

.button-dark {
    background: var(--black);
    color: var(--lime);
    border-color: var(--black);
    box-shadow: 5px 5px 0 var(--pink);
}


/* OUTFIT TIP CARDS */

.outfit-tips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;

    padding: 60px 7%;
}

.tip-card {
    padding: 28px;
    border: 3px solid var(--black);
    box-shadow: 6px 6px 0 var(--black);
}

.tip-pink {
    background: var(--pink);
}

.tip-blue {
    background: var(--blue);
}

.tip-lime {
    background: var(--lime);
}

.tip-number {
    display: inline-block;
    margin-bottom: 22px;

    font-family: var(--pixel);
    font-size: 20px;
}

.tip-card h3 {
    margin-bottom: 15px;
}

.tip-card p {
    font-size: 24px;
    line-height: 1.4;
}


/* BLOGGER PROFILE */

.blogger-profile {
    position: relative;

    width: min(850px, 86%);
    margin: 45px auto 75px;
    padding: 55px 30px;

    text-align: center;

    background: var(--pink);
    border: 4px solid var(--black);
    box-shadow: 10px 10px 0 var(--black);
}

.profile-star {
    display: inline-block;

    margin-bottom: 22px;
    padding: 15px;

    background: var(--lime);
    border: 3px solid var(--black);

    font-size: 28px;
}

.blogger-profile h2 {
    margin-bottom: 20px;
}

.blogger-profile h2 span {
    color: var(--lime);
}


/* BLOGGER USERNAME */

.username {
    display: inline-block;

    margin: 5px 0 24px;
    padding: 12px 18px;

    background: var(--blue);
    border: 3px solid var(--black);
    box-shadow: 4px 4px 0 var(--black);

    font-family: var(--pixel);
    font-size: clamp(9px, 1.5vw, 13px);
    line-height: 2;

    overflow-wrap: anywhere;
}


/* BLOGGER BIO */

.blogger-profile > p:not(.eyebrow):not(.profile-note) {
    max-width: 600px;
    margin: 0 auto;

    font-size: 27px;
    line-height: 1.4;
}


/* BLOGGER TAGS */

.profile-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 25px;
}

.profile-tags span {
    padding: 10px;

    background: var(--lime);
    border: 2px solid var(--black);

    font-size: 7px;
    line-height: 2;
}

.profile-note {
    margin-top: 28px;

    font-family: var(--pixel);
    font-size: 8px;
    line-height: 2;
}


/* FOOTER */

.footer {
    background: var(--black);
    color: var(--white);

    border-top: 4px solid var(--lime);
    padding: 35px 6%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 22px;
}

.footer .logo {
    font-size: 9px;
}

.footer p:not(.disclaimer),
.back-to-top {
    font-family: var(--pixel);
    font-size: 8px;
    line-height: 2;
}

.back-to-top {
    color: var(--lime);
}

.back-to-top:hover {
    color: var(--pink);
}

.footer .disclaimer {
    flex-basis: 100%;
    border-top: 1px solid #555;
    padding-top: 18px;

    color: #ccc;
    font-size: 18px;
    text-align: center;
}


/* TABLETS */

@media (max-width: 1000px) {

    .site-header {
        flex-wrap: wrap;
    }

    .navbar {
        order: 3;
        width: 100%;
        padding-top: 12px;
    }

    .hero {
        padding: 65px 6%;
        gap: 40px;
    }

    .fashion-frame {
        height: 340px;
    }

    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blog-card:last-child {
        grid-column: 1 / -1;
        width: calc(50% - 14px);
        justify-self: center;
    }

    .outfit-tips {
        gap: 18px;
        padding: 45px 5%;
    }

    .tip-card {
        padding: 20px;
    }
}


/* MOBILE PHONES */

@media (max-width: 650px) {

    body {
        font-size: 19px;
    }

    .announcement {
        padding: 10px 12px;
        font-size: 7px;
    }

    .announcement span {
        display: block;
        margin: 0;
    }

    .site-header {
        padding: 20px 5%;
        gap: 18px;
    }

    .logo {
        max-width: 190px;
        font-size: 9px;
    }

    .header-button {
        font-size: 7px;
        padding: 9px;
    }

    .navbar {
        justify-content: flex-start;
        gap: 18px;
        overflow-x: auto;
    }

    .navbar a {
        font-size: 7px;
        white-space: nowrap;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 55px 7%;
        gap: 50px;
    }

    h1 {
        font-size: clamp(1.65rem, 8vw, 2.8rem);
        line-height: 1.7;
    }

    h2 {
        font-size: clamp(1.15rem, 6vw, 1.7rem);
    }

    .hero-description {
        font-size: 23px;
    }

    .hero-buttons {
        gap: 14px;
    }

    .button {
        padding: 12px;
        font-size: 7px;
    }

    .hero-art {
        max-width: 340px;
        padding: 14px;
    }

    .fashion-frame {
        height: 330px;
    }

    .sticker-top {
        right: -14px;
    }

    .sticker-bottom {
        left: -14px;
    }

    .ticker {
        font-size: 8px;
    }

    .section {
        padding: 65px 7%;
    }

    .section-heading {
        margin-bottom: 35px;
    }

    .section-heading > p:last-child {
        font-size: 22px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .blog-card:last-child {
        grid-column: auto;
        width: 100%;
    }

    .card-image {
        height: 260px;
    }

    .card-content {
        padding: 22px;
    }

    .outfit-banner {
        padding: 45px 7%;
        gap: 25px;
    }

    .outfit-banner > div > p:last-child {
        font-size: 23px;
    }

    .outfit-tips {
        grid-template-columns: 1fr;
        padding: 40px 7%;
        gap: 25px;
    }

    .tip-card {
        padding: 25px;
    }

    .blogger-profile {
        width: 84%;
        padding: 35px 18px;
        margin: 40px auto 60px;
    }

    .blogger-profile > p:not(.eyebrow):not(.profile-note) {
        font-size: 23px;
    }

    .username {
        font-size: 9px;
        padding: 10px;
    }

    .profile-tags {
        gap: 8px;
    }

    .profile-tags span {
        font-size: 6px;
        padding: 8px;
    }

    .footer {
        flex-direction: column;
        text-align: center;
        padding: 35px 7%;
    }

    .footer .disclaimer {
        font-size: 17px;
    }
}


/* ACCESSIBILITY: REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
dress-to-impress-lovers/
├── index.html
├── style.css
└── pic.jpeg