/* ─────────────────────────────────────────────────────────────
   Terell Reynolds — minimal portfolio
   One column, paper + ink, one accent. No frameworks.
   ───────────────────────────────────────────────────────────── */

:root {
    --bg:        #fbfaf8;
    --ink:       #2f2c29;
    --ink-soft:  #6d6862;
    --ink-faint: #938d86;
    --rule:      #e3dfd9;
    --rule-soft: #efece7;
    --accent:    #b4553f;
    --chip-bd:   #ddd8d1;
    --measure:   660px;
}

html[data-theme="dark"] {
    --bg:        #141416;
    --ink:       #ececef;
    --ink-soft:  #a4a1a8;
    --ink-faint: #77747b;
    --rule:      #2e2e33;
    --rule-soft: #232327;
    --accent:    #e08a72;
    --chip-bd:   #35353b;
}

@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) {
        --bg:        #141416;
        --ink:       #ececef;
        --ink-soft:  #a4a1a8;
        --ink-faint: #77747b;
        --rule:      #2e2e33;
        --rule-soft: #232327;
        --accent:    #e08a72;
        --chip-bd:   #35353b;
    }
}

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

html { font-size: 16px; -webkit-text-size-adjust: 100%; }
@media (max-width: 480px) { html { font-size: 15px; } }

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    background: var(--bg);
    color: var(--ink);
    font-size: 0.96rem;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color .2s ease, color .2s ease;
}

.shell { min-height: 100vh; display: flex; flex-direction: column; }

.wrap {
    flex: 1 1 auto;
    width: 100%;
    max-width: var(--measure);
    margin: 0 auto;
    padding: 72px 24px 32px;
}
@media (max-width: 480px) { .wrap { padding: 40px 18px 24px; } }

/* ── Links ───────────────────────────────────────────────── */

a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    text-decoration-color: var(--rule);
    transition: color .18s ease, text-decoration-color .18s ease;
}
a:hover, a:focus-visible {
    color: var(--accent);
    text-decoration-color: var(--accent);
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--ink); color: var(--bg);
    padding: 10px 16px; text-decoration: none; z-index: 50;
}
.skip-link:focus { left: 0; }

/* ── Top bar ─────────────────────────────────────────────── */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 34px;
}

.mark {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .14em;
    color: var(--ink-faint);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 27px;
    padding: 0 14px;
    border: 1px solid var(--rule);
    border-radius: 32px;
    font-size: .74rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--ink-soft);
}
.pill:hover { color: var(--accent); border-color: var(--accent); }
.pill .arr { transition: transform .18s ease; }
.pill:hover .arr { transform: translate(1px, -1px); }

.social {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    margin-left: auto;
    margin-right: 15px;
}
.social a {
    display: inline-flex;
    line-height: 0;
    color: var(--ink-faint);
    text-decoration: none;
    transition: color .18s ease, transform .18s ease;
}
.social a:hover, .social a:focus-visible { color: var(--accent); transform: translateY(-1px); }

@media (max-width: 400px) {
    .social { margin-right: 10px; gap: 11px; }
    .pill { padding: 0 11px; font-size: .7rem; }
}

/* ── Intro ───────────────────────────────────────────────── */

.intro { margin-bottom: 52px; }

h1 {
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: -.015em;
    line-height: 1.25;
}

.role {
    font-size: .98rem;
    font-weight: 500;
    color: var(--ink-soft);
    margin-bottom: 18px;
}

.intro p + p { margin-top: 14px; }

/* Keeps a chip and the punctuation after it from splitting across lines. */
.nb { white-space: nowrap; }

.chip {
    display: inline-block;
    padding: 1px 6px;
    margin: 0 1px;
    border: 1px solid var(--chip-bd);
    border-radius: 6px;
    font-size: .84em;
    line-height: 1.5;
    color: var(--ink-soft);
    white-space: nowrap;
}

.fanline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.fans { display: inline-flex; align-items: center; gap: 9px; }
.fans a { text-decoration: none; line-height: 0; }
.fans img {
    width: 22px; height: 22px;
    object-fit: contain;
    opacity: .65;
    filter: grayscale(1) contrast(.95);
    transition: opacity .18s ease, filter .18s ease, transform .18s ease;
}
.fans a:hover img, .fans a:focus-visible img {
    opacity: 1; filter: none; transform: translateY(-1px);
}

/* Dark-on-dark logos (Yankees, Lions) vanish under plain grayscale — lift them. */
html[data-theme="dark"] .fans img { filter: grayscale(1) brightness(2.4); opacity: .5; }
@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) .fans img { filter: grayscale(1) brightness(2.4); opacity: .5; }
}

/* ── Sections ────────────────────────────────────────────── */

section { margin-bottom: 48px; }
section.last { margin-bottom: 8px; }

h2 {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-faint);
    padding-bottom: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--rule);
}

.hint {
    font-size: .85rem;
    color: var(--ink-faint);
    margin-bottom: 6px;
}

/* ── Projects (native <details> accordion) ───────────────── */

.proj { border-bottom: 1px solid var(--rule-soft); }

.proj > summary {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 11px 0;
    cursor: pointer;
    list-style: none;
    transition: color .18s ease;
}
.proj > summary::-webkit-details-marker { display: none; }
.proj > summary:hover { color: var(--accent); }

.pname { font-size: 1rem; font-weight: 600; }

.ptag {
    font-size: .74rem;
    font-weight: 400;
    color: var(--ink-faint);
    white-space: nowrap;
}

.chev {
    margin-left: auto;
    flex-shrink: 0;
    align-self: center;
    color: var(--ink-faint);
    transition: transform .2s ease;
}
.proj[open] > summary .chev { transform: rotate(180deg); }
.proj[open] > summary { color: var(--accent); }

.pbody {
    padding: 2px 0 20px;
    animation: reveal .22s ease;
}
@keyframes reveal {
    from { opacity: 0; transform: translateY(-3px); }
    to   { opacity: 1; transform: none; }
}

.pbody > p { color: var(--ink-soft); }
.pbody ul { margin: 10px 0 0; padding: 0; list-style: none; }
.pbody li {
    position: relative;
    padding-left: 18px;
    color: var(--ink-soft);
    line-height: 1.65;
}
.pbody li::before {
    content: "";
    position: absolute;
    left: 2px; top: .72em;
    width: 6px; height: 6px;
    background: var(--ink-faint);
}

.tech {
    margin-top: 12px;
    font-size: .8rem;
    color: var(--ink-faint);
    letter-spacing: .01em;
}

.plinks { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 16px; font-size: .88rem; }
.priv { color: var(--ink-faint); font-size: .88rem; }

.more {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 18px;
    font-size: .88rem;
}
.more .arr { color: var(--ink-faint); transition: transform .18s ease, color .18s ease; }
.more:hover .arr { color: var(--accent); transform: translate(1px, -1px); }

/* ── Experience ──────────────────────────────────────────── */

.job + .job { margin-top: 26px; }

.job h3 {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}
.when {
    font-size: .8rem;
    font-weight: 400;
    color: var(--ink-faint);
    white-space: nowrap;
}
@media (max-width: 560px) {
    .job h3 { flex-direction: column; gap: 2px; }
}

.org { color: var(--ink-soft); font-size: .9rem; margin-bottom: 8px; }

.job ul { margin: 0; padding: 0; list-style: none; }
.job li {
    position: relative;
    padding-left: 18px;
    color: var(--ink-soft);
    line-height: 1.65;
}
.job li::before {
    content: "";
    position: absolute;
    left: 2px; top: .72em;
    width: 6px; height: 6px;
    background: var(--ink-faint);
}

/* ── Skills ──────────────────────────────────────────────── */

.skills dt {
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: 2px;
}
.skills dd {
    color: var(--ink-soft);
    font-size: .9rem;
    line-height: 1.7;
    margin-bottom: 14px;
}
.skills dd:last-child { margin-bottom: 0; }

/* ── Certifications ──────────────────────────────────────── */

.certs { list-style: none; }
.certs li {
    color: var(--ink-soft);
    font-size: .92rem;
    line-height: 1.7;
    margin-bottom: 8px;
}
.certs strong { color: var(--ink); font-weight: 600; }

/* ── Footer ──────────────────────────────────────────────── */

.foot {
    margin-top: auto;
    width: 100%;
    max-width: var(--measure);
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px 28px;
    display: flex;
    justify-content: center;
}

.tbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    color: var(--ink-faint);
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: color .18s ease;
}
.tbtn:hover { color: var(--ink); }

/* ── Reduced motion / print ──────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
}

@media print {
    body { background: #fff; color: #000; }
    .topbar, .foot, .hint { display: none; }
    .proj > summary .chev { display: none; }
    a { color: #000; text-decoration: none; }
}
