/* layout */
.wrapper {
    max-width: 760px;
    margin: 0 auto;
    padding: 26px 18px 80px;
}

/* background mood + subtle texture */
body {
    background:
        radial-gradient(900px 500px at 20% 10%, rgba(162, 132, 151, .18), transparent 60%),
        radial-gradient(900px 500px at 80% 30%, rgba(173, 168, 190, .25), transparent 55%),
        var(--bg);
}

/* nav */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
}

.nav .brand {
    font-size: 12px;
    letter-spacing: .8px;
    text-transform: lowercase;
    color: var(--muted);
    opacity: .85;
}

.nav a {
    margin-left: 18px;
    font-size: 12px;
    letter-spacing: .6px;
    color: var(--muted);
}

.nav a.active {
    color: var(--ink);
}

/* page head */
.pagehead {
    margin: 14px 0 26px;
}

.site-title {
    margin: 0;
    font-size: 14px;
    letter-spacing: .6px;
    font-weight: 600;
    color: rgba(74, 82, 64, .75);
}

.site-sub {
    margin: 8px 0 0;
    color: rgba(74, 82, 64, .58);
    max-width: 46ch;
}

/* glass card */
.card {
    position: relative;
    background: rgba(255, 255, 255, .28);
    border: 1px solid rgba(74, 82, 64, .12);
    border-radius: 16px;
    padding: 18px 18px 16px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .07);
    backdrop-filter: blur(10px);
    margin: 0 0 14px 0;
}

/* goth stationery glow */
.card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        radial-gradient(400px 120px at 30% 0%, rgba(255, 255, 255, .18), transparent 60%),
        radial-gradient(300px 140px at 90% 20%, rgba(162, 132, 151, .14), transparent 60%);
    opacity: .8;
}

/* hero */
.card.hero {
    padding: 22px 22px 20px;
    border-radius: 18px;
    background: linear-gradient(to bottom right,
            rgba(255, 255, 255, .42),
            rgba(173, 168, 190, .22));
    border-color: rgba(162, 132, 151, .25);
}

.hero-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 750;
    color: rgba(74, 82, 64, .92);
    letter-spacing: .4px;
}

.hero-sub {
    margin: 0;
    color: rgba(74, 82, 64, .65);
}

/* note cards */
.card.note {
    position: relative;
    padding-left: 30px;
}

.card.note::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 16px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(162, 132, 151, .55);
    box-shadow: 0 0 0 3px rgba(162, 132, 151, .12);
}

.card.note h2 {
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .7px;
    text-transform: lowercase;
    margin: 0 0 8px;
    color: rgba(74, 82, 64, .78);
}

/* typography */
p {
    color: rgba(74, 82, 64, .70);
    margin: 0;
}

/* lace divider */
.lace-divider {
    height: 14px;
    margin: 14px 6px 18px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 7px 7px, rgba(162, 132, 151, .55) 0 2px, transparent 3px),
        radial-gradient(circle at 21px 7px, rgba(162, 132, 151, .35) 0 2px, transparent 3px);
    background-size: 28px 14px;
    opacity: .9;
}

/* subtle asymmetry (feels human) */
.card:nth-of-type(odd) {
    transform: translateX(-2px);
}

.card:nth-of-type(even) {
    transform: translateX(2px);
}

.card:hover {
    box-shadow: 0 12px 26px rgba(0, 0, 0, .09);
    transform: translateY(-1px);
}

/* mood tag */
.mood {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(162, 132, 151, .16);
    border: 1px solid rgba(162, 132, 151, .35);
    font-size: 12px;
    color: rgba(74, 82, 64, .85);
}

.mood::before {
    content: "✿";
    opacity: .7;
}

/* blog */
.post {
    padding: 22px 22px 20px;
}

.post-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: baseline;
    margin-bottom: 6px;
}

.post-title {
    margin: 0;
    font-size: 16px;
    font-weight: 750;
    color: var(--ink);
    letter-spacing: .2px;
}

.post-date {
    font-size: 12px;
    color: rgba(74, 82, 64, .55);
    white-space: nowrap;
}

.post-body {
    margin-top: 10px;
    color: rgba(74, 82, 64, .80);
    line-height: 1.7;
    white-space: pre-wrap;
}

.empty {
    background: rgba(255, 255, 255, .25);
    border: 1px dashed var(--line);
    border-radius: 22px;
    padding: 22px;
    color: rgba(74, 82, 64, .65);
}

/* tiny pixel sparkle */
.sparkle {
    position: fixed;
    right: 14px;
    bottom: 14px;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    border: 1px solid rgba(74, 82, 64, .16);
    background: rgba(255, 255, 255, .26);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .08);
    display: grid;
    place-items: center;
    font-size: 14px;
    color: rgba(74, 82, 64, .65);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.sparkle::before {
    content: "✦";
    text-shadow: 0 0 10px rgba(162, 132, 151, .35);
}

.embed {
    margin-top: 14px;
}

.embed-label {
    font-size: 12px;
    color: var(--taupe);
    margin-bottom: 6px;
}

.embed-frame {
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.22);
}

.embed-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.embed-spotify iframe {
    width: 100%;
    height: 152px;
    border: 0;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.22);
}

.embed-link {
    display: inline-block;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.22);
    color: var(--ink);
    text-decoration: none;
}