/* ── Reset & Base ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #002525;
    /* Win98 teal desktop */
    --panel-bg: #c0c0c0;
    /* window chrome silver */
    --panel-inner: #ffffff;
    /* content area white */
    --border-out: #808080;
    /* inner shadow bevel */
    --border-hi: #ffffff;
    /* outer highlight bevel */
    --border-sh: #404040;
    /* outer shadow bevel */
    --title-from: #000080;
    /* navy titlebar start */
    --title-to: #1084d0;
    /* sky blue titlebar end */
    --title-text: #ffffff;
    --link: #00008b;
    --link-hover: #0000ff;
    --text: #000000;
    --text-dim: #555555;
    --accent: #000080;
    --btn-face: #c0c0c0;
    --btn-hi: #ffffff;
    --btn-sh: #404040;
    --scrollbar-track: #c0c0c0;
    --scrollbar-thumb: #c0c0c0;
}

html,
body {
    width: 100%;
    min-height: 100vh;
    background: var(--bg);
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    color: var(--text);
    overflow-x: hidden;
    cursor: default;
}

/* Win98 tiled desktop texture */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* ── Scrollbars ── */
::-webkit-scrollbar {
    width: 17px;
    height: 17px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-top: 1px solid var(--border-hi);
    border-left: 1px solid var(--border-hi);
    border-bottom: 1px solid var(--border-sh);
    border-right: 1px solid var(--border-sh);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-top: 2px solid var(--btn-hi);
    border-left: 2px solid var(--btn-hi);
    border-bottom: 2px solid var(--btn-sh);
    border-right: 2px solid var(--btn-sh);
}

::-webkit-scrollbar-button {
    display: block;
    width: 17px;
    height: 17px;
    background: var(--btn-face);
    border-top: 2px solid var(--btn-hi);
    border-left: 2px solid var(--btn-hi);
    border-bottom: 2px solid var(--btn-sh);
    border-right: 2px solid var(--btn-sh);
}

::-webkit-scrollbar-corner {
    background: var(--scrollbar-track);
}

/* ── Layout ── */
#root {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px 40px;
}

/* ── Header ── */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 14px 0 22px;
}

header span {
    font-size: 12px;
    color: #aafafa;
    letter-spacing: 0.5px;
}

header h1 {
    font-family: 'VT323', monospace;
    font-size: 54px;
    letter-spacing: 6px;
    color: #fff;
    text-shadow:
        2px 2px 0 #000080,
        4px 4px 0 #00003060,
        0 0 24px #1084d0a0;
}

/* ── Desktop grid ── */
.desktop {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 16px;
    align-items: start;
}

.col-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.col-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Win98 Window ── */
.win {
    border-top: 2px solid var(--border-hi);
    border-left: 2px solid var(--border-hi);
    border-bottom: 2px solid var(--border-sh);
    border-right: 2px solid var(--border-sh);
    background: var(--panel-bg);
    box-shadow:
        inset 1px 1px 0 #dfdfdf,
        inset -1px -1px 0 var(--border-out),
        2px 2px 6px #00000050;
    position: relative;
}

.win-titlebar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 3px 4px 3px 6px;
    background: linear-gradient(90deg, var(--title-from) 0%, var(--title-to) 100%);
    border-bottom: 1px solid #000040;
    user-select: none;
    min-height: 22px;
}

.win-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    font-size: 16px;
    line-height: 1;
}

.win-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.win-title {
    flex: 1;
    font-family: 'Tahoma', 'MS Sans Serif', Arial, sans-serif;
    font-size: 11px;
    font-weight: bold;
    color: var(--title-text);
    letter-spacing: 0.3px;
    text-shadow: none;
}

.win-btns {
    display: flex;
    gap: 2px;
}

.win-btn {
    width: 16px;
    height: 14px;
    background: var(--btn-face);
    border-top: 2px solid var(--btn-hi);
    border-left: 2px solid var(--btn-hi);
    border-bottom: 2px solid var(--btn-sh);
    border-right: 2px solid var(--btn-sh);
    box-shadow: inset 1px 1px 0 #dfdfdf;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'VT323', monospace;
    font-size: 12px;
    color: #000;
    cursor: pointer;
    transition: none;
    flex-shrink: 0;
}

.win-btn:hover {
    filter: brightness(1.08);
}

.win-btn:active {
    border-top: 2px solid var(--btn-sh);
    border-left: 2px solid var(--btn-sh);
    border-bottom: 2px solid var(--btn-hi);
    border-right: 2px solid var(--btn-hi);
    box-shadow: none;
    filter: none;
}

.win-btn.close {
    background: var(--btn-face);
    margin-left: 2px;
}

.win-btn.close:hover {
    background: #d0d0d0;
}

.win-content {
    /* sunken inset frame around content */
    margin: 6px;
    padding: 10px 12px 12px;
    background: var(--panel-inner);
    border-top: 2px solid var(--border-out);
    border-left: 2px solid var(--border-out);
    border-bottom: 2px solid #dfdfdf;
    border-right: 2px solid #dfdfdf;
    box-shadow: inset 1px 1px 0 var(--border-sh), inset -1px -1px 0 var(--border-hi);
}

/* ── Welcome ── */
.welcome-text {
    line-height: 1.7;
    color: var(--text);
    font-size: 14px;
}

.welcome-text em {
    font-style: normal;
    font-weight: bold;
    color: var(--title-from);
}

.wip-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 3px 8px;
    background: #ffffcc;
    border: 1px solid #c8c800;
    font-size: 12px;
    color: #666600;
}

.wip-badge::before {
    content: '🚧';
    font-size: 16px;
}

/* ── Interests grid ── */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 4px;
}

.interest-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: none;
    padding: 3px;
    border: 1px dotted transparent;
}

.interest-card:hover {
    background: var(--title-from);
    border-color: #8080ff;
}

.interest-card:hover .interest-label {
    color: #ffffff;
}

.interest-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-top: 1px solid var(--border-sh);
    border-left: 1px solid var(--border-sh);
    border-bottom: 1px solid var(--border-hi);
    border-right: 1px solid var(--border-hi);
    background: #1a0a28;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    overflow: hidden;
    position: relative;
}

.interest-label {
    font-size: 11px;
    color: var(--text);
    text-align: center;
    letter-spacing: 0.5px;
}

/* each interest card placeholder image */
.card-art {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    position: relative;
    overflow: hidden;
}

.card-art::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 50%, #ffffff0a 100%);
}

/* per-card colour tints */
.tint-1 {
    background: linear-gradient(135deg, #1a0520 0%, #2d0840 100%);
}

.tint-2 {
    background: linear-gradient(135deg, #0e1a2a 0%, #102040 100%);
}

.tint-3 {
    background: linear-gradient(135deg, #1e0c0c 0%, #3a1010 100%);
}

.tint-4 {
    background: linear-gradient(135deg, #1a1a0a 0%, #2a2800 100%);
}

.tint-5 {
    background: linear-gradient(135deg, #0a1a18 0%, #0e2820 100%);
}

.tint-6 {
    background: linear-gradient(135deg, #120a1e 0%, #1e1030 100%);
}

.tint-7 {
    background: linear-gradient(135deg, #1e0a0a 0%, #300808 100%);
}

.tint-8 {
    background: linear-gradient(135deg, #0a0e1e 0%, #101830 100%);
}

/* ── Projects ── */
.projects-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
}

.projects-list li {
    display: flex;
    gap: 8px;
    align-items: baseline;
    line-height: 1.5;
}

.projects-list li::before {
    content: '►';
    color: var(--accent);
    font-size: 11px;
    flex-shrink: 0;
    margin-top: 2px;
}

.projects-list a {
    color: var(--link);
    text-decoration: underline;
    text-decoration-style: solid;
    cursor: pointer;
    transition: color 0.1s;
}

.projects-list a:hover {
    color: var(--link-hover);
    text-shadow: none;
}

.projects-list .proj-desc {
    color: var(--text-dim);
    font-size: 13px;
}

.projects-list .proj-wip {
    color: #008000;
    font-size: 12px;
}

.projects-list .proj-dead {
    color: #800000;
    font-size: 12px;
}

/* ── Socials ── */
.socials-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.socials-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.socials-list li::before {
    content: '—';
    color: var(--accent);
    font-weight: bold;
}

.socials-list a {
    display: block;
    width: 100%;
    padding: 3px 6px;
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    transition: none;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.socials-list a:hover {
    background: var(--title-from);
    color: #ffffff;
    text-shadow: none;
}

.msg-textarea {
    width: 100%;
    height: 76px;
    background: var(--panel-bg);
    border-top: 2px solid var(--border-out);
    border-left: 2px solid var(--border-out);
    border-bottom: 2px solid #dfdfdf;
    border-right: 2px solid #dfdfdf;
    box-shadow: inset 1px 1px 0 var(--border-sh);
    color: #808080;
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    padding: 6px;
    resize: none;
    outline: none;
    cursor: not-allowed;
}

.msg-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.msg-btn {
    padding: 3px 18px;
    background: var(--btn-face);
    border-top: 2px solid var(--btn-hi);
    border-left: 2px solid var(--btn-hi);
    border-bottom: 2px solid var(--btn-sh);
    border-right: 2px solid var(--btn-sh);
    box-shadow: inset 1px 1px 0 #dfdfdf;
    font-family: 'Tahoma', 'MS Sans Serif', Arial, sans-serif;
    font-size: 11px;
    color: #808080;
    cursor: not-allowed;
    opacity: 0.6;
}

.disabled-notice {
    font-size: 11px;
    color: var(--text-dim);
    text-align: center;
    margin-top: 6px;
    font-style: italic;
}


/* ── Responsive ── */
@media (max-width: 750px) {
    .desktop {
        grid-template-columns: 1fr;
    }

    .interests-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    header h1 {
        font-size: 38px;
    }
}

/* hover glow on windows — replaced with flat Win98 raise */
.win {
    transition: none;
}

.win:hover {
    box-shadow:
        inset 1px 1px 0 #dfdfdf,
        inset -1px -1px 0 var(--border-out),
        2px 2px 6px #00000050;
}

/* pixel corners on panels */
.win::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border: none;
    pointer-events: none;
}