:root {
    --ink: #2a2a28;
    --cream: #fbf4eb;
    --sky: #c1cfda;
    --blue: #5b9bd5;
    --blue-soft: #7fb0e0;
    font-family: "Nunito", "Comic Sans MS", sans-serif;
    zoom: 90%;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    /* stupid auto adjust ruining my layout */
}

* {
    box-sizing: border-box;
}

body {
    text-align: center;
    background-color: var(--sky);
    color: var(--ink);
    margin: 0;
    padding: 0 16px;
}

#logo {
margin: 40px;
width: 700px;
height: auto;
max-width: 90vw;
}

/* ---------- Nav ---------- */

.nav-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 6px;
}

.nav-btn {
    display: inline-block;
    height: 85px;
    text-indent: -99999px; /*hide*/
    background-size: contain;
    background-repeat: no-repeat;
    background-color: transparent;
    background-position: center;
    border: none;
    padding: 0;
    cursor: pointer;
    transition:
    filter 0.3s ease,
    transform 0.15s ease;
    margin-left: -10px;
    margin-right: -10px;
}
.about-btn {
    width: 170px;
    background-image: url("assets/ui/aboutF.png");
}
.portfolio-btn {
    width: 220px;
    background-image: url("assets/ui/portfolioF.png");
}
.portfolio-prev img {
    transform: scaleX(-1);
}
.commissions-btn {
    width: 289px;
    background-image: url("assets/ui/commissionsF.png");
}
.shop-btn {
    width: 135px;
    background-image: url("assets/ui/shopF.png");
}

.nav-btn:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
}
.nav-btn:not(.is-active) {
    filter: grayscale(0.55) brightness(0.92);
    opacity: 0.85;
}
.nav-btn.is-active {
    transform: translateY(-3px);
    filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.15));
}

/* ---------- Panels ---------- */

main {
    max-width: 920px;
    margin: 0 auto;
}

.panel {
    display: block;
}
.panel[hidden] {
    display: none;
}

/* About uses the same pencil-border *aka bane* panel as the other tabs */
.folder-inner.about-bio-text {
    display: block;
    margin-top: 10px;
}
.about-bio-text p {
    margin: 0 0 1em;
    line-height: 1.5;
    font-size: 1.17em;
    margin-left: 20px;
}
.about-bio-text p:last-child {
    margin-bottom: 0;
}
.about-bio-text p:first-child {
    font-weight: 700;
}
.about-bio-text a {
    color: var(--blue);
    font-weight: 700;
}
.about-bio-text::after {
    content: "";
    display: block;
    clear: both;
}

.about-pfp-corner {
    position: relative;
    float: right;
    shape-outside: margin-box;
    width: 46%;
    max-width: 280px;
    min-width: 130px;
    height: auto;
    margin-bottom: -50px;
    margin-right: -40px;
    pointer-events: none;
    z-index: 2;
}

@media (max-width: 600px) {
    .about-bio-text {
        font-size: 0.9rem;
    }
    .about-pfp-corner {
        width: 54%;
        max-width: 190px;
        margin: 4px -8px 10px 14px;
    }
}

@media (max-width: 420px) {
    .about-pfp-corner {
        float: none;
        display: block;
        margin: 10px auto 0;
    }
}

.folder-9slice,
.folder-9slice--portfolio,
.comm-cta,
.shop-cta,
.comm-card,
.portfolio-thumb-btn {
    position: relative;
}
.folder-9slice::before,
.folder-9slice--portfolio::before,
.comm-cta::before,
.shop-cta::before,
.comm-card::before,
.comm-status::before,
.portfolio-thumb-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-style: solid;
    border-color: var(--ink);
    border-radius: inherit;
    pointer-events: none;
    filter: url(#pencil-texture);
    z-index: 2;
}
.folder-9slice::before,
.folder-9slice--portfolio::before {
    inset: -3px;
    border-width: 8px;
}
.comm-cta::before,
.shop-cta::before,
.comm-card::before {
    inset: -2px;
    border-width: 5px;
}
.comm-status::before {
    inset: -2px;
    border-width: 5px;
}
.portfolio-thumb-btn::before {
    inset: -2px;
    border-width: 4px;
}

/* ---------- Folder panels (About / Portfolio / Commissions / Shop) ---------- */

.folder-9slice, .folder-9slice--portfolio {
    width: 100%;
    max-width: 860px;
    min-width: 260px;
    min-height: 480px;
    margin: 0 auto;
    background-color: var(--cream);
    border-radius: 46px 40px 44px 50px;
    display: flex;
}

.folder-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 22px 34px;
    text-align: left;
    width: 100%;
    font-size: 25px;
}

.folder-inner--center {
    align-items: center;
    text-align: center;
    justify-content: center;
}

/* ---------- Portfolio ---------- */

.folder-inner--portfolio {
    padding-top: 18px;
}

.art-loading {
    text-align: center;
    font-size: 1.1rem;
    color: var(--ink);
    opacity: 0.7;
    width: 100%;
}

.portfolio-flow-controls {
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 4px;
}
.portfolio-flow-arrow {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    transition: transform 0.15s ease;
}
.portfolio-flow-arrow img {
    width: 26px;
    height: auto;
    transition: filter 0.2s ease;
}
.portfolio-flow-arrow.flow-left img {
    transform: scaleX(-1);
}
.portfolio-flow-arrow.is-flow-active img {
    filter: hue-rotate(180deg) saturate(4);
}
.portfolio-flow-arrow:hover {
    transform: scale(1.15);
}
.portfolio-flow-arrow:active {
    transform: scale(0.9);
}
.portfolio-flow-status {
    font-size: 0.9rem;
    font-weight: 700;
    min-width: 90px;
    text-align: center;
}

.portfolio-rows {
    width: calc(100% + 44px);
    margin: 0 -22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.portfolio-marquee-row {
    width: 100%;
    overflow: hidden;
    padding: 6px 0;
}

.portfolio-marquee-track {
    display: flex;
    gap: 10px;
    width: max-content;
    will-change: transform;
}

.portfolio-thumb-btn {
    flex: 0 0 auto;
    height: 190px;
    background: #fff9f0;
    padding: 0;
    cursor: pointer;
    border-radius: 10px;
    transition: transform 0.15s ease;
}
.portfolio-thumb-btn:hover {
    transform: translateY(-3px) rotate(-1deg);
}
.portfolio-thumb-btn img {
    height: 100%;
    width: auto;
    max-width: 260px;
    display: block;
    object-fit: cover;
    border-radius: inherit;
    pointer-events: none;
}

.portfolio-modal-meta {
    width: 100%;
    text-align: center;
}
.portfolio-modal-desc {
    margin: 0 0 4px;
    font-weight: 700;
}
.portfolio-modal-desc[hidden],
.portfolio-modal-sub[hidden] {
    display: none;
}
.portfolio-modal-sub {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.7;
    text-transform: capitalize;
}

@media (max-width: 480px) {
    .portfolio-thumb-btn {
        height: 130px;
    }
}

.pager-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.pager-btn img {
    width: 28px;
    height: auto;
}
.pager-prev img {
    transform: scaleX(-1);
}
.pager-btn:disabled {
    opacity: 0.3;
    cursor: default;
}
.pager-btn:not(:disabled):hover {
    filter: brightness(1.2);
}

.pager-status {
    font-size: 1.1rem;
}

/* ---------- Commissions ---------- */

.comm-status {
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #6bbf6b;
    color: #fff;
    font-weight: 700;
    border-radius: 20px;
    padding: 6px 18px;
    font-size: 1.15rem;
    position: relative;
}
.comm-status--closed {
    background: #d9736c;
}

.comm-intro {
    align-self: center;
    text-align: center;
    max-width: 480px;
    margin: 0 0 6px;
    font-weight: bold;
}

.comm-addons {
    list-style: none;
    margin: 10px 0 0;
    padding: 8px 10px;
    font-size: 0.85rem;
    background: rgba(91, 155, 213, 0.12);
    border-radius: 10px;
    min-height: 115px;
}
.comm-addons li {
    margin-bottom: 3px;
}
.comm-addons li:last-child {
    margin-bottom: 0;
}
.addon-cost {
    color: var(--blue);
    font-weight: 700;
}

.comm-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
}

.comm-card {
    background: #fff9f0;
    border-radius: 22px 18px 20px 24px;
    padding: 16px 14px;
    text-align: left;
    position: relative;
}
.comm-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.comm-card h3 {
    margin: 4px 0 2px;
    font-size: 1.15rem;
}
.comm-price {
    font-weight: bold;
    color: var(--blue);
    margin: 0 0 6px;
    font-size: 1.1rem;
}
.comm-desc {
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.85;
    min-height: 90px;
}

.samples-btn {
    flex-shrink: 0;
    background: var(--cream);
    color: var(--ink);
    border: none;
    border-radius: 12px;
    padding: 5px 14px;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    transition:
        transform 0.15s ease,
        background 0.15s ease;
}
.samples-btn::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-style: solid;
    border-width: 4.3px;
    border-color: var(--ink);
    border-radius: inherit;
    pointer-events: none;
    filter: url(#pencil-texture);
}
.samples-btn:hover {
    transform: rotate(-2deg) scale(1.06);
    background: var(--blue-soft);
    color: #fff;
}
.comm-terms .samples-btn {
    background: #fff;
    padding: 6px 16px;
}
.comm-terms .samples-btn:hover {
    background: var(--blue-soft);
    color: #fff;
}

.comm-terms {
    width: 100%;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    padding: 10px 16px;
}
.comm-terms-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.comm-terms h4 {
    margin: 4px 0;
}
.comm-terms p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}
.comm-terms a {
    color: var(--blue);
}
.comm-terms ul {
    margin: 0;
    padding-left: 20px;
    font-size: 0.95rem;
}
.comm-terms li {
    margin-bottom: 4px;
}
.will-draw {
    color: #3f8a43;
    font-weight: 700;
}
.wont-draw {
    color: #c1493c;
    font-weight: 700;
}

.comm-cta {
    align-self: center;
    background: var(--blue);
    color: #fff;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 20px;
    font-size: 1.1rem;
    transition:
    filter 0.2s ease,
    transform 0.15s ease;
}
.comm-cta:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* ---------- Samples modal / carousel ---------- */

.samples-modal-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(30, 28, 24, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 50;
}
.samples-modal-overlay[hidden] {
    display: none;
}

.samples-modal {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: var(--cream);
    border-radius: 34px 28px 32px 30px;
    padding: 22px 20px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition:
        max-width 0.25s ease,
        max-height 0.25s ease;
}
.samples-modal.is-expanded {
    max-width: 94vw;
}
.samples-modal::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-style: solid;
    border-width: 7px;
    border-color: var(--ink);
    border-radius: inherit;
    pointer-events: none;
    filter: url(#pencil-texture);
}

.samples-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    color: var(--ink);
    padding: 4px;
    z-index: 2;
}
.samples-modal-close:hover {
    color: var(--blue);
}

.samples-modal-title {
    margin: 0;
    font-size: 1.1rem;
    text-transform: capitalize;
}

.samples-modal-viewport {
    position: relative;
    width: 100%;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff9f0;
    border-radius: 16px;
    overflow: hidden;
    transition: height 0.25s ease;
}
.samples-modal.is-expanded .samples-modal-viewport {
    height: 70vh;
}

.samples-modal-spinner {
    position: absolute;
    width: 34px;
    height: 34px;
    border: 4px solid rgba(42, 42, 40, 0.15);
    border-top-color: var(--ink);
    border-radius: 50%;
    animation: samples-spin 0.7s linear infinite;
    display: none;
}
.samples-modal-viewport.is-loading .samples-modal-spinner {
    display: block;
}
.samples-modal-viewport.is-loading .samples-modal-img {
    opacity: 0;
}
@keyframes samples-spin {
    to {
        transform: rotate(360deg);
    }
}
@media (prefers-reduced-motion: reduce) {
    .samples-modal-spinner {
        animation: none;
    }
}

.samples-modal-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: zoom-in;
    transition:
        transform 0.15s ease,
        opacity 0.2s ease;
}
.samples-modal-img:hover {
    transform: scale(1.02);
}
.samples-modal.is-expanded .samples-modal-img {
    cursor: zoom-out;
}
.samples-modal.is-expanded .samples-modal-img:hover {
    transform: none;
}

.samples-modal-hint {
    margin: -4px 0 0;
    font-size: 0.72rem;
    opacity: 0.6;
}
.samples-modal.is-expanded .samples-modal-hint {
    display: none;
}

.samples-modal-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}
.samples-prev img {
    transform: scaleX(-1);
}

@media (max-width: 480px) {
    .samples-modal-viewport {
        height: 240px;
    }
    .samples-modal.is-expanded .samples-modal-viewport {
        height: 60vh;
    }
}

/* ---------- Shop ---------- */

.shop-mascot {
    width: 90px;
    height: auto;
}
.shop-heading {
    margin: 4px 0;
}
.shop-desc {
    max-width: 420px;
    font-size: 1.05rem;
}
.shop-cta {
    background: var(--blue);
    color: #fff;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 20px;
    font-size: 1.1rem;
    transition:
    filter 0.2s ease,
    transform 0.15s ease;
}
.shop-cta:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* ---------- Footer ---------- */

.contact-hr {
    border: none;
    height: 50px;
    background-image: url("assets/ui/contact_icon.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-top: 50px;
    margin-left: -50px;
}

.soc-links {
    margin: 20px auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.soc-btn {
    display: inline-block;
    min-height: 85px;
    text-indent: -99999px; /*hide*/
    background-size: contain;
    background-repeat: no-repeat;
    transition: filter 0.3s ease;
}
.soc-sep {
    min-height: 40px;
    min-width: 40px;
    margin-top: 15px;
    margin-left: 10px;
    margin-right: 8px;
    background-image: url("assets/ui/sparkle_icon.png");
}
.insta {
    min-width: 85px;
    background-image: url("assets/ui/instagram_icon.png");
}
.bsky {
    min-width: 85px;
    background-image: url("assets/ui/bsky_icon.png");
}
.twitch {
    min-width: 85px;
    background-image: url("assets/ui/twitch_icon.png");
}
.pinterest {
    min-width: 85px;
    background-image: url("assets/ui/pinterest_icon.png");
}
.soc-btn:hover {
    filter: brightness(1.2);
}

.contact-panel {
    display: inline-block;
    width: 250px;
    height: 230px;
    text-indent: -99999px; /*hide*/
    background-size: contain;
    background-repeat: no-repeat;
    transition: filter 0.3s ease;
    background-image: url("assets/ui/contact_note.png");
    margin-bottom: 30px;
}

.contact-panel:hover {
    filter: brightness(1.2);
}

.tux {
    display: inline-block;
    width: 86px;
    height: 111px;
    text-indent: -99999px; /*hide*/
    background-size: contain;
    background-repeat: no-repeat;
    transition: filter 0.3s ease;
    background-image: url("assets/ui/pengu_icon.png");
    margin-bottom: 30px;
}
/* ---------- Tux Funzies ---------- */
@property --hue {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.tux {
  position: relative;
  display: inline-block;
  transition: filter 0.3s ease;
  pointer-events: auto;
}

.tux:hover {
  animation: rainbow-cycle 3s linear infinite;
  filter: drop-shadow(0 0 12px oklch(0.85 0.12 var(--hue)));
}

@keyframes rainbow-cycle {
  to {
    --hue: 360deg;
  }
}
/* ---------- Responsive-ish ---------- */
/* fix later or add warning banner for mobile users */

/*@media (max-width: 480px) {
    #logo {
    width: 280px;
    }
    .folder-9slice, .folder-9slice--portfolio {
        min-height: 360px;
        border-radius: 34px 30px 32px 36px;
    }
    .folder-9slice::before,
    .folder-9slice--portfolio::before {
        border-width: 6px;
    }
}
*/
