:root {
    --paper: #fbf6e8;
    --ink: #1c2a1f;
    --green: #206028;
    --green-deep: #143d1a;
    --highlight: #f4d35e;
    --max-width: 44rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background-color: #ffe200;
}

body {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    place-items: center;
    min-height: 100svh;
    margin: 0;
    padding: clamp(1.5rem, 4vw, 4rem);
    overflow-x: hidden;
    color: var(--ink);
    background-color: #ffe200;
    background-image: url("images/background_yellow.png");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: "Shantell Sans", "Comic Sans MS", system-ui, sans-serif;
    font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
    font-weight: 500;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Doodle pattern over the starburst background, faded out behind the text. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url("images/background_pattern.png");
    background-image: image-set(
        url("images/background_pattern.webp") type("image/webp"),
        url("images/background_pattern.png") type("image/png")
    );
    background-position: center;
    background-size: 520px auto;
    background-repeat: repeat;
    opacity: 0.22;
    -webkit-mask-image: radial-gradient(
        ellipse 80% 70% at 50% 50%,
        transparent 6%,
        #000 92%
    );
    mask-image: radial-gradient(
        ellipse 80% 70% at 50% 50%,
        transparent 6%,
        #000 92%
    );
}

::selection {
    color: var(--paper);
    background-color: var(--green);
}

.page {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--max-width);
    text-align: center;
}

.logo {
    display: block;
    width: min(100%, 33rem);
    height: auto;
    margin: 0 auto clamp(1.25rem, 3vw, 2rem);
    /* The PNG has a white fill inside the letters — this lets the paper show through. */
    mix-blend-mode: multiply;
}

.tagline {
    margin: 0 0 1.5rem;
    font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.8rem);
    font-weight: 600;
    font-variation-settings: "BNCE" 50;
    line-height: 1.25;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.intro {
    max-width: 36rem;
    margin: 0 auto 1rem;
    text-wrap: pretty;
}

.video-embed {
    max-width: 36rem;
    margin: 2rem auto 1.5rem;
    overflow: hidden;
    border: 3px solid var(--green);
    border-radius: 1rem;
    background-color: var(--green-deep);
}

.video-frame {
    aspect-ratio: 16 / 9;
}

.subscribe-button {
    display: inline-block;
    padding: 0.9rem 1.8rem;
    border: 0;
    border-radius: 0.5rem;
    color: #fff;
    background-color: #ff0000;
    font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.subscribe-button:hover {
    background-color: #cc0000;
}

.video-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.channel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 1.4rem;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 1rem;
    padding: 1rem 2rem;
    /*border: 3px solid var(--green);*/
    border-radius: 0.75rem;
    background-color: #fff;
    font-family: "Roboto", Arial, Helvetica, sans-serif;
}

.channel-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: inherit;
    text-decoration: none;
}

.channel-avatar {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    object-fit: cover;
}

.channel-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.channel-name {
    font-size: 1.5rem;
    font-weight: 700;
}

.channel-subs {
    color: rgba(28, 42, 31, 0.65);
    font-size: 0.95rem;
}

.channel-link:hover .channel-name {
    color: var(--green-deep);
}

.links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.5rem 0 3rem;
    padding: 0;
    list-style: none;
}

.links a {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    color: var(--green);
    text-decoration: none;
}

.links a:hover {
    color: var(--green-deep);
}

.links svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
}

.footer {
    color: color-mix(in srgb, var(--ink) 62%, var(--paper));
    font-size: 0.82rem;
}

.footer p {
    margin: 0;
}

.footer a {
    color: inherit;
    white-space: nowrap;
}

.analytics-badge {
    display: inline-block;
    margin-top: 1.25rem;
    line-height: 0;
    opacity: 0.9;
}

.analytics-badge:hover {
    opacity: 1;
}

.analytics-badge img {
    display: block;
    max-width: 100%;
    height: auto;
}

:focus-visible {
    outline: 3px dashed var(--green);
    outline-offset: 4px;
    border-radius: 4px;
}

@media (max-width: 34rem) {
    .links {
        gap: 0.75rem 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}
