* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Sora', sans-serif;
    background:
        radial-gradient(circle at 15% 20%, rgba(162, 61, 255, 0.24), transparent 30%),
        radial-gradient(circle at 85% 8%, rgba(255, 255, 255, 0.14), transparent 18%),
        linear-gradient(180deg, #050507 0%, var(--bg) 44%, #040405 100%);
    color: var(--text);
    position: relative;
    overflow-x: hidden;
}

img,
video {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.page-noise,
.ambient {
    pointer-events: none;
    position: fixed;
    inset: 0;
}

.page-noise {
    opacity: 0.08;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 18px 18px;
    mask-image: radial-gradient(circle at center, black, transparent 82%);
}

.ambient {
    width: 24rem;
    height: 24rem;
    border-radius: 999px;
    filter: blur(50px);
    opacity: 0.24;
}

.ambient-one {
    top: -6rem;
    left: -6rem;
    background: var(--accent);
}

.ambient-two {
    top: 40%;
    right: -10rem;
    background: rgba(255, 255, 255, 0.55);
}

.app-shell {
    position: relative;
    z-index: 1;
    width: min(100%, 30rem);
    margin: 0 auto;
    padding: 1.1rem 1rem 2.25rem;
}

.panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.75rem;
    backdrop-filter: blur(22px);
    box-shadow: 0 1.4rem 3rem rgba(0, 0, 0, 0.35);
}

.hero-panel,
.links-panel,
.feature-panel,
.post-card,
.empty-state {
    padding: 1.1rem;
}

.hero-panel {
    text-align: center;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.hero-avatar-wrap {
    width: 6.8rem;
    height: 6.8rem;
    margin: 0 auto 1rem;
    padding: 0.45rem;
    border-radius: 999px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.3), rgba(162, 61, 255, 0.18));
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 2rem rgba(162, 61, 255, 0.25);
}

.hero-avatar,
.profile-mark {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 999px;
    object-fit: cover;
    background: #09090f;
}

.handle,
.eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    color: var(--accent-soft);
}

.hero-panel h1,
.post-body h1,
.empty-state h1 {
    margin: 0.65rem 0 0.45rem;
    font-size: clamp(2rem, 9vw, 2.85rem);
    line-height: 0.96;
}

.headline {
    margin: 0 0 0.7rem;
    font-weight: 600;
    color: var(--text);
}

.bio,
.lead,
.rich-text,
.footer-copy,
.post-tile-copy span,
.link-button span,
.empty-state p {
    color: var(--muted);
    line-height: 1.65;
}

.links-panel,
.feature-panel {
    margin-top: 1rem;
}

.section-heading {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.section-heading h2 {
    margin: 0;
    font-size: 1.2rem;
}

.links-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.link-button {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.05rem;
    border-radius: 1.2rem;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.link-button-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
    text-align: left;
}

.link-button strong,
.link-button span {
    display: block;
}

.link-button-thumb {
    flex: 0 0 3.6rem;
    width: 3.6rem;
    height: 3.6rem;
    overflow: hidden;
    border-radius: 1rem;
    background: rgba(9, 9, 15, 0.08);
}

.link-button-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.link-button.solid {
    background: var(--button);
    color: var(--button-text);
    box-shadow: 0 0.9rem 1.9rem rgba(0, 0, 0, 0.25);
}

.link-button.solid span {
    color: rgba(9, 9, 15, 0.72);
}

.link-button.muted-card {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.feature-panel {
    overflow: hidden;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.post-tile {
    display: block;
    overflow: hidden;
    border-radius: 1.3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.post-tile-media {
    aspect-ratio: 1 / 1.1;
    background: linear-gradient(145deg, rgba(162, 61, 255, 0.28), rgba(255, 255, 255, 0.1));
}

.post-tile-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tile-fallback {
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--text);
}

.post-tile-copy {
    padding: 0.9rem;
}

.post-tile-copy strong {
    display: block;
    margin-bottom: 0.35rem;
}

.social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    padding: 1rem 0 0.5rem;
}

.social-pill {
    padding: 0.7rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-size: 0.92rem;
}

.footer-copy {
    text-align: center;
    padding: 0.85rem 0 0;
    font-size: 0.92rem;
}

.back-link,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.back-link {
    margin-bottom: 1rem;
}

.post-card {
    overflow: hidden;
}

.post-cover {
    border-radius: 1.15rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

.post-cover img {
    width: 100%;
    aspect-ratio: 1 / 1.12;
    object-fit: cover;
}

.post-body {
    padding-top: 1.1rem;
}

.lead {
    margin-top: 0;
    margin-bottom: 1rem;
}

.rich-text p,
.rich-text ul,
.rich-text ol,
.rich-text blockquote,
.rich-text .copy-box {
    margin: 0 0 1rem;
}

.rich-text a {
    color: var(--accent-soft);
}

.copy-box {
    padding: 1rem;
    background: linear-gradient(180deg, rgba(162, 61, 255, 0.14), rgba(255, 255, 255, 0.04));
}

.copy-box__top {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

.copy-box__copy h3 {
    margin: 0.28rem 0 0;
    font-size: 1rem;
}

.copy-box__hint {
    margin: 0.45rem 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.copy-box__button {
    flex: 0 0 auto;
    min-height: 2.8rem;
    padding: 0.75rem 1rem;
    border: 0;
    border-radius: 999px;
    background: var(--button);
    color: var(--button-text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.copy-box__button.is-copied {
    background: var(--accent);
    color: #fff;
}

.copy-box__text {
    margin: 0.95rem 0 0;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: rgba(0, 0, 0, 0.26);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-word;
    overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92rem;
    line-height: 1.6;
}

.media-frame {
    margin: 1rem 0;
    border-radius: 1.25rem;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16 / 9;
}

.media-frame iframe,
.media-frame video {
    width: 100%;
    height: 100%;
    border: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}

.gallery-item {
    margin: 0;
    overflow: hidden;
    border-radius: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.empty-state {
    margin-top: 2rem;
    text-align: center;
}

.empty-state .profile-mark {
    width: 5.25rem;
    margin: 0 auto 1rem;
}

@media (hover: hover) {
    .link-button.solid:hover,
    .post-tile:hover,
    .social-pill:hover,
    .ghost-button:hover,
    .back-link:hover {
        transform: translateY(-2px);
    }
}

@media (min-width: 720px) {
    .app-shell {
        padding-top: 2rem;
        padding-bottom: 3rem;
    }

    .hero-panel,
    .links-panel,
    .feature-panel,
    .post-card,
    .empty-state {
        border-radius: 2rem;
    }
}
