:root {
    /* colors */
    --background: #f4f6f3;
    --header-footer: #7a9486;
    --text-primary: #28312b;
    --text-secondary: #5f6f65;
    --text-muted: #8a9e91;
    --text-pop: #669276;
    --text-good: #537761;
    --text-bad: #976460;
    --accent-primary: #9caf88;
    --accent-secondary: #c9d6c1;
    --accent-bright: #ddc69a;
    --accent-warm: #c2a878;
    --accent-stone: #887a60;
    --accent-hover: #b2c0a3;
    --border: #a8b89e;
    --highlight: #7a9486;
    --media-slider-background: #dae0dd;

    /* fonts */
    --font-body: "Merriweather", serif;
}

body {
    display: flex;
    flex-direction: column;
    background-color: var(--background);
    font-family: var(--font-body);
}

/* header */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2.5rem;
    background-color: var(--header-footer);
    color: var(--text-primary);
}

header h1 a {
    font-size: 150%;
    text-decoration: none;
    color: var(--text-primary);
}

header nav {
    display: flex;
    background-color: var(--accent-secondary);
    border-radius: .5rem;
    padding: .3rem .5rem;
    gap: .3rem;
}

header nav a {
    font-size: 85%;
    text-decoration: none;
    color: var(--text-primary);
    padding: .5rem .7rem;
    border-radius: .5rem;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.15s ease;
}

header nav a:hover {
    background-color: var(--accent-hover);
}

header nav a.active {
    background-color: var(--accent-primary);
}

/* main styling */
main {
    padding: 2rem 2.5rem 1rem;
    line-height: 1.3;
    color: var(--text-primary);
}

main h3,
main p {
    margin-bottom: 1em;
}

main .page-title {
    font-size: 200%;
    margin-bottom: 1rem;
}

main h2 {
    font-size: 150%;
}

main h3 {
    font-size: 130%;
}

main p {
    font-size: 110%;
}

main p.note {
    font-size: 80%;
}

main ul {
    list-style-position: inside;
}

/* home page */
.home {
    display: flex;
    flex-direction: column;
}

.home-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh;
}

.home-hero-text {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 50%;
}

.home-title {
    font-size: clamp(2rem, 5vw, 4rem);
}

.home-title em {
    color: var(--text-pop);
}

.home-eyebrow,
.home-description {
    font-size: clamp(.5rem, 2vw, 1rem);
    color: var(--accent-stone);
    width: 50%;
}

.home-links {
    display: flex;
    gap: .5rem;
}

.home-playlist,
.home-media {
    text-decoration: none;
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: .5rem;
    padding: .3rem 1rem;
    opacity: 1;
    transition: background-color 0.2s ease, transform 0.15s ease;
    font-size: clamp(.5rem, 2vw, 1rem);
}

.home-playlist {
    background-color: var(--accent-primary);
}

.home-playlist:hover {
    transform: translateY(-2px);
    opacity: .9;
}

.home-media {
    background-color: var(--media-slider-background);
}

.home-media:hover {
    transform: translateY(-2px);
    opacity: .9;
}

.vinyl {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;

    width: clamp(250px, 40vw, 700px);
    aspect-ratio: 1 / 1;

    border-radius: 50%;
    background: repeating-radial-gradient(
        circle at center,
        #111110 0%,
        #1e1e1b 5%
    );

    animation: spin 20s linear infinite;
    flex-shrink: 1;
}

.vinyl-word {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.vinyl-word text {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .2em;
    fill: rgba(255, 255, 255, 0.18);
}

.vinyl-center {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;

    width: 18%;
    aspect-ratio: 1 / 1;

    background-color: var(--text-pop);
    padding: 3%;
    margin: 0;
    border-radius: 50%;
}

.vinyl-dot {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 25%;
    aspect-ratio: 1 / 1;

    background-color: black;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.vinyl-title {
    font-size: clamp(.6rem, 1.2vw, 1rem);
}

.vinyl-description {
    font-size: clamp(.35rem, .8vw, .65rem);
}

@keyframes spin {
    from {
    transform: rotate(0deg);
    }

    to {
    transform: rotate(360deg);
    }
}

.home-explanation {
    display: flex;
    padding: 2rem 0;
    gap: 2rem;
}

.home-what,
.home-why {
    width: 50%;
    border-radius: 1rem;
    padding: 1.5rem;
    line-height: 1.6;
}

.home-what h2,
.home-why h2 {
    margin-bottom: 1rem;
}

.home-what {
    background-color: var(--accent-bright);
}

.home-why {
    background-color: var(--accent-stone);
}

.home-quote {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem;
    font-size: 150%;
    font-style: italic;
    text-align: center;
    line-height: 1.5;
    background-color: var(--accent-primary);
    border-radius: 1rem;
    margin: 1rem 0;
}

.home-audience {
    display: flex;
    padding: 2rem 0;
    gap: 2rem;
}

.home-for .good {
    color: var(--text-good);
}

.home-not .bad {
    color: var(--text-bad);
}

.home-for,
.home-not {
    width: 50%;
    border-radius: 1rem;
    padding: 1.5rem;
    line-height: 1.6;
    background-color: var(--media-slider-background);
}

.home-for h2,
.home-not h2 {
    margin-bottom: 1rem;
}

.home-for ul,
.home-not ul {
    list-style: none;
    margin-left: 1.25rem;
}

.home-for li,
.home-not li {
    margin-bottom: 1rem;
}

.home-purpose {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    text-align: center;
}

.home-purpose > p {
    color: var(--accent-stone);
}

.home-purpose h2 {
    margin-bottom: 1rem;
}

.home-principles {
    display: flex;
    gap: 2rem;
}

.home-principle1,
.home-principle2,
.home-principle3 {
    flex: 1;
    padding: 1.5rem;
    border-radius: 1rem;
    line-height: 1.6;
    text-align: left;
}

.home-principle1 {
    background-color: var(--accent-stone);
}

.home-principle2 {
    background-color: var(--accent-primary);
}

.home-principle3 {
    background-color: var(--accent-bright);
}

.home-note {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background-color: var(--accent-secondary);
    border-radius: .5rem;
    line-height: 1.6;
    font-size: 90%;
    color: var(--text-secondary);
}

/* playlist page */
.song {
    display: flex;
    gap: 1rem;
    justify-content: left;
    align-items: top;
    padding: 1rem;
    margin: 1rem 0rem;
    border: 1px solid var(--text-primary);
    border-radius: 12px;
}

.song img {
    display: block;
    box-sizing: border-box;
    border-radius: 12px;
    width: 200px;
    border: 1px solid var(--text-primary);
}

.song-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.explicit-tag {
    font-size: 50%;
    background: black;
    color: white;
    padding: 1px 5px;
    border-radius: 3px;
    vertical-align: middle;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.song-artist {
    opacity: .8;
}

.song-description {
    margin: 0;
    min-height: 4lh;
    max-height: 4lh;
    overflow-y: auto;
}

.song-triggers {
    margin: 0;
}

.song-triggers-suggest {
    text-decoration: none;
    color: var(--text-primary);
    opacity: .7;
    width: fit-content;
}

.song-triggers-suggest:hover {
    opacity: 1;
}

.song-lyrics {
    text-decoration: none;
    color: var(--text-primary);
    opacity: .7;
    width: fit-content;
}

.song-lyrics:hover {
    opacity: 1;
}

/* media content sliders */
.podcasts,
.books,
.videos,
.movies {
    background-color: var(--media-slider-background);
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

/* hide highlights from clicking on slider buttons */
.podcasts h2::selection,
.books h2::selection,
.videos h2::selection,
.movies h2::selection,
footer h2::selection {
    background-color: transparent;
}

.media-slider {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.media-wrapper {
    margin: 0 60px 35px;
    padding: 20px 10px;
    overflow: hidden;
}

.media-list .media-item {
    list-style: none;
}

.media-list .media-item .media-content {
    user-select: none;
    display: flex;
    background-color: rgb(245, 245, 245);
    padding: 18px;
    border-radius: 14px;
    text-decoration: none;
    border: 1px solid var(--border);
    gap: 1rem;
}

.media-item-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.media-list .media-content .media-image {
    object-fit: cover;
    border-radius: 10px;
    max-width: 200px;
    max-height: 200px;
}

.media-list .media-content iframe {
    border-radius: .5rem;
}

.media-list .media-content .media-title {
    font-size: 100%;
    color: var(--text-primary);
    font-weight: 600;
}

.media-host,
.media-author,
.media-creator,
.media-producer {
    font-size: 80%;
    color: var(--text-secondary);
}

.media-list .media-content .media-description {
    font-size: 80%;
    color: var(--text-primary);
    max-height: 5lh;
    overflow: auto;
}

.media-list .media-content .media-triggers {
    font-size: 80%;
    color: var(--text-primary);
    max-height: 1lh;
    margin: 0;
}

.media-triggers-suggest {
    font-size: 80%;
    text-decoration: none;
    color: var(--text-primary);
    opacity: .7;
    width: fit-content;
}

.media-triggers-suggest:hover {
    opacity: 1;
}

.media-wrapper .swiper-pagination-bullet {
    height: 8px;
    width: 8px;
    opacity: 0.4;
    background: var(--text-secondary);
    transition: opacity 0.2s, width 0.2s;
}

.media-wrapper .swiper-pagination-bullet-active {
    opacity: 1;
    border-radius: 4px;
    background: var(--text-primary);
}

.media-wrapper .swiper-slider-button {
    color: var(--text-primary);
    opacity: 0.5;
    padding: 0.3rem;
    transition: 0.2s ease;
    border-radius: 0.5rem;
}

.media-wrapper .swiper-slider-button:hover {
    color: var(--text-primary);
    opacity: 1;
}

.media-wrapper .swiper-slider-button:active {
    scale: 0.9;
}

/* recommendations page */
.recommendations {
    display: flex;
    gap: 3rem;
}

.recommendations-info,
.recommendations-form {
    width: 50%;
}

.recommendations-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.recommendations-info-card {
  background-color: var(--media-slider-background);
  color: var(--text-primary);
  border: 1px solid #9faf91;
  border-radius: 10px;
  padding: 1rem;
}

.recommendations-info-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.recommendations-info-card h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}

.recommendations-info-card p {
  margin: 0;
  line-height: 1.4;
}

.recommendations-info-card ul,
.recommendations-info-card ol {
  margin: 0;
  padding-left: 1.25rem;
}

.recommendations-info-card li {
  margin-bottom: 0.45rem;
  line-height: 1.35;
}

.recommendations-checklist {
  list-style: none;
  padding-left: 0;
}

.recommendations-checklist li::before {
  content: "✓ ";
  font-weight: bold;
  color: var(--text-secondary);
}

.recommendations-example {
  padding: 0.65rem;
  border-radius: 7px;
  margin-bottom: 0.75rem;
}

.recommendations-example.great {
  background-color: #eef4e8;
  border-left: 4px solid #3f6638;
}

.recommendations-example.good {
  background-color: #efefe4;
  border-left: 4px solid #a58b59;
}

.recommendations-example.weak {
  background-color: #f1eee7;
  border-left: 4px solid #a56259;
}

.recommendation-form fieldset {
    background-color: var(--accent-secondary);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.75rem 2rem;
}

.recommendation-options {
    list-style: none;
    display: flex;
    border-radius: .5rem;
    padding: .5rem 0 1rem;
    gap: .3rem;
}

.recommendation-option {
    font-family: var(--font-body);
    background-color: var(--accent-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: .5rem .7rem;
    border-radius: .5rem;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.15s ease;
}

.recommendation-option:hover {
    background-color: var(--accent-hover);
}

.recommendation-option.active {
    background-color: var(--accent-primary);
}

.recommendation-form legend {
    font-size: 150%;
    font-weight: 700;
    color: var(--text-primary);
    background-color: white;
    padding: .5rem;
    border: 1px solid var(--border);
    border-radius: .5rem;
}

.recommendation-form-group {
    margin-bottom: 1.25rem;
}

.recommendation-form-group label {
    display: block;
    margin-bottom: .35rem;
    font-size: 95%;
    color: var(--text-primary);
}

.recommendation-form-note {
    font-size: 80% !important;
    color: var(--text-secondary);
    margin-bottom: .4rem;
    margin-top: 0;
    line-height: 1.4;
}

.recommendation-form input[type="text"],
.recommendation-form input[type="email"],
.recommendation-form input[type="url"],
.recommendation-form select,
.recommendation-form textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: #f7f9f6;
    border: 1px solid var(--border);
    border-radius: .5rem;
    padding: .55rem .75rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.checkbox label {
    margin: 0;
}

.recommendation-form textarea {
    resize: vertical;
    line-height: 1.5;
}

.recommendation-form input:focus,
.recommendation-form select:focus,
.recommendation-form textarea:focus {
    outline: none;
    border-color: var(--highlight);
    box-shadow: 0 0 0 3px rgba(122, 148, 134, 0.2);
}

.form-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.5rem 0;
}

.recommendation-form-submit {
    font-family: var(--font-body);
    font-size: 95%;
    font-weight: 700;
    padding: .65rem 1.5rem;
    border: none;
    border-radius: .5rem;
    background-color: var(--accent-warm);
    color: var(--text-primary);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.recommendation-form-submit:hover {
    background-color: var(--accent-bright);
}

.recommendation-form-submit:active {
    transform: scale(0.98);
}

/* footer */
footer {
    display: flex;
    justify-content: left;
    align-items: center;
    padding: 2rem;
    background-color: var(--header-footer);
    line-height: 1.3;
}

footer h2,
footer h3, 
footer h4,
footer p {
    margin-top: 1rem;
}

footer h3 {
    font-size: 130%;
}

footer ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

footer ul a {
    text-decoration: none;
    color: var(--text-primary);
    opacity: 0.85;
}

footer ul a:hover {
    opacity: 1;
    text-decoration: underline;
}

.crisis-and-suicide-support,
.mental-health-support,
.addiction-and-substance-support,
.behavioral-and-compulsive-support {
    line-height: 1.5;
}

footer hr {
    border-color: var(--text-primary);
}

.copyright {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    padding: 0;
}

.copyright ul {
    display: flex;
    align-items: center;
}

.copyright a {
    font-size: 200%;
}

/* mobile */
@media (max-width: 1020px) {

    /* header */
    header {
        flex-direction: column;
        padding: 1rem;
        font-size: 70%;
    }

    header h1 {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0 0 1rem 0;
    }

    header nav {
        justify-content: center;
        align-items: center;
        padding: .5rem;
        gap: 1rem;
    }

    header nav a {
        padding: .5rem 1rem;
        background-color: var(--accent-hover);
    }

    header nav a:hover {
        text-decoration: none;
    }

    /* main styling */
    main {
        padding: 1.5rem 1rem;
    }

    main h1 {
        line-height: 1;
        font-size: 200%;
    }

    main p {
        line-height: 1.3;
        font-size: 80%;
    }

    main p.note {
        font-size: 55%;
    }

    .explicit-tag {
        padding: 1px 2.5px;
    }

    /* home page */
    .home-hero {
        flex-direction: column;
        height: auto;
        gap: 2rem;
        text-align: center;
        padding: 1rem 0;
    }

    .home-hero-text {
        width: 100%;
        align-items: center;
    }

    .home-eyebrow,
    .home-description {
        width: 50%;
    }

    .home-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .vinyl {
        width: clamp(220px, 75vw, 400px);
    }

    .home-explanation {
        font-size: 50%;
        gap: 1rem;
        padding: 0;
    }

    .home-what,
    .home-why {
        width: 100%;
    }

    .home-quote {
        padding: 2rem 1rem;
        font-size: 100%;
    }

    .home-audience {
        gap: 1rem;
        font-size: 50%;
        padding: 0;
    }

    .home-for,
    .home-not {
        width: 100%;
        line-height: 1.3;
    }

    .home-for ul,
    .home-not ul {
        margin-left: .25rem;
    }

    .home-purpose {
        padding: 2rem 0 1rem 0;
    }

    .home-principles {
        flex-direction: column;
        gap: 1rem;
    }

    .home-note {
        margin-top: 0;
        font-size: 60%;
    }

    /* playlist page */
    .playlist iframe {
        height: 152px;
        border-radius: .5rem;
    }

    .song {
        padding: .5rem;
        line-height: normal;
        gap: .5rem;
        font-size: 50%;
    }

    .song img {
        width: 100px;
    }

    .song-description {
        margin: 0;
        min-height: 4lh;
        max-height: 4lh;
        overflow-y: auto;
        font-size: 100%;
    }

    /* media styling */
    .podcasts,
    .books,
    .videos,
    .movies {
        padding: .5rem;
    }

    .media-wrapper {
        margin: 0 0 20px;
        padding: 20px 10px;
    }

    .media-list .media-item .media-content {
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        padding: 10px;
        gap: 0rem;
        min-height: 320px;
    }

    .media-item-content {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .media-list .media-content .media-image {
        border-radius: 10px;
        height: 169px;
    }

    .media-list .media-content iframe {
        width: 300px;
        height: 169px;
        border-radius: .5rem;
    }

    .media-list .media-content .media-title {
        font-size: 90%;
    }

    .media-host,
    .media-author,
    .media-creator,
    .media-producer {
        font-size: 80%;
    }

    .media-list .media-content .media-description {
        font-size: 70%;
        max-height: 4lh;
    }

    .media-list .media-content .media-triggers {
        font-size: 60%;
        max-height: 1lh;
    }

    .media-triggers-suggest {
        font-size: 60%;
        text-decoration: none;
        color: var(--text-primary);
        opacity: .7;
        width: fit-content;
    }

    .media-triggers-suggest:hover {
        opacity: 1;
    }

    .media-wrapper .swiper-slider-button {
        display: none;
    }

    .media-wrapper .swiper-pagination {
        height: 15px;
    }

    /* recommendation page */
    .recommendations {
        display: flex;
        flex-direction: column;
        gap: 3rem;
    }

    .recommendations-info,
    .recommendations-form {
        width: 100%;
    }

    .recommendations-info {
        gap: 1rem;
    }

    .recommendations-info-card {
        font-size: 80%;
    }

    /* footer */
    footer {
        padding: 1rem 2rem;
        font-size: 70%;
    }

    footer ul {
        display: inline;
        line-height: 2;
    }

    .copyright {
        flex-direction: column;
    }

    .copyright ul {
        display: contents;
        align-items: center;
    }
}