/* =========================================================
   DIGISITE stylesheet
   tip: change the colors in :root and the whole site updates
   ========================================================= */

:root {
    /* palette */
    --pink-text:   #b45f8e;   /* headings + links */
    --pink-deep:   #ce77a9;   /* big title */
    --pink-line:   #e4a9c9;   /* dashed dividers, outlines */
    --pink-soft:   #f9d7e9;
    --pink-band:   #efb9dc;   /* nav strip */
    --plum:        #65445f;   /* body text */
    --cream:       #fffdf0;
    --butter:      #ffe8ad;
    --blue-soft:   #f5faff;
    --blue:        #cce5fa;
    --shadow:      #dba1c580;

    /* reusable bits */
    --border:      4px double white;
    --btn-bg:      linear-gradient(var(--cream), var(--butter));
    --btn-bg-hover:linear-gradient(#fff, #f8c0df);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 28px 14px;
    background: url("bg.gif");
    color: var(--plum);
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

img,
video {
    max-width: 100%;
    height: auto;
}

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

/* keyboard users get a visible outline */
a:focus-visible {
    outline: 3px dashed var(--pink-deep);
    outline-offset: 2px;
}

/* ---------- outer box ---------- */

.sitebox {
    max-width: 1150px;
    margin: 0 auto;
    border: var(--border);
    overflow: hidden;
    box-shadow:
        0 0 0 1px #dca8c9,
        6px 6px 0 var(--shadow);
}

/* ---------- header ---------- */

.site-header {
    text-align: center;
    padding: 24px 12px 16px;
    background: linear-gradient(#fffbe0, #ffe5f3 65%, #f5c5e1);
    border-bottom: var(--border);
}

.site-header img {
    display: block;
    width: min(270px, 80%);
    margin: 0 auto;
    /* white outline around the logo (stacked shadows in 8 directions) */
    filter:
        drop-shadow(3px 0 0 white)
        drop-shadow(-3px 0 0 white)
        drop-shadow(0 3px 0 white)
        drop-shadow(0 -3px 0 white)
        drop-shadow(2px 2px 0 white)
        drop-shadow(-2px -2px 0 white)
        drop-shadow(2px -2px 0 white)
        drop-shadow(-2px 2px 0 white);
}

.site-header h1 {
    margin: 4px 0 0;
    font-size: clamp(30px, 6vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 2px;
    color: var(--pink-deep);
    -webkit-text-stroke: 5px white;
    paint-order: stroke fill;
}

.tagline {
    margin: 2px 0 0;
    font-size: 14px;
    color: var(--pink-text);
}

/* ---------- buttons (top nav + side nav share this look) ---------- */

.topnav a,
.sidenav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 6px 10px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.25;
    color: var(--pink-text);
    background: var(--btn-bg);
    border: 3px double white;
    box-shadow: 0 3px 0 #d5a6b8;
}

/* hover just swaps the color, no movement */
.topnav a:hover,
.sidenav a:hover,
.topnav a:focus-visible,
.sidenav a:focus-visible,
.topnav a[aria-current="page"],
.sidenav a[aria-current="page"] {
    background: var(--btn-bg-hover);
}

/* ---------- top nav ---------- */

.topnav {
    display: grid;
    grid-template-columns: 0.7fr repeat(4, minmax(0, 1fr));   /* home button is a bit narrower */
    gap: 8px;
    padding: 10px;
    background: var(--pink-band);
    border-bottom: var(--border);
}

/* ---------- main 3-column layout ---------- */

main {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) 290px;
    grid-template-areas: "side content digi";
    align-items: start;
    gap: 20px;
    padding: 22px 20px 28px;
    background:
        radial-gradient(ellipse at 88% 45%, #fff9d9 0%, transparent 55%),
        linear-gradient(#e9f0ff, #ffe4f4);
}

.sidenav   { grid-area: side; }
.content   { grid-area: content; }
.character { grid-area: digi; }

/* ---------- panels (the boxes with a yellow title bar) ---------- */

.panel {
    min-width: 0;
    background: linear-gradient(var(--blue-soft), var(--blue));
    border: var(--border);
    box-shadow: 3px 4px 0 var(--shadow);
    overflow: hidden;
}

.panel-title {
    margin: 0;
    padding: 7px 12px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-align: center;
    color: var(--pink-text);
    background: var(--btn-bg);
    border-bottom: 3px double white;
}

.panel-title::before,
.panel-title::after {
    content: "☆";
    margin: 0 .5em;
    font-weight: 400;
    color: var(--pink-line);
}

.panel-body {
    padding: 14px 18px 16px;
    overflow-wrap: break-word;
}

.panel-body p {
    margin: 0 0 10px;
}

.panel-body > :last-child {
    margin-bottom: 0;
}

.content {
    min-width: 0;
    display: grid;
    gap: 18px;
}

/* ---------- star list ---------- */

.starlist {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: plan;
}

.starlist li {
    counter-increment: plan;
    display: flex;
    gap: 10px;
    align-items: baseline;
    padding: 5px 2px;
    border-bottom: 1px dashed var(--pink-line);
}

.starlist li:last-child {
    border-bottom: 0;
}

.starlist li::before {
    content: counter(plan, decimal-leading-zero) " ☆";
    flex: none;
    font-size: 12px;
    font-weight: 700;
    color: var(--pink-text);
}

/* ---------- side nav ---------- */

.sidenav {
    background: linear-gradient(#f9d4e9, #fff6d9);
}

.sidenav .panel-title {
    font-size: 14px;
}

.sidenav .panel-title::before,
.sidenav .panel-title::after {
    content: none;
}

.sidenav .panel-body {
    display: grid;
    gap: 9px;
    padding: 10px;
}

.sidenav a {
    font-size: 14px;
}

/* ---------- digi + speech bubble ---------- */

.character {
    margin: 0;
    min-width: 0;
    position: sticky;
    top: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.speech {
    position: relative;
    width: 100%;
    margin: 12px 0 18px;
    padding: 16px 12px 10px;
    font-size: 14px;
    text-align: center;
    background: linear-gradient(#fff, #fff0f7);
    border: 4px double var(--pink-line);
}

/* little tail pointing down at digi */
.speech::after {
    content: "";
    position: absolute;
    bottom: -13px;
    left: 50%;
    width: 18px;
    height: 18px;
    background: #fff0f7;
    border-right: 4px double var(--pink-line);
    border-bottom: 4px double var(--pink-line);
    transform: translateX(-50%) rotate(45deg);
}

.speech-name {
    position: absolute;
    top: -14px;
    left: 12px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--pink-text);
    background: #fff2b8;
    border: 3px double white;
}

.digi {
    display: block;
    width: 100%;
    max-height: 560px;
    object-fit: contain;
    filter:
        drop-shadow(4px 0 0 white)
        drop-shadow(-4px 0 0 white)
        drop-shadow(0 4px 0 white)
        drop-shadow(0 -4px 0 white);
}

/* ---------- footer ---------- */

footer {
    padding: 10px;
    text-align: center;
    font-size: 12px;
    color: var(--pink-text);
    background: var(--pink-soft);
    border-top: var(--border);
}

/* =========================================================
   TABLET: hobbies become a row of buttons above the content
   ========================================================= */
@media (max-width: 960px) {
    main {
        grid-template-columns: minmax(0, 1fr) 230px;
        grid-template-areas:
            "side    side"
            "content digi";
    }

    .sidenav .panel-body {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* =========================================================
   PHONE: everything stacks into one column
   ========================================================= */
@media (max-width: 640px) {
    body {
        padding: 12px 8px;
        font-size: 14px;
    }

    .topnav,
    .sidenav .panel-body {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* home button gets its own full-width row on phones */
    .topnav .home-btn {
        grid-column: 1 / -1;
    }

    main {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "digi"
            "side"
            "content";
        gap: 16px;
        padding: 16px 12px 20px;
    }

    /* digi sits beside her speech bubble as a little greeting card */
    .character {
        position: static;
        flex-direction: row-reverse;
        align-items: center;
        gap: 10px;
    }

    .digi {
        width: 110px;
        flex: none;
    }

    .speech {
        margin: 0;
    }

    .speech::after {
        bottom: auto;
        top: 50%;
        left: -13px;
        transform: translateY(-50%) rotate(135deg);
    }

    .panel-body {
        padding: 12px 14px 14px;
    }
}

/* =========================================================
   PAGE BITS (used on the commissions page, reusable anywhere)
   ========================================================= */

/* small heading inside a panel */
.subhead {
    margin: 18px 0 8px;
    padding-bottom: 3px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--pink-text);
    border-bottom: 3px double var(--pink-line);
}

.panel-body > .subhead:first-child {
    margin-top: 0;
}

/* plain bullet list with stars */
.bullets {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bullets li {
    position: relative;
    padding: 4px 0 4px 20px;
    border-bottom: 1px dashed var(--pink-line);
}

.bullets li:last-child {
    border-bottom: 0;
}

.bullets li::before {
    content: "☆";
    position: absolute;
    left: 0;
    color: var(--pink-text);
}

/* will draw / won't draw side by side */
.two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.mini-box {
    padding: 10px 12px;
    background: white;
    border: 3px double var(--pink-line);
}

.mini-box h3 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
}

.mini-box.yes h3 { color: #4f9a7a; }
.mini-box.yes li::before { content: "✓"; color: #4f9a7a; }
.mini-box.no h3  { color: #c4566f; }
.mini-box.no li::before  { content: "✗"; color: #c4566f; }

/* price list with dotted lines between name and price */
.prices {
    margin: 0;
    padding: 0;
    list-style: none;
}

.prices li {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 4px 0;
}

.prices li::after {
    content: "";
    order: 1;
    flex: 1;
    border-bottom: 2px dotted var(--pink-line);
}

.prices .price {
    order: 2;
    font-weight: 800;
    color: var(--pink-text);
    white-space: nowrap;
}

/* add-ons box */
.addons {
    margin-top: 10px;
    padding: 8px 12px;
    font-size: 13px;
    background: #fffbe8;
    border: 2px dashed var(--butter);
}

.addons b {
    color: var(--pink-text);
}

/* sample art grid */
.samples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.samples li {
    min-width: 0;   /* stops big videos from stretching the grid */
}

.samples figure {
    margin: 0;
    background: white;
    border: 4px double var(--pink-line);
    box-shadow: 2px 3px 0 var(--shadow);
}

.samples a {
    display: block;
}

.samples img,
.samples video,
.samples .placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;   /* shows the whole piece, no cropping */
    background: white;
}

/* vtuber row: 2 wide tiles per row so the videos are big enough */
.samples.wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.samples.wide img,
.samples.wide video {
    aspect-ratio: 16 / 9;
}

.samples video {
    background: #1b1424;
}

.samples .placeholder {
    display: grid;
    place-items: center;
    font-size: 13px;
    color: var(--pink-line);
    background:
        repeating-linear-gradient(45deg, #fff6fb 0 10px, #fff 10px 20px);
}

.samples figcaption {
    padding: 4px 6px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    color: var(--pink-text);
    border-top: 3px double var(--pink-line);
}

.panel-body .note {
    font-size: 13px;
}

@media (max-width: 640px) {
    .two-col {
        grid-template-columns: minmax(0, 1fr);
    }

    .samples {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .samples.wide {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* =========================================================
   pages without digi: just sidebar + content
   (add class="no-digi" to <main>)
   ========================================================= */
main.no-digi {
    grid-template-columns: 190px minmax(0, 1fr);
    grid-template-areas: "side content";
}

@media (max-width: 960px) {
    main.no-digi {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "side"
            "content";
    }
}

/* =========================================================
   ART GALLERY
   ========================================================= */

.side-note {
    grid-column: 1 / -1;   /* always full width, even when the side buttons go in a row */
    margin: 0 0 2px;
    font-size: 13px;
    text-align: center;
}

/* masonry-style layout: pictures keep their own shape */
.gallery {
    columns: 3 200px;
    column-gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gallery li {
    break-inside: avoid;
    margin-bottom: 14px;
}

.art-tile {
    display: block;
    width: 100%;
    padding: 0;
    font: inherit;
    color: inherit;
    text-align: center;
    cursor: pointer;
    background: white;
    border: 4px double var(--pink-line);
    box-shadow: 2px 3px 0 var(--shadow);
}

.art-tile img {
    display: block;
    width: 100%;
    height: auto;
}

.art-title {
    display: block;
    padding: 4px 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--pink-text);
    border-top: 3px double var(--pink-line);
}

.art-tile:hover,
.art-tile:focus-visible {
    border-color: var(--pink-deep);
}

.art-tile:hover .art-title,
.art-tile:focus-visible .art-title {
    background: var(--btn-bg-hover);
}

.art-tile:focus-visible {
    outline: 3px dashed var(--pink-deep);
    outline-offset: 2px;
}

/* ---------- pop-up viewer ---------- */

.viewer {
    width: min(92vw, 900px);
    max-height: 94vh;
    padding: 0;
    color: var(--plum);
    background: transparent;
    border: 0;
}

.viewer::backdrop {
    background: #3a2236cc;
}

.viewer-box {
    display: flex;
    flex-direction: column;
    max-height: 94vh;
    background: linear-gradient(var(--blue-soft), var(--blue));
    border: var(--border);
    box-shadow: 0 0 0 1px #dca8c9, 6px 6px 0 var(--shadow);
}

.viewer-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px 6px 14px;
    background: var(--btn-bg);
    border-bottom: 3px double white;
}

.viewer-title {
    flex: 1;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--pink-text);
}

.viewer-count {
    font-size: 12px;
    color: var(--pink-text);
}

.viewer-btn {
    flex: none;
    width: 34px;
    height: 34px;
    padding: 0;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    color: var(--pink-text);
    cursor: pointer;
    background: var(--btn-bg);
    border: 3px double white;
    box-shadow: 0 2px 0 #d5a6b8;
}

.viewer-btn:hover,
.viewer-btn:focus-visible {
    background: var(--btn-bg-hover);
}

.viewer-stage {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 0;
    padding: 12px 8px;
}

.viewer-stage img {
    flex: 1;
    min-width: 0;
    max-height: calc(94vh - 120px);
    object-fit: contain;
    background: white;
    border: 4px double var(--pink-line);
}

.viewer-note {
    margin: 0;
    padding: 0 16px 12px;
    font-size: 14px;
    text-align: center;
}

@media (max-width: 640px) {
    .gallery {
        columns: 2;
        column-gap: 10px;
    }

    .gallery li {
        margin-bottom: 10px;
    }

    .viewer-stage {
        padding: 8px 4px;
        gap: 4px;
    }

    .viewer-arrow {
        width: 28px;
    }
}

/* =========================================================
   ABOUT DIGI
   ========================================================= */

/* striped "fill me in" box, used for empty picture spots */
.placeholder {
    display: grid;
    place-items: center;
    font-size: 13px;
    color: var(--pink-line);
    background: repeating-linear-gradient(45deg, #fff6fb 0 10px, #fff 10px 20px);
}

/* picture + info side by side */
.profile {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.profile-pic {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 4px double var(--pink-line);
    box-shadow: 2px 3px 0 var(--shadow);
}

.profile-pic.placeholder {
    display: grid;   /* centers the "picture here" text */
}

/* label : answer rows */
.info-list {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    margin: 0;
}

.info-list dt,
.info-list dd {
    margin: 0;
    padding: 5px 0;
    border-bottom: 1px dashed var(--pink-line);
}

.info-list dt {
    padding-right: 16px;
    font-weight: 800;
    color: var(--pink-text);
}

.info-list dt::before {
    content: "☆ ";
    font-weight: 400;
}

.info-list dt:nth-last-of-type(1),
.info-list dd:last-of-type {
    border-bottom: 0;
}

/* interest bubbles */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tags li {
    padding: 3px 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--pink-text);
    background: white;
    border: 3px double var(--pink-line);
}

/* link buttons */
.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.link-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 6px 10px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    color: var(--pink-text);
    background: var(--btn-bg);
    border: 3px double white;
    box-shadow: 0 3px 0 #d5a6b8;
}

.link-grid a:hover,
.link-grid a:focus-visible {
    background: var(--btn-bg-hover);
}

/* now playing card */
.now-playing {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 12px;
    background: white;
    border: 4px double var(--pink-line);
    box-shadow: 2px 3px 0 var(--shadow);
}

.now-playing .cover {
    display: grid;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    font-size: 40px;
    border: 3px double var(--pink-line);
}

.np-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.np-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--pink-line);
}

.np-song {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--pink-text);
    overflow-wrap: break-word;
}

.np-artist {
    font-size: 14px;
}

.np-bar {
    height: 8px;
    margin: 10px 0 6px;
    background: var(--pink-soft);
    border: 1px solid var(--pink-line);
}

.np-bar span {
    display: block;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, var(--butter), #f8a9d3);
}

.np-controls {
    font-size: 12px;
    color: var(--pink-text);
    letter-spacing: 2px;
}

@media (max-width: 640px) {
    .profile {
        grid-template-columns: minmax(0, 1fr);
    }

    .profile-pic {
        max-width: 160px;
        margin: 0 auto;
    }

    .now-playing {
        grid-template-columns: 90px minmax(0, 1fr);
        gap: 12px;
    }
}

/* =========================================================
   two boxes side by side (about page)
   add class="pairs" to .content, and class="span-2" on a
   panel that should stretch across both columns
   ========================================================= */
.content.pairs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;   /* paired boxes are the same height */
}

.content.pairs .span-2 {
    grid-column: 1 / -1;
}

/* narrower boxes need a smaller picture + album cover */
.pairs .profile {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 14px;
}

.pairs .now-playing {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
}

.pairs .now-playing .cover {
    font-size: 30px;
}

.pairs .np-song {
    font-size: 17px;
}

/* reference sheet */
.ref-link {
    display: block;
    background: white;
    border: 4px double var(--pink-line);
    box-shadow: 2px 3px 0 var(--shadow);
}

.ref-link img {
    display: block;
    width: 100%;
}

.ref-link:hover,
.ref-link:focus-visible {
    border-color: var(--pink-deep);
}

.panel-body .ref-note {
    margin: 8px 0 0;
    text-align: center;
    color: var(--pink-text);
}

@media (max-width: 640px) {
    .content.pairs {
        grid-template-columns: minmax(0, 1fr);
    }

    .pairs .profile {
        grid-template-columns: minmax(0, 1fr);
    }

    .pairs .profile-pic {
        max-width: 160px;
    }
}
