/* ============================================
   Elizabeth Eshun — Portfolio (fresh build)
   Editorial / warm paper · crimson accent
   ============================================ */

:root {
    --bg: #f4f1ea;
    --bg-elevated: #fffdf8;
    --ink: #121212;
    --muted: #4a4744;
    --line: #d8d3cb;
    --accent: #b4232c;
    --accent-hover: #8f1c24;
    --shadow: 0 24px 48px rgba(18, 16, 14, 0.08);
    --radius: 4px;
    --font-display: "Syne", system-ui, sans-serif;
    --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
    --max: 1120px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
}

/* subtle paper grain */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
    z-index: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    padding: 0.75rem 1rem;
    background: var(--ink);
    color: var(--bg);
    z-index: 10000;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

a {
    color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ----- Header ----- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(244, 241, 234, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.04em;
    color: var(--ink);
    text-decoration: none;
}

.logo:hover {
    color: var(--accent);
}

.nav {
    display: none;
    gap: 2rem;
}

.nav a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--muted);
    text-decoration: none;
}

.nav a:hover {
    color: var(--ink);
}

@media (min-width: 768px) {
    .nav {
        display: flex;
    }
    .nav-toggle {
        display: none;
    }
}

.nav-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    background: var(--bg-elevated);
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.2s;
}

.nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

.nav-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nav-panel[hidden] {
    display: none;
}

.nav-panel a {
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--line);
}

.nav-panel a:last-child {
    border-bottom: none;
}

/* ----- Hero ----- */
.hero {
    position: relative;
    z-index: 1;
    padding: clamp(3rem, 8vw, 6rem) 1.5rem 4rem;
    max-width: calc(var(--max) + 3rem);
    margin: 0 auto;
}

.hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 1.5rem;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.75rem, 8vw, 4.5rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin: 0 0 1.5rem;
}

.hero-line {
    display: block;
}

.hero-line--accent {
    color: var(--accent);
}

.hero-lead {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 36ch;
    margin: 0 0 1.25rem;
}

.typed-wrap {
    margin: 0 0 2rem;
    font-size: 0.95rem;
    color: var(--muted);
}

.typed {
    font-weight: 600;
    color: var(--ink);
    border-bottom: 2px solid var(--accent);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}

.btn-ghost:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.btn-full {
    width: 100%;
}

.hero-visual {
    position: relative;
}

.hero-photo {
    margin: 0 auto;
    max-width: min(100%, 380px);
    border: 1px solid var(--line);
    background: var(--bg-elevated);
    box-shadow: var(--shadow);
    overflow: hidden;
    border-radius: 50%;
    aspect-ratio: 1;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.meta-block {
    display: block;
    padding: 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    font-size: 0.85rem;
    color: var(--muted);
}

.meta-block strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 0.35rem;
}

.meta-phone {
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent);
    text-decoration: none;
}

.meta-phone:hover {
    text-decoration: underline;
}

.meta-hint {
    display: block;
    font-size: 0.7rem;
    color: var(--muted);
    margin-top: 0.35rem;
}

/* ----- Sections ----- */
.section {
    position: relative;
    z-index: 1;
    padding: clamp(3rem, 6vw, 5rem) 1.5rem;
    max-width: calc(var(--max) + 3rem);
    margin: 0 auto;
}

.section--work {
    background: var(--bg-elevated);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-head {
    margin-bottom: 2.5rem;
}

.section-head--row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .section-head--row {
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
    }
}

.section-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    letter-spacing: -0.03em;
    margin: 0 0 0.5rem;
}

.section-desc {
    margin: 0;
    color: var(--muted);
    max-width: 40ch;
}

/* ----- Projects ----- */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1rem;
    background: var(--bg);
    border: 1px solid var(--line);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

@media (min-width: 700px) {
    .project-card {
        grid-template-columns: minmax(0, 280px) 1fr auto;
        align-items: center;
    }
}

.project-card:hover {
    border-color: var(--ink);
    box-shadow: var(--shadow);
}

.project-card:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.project-card__media {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    aspect-ratio: 16 / 10;
}

.project-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.project-card:hover .project-card__media img {
    transform: scale(1.03);
}

.project-card__body h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    margin: 0 0 0.5rem;
}

.project-card__body p {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.project-card__body .tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--line);
    color: var(--muted);
}

.project-card__arrow {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--accent);
    align-self: start;
}

@media (min-width: 700px) {
    .project-card__arrow {
        align-self: center;
    }
}

/* ----- About ----- */
.about-split {
    display: grid;
    gap: 2rem;
}

@media (min-width: 800px) {
    .about-split {
        grid-template-columns: 200px 1fr;
        gap: 4rem;
    }
}

.about-sticky {
    position: sticky;
    top: 6rem;
    align-self: start;
}

.about-figure {
    margin: 0 0 2rem;
    border: 1px solid var(--line);
    overflow: hidden;
}

.about-figure img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.lead {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.5;
    margin: 0 0 1rem;
}

.about-body p {
    margin: 0 0 1rem;
    color: var(--muted);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.stat {
    text-align: left;
}

.stat-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2rem;
    color: var(--accent);
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

@media (max-width: 520px) {
    .stats {
        grid-template-columns: 1fr;
    }
}

/* ----- Skills ----- */
.skill-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.skill-grid li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 0.75rem;
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
}

.skill-grid img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* ----- Timeline ----- */
.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid var(--line);
}

.timeline li {
    padding: 0 0 2rem 1.5rem;
    position: relative;
}

.timeline li::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 0.35rem;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    border: 2px solid var(--bg);
}

.timeline-date {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
}

.timeline-body h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin: 0.35rem 0 0.5rem;
}

.timeline-body p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

/* ----- Contact ----- */
.section--contact {
    padding-bottom: 4rem;
}

.contact-grid {
    display: grid;
    gap: 3rem;
}

@media (min-width: 800px) {
    .contact-grid {
        grid-template-columns: 1fr 1.1fr;
        align-items: start;
    }
}

.contact-direct {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.contact-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.contact-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.contact-direct a[href^="mailto:"] {
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.15rem;
    align-self: flex-start;
}

.contact-direct a[href^="mailto:"]:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.contact-tel {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--accent);
    text-decoration: none;
    align-self: flex-start;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.1rem;
}

.contact-tel:hover {
    color: var(--accent-hover);
    border-bottom-color: var(--accent-hover);
}

.contact-hint {
    font-size: 0.8rem;
    color: var(--muted);
}

.contact-call-btn {
    align-self: flex-start;
    margin-top: 0.25rem;
}

.contact-form {
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    padding: 1.5rem;
}

.form-row {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.field span {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.field input,
.field textarea {
    font-family: inherit;
    font-size: 1rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--ink);
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(180, 35, 44, 0.15);
}

.form-status {
    min-height: 1.5rem;
    margin: 0.75rem 0 0;
    font-size: 0.9rem;
}

.form-status.success {
    color: #1b5e20;
}

.form-status.error {
    color: var(--accent);
}

/* ----- Footer ----- */
.site-footer {
    position: relative;
    z-index: 1;
    padding: 2rem 1.5rem 3rem;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
}

.site-footer p {
    margin: 0;
}

/* reveal (scroll) */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
