/* =========================
   TABLETS
========================= */

@media screen and (max-width: 900px) {
    body {
        background-attachment: scroll;
    }

    .home-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;

        width: min(94%, 650px);
        padding-top: 0.5rem;
    }

    .calendar-area,
    .left,
    .right {
        grid-column: 1;
        width: 100%;
    }

    /* Calendar first */
    .calendar-area {
        grid-row: 1;
    }

    /* Plans second */
    .left {
        grid-row: 2;
    }

    /* Details third */
    .right {
        grid-row: 3;
    }

    .calendar {
        max-width: 600px;
    }
}

@media screen and (max-width: 768px) {
  body {
    padding-top: 65px;
  }

  nav.navbar {
    justify-content: flex-end;
    padding: 0.8rem 1rem;
    min-height: 60px;
  }

  .toggle-button {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    width: 32px;
    height: 24px;
    padding: 0;

    background: transparent;
    border: none;
    cursor: pointer;
  }

  .toggle-button span {
    display: block;
    width: 100%;
    height: 3px;

    background: #00f0a8;
    border-radius: 3px;
  }

  .romeo {
    display: none;

    position: absolute;
    top: 100%;
    left: 0;

    width: 100%;
    padding: 1rem;

    background: rgba(0, 0, 0, 0.92);
  }

  .romeo.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .romeo a {
    width: 100%;
    padding: 0.9rem 0;

    font-size: 1.6rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .romeo a:last-child {
    border-bottom: none;
  }
}


/* =========================
   PHONES
========================= */

@media screen and (max-width: 480px) {
    .page-header {
        padding: 4rem 0.75rem 1rem;
    }

    .page-header h1 {
        font-size: clamp(2rem, 10vw, 2.8rem);
    }

    .home-layout {
        width: 94%;
        gap: 1rem;
        padding-bottom: 2rem;
    }

    .left,
    .right {
        padding: 1.25rem 1rem;
    }

    .left h2,
    .right h2 {
        font-size: clamp(1.6rem, 7vw, 2rem);
    }

    .plans {
        padding-left: 1.25rem;
        font-size: clamp(1rem, 4.5vw, 1.2rem);
        line-height: 1.4;
    }

    .right p {
        font-size: clamp(1rem, 4.5vw, 1.2rem);
    }

    .current-date {
        padding: 1.25rem 0.5rem;
    }

    .current-date h3 {
        font-size: clamp(1.5rem, 7vw, 2rem);
        letter-spacing: 2px;
    }

    .week-days {
        padding: 1rem 0.3rem;
    }

    .week-days li {
        font-size: clamp(0.55rem, 2.6vw, 0.75rem);
    }

    .weeks {
        padding: 0 0.3rem 1rem;
    }

    .weeks > div {
        margin-bottom: 0.25rem;
    }

    .weeks span {
        padding: 0.1rem;
        font-size: clamp(0.7rem, 3.2vw, 0.9rem);
    }

    footer {
        padding: 1rem 0.5rem;
        font-size: 0.7rem;
    }
}