:root {
    --page-bg: #050505;
    --tile-bg: #141414;
    --tile-border: #2b2b2b;
    --text: #f5f5f5;
    --muted: #9c9c9c;
    --faint: #5f5f5f;
    --accent: #f23946;
    --gap: 16px;
    --pad: 100px;
    --cell-size: calc((100vw - (var(--pad) * 2) - (var(--gap) * 3)) / 4);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
    background: var(--page-bg);
    color: var(--text);
}

body {
    min-height: 100svh;
    overflow-x: hidden;
}

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

.personal-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: auto;
    align-items: start;
    align-content: start;
    gap: var(--gap);
    min-height: 100svh;
    padding: clamp(68px, 8svh, 88px) var(--pad) clamp(28px, 4svh, 48px);
}

.tile {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-self: start;
    min-width: 0;
    border: 1px solid var(--tile-border);
    border-radius: 8px;
    background: rgba(20, 20, 20, 0.92);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.tile::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.08), transparent 34%);
    opacity: 0.65;
}

.tile-content {
    position: relative;
    z-index: 1;
    padding: 28px;
}

.welcome-tile {
    grid-column: span 3;
}

.goals-tile {
    grid-column: 4;
    grid-row: 1;
}

.time-tile {
    grid-column: 3;
    grid-row: 2;
    container-type: inline-size;
}

.books-tile {
    grid-column: 4;
    grid-row: 2;
    justify-self: start;
    width: fit-content;
}

.status-tile {
    grid-column: 1;
    grid-row: 2;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--faint);
    font-size: 0.95rem;
    font-weight: 400;
}

.welcome-title {
    max-width: 980px;
    margin: 0;
    font-size: clamp(1.65rem, 4.15vw, 4rem);
    line-height: 1.06;
    letter-spacing: 0;
    white-space: nowrap;
}

.personal-name {
    display: inline-block;
    color: #fff;
    text-shadow: 0 0 28px rgba(242, 57, 70, 0.34);
    transform-origin: 0 55%;
    transition:
        opacity 220ms ease,
        filter 220ms ease,
        text-shadow 220ms ease,
        transform 220ms ease;
    will-change: opacity, filter, transform;
}

.personal-name.is-switching {
    opacity: 0;
    filter: blur(10px);
    text-shadow: 0 0 42px rgba(242, 57, 70, 0.7);
    transform: translateY(-0.16em) scale(0.97);
}

.personal-title-suffix {
    display: inline-block;
    transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
}

.welcome-copy {
    max-width: 760px;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.7vw, 1.35rem);
    line-height: 1.55;
}

.time-stack {
    display: grid;
    gap: 22px;
}

.time-label,
.goals-label,
.books-label,
.status-label,
.social-label {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 8px;
    color: var(--faint);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.status-value {
    margin: 18px 0 0;
    color: var(--text);
    font-size: clamp(1.15rem, 1.6vw, 1.5rem);
    font-weight: 700;
    line-height: 1.18;
}

.book-current {
    display: grid;
    gap: 14px;
    margin-top: 16px;
    max-width: 150px;
}

.book-cover {
    display: block;
    width: 96px;
    aspect-ratio: 1 / 1.48;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.38);
}

.book-details {
    display: grid;
    gap: 4px;
}

.book-kicker {
    margin: 0;
    color: var(--faint);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.book-title {
    margin: 0;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.22;
}

.book-meta {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.22;
}

.goals-list {
    display: grid;
    gap: 12px;
    margin: 22px 0 0;
    padding: 0;
    color: var(--muted);
    font-size: clamp(0.92rem, 1.05vw, 1rem);
    line-height: 1.45;
    list-style: none;
}

.goals-list li {
    position: relative;
    padding-left: 22px;
}

.goals-list li::before {
    content: "";
    position: absolute;
    top: 0.52em;
    left: 0;
    width: 10px;
    height: 10px;
    border: 1.5px solid var(--faint);
    border-radius: 50%;
    background:
        radial-gradient(circle, transparent 42%, transparent 43%);
}

.goals-list li.is-achieved::before {
    border-color: rgba(242, 57, 70, 0.75);
    background:
        radial-gradient(circle, rgba(242, 57, 70, 0.65) 0 38%, transparent 40%);
    box-shadow: 0 0 14px rgba(242, 57, 70, 0.24);
}

.time-value {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3.15rem);
    font-size: clamp(2rem, 15.5cqw, 3.35rem);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.time-meta,
.timezone-delta {
    margin: 8px 0 0;
    color: var(--faint);
    font-size: 0.9rem;
}

.time-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--tile-border), transparent);
}

.socials-tile {
    grid-column: span 1;
    align-self: start;
    justify-self: start;
    width: fit-content;
}

.social-list {
    display: grid;
    grid-template-columns: repeat(3, 48px);
    gap: 14px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.social-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: var(--muted);
    transition:
        opacity 180ms ease,
        transform 180ms ease;
}

.social-list a:hover,
.social-list a:focus-visible {
    color: #fff;
    outline: none;
    opacity: 0.82;
    transform: translateY(-2px);
}

.social-icon {
    display: block;
    width: 36px;
    height: 36px;
}

.social-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
    .personal-name,
    .personal-title-suffix,
    .social-list a {
        transition: none;
    }

    .personal-name.is-switching {
        opacity: 1;
        filter: none;
        transform: none;
    }
}
