* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #080b10;
    font-family: "Baloo 2", cursive;
    color: #f2a9c5;
}


/* =========================
   CONTENEDOR PRINCIPAL
========================= */

.site {
    width: min(100%, 850px);
    margin: 40px auto;
    min-height: 100vh;

    background:
        repeating-linear-gradient(
            90deg,
            #fffafd 0px,
            #fffafd 34px,
            #fff0f7 35px,
            #fff0f7 47px
        );

    position: relative;
    overflow: hidden;

    border-radius: 18px;

    box-shadow:
        0 0 30px rgba(255, 160, 200, .18);

    padding-bottom: 80px;
}


/* =========================
   TOP DECORATION
========================= */

.top-decoration {
    height: 115px;
    position: relative;
    overflow: hidden;
}

.scallops {
    position: absolute;
    top: 0;
    width: 100%;
    height: 80px;

    background:
        radial-gradient(
            circle at 50% 0,
            transparent 38px,
            #f5acd0 40px,
            transparent 43px
        );

    background-size: 90px 80px;
    opacity: .8;
}

.big-bow {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 25px;

    font-size: 70px;
}


/* =========================
   MY MELODY
========================= */

.melody {
    position: absolute;
    width: 110px;
    z-index: 10;
    pointer-events: none;
}

.melody-top {
    top: 110px;
    left: 25px;
}

.melody-bottom {
    bottom: 0;
    right: 20px;
    width: 130px;
}


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

header {
    padding: 25px 30px 20px;
}

.title-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.title-area h1 {
    font-size: clamp(38px, 8vw, 64px);
    margin: 0;

    color: #ee9fc2;

    text-shadow:
        2px 2px white,
        4px 4px #f8c5db;
}

.small-heart {
    font-size: 45px;
}


/* =========================
   SHIP INTRO
========================= */

.ship-intro {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 15px;

    padding: 25px 35px 50px;
}


/* imagen central */

.couple-image {
    width: 42%;
    max-width: 330px;

    aspect-ratio: 1;

    border-radius: 50%;

    overflow: hidden;

    border: 4px solid #f2a8c7;

    background: white;

    box-shadow:
        0 0 0 8px #fff,
        0 0 0 10px #f5c2d8;
}

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


/* polaroids */

.polaroid {
    background: #fff;

    width: 27%;
    max-width: 210px;

    padding: 10px 10px 20px;

    box-shadow:
        0 4px 15px rgba(230, 140, 180, .25);

    text-align: center;

    border: 2px solid #f6bad2;
}

.polaroid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.polaroid span {
    display: block;

    margin-top: 5px;

    font-size: 22px;
    font-weight: 700;

    color: #efa5c5;
}

.polaroid.left {
    transform: rotate(-7deg);
}

.polaroid.right {
    transform: rotate(7deg);
}


/* =========================
   SHIP INFO
========================= */

.ship-info {
    margin: 0 35px 35px;

    padding: 25px;

    background: rgba(255, 224, 237, .65);

    border-radius: 4px;

    text-align: center;
}

.ship-info h2 {
    margin: 0 0 15px;

    font-size: 43px;

    color: #ed9fc0;
}

.info-line {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 15px;
    flex-wrap: wrap;

    margin: 14px 0;

    font-size: 19px;
}

.info-line strong {
    font-size: 21px;
}

.selected {
    background: #ffd1e2;
    padding: 2px 9px;
    border-radius: 2px;
}

.association {
    text-align: right;

    margin-top: 20px;

    font-size: 22px;
    font-weight: 700;
}

.association span {
    color: #ec8fb6;
    font-size: 30px;
}


/* =========================
   CHARACTER CARDS
========================= */

.character-card {
    margin: 30px 35px;

    padding: 18px;

    display: flex;

    gap: 20px;

    background: #ffdceb;

    border: 3px solid #f4b1ce;

    border-radius: 5px;

    box-shadow:
        inset 0 0 0 2px rgba(255,255,255,.5);
}

.character-image {
    flex: 0 0 190px;

    background: white;

    padding: 5px;

    border-radius: 4px;
}

.character-image img {
    width: 100%;

    aspect-ratio: .78;

    object-fit: cover;
}

.character-image small {
    display: block;

    font-size: 18px;

    padding: 3px;

    color: #ed9cbe;
}


.character-info {
    flex: 1;

    min-width: 0;
}

.character-info h3 {
    font-size: 27px;

    margin: 0;

    color: #f09fc1;
}

.character-info h3 b {
    font-size: 30px;
}

.line {
    height: 4px;

    background: #f5b2ce;

    margin: 6px 0 8px;
}

.character-info p {
    margin: 7px 0;

    display: flex;
    align-items: center;

    gap: 10px;

    font-size: 18px;
}

.character-info p b {
    min-width: 105px;
}

.character-info p span {
    flex: 1;

    background: #fff1f7;

    padding: 2px 10px;

    min-width: 0;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.two-columns {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;
}

.two-columns p {
    min-width: 0;
}


/* =========================
   LAW CARD
========================= */

.law-card {
    background: #ffd7e8;
}

.law-color {
    background: #777 !important;
    color: white;
}


/* =========================
   COLOR PALETTE
========================= */

.palette {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    margin: 15px 0 45px;

    font-size: 25px;
}

.circle {
    width: 27px;
    height: 27px;

    border-radius: 50%;

    display: inline-block;

    border: 3px solid #fff;

    box-shadow: 0 0 0 2px #f4b2ce;
}

.c1 {
    background: #fff2f7;
}

.c2 {
    background: #ffd5e5;
}

.c3 {
    background: #f5a6c5;
}

.c4 {
    background: #ed8eb4;
}

.c5 {
    background: #e8c9df;
}


/* LAW COLORS */

.yellow {
    background: #ffe94f;
}

.blue {
    background: #1680d5;
}

.darkblue {
    background: #314f9e;
}

.darkpink {
    background: #6e5260;
}

.black {
    background: #222;
}


/* =========================
   LEGEND
========================= */

.association.second {
    display: flex;

    justify-content: center;

    gap: 10px 20px;

    flex-wrap: wrap;

    margin: 20px 0 30px;
}

.law-dot {
    color: #555;
}

.mizumi-dot {
    color: #f5d6e5;
}


/* =========================
   PERSONALITY
========================= */

.personality {
    padding: 10px 55px 70px;
}

.person-row {
    display: grid;

    grid-template-columns: 145px 1fr 145px;

    align-items: center;

    gap: 15px;

    margin: 28px 0;
}

.person-row label {
    font-size: 21px;

    font-weight: 700;
}

.person-row label:last-child {
    text-align: right;
}

.slider {
    height: 5px;

    background: #ee9fbd;

    position: relative;

    border-radius: 10px;
}

.marker {
    position: absolute;

    top: 50%;

    transform: translate(-50%, -50%);

    width: 32px;
    height: 32px;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 12px;

    font-weight: 800;
}

.law-marker {
    background: #555;

    color: white;

    border: 3px solid #fff;
}

.mizumi-marker {
    background: #fff;

    color: #efa5c5;

    border: 2px solid #f3b1cd;
}


/* =========================
   AESTHETIC
========================= */

.aesthetic {
    padding: 20px 35px 80px;
}

.section-title {
    display: flex;

    align-items: center;

    gap: 25px;

    justify-content: center;

    margin-bottom: 45px;
}

.section-title span {
    width: 100px;

    height: 3px;

    background: #f1b0cb;
}

.section-title h2 {
    font-size: 43px;

    margin: 0;

    color: #ed9fc1;
}


.aesthetic-gallery {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 12px;
}

.aesthetic-photo {
    width: 31%;

    background: #fff;

    padding: 8px;

    border: 3px solid #efb0ca;

    transform: rotate(-5deg);
}

.aesthetic-photo.middle {
    transform: rotate(5deg) translateY(-15px);
}

.aesthetic-photo:nth-child(3) {
    transform: rotate(-2deg);
}

.aesthetic-photo img {
    display: block;

    width: 100%;

    aspect-ratio: 1;

    object-fit: cover;
}


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

footer {
    text-align: center;

    font-size: 20px;

    color: #eca0c1;
}


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

@media (max-width: 650px) {

    .site {
        margin: 0 auto;

        border-radius: 12px;
    }

    .top-decoration {
        height: 90px;
    }

    .big-bow {
        font-size: 55px;
        top: 15px;
    }

    .melody-top {
        top: 80px;
        left: 10px;

        width: 80px;
    }

    .melody-bottom {
        width: 90px;
    }


    header {
        padding-top: 30px;
    }

    .title-area h1 {
        font-size: 38px;
    }

    .small-heart {
        font-size: 28px;
    }


    .ship-intro {
        gap: 5px;

        padding-left: 20px;
        padding-right: 20px;
    }

    .polaroid {
        width: 27%;

        padding: 6px 6px 12px;
    }

    .polaroid span {
        font-size: 14px;
    }

    .couple-image {
        width: 43%;
    }


    .ship-info {
        margin-left: 20px;
        margin-right: 20px;

        padding: 15px;
    }

    .ship-info h2 {
        font-size: 32px;
    }

    .info-line {
        font-size: 15px;

        gap: 7px;
    }


    .character-card {
        margin-left: 20px;
        margin-right: 20px;

        padding: 10px;

        gap: 10px;
    }

    .character-image {
        flex: 0 0 105px;
    }

    .character-info h3 {
        font-size: 16px;
    }

    .character-info h3 b {
        font-size: 19px;
    }

    .character-info p {
        font-size: 12px;

        gap: 4px;
    }

    .character-info p b {
        min-width: 60px;
    }

    .character-info p span {
        padding: 2px 5px;
    }


    .two-columns {
        display: block;
    }


    .palette {
        font-size: 18px;

        gap: 6px;
    }

    .circle {
        width: 21px;
        height: 21px;
    }


    .personality {
        padding: 10px 20px 50px;
    }

    .person-row {
        grid-template-columns: 75px 1fr 75px;

        gap: 7px;
    }

    .person-row label {
        font-size: 12px;
    }

    .marker {
        width: 27px;
        height: 27px;

        font-size: 10px;
    }


    .aesthetic {
        padding-left: 20px;
        padding-right: 20px;
    }

    .section-title {
        gap: 10px;
    }

    .section-title span {
        width: 45px;
    }

    .section-title h2 {
        font-size: 32px;
    }

}