/* puppygirlstink — sketchbook / 2000s anime official site style */

@import url('https://fonts.googleapis.com/css2?family=Mochiy+Pop+One&family=M+PLUS+Rounded+1c:wght@400;700;800&display=swap');

:root {
    --orange: #ffa64d;
    --orange-dark: #f08a2c;
    --cream: #fff4dd;
    --cream-dark: #fde7bf;
    --paper: #fffdf6;
    --brown: #6b3416;
    --brown-light: #8a4a22;
    --red: #c8323c;
    --red-dark: #8e1f27;
    --ink: #4a2a17;
    --muted: #a07a5c;
    --pink: #ff6f91;
    --yellow: #ffe14d;
    --sky: #8fd3ff;
    --grass: #8fd16a;
    --line: #f3d8a8;
}

* {
    box-sizing: border-box;
}

html {
    scrollbar-color: var(--brown-light) var(--cream-dark);
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--orange);
    background-image: radial-gradient(rgba(255, 255, 255, 0.18) 2px, transparent 2.5px);
    background-size: 22px 22px;
    color: var(--ink);
    font-family: 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

a {
    color: var(--red);
    text-decoration: underline wavy rgba(200, 50, 60, 0.4);
    text-underline-offset: 3px;
    transition: color 0.2s;
}

a:hover {
    color: var(--orange-dark);
}

/* ---------- page column ---------- */

#wrapper {
    width: 820px;
    max-width: 100%;
    margin: 0 auto;
    background: var(--cream);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.35);
    min-height: calc(100vh / var(--zoom, 1));
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    column-gap: 8px;
    padding: 0 12px;
}

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

#header {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    padding: 14px 22px 6px 4px;
}

/* brush-stroke navigation */

#nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-row {
    display: flex;
    align-items: center;
    background: var(--brown);
    border-radius: 18px 60px 12px 70px / 22px 10px 26px 12px;
    padding: 4px 10px 4px 16px;
    position: relative;
    box-shadow: 1px 2px 0 rgba(0, 0, 0, 0.12);
}

.nav-row:nth-child(2) {
    margin-left: 40px;
    margin-right: 20px;
    border-radius: 60px 14px 70px 18px / 10px 24px 14px 26px;
}

/* the dry-brush tail on the right */
.nav-row::after {
    content: '';
    position: absolute;
    right: -18px;
    top: 30%;
    width: 30px;
    height: 40%;
    background: repeating-linear-gradient(180deg, var(--brown) 0 3px, transparent 3px 5px);
    border-radius: 0 50% 50% 0;
}

.nav-row a {
    flex: 1;
    text-align: center;
    font-family: 'Mochiy Pop One', sans-serif;
    font-size: 14px;
    color: var(--cream);
    text-decoration: none;
    padding: 4px 6px;
    border-left: 2px solid rgba(255, 244, 221, 0.35);
    white-space: nowrap;
    transition: color 0.15s, transform 0.15s;
}

.nav-row a:first-child {
    border-left: none;
}

.nav-row a:hover,
.nav-row a.here {
    color: var(--yellow);
    transform: translateY(-1px) rotate(-2deg);
}

/* ---------- body columns ---------- */

#columns {
    display: contents;
}

/* left: notebook with red frame */

#side {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: start;
    margin-top: 12px;
    background-color: var(--paper);
    background-image: repeating-linear-gradient(0deg, transparent 0 23px, var(--line) 23px 24px);
    border: 7px solid var(--red);
    outline: 2px solid var(--red-dark);
    outline-offset: -9px;
    border-radius: 4px;
    padding: 14px 12px 50px;
    position: relative;
    box-shadow: 3px 4px 0 rgba(107, 52, 22, 0.18);
}

/* sketchbook + paint dots at the bottom */
#side::after {
    content: '';
    position: absolute;
    left: 14px;
    bottom: 12px;
    width: 34px;
    height: 22px;
    background: var(--red-dark);
    border-radius: 3px;
    transform: skewX(-10deg);
    box-shadow:
        150px 4px 0 -4px var(--yellow),
        170px 6px 0 -6px var(--orange-dark),
        192px 2px 0 -3px var(--pink);
}

.note {
    position: relative;
    background: #fffbe8;
    padding: 18px 14px 14px;
    margin: 8px 4px 18px;
    box-shadow: 2px 3px 6px rgba(107, 52, 22, 0.22);
    transform: rotate(-1.5deg);
}

.note.tilt {
    transform: rotate(1.8deg);
    background: #f4fbe6;
}

/* push pins */
.note::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 18px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ff9a9a 0 20%, var(--red) 45%, var(--red-dark) 100%);
    box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.3);
}

.note.blue::before {
    left: auto;
    right: 26px;
    background: radial-gradient(circle at 35% 35%, #b5dcff 0 20%, #2f7de1 45%, #1b4f99 100%);
}

.note-title {
    font-family: 'Mochiy Pop One', sans-serif;
    color: var(--red);
    font-size: 18px;
    margin: 0 0 4px;
    -webkit-text-stroke: 4px #fff;
    paint-order: stroke fill;
}

.note p {
    margin: 0;
}

.pfp-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.pfp {
    width: 72px;
    height: 72px;
    border: 3px solid #fff;
    box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.25);
    transform: rotate(3deg);
}

.clock {
    font-family: 'Mochiy Pop One', sans-serif;
    font-size: 22px;
    color: var(--brown);
    line-height: 1.1;
}

.small {
    font-size: 12px;
    color: var(--muted);
}

/* updates box */

.updates-head {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Mochiy Pop One', sans-serif;
    color: var(--brown);
    font-size: 16px;
    margin: 6px 4px;
}

.updates-head::before {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffc0d0 0 20%, var(--pink) 50%, #c23a5c 100%);
}

.updates {
    list-style: none;
    margin: 0 4px;
    padding: 6px 6px 6px 0;
    height: 150px;
    overflow-y: auto;
    font-size: 12.5px;
    line-height: 1.45;
    border-top: 2px dotted var(--line);
    border-bottom: 2px dotted var(--line);
}

.updates li {
    position: relative;
    padding: 3px 0 3px 18px;
}

.updates li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 7px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ff9a9a 0 20%, var(--red) 55%);
}

.updates .date {
    color: var(--muted);
}

.updates a {
    display: block;
    color: var(--red);
    text-decoration: underline dotted rgba(200, 50, 60, 0.45);
    text-underline-offset: 3px;
    cursor: pointer;
}

.updates a::after {
    content: ' ↗';
    font-size: 11px;
}

.updates a:hover {
    color: var(--orange-dark);
    text-decoration: underline wavy rgba(240, 138, 44, 0.6);
}

/* right: main panel */

#main {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    margin-top: 8px;
}

/* home page: pfp + name, then the page list like the old site */
.home-top {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 4px 0 18px -14px;
}

.hero-pfp {
    width: 130px;
    height: 130px;
    border: 5px solid #fff;
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.25);
    transform: rotate(-3deg);
    flex: 0 0 auto;
}

.caption {
    margin: 0 !important;
    font-family: 'Mochiy Pop One', sans-serif;
    line-height: 1.25;
}

.caption .big {
    display: block;
    font-size: 44px;
    color: var(--yellow);
    -webkit-text-stroke: 9px var(--red);
    paint-order: stroke fill;
    transform: rotate(-2deg);
}

.caption .sub {
    display: block;
    font-size: 17px;
    color: #fff;
    -webkit-text-stroke: 5px var(--red);
    paint-order: stroke fill;
    margin-top: 4px;
}

.quick {
    list-style: none;
    margin: 0;
    padding: 0 0 0 1ch !important;
}

.quick li {
    margin: 0 0 14px;
}

.quick a {
    font-family: 'Mochiy Pop One', sans-serif;
    font-size: 1.5em;
    color: var(--brown);
    text-decoration: underline;
    text-decoration-color: rgba(107, 52, 22, 0.35);
    text-underline-offset: 5px;
    display: inline-block;
    transition: transform 0.15s, color 0.15s;
}

.quick a:hover {
    color: var(--red);
    text-decoration-color: rgba(200, 50, 60, 0.5);
    transform: translateX(6px) rotate(-1deg);
}

/* content pages: sheet of sketchbook paper */
.sheet {
    background-color: var(--paper);
    background-image:
        linear-gradient(90deg, transparent 38px, rgba(255, 111, 145, 0.35) 38px 40px, transparent 40px),
        repeating-linear-gradient(0deg, transparent 0 27px, var(--line) 27px 28px);
    border: 4px solid #fff;
    box-shadow: 3px 4px 0 rgba(107, 52, 22, 0.18);
    padding: 18px 20px 26px 54px;
    min-height: 460px;
}

.page-title {
    font-family: 'Mochiy Pop One', sans-serif;
    font-weight: 400;
    font-size: 30px;
    line-height: 1.2;
    margin: 0 0 14px -18px;
    color: var(--red);
    -webkit-text-stroke: 7px #fff;
    paint-order: stroke fill;
    text-shadow: 2px 3px 0 rgba(107, 52, 22, 0.2);
    transform: rotate(-1.5deg);
    transform-origin: left;
}

.sheet h2,
.sheet h3,
.sheet h4 {
    font-family: 'Mochiy Pop One', sans-serif;
    font-weight: 400;
    color: var(--brown);
    margin: 18px 0 4px;
    line-height: 1.3;
}

.sheet h2 {
    font-size: 19px;
}

.sheet h3 {
    font-size: 16px;
}

.sheet h4 {
    font-size: 14px;
    margin: 4px 0;
}

.sheet p {
    margin: 0 0 10px;
}

.sheet ul {
    margin: 0 0 10px;
    padding-left: 20px;
}

.sheet hr {
    border: none;
    border-top: 2px dashed var(--orange);
    margin: 18px 0;
}

/* link lists (socials, music, etc.) */
.links {
    list-style: none;
    margin: 0;
    padding: 0 !important;
}

.links li {
    position: relative;
    padding: 6px 0 6px 22px;
    border-bottom: 1px dotted var(--line);
}

.links li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ff9a9a 0 20%, var(--red) 55%);
}

.links li:nth-child(3n+2)::before {
    background: radial-gradient(circle at 35% 35%, #b5dcff 0 20%, #2f7de1 55%);
}

.links li:nth-child(3n)::before {
    background: radial-gradient(circle at 35% 35%, #fff4a0 0 20%, #f0b400 55%);
}

.links a {
    font-family: 'Mochiy Pop One', sans-serif;
    font-size: 17px;
}

.links .desc {
    display: block;
    font-size: 13px;
    color: var(--muted);
}

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

#footer {
    grid-column: 1 / -1;
    margin: 12px -12px 0;
    padding: 12px;
    background: var(--cream-dark);
    text-align: center;
    font-size: 12px;
    color: var(--muted);
}

#footer p {
    margin: 0;
}

/* 88x31 badges */
.badges {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
}

/* each row stays on one line, wraps only on small phones */
.badge-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

.badges:empty {
    display: none;
}

.badges a {
    display: block;
    line-height: 0;
}

.badges img {
    display: block;
    width: 88px;
    height: 31px;
    image-rendering: pixelated;
}

/* ---------- small screens ---------- */

@media (max-width: 760px) {
    #wrapper {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto auto auto;
    }

    #header {
        grid-column: 1;
        padding: 14px 0 6px;
    }

    #main {
        grid-column: 1;
    }

    #side {
        grid-column: 1;
        grid-row: 3;
    }

    #footer {
        grid-row: 4;
    }

    #header {
        flex-wrap: wrap;
        justify-content: center;
    }

    #nav {
        flex-basis: 100%;
        order: 3;
    }

    .nav-row,
    .nav-row:nth-child(2) {
        margin: 0;
        flex-wrap: wrap;
    }

    .nav-row::after {
        display: none;
    }

    #columns {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    #side {
        flex-basis: auto;
    }

    .hero-pfp {
        width: 96px;
        height: 96px;
    }

    .caption .big {
        font-size: 34px;
    }

    .sheet {
        padding-left: 48px;
    }
}

/* ---------- big screens ---------- */
/* scale everything up so 1440p / ultrawide / 4k don't get a tiny column in the middle */

@media (min-width: 1600px) and (min-height: 850px) {
    :root {
        --zoom: 1.2;
    }

    body {
        zoom: var(--zoom);
    }

    #wrapper {
        width: 900px;
    }
}

@media (min-width: 2200px) and (min-height: 1300px) {
    :root {
        --zoom: 1.5;
    }

    #wrapper {
        width: 1000px;
    }
}

/* ultrawides get a wider column too */
@media (min-width: 2200px) and (min-height: 1300px) and (min-aspect-ratio: 2/1) {
    #wrapper {
        width: 1200px;
    }
}

@media (min-width: 3200px) and (min-height: 1900px) {
    :root {
        --zoom: 2;
    }
}
