/* ==========================================================================
   jordanotomu.com · cream + ink
   ========================================================================== */

:root {
    --bg: #f3f1e7;
    --ink: #1a1a1a;
    --muted: rgba(26, 26, 26, 0.56);
    --faint: rgba(26, 26, 26, 0.12);
    --border: rgba(26, 26, 26, 0.85);
    --accent: #1a1a1a;

    --font-mono: "Courier Prime", ui-monospace, "SFMono-Regular", Menlo, monospace;
    --font-body: "Inter", system-ui, -apple-system, sans-serif;

    --pad: 22px;
    --max: 960px;
}

[data-theme="dark"] {
    --bg: #121212;
    --ink: #f3f1e7;
    --muted: rgba(243, 241, 231, 0.56);
    --faint: rgba(243, 241, 231, 0.12);
    --border: rgba(243, 241, 231, 0.85);
    --accent: #f3f1e7;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15.5px;
    line-height: 1.58;
    -webkit-font-smoothing: antialiased;
    transition: background 0.25s ease, color 0.25s ease;
}

body {
    min-height: 100vh;
    padding: 28px 18px 60px;
}

.page {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}
a:hover { text-decoration-thickness: 2px; }

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 4px 2px 6px;
}

.name {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: clamp(22px, 3.2vw, 30px);
    letter-spacing: -0.01em;
    word-spacing: -0.1em;
}

.socials {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.chip:hover {
    background: var(--ink);
    color: var(--bg);
    text-decoration: none;
}

.chip .ico {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.chip-icon {
    padding: 6px;
}
.chip-icon .ico { width: 16px; height: 16px; }

.chip-resume {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
}
.chip-resume:hover {
    background: var(--bg);
    color: var(--ink);
}

/* LinkedIn's canonical blue — the only splash of color */
.socials .chip:first-child {
    background: #0a66c2;
    color: #ffffff;
    border-color: #0a66c2;
}
.socials .chip:first-child:hover {
    filter: brightness(1.1);
}

/* theme toggle: show the opposite icon of the current mode */
#theme-toggle .sun { display: none; }
[data-theme="dark"] #theme-toggle .moon { display: none; }
[data-theme="dark"] #theme-toggle .sun { display: block; }

/* ==========================================================================
   FIELDSET BOX
   ========================================================================== */

.box {
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 20px 22px 22px;
    background: transparent;
    position: relative;
}

.box legend {
    font-family: var(--font-mono);
    font-size: 13.5px;
    padding: 0 8px;
    color: var(--ink);
    letter-spacing: 0.01em;
}

.box p + p { margin-top: 10px; }

.lead {
    color: var(--ink);
    margin-bottom: 14px;
}

.muted-lead {
    color: var(--muted);
    font-size: 13.5px;
    margin-bottom: 14px;
}

.subhead {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--muted);
    margin: 18px 0 8px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border: 1px solid var(--border);
    color: var(--ink);
    background: transparent;
    font-family: var(--font-mono);
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.btn:hover {
    background: var(--ink);
    color: var(--bg);
    text-decoration: none;
}

/* ==========================================================================
   FOR VISITORS
   ========================================================================== */

.row {
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: space-between;
}
.row-text {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.tiny-icons {
    display: inline-flex;
    gap: 6px;
    color: var(--ink);
}
.tiny-icons svg { width: 14px; height: 14px; }

/* ==========================================================================
   WHOAMI
   ========================================================================== */

.whoami {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 28px;
    align-items: start;
}
.whoami-text p { max-width: 56ch; }

.whoami-photo {
    text-align: center;
}
.whoami-photo img {
    width: 100%;
    max-width: 260px;
    height: auto;
    border: 1px solid var(--border);
    display: block;
    margin: 0 auto;
    filter: grayscale(0%);
}
.whoami-photo figcaption {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
}

/* ==========================================================================
   MUSIC
   ========================================================================== */

/* ---------- NOW PLAYING ---------- */

.now-playing {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid var(--border);
    color: inherit;
    text-decoration: none;
    margin-bottom: 22px;
    transition: background 0.18s, transform 0.18s;
}
.now-playing:hover {
    background: var(--faint);
    text-decoration: none;
}
.now-playing[data-state="loading"],
.now-playing[data-state="idle"],
.now-playing[data-state="error"] {
    pointer-events: none;
}

.np-art {
    width: 72px;
    height: 72px;
    border: 1px solid var(--faint);
    background: repeating-linear-gradient(
        45deg,
        var(--faint) 0 6px,
        transparent 6px 12px
    );
    background-size: 100% 100%;
}
.now-playing[data-art] .np-art {
    background-image: var(--art);
    background-size: cover;
    background-position: center;
}

.np-body { min-width: 0; }

.np-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}
.np-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--muted);
    display: inline-block;
    flex-shrink: 0;
}
.now-playing[data-state="playing"] .np-dot {
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
    animation: np-pulse 2s infinite;
}
.now-playing[data-state="lastplayed"] .np-dot {
    background: var(--muted);
}
.now-playing[data-state="idle"] .np-dot,
.now-playing[data-state="error"] .np-dot {
    background: var(--faint);
    border: 1px solid var(--muted);
    width: 6px;
    height: 6px;
}

@keyframes np-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.np-title {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 15.5px;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}
.np-artist {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.np-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 22px;
    width: 26px;
    opacity: 0;
    transition: opacity 0.2s;
}
.now-playing[data-state="playing"] .np-bars { opacity: 1; }

.np-bars span {
    display: block;
    width: 3px;
    background: var(--ink);
    animation: np-eq 0.9s ease-in-out infinite;
    height: 40%;
}
.np-bars span:nth-child(1) { animation-delay: 0.0s; }
.np-bars span:nth-child(2) { animation-delay: 0.2s; }
.np-bars span:nth-child(3) { animation-delay: 0.4s; }
.np-bars span:nth-child(4) { animation-delay: 0.1s; }

@keyframes np-eq {
    0%, 100% { height: 30%; }
    50% { height: 100%; }
}

.track-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--faint);
}
.track-list li {
    border-bottom: 1px solid var(--faint);
}
.track-row {
    display: grid;
    grid-template-columns: 28px 56px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 10px 10px 10px 6px;
    font-family: var(--font-mono);
    font-size: 13.5px;
    color: var(--ink);
    text-decoration: none;
    transition: background 0.15s;
    position: relative;
}
.track-row:hover {
    background: var(--faint);
    text-decoration: none;
}
.track-row::after {
    content: "↗";
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 11px;
    color: var(--muted);
    opacity: 0;
    transition: opacity 0.15s;
}
.track-row:hover::after { opacity: 1; }

.track-idx {
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.track-art {
    width: 56px;
    height: 56px;
    display: block;
    border: 1px solid var(--faint);
    object-fit: cover;
    background: var(--faint);
}

.track-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.track-name {
    color: var(--ink);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.track-artist {
    color: var(--muted);
    font-size: 12.5px;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.track-album {
    color: var(--muted);
    font-size: 11.5px;
    letter-spacing: 0.03em;
    padding-right: 16px;
    white-space: nowrap;
    text-align: right;
}

.playlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}
.playlist {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--faint);
    padding: 12px;
    transition: border-color 0.15s, transform 0.15s;
}
.playlist:hover {
    border-color: var(--border);
    text-decoration: none;
    transform: translateY(-1px);
}
.playlist-art {
    aspect-ratio: 1 / 1;
    background: repeating-linear-gradient(
        45deg,
        var(--faint) 0 6px,
        transparent 6px 12px
    );
    border: 1px solid var(--faint);
    margin-bottom: 10px;
}
.playlist-title {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
}
.playlist-sub {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 2px;
}

/* ==========================================================================
   UGC
   ========================================================================== */

.ugc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}
.ugc-card {
    display: block;
    color: inherit;
    text-decoration: none;
    border: 1px solid var(--faint);
    padding: 10px;
    transition: border-color 0.15s, transform 0.15s;
}
.ugc-card:hover {
    border-color: var(--border);
    text-decoration: none;
    transform: translateY(-1px);
}
.ugc-thumb {
    background:
        linear-gradient(135deg, var(--faint), transparent),
        repeating-linear-gradient(0deg, var(--faint) 0 1px, transparent 1px 8px);
    border: 1px solid var(--faint);
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}
.ugc-thumb:not(:has(img)) {
    aspect-ratio: 9 / 16;
}
.ugc-thumb img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.35s ease;
}
.ugc-card:hover .ugc-thumb img {
    transform: scale(1.03);
}
.ugc-thumb:not(:has(img))::after {
    content: "▶";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 20px;
    opacity: 0.7;
}
.ugc-thumb--more {
    display: grid;
    place-items: center;
    background:
        repeating-linear-gradient(45deg, var(--faint) 0 1px, transparent 1px 10px);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
}
.ugc-thumb--more span {
    padding: 6px 10px;
    border: 1px solid var(--border);
    background: var(--bg);
}
.ugc-platform {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid var(--border);
    padding: 2px 6px;
    margin-bottom: 6px;
}
.ugc-title {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}
.ugc-stats {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 4px;
}

/* ==========================================================================
   EXPERIENCE
   ========================================================================== */

.exp {
    padding: 16px 4px 18px;
    border-top: 1px solid var(--faint);
}
.exp:first-of-type { border-top: none; padding-top: 6px; }

.exp-head {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 16px;
    align-items: center;
}

.exp-logo {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.04em;
    background: transparent;
    overflow: hidden;
}
.exp-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
    display: block;
}
/* branded logos — tiny splashes of color (text variants) */
.exp-logo[data-logo="snap"] { background: #fffc00; color: #1a1a1a; border-color: #1a1a1a; }
.exp-logo[data-logo="sgp"] { background: #8b1a1a; color: #ffffff; border-color: #8b1a1a; font-size: 11px; }
.exp-logo[data-logo="walmart"] { background: #0071ce; color: #ffc220; border-color: #0071ce; font-size: 11.5px; }

/* real-logo variants — image-based chips, light backdrop + contain */
.exp-logo[data-logo="uh"],
.exp-logo[data-logo="dallas"],
.exp-logo[data-logo="mlt"],
.exp-logo[data-logo="gpisd"] {
    background: #ffffff;
    border-color: var(--border);
}
[data-theme="dark"] .exp-logo[data-logo="uh"],
[data-theme="dark"] .exp-logo[data-logo="dallas"],
[data-theme="dark"] .exp-logo[data-logo="mlt"],
[data-theme="dark"] .exp-logo[data-logo="gpisd"] {
    background: #f3f1e7;
    border-color: rgba(243, 241, 231, 0.35);
}

/* brand-color squares — fill edge-to-edge, no padding */
.exp-logo[data-logo="jpmc"],
.exp-logo[data-logo="yahoo"],
.exp-logo[data-logo="nsbe"] {
    background: transparent;
    border-color: var(--border);
}
.exp-logo[data-logo="jpmc"] img,
.exp-logo[data-logo="yahoo"] img,
.exp-logo[data-logo="nsbe"] img {
    padding: 0;
    object-fit: cover;
}

.exp-company {
    font-weight: 600;
    font-size: 15.5px;
}
.exp-sub {
    font-weight: 400;
    color: var(--muted);
    font-size: 13.5px;
    font-family: var(--font-mono);
}
.exp-role {
    font-family: var(--font-mono);
    font-style: italic;
    font-size: 13px;
    color: var(--ink);
    margin-top: 1px;
}
.exp-place {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
    margin-top: 1px;
}
.exp-dates {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--muted);
    white-space: nowrap;
}

.exp-bullets {
    list-style: none;
    margin: 12px 0 0 68px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.exp-bullets li {
    position: relative;
    padding-left: 16px;
    font-size: 14px;
    line-height: 1.55;
}
.exp-bullets li::before {
    content: "•";
    position: absolute;
    left: 2px;
    top: 0;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.8;
}

/* ==========================================================================
   PROJECTS
   ========================================================================== */

.proj {
    border: 1px solid var(--faint);
    padding: 14px 16px;
}
.proj.featured {
    border-color: var(--border);
    margin-bottom: 14px;
    position: relative;
    padding: 18px 20px;
}
.proj.featured-sm {
    border-color: var(--border);
    padding: 16px 18px;
}

.proj-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}
.proj-head h3 {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 15px;
}
.proj.featured .proj-head h3 { font-size: 18px; }
.proj-head h3 a { text-decoration: none; }
.proj-head h3 a:hover { text-decoration: underline; }

.proj-muted {
    color: var(--muted);
    font-weight: 400;
    font-size: 0.85em;
}

.proj-tag {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    border: 1px solid var(--faint);
    padding: 2px 6px;
    white-space: nowrap;
}
.proj.featured .proj-tag {
    color: var(--bg);
    background: var(--ink);
    border-color: var(--ink);
}

.proj p {
    font-size: 14px;
    color: var(--ink);
    margin: 4px 0;
}

.proj-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin: 12px 0 10px;
    padding: 10px 0;
    border-top: 1px solid var(--faint);
    border-bottom: 1px solid var(--faint);
}
.proj-metrics div {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.proj-metrics b {
    font-family: var(--font-mono);
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
}
.proj-metrics span {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.proj-stack {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
    margin-top: 8px;
}
.proj-stack span { margin: 0 4px; }

.proj-featured-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 8px;
}

.proj-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ==========================================================================
   RANDOM (tabs)
   ========================================================================== */

.motto {
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--faint);
}
.motto-label {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 4px;
}
.motto-text {
    font-size: 17px;
    font-family: var(--font-mono);
}

.tab-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}
.tab {
    flex: 1 1 auto;
    min-width: 96px;
    padding: 10px 14px;
    background: transparent;
    border: 1px solid var(--border);
    margin-left: -1px;
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 13px;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
}
.tab:first-child { margin-left: 0; }
.tab:hover { background: var(--faint); }
.tab.active {
    background: var(--ink);
    color: var(--bg);
}

.tab-panels {
    padding-top: 16px;
}
.tab-panel { animation: fade 0.2s ease-out; }
.tab-panel[hidden] { display: none; }

@keyframes fade {
    from { opacity: 0; transform: translateY(3px); }
    to { opacity: 1; transform: translateY(0); }
}

.toolbox {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 22px;
}
.toolbox li {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 13px;
    padding: 4px 0;
    border-bottom: 1px solid var(--faint);
}
.toolbox b {
    color: var(--muted);
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.bullets li {
    padding-left: 16px;
    position: relative;
    font-family: var(--font-mono);
    font-size: 13.5px;
}
.bullets li::before {
    content: "·";
    position: absolute;
    left: 4px;
    color: var(--muted);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
    padding: 20px 4px 8px;
    border-top: 1px solid var(--faint);
    margin-top: 10px;
}
.site-footer a { color: var(--muted); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 720px) {
    body { padding: 20px 12px 40px; }
    .page { gap: 16px; }
    .box { padding: 16px 14px 18px; }

    .site-header { flex-direction: column; align-items: flex-start; }
    .socials { width: 100%; justify-content: flex-start; }

    .row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .row .btn { width: 100%; }

    .whoami { grid-template-columns: 1fr; gap: 16px; }
    .whoami-photo img { max-width: 200px; }

    /* music — hide per-row album label on narrow screens, keep art + info */
    .track-row {
        grid-template-columns: 22px 48px 1fr;
        gap: 10px;
    }
    .track-album { display: none; }
    .track-art { width: 48px; height: 48px; }

    .proj-grid { grid-template-columns: 1fr; }
    .proj-featured-row { grid-template-columns: 1fr; }
    .proj-metrics { gap: 18px; }

    .exp-head { grid-template-columns: 44px 1fr; }
    .exp-logo { width: 44px; height: 44px; }
    .exp-dates {
        grid-column: 2;
        font-size: 11.5px;
        margin-top: 4px;
    }
    .exp-bullets { margin-left: 0; }

    .tab-row { flex-direction: column; }
    .tab { margin-left: 0; margin-top: -1px; }
    .tab:first-child { margin-top: 0; }

    .toolbox { grid-template-columns: 1fr; }

    .site-footer { flex-direction: column; gap: 6px; align-items: flex-start; }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}

:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

::selection {
    background: var(--ink);
    color: var(--bg);
}
