/* ==========================================================================
   The Pink Palette — currington.fun
   Colors, fonts and spacing all start here so they are easy to change.
   ========================================================================== */

:root {
    --pink-pale: #fff2f7;
    --pink-soft: #ffd9e8;
    --pink: #ff6fae;
    --pink-deep: #e0428a;
    --hot-pink: #ff1f8f;
    --hot-pink-light: #ffa0c9;
    --plum: #5c2843;
    --plum-soft: #8a5c73;
    --lavender: #c9a7ff;
    --gold: #ffcf5c;
    --cream: #fffaf6;

    --radius: 22px;
    --shadow-soft: 0 10px 30px rgba(224, 66, 138, 0.12);
    --shadow-lift: 0 18px 44px rgba(224, 66, 138, 0.22);

    --font-display: "Playfair Display", Georgia, serif;
    --font-body: "Quicksand", "Trebuchet MS", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.75;
    color: var(--plum);
    background-color: var(--pink-pale);
    background-image:
        radial-gradient(circle at 12% 8%, rgba(255, 111, 174, 0.28), transparent 42%),
        radial-gradient(circle at 88% 4%, rgba(201, 167, 255, 0.30), transparent 40%),
        radial-gradient(circle at 78% 82%, rgba(255, 207, 92, 0.20), transparent 45%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--pink-deep);
}

.wrap {
    width: min(1080px, 100% - 48px);
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 16px;
    top: 16px;
    z-index: 100;
    background: #fff;
    padding: 10px 18px;
    border-radius: 999px;
}

/* ---------- Navigation ---------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(100deg, var(--hot-pink) 0%, var(--pink) 48%, var(--hot-pink-light) 100%);
    box-shadow: 0 4px 20px rgba(224, 66, 138, 0.25);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 2px rgba(124, 20, 70, 0.28);
}

.brand__mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    color: var(--hot-pink);
    font-size: 18px;
    text-shadow: none;
    box-shadow: 0 2px 10px rgba(124, 20, 70, 0.25);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__links a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.nav__links a:hover,
.nav__links a:focus-visible {
    color: #fff;
    border-bottom-color: #fff;
}

.nav__toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 26px;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    padding: 4px 8px;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    padding: 13px 30px;
    border-radius: 999px;
    font-weight: 700;
    font-family: var(--font-body);
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.btn--primary {
    background: linear-gradient(135deg, var(--pink), var(--pink-deep));
    color: #fff;
    box-shadow: var(--shadow-soft);
}

.btn--ghost {
    background: transparent;
    border-color: var(--pink);
    color: var(--pink-deep);
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lift);
}

/* ---------- Hero ---------- */

.hero {
    text-align: center;
    padding: 84px 0 64px;
}

.hero__eyebrow {
    display: inline-block;
    background: #fff;
    border: 1px solid var(--pink-soft);
    color: var(--pink-deep);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    padding: 7px 18px;
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(44px, 8vw, 84px);
    line-height: 1.05;
    margin: 22px 0 0;
    color: var(--plum);
}

.hero h1 em {
    font-style: italic;
    color: var(--pink-deep);
}

.hero__tagline {
    max-width: 620px;
    margin: 20px auto 32px;
    font-size: 20px;
    color: var(--plum-soft);
}

.hero__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

/* ---------- Section headings ---------- */

.section {
    padding: 56px 0;
}

.section__head {
    text-align: center;
    margin-bottom: 38px;
}

.section__head h2 {
    font-family: var(--font-display);
    font-size: clamp(30px, 4.5vw, 44px);
    margin: 0;
    color: var(--plum);
}

.section__head p {
    margin: 10px auto 0;
    max-width: 560px;
    color: var(--plum-soft);
}

/* ---------- Category pills ---------- */

.categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.categories li a {
    display: inline-block;
    background: #fff;
    border: 1px solid var(--pink-soft);
    border-radius: 999px;
    padding: 10px 22px;
    font-weight: 600;
    color: var(--plum);
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s, background-color 0.2s, color 0.2s;
}

.categories li a:hover,
.categories li a:focus-visible {
    transform: translateY(-3px);
    background: var(--pink);
    color: #fff;
}

/* ---------- Post cards ---------- */

.posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 26px;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--cream);
    border: 1px solid rgba(255, 111, 174, 0.20);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover,
.card:focus-within {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
}

.card__art {
    display: grid;
    place-items: center;
    height: 150px;
    font-size: 58px;
    background: linear-gradient(135deg, var(--pink-soft), #f3e6ff);
}

.card__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 24px 26px;
}

.card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--plum-soft);
    margin-bottom: 10px;
}

.tag {
    background: var(--pink);
    color: #fff;
    border-radius: 999px;
    padding: 3px 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.card__body h3 {
    font-family: var(--font-display);
    font-size: 25px;
    line-height: 1.25;
    margin: 0 0 10px;
}

.card__body h3 a {
    color: var(--plum);
    text-decoration: none;
}

.card__body h3 a:hover,
.card__body h3 a:focus-visible {
    color: var(--pink-deep);
}

.card__body p {
    margin: 0 0 18px;
    color: var(--plum-soft);
    font-size: 16.5px;
}

.card__more {
    margin-top: auto;
    font-weight: 700;
    text-decoration: none;
    color: var(--pink-deep);
}

.card__more:hover {
    text-decoration: underline;
}

/* ---------- About ---------- */

.about {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 34px;
    align-items: center;
    background: var(--cream);
    border: 1px solid rgba(255, 111, 174, 0.20);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-soft);
}

.about__avatar {
    width: 180px;
    height: 180px;
    margin-inline: auto;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #fff;
    background: linear-gradient(135deg, var(--pink), var(--lavender));
    box-shadow: var(--shadow-lift);
}

.about__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about h2 {
    font-family: var(--font-display);
    font-size: 34px;
    margin: 0 0 12px;
}

.about p {
    margin: 0 0 14px;
}

.about p:last-child {
    margin-bottom: 0;
}

.signature {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 21px;
    color: var(--pink-deep);
}

/* ---------- Article page ---------- */

.article {
    background: var(--cream);
    border: 1px solid rgba(255, 111, 174, 0.20);
    border-radius: var(--radius);
    padding: clamp(28px, 5vw, 60px);
    margin: 40px 0 20px;
    box-shadow: var(--shadow-soft);
}

.article__header {
    text-align: center;
    border-bottom: 1px solid var(--pink-soft);
    padding-bottom: 26px;
    margin-bottom: 30px;
}

.article__header h1 {
    font-family: var(--font-display);
    font-size: clamp(32px, 5.5vw, 52px);
    line-height: 1.15;
    margin: 14px 0 10px;
}

.article__meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--plum-soft);
}

.article__emoji {
    font-size: 54px;
}

.article__photo {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 18px;
}

.article__body img {
    border-radius: var(--radius);
    margin: 22px auto;
    box-shadow: var(--shadow-soft);
}

.article__body {
    max-width: 68ch;
    margin-inline: auto;
    font-size: 18.5px;
}

.article__body h2 {
    font-family: var(--font-display);
    font-size: 28px;
    margin: 34px 0 8px;
    color: var(--pink-deep);
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    font-weight: 700;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

/* ---------- Footer ---------- */

.footer {
    margin-top: 40px;
    padding: 46px 0 34px;
    text-align: center;
    background: linear-gradient(135deg, var(--pink), var(--pink-deep));
    color: #fff;
}

.footer a {
    color: #fff;
}

.footer__brand {
    font-family: var(--font-display);
    font-size: 28px;
    margin: 0 0 6px;
}

.footer__note {
    margin: 0 auto 18px;
    max-width: 460px;
    opacity: 0.92;
}

.footer__legal {
    font-size: 14px;
    opacity: 0.85;
    margin: 0;
}

/* ---------- Reveal on scroll ---------- */

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------- Small screens ---------- */

@media (max-width: 780px) {
    .about {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 32px 24px;
    }

    .nav__toggle {
        display: block;
    }

    .nav__links {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        gap: 0;
        background: linear-gradient(180deg, var(--pink) 0%, var(--hot-pink-light) 100%);
        box-shadow: 0 12px 24px rgba(224, 66, 138, 0.25);
    }

    .nav__links.is-open {
        display: flex;
    }

    .nav__links li {
        width: 100%;
        text-align: center;
    }

    .nav__links a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    }

    .nav__inner {
        position: relative;
    }

    .hero {
        padding: 56px 0 44px;
    }
}
