* {
    box-sizing: border-box;
}

:root {
    --bg: #0A0909;
    --username: #FFC300;
    --text: #F5F5F5;
    --time: #868481;
    --page-max: 1200px;
    --media-max: 760px;
}

html {
    background: var(--bg);
}

@font-face {
  font-family: "Neue Montreal";
  src: url("//prashantjha.in/thoughts/PPNeueMontreal-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: block;
}


body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: "Neue Montreal", sans-serif;
    -webkit-font-smoothing: antialiased;
    display: flex;
    justify-content: center;
}

.notes {
    width: calc(100% - 96px);
    max-width: var(--page-max);
    margin: 0 0 0 48px;
    padding: 56px 0 80px;
}

.note {
    display: grid;
    grid-template-columns: clamp(88px, 9vw, 128px) minmax(0, 1fr);
    align-items: start;
    padding: 24px 0;
}

.avatar {
    display: block;
    width: 96px;
    aspect-ratio: 1;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
}

.note-content {
    min-width: 0;
    max-width: 100%;
}

.note-meta {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0px;
}

.username {
    color: var(--username);
    font-size: 32px;
    font-weight: 400;
    letter-spacing: -0.012em;
    line-height: 1;
}

.time {
    color: var(--time);
    font-size: 24px;
    font-weight: 400;
    letter-spacing: -0.012em;
    line-height: 1;
}

.note-text {
    margin: 0;
    color: var(--text);
    font-size: 32px;
    font-weight: 400;
    line-height: 1.12em;
    letter-spacing: -0.012em;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.note-media {
    width: 100%;
    max-width: var(--media-max);
    margin-top: 20px;
    overflow: hidden;
}

.note-media img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 16px;
    object-position: left top;
}

.note-media video {
    display: block;
    width: 100%;
    height: auto;
    max-width: var(--media-max);
    max-height: 70vh;
    object-fit: contain;
    background: #000;
}

.note-media-frame {
    width: 100%;
    max-width: var(--media-max);
    aspect-ratio: 16 / 9;
}

.note-media-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.note-content img,
.note-content video,
.note-content iframe {
    max-width: 100%;
}

.media-link {
    color: var(--username);
    font-size: clamp(16px, 2vw, 22px);
    text-underline-offset: 4px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 64px;
    font-family: "Roboto Mono", monospace;
    font-size: 16px;
}

.pagination a,
.pagination span {
    color: var(--time);
    text-decoration: none;
}

.pagination a:hover,
.pagination a:focus-visible,
.pagination .current {
    color: var(--username);
}

.pagination .current {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.empty {
    color: var(--time);
    font-size: 18px;
}

@media (max-width: 700px) {
    .notes {
        width: calc(100% - 32px);
        margin-left: 16px;
        padding: 28px 0 56px;
    }

    .note {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 16px;
        padding: 22px 0;
    }

    .avatar {
        width: 54px;
    }

    .note-meta {
        gap: 8px;
        margin-bottom: 10px;
    }

    .username {
        font-size: clamp(22px, 7.8vw, 34px);
    }

    .time {
        font-size: clamp(16px, 5vw, 22px);
    }

    .note-text {
        font-size: clamp(23px, 6.8vw, 36px);
        line-height: 1.16;
    }

    .note-media {
        width: 100%;
        max-width: 100%;
        margin-top: 14px;
    }

    .note-media img,
    .note-media video {
        max-width: 100%;
        max-height: 60vh;
    }

    .pagination {
        margin-top: 40px;
        gap: 12px;
        font-size: 14px;
    }
}