@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
    --paper: #eef2f6;
    --paper-alt: #e2e8ee;
    --ink: #161a20;
    --ink-soft: #5b6572;
    --line: #d1d9e1;
    --accent: #1f6f78;
    --accent-soft: #aed4d8;
    --radius: 14px;
    --maxw: 880px;
    --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 14px;
    letter-spacing: -0.01em;
}

a {
    color: var(--accent)
}

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px
}

@media (max-width:600px) {
    .wrap {
        padding: 0 28px
    }
}

/* header */
.site-header {
    border-bottom: 1px solid var(--line)
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    gap: 16px;
}

.wordmark {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 20px;
    text-decoration: none;
    color: var(--ink)
}

.wordmark span {
    color: var(--accent)
}

nav.main-nav {
    display: flex;
    gap: 6px
}

nav.main-nav a {
    text-decoration: none;
    color: var(--ink-soft);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 999px;
}

nav.main-nav a:hover {
    background: var(--paper-alt);
    color: var(--ink)
}

nav.main-nav a.active {
    background: var(--ink);
    color: var(--paper)
}

/* hero */
.hero {
    padding-top: 64px;
    padding-bottom: 20px
}

@media (max-width:600px) {
    .hero {
        padding-top: 40px;
        padding-bottom: 12px
    }
}

.hero .kicker {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    max-width: 14ch
}

.hero p.lead {
    font-size: 18px;
    color: var(--ink-soft);
    max-width: 60ch;
    margin: 0 0 26px
}

.hero .portrait {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent-soft), var(--accent));
    margin-bottom: 24px;
    box-shadow: 0 8px 20px rgba(31, 111, 120, 0.22);
}

.hero .portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.btn-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 20px;
    border-radius: 999px;
}

.btn-primary {
    background: var(--ink);
    color: var(--paper)
}

.btn-primary:hover {
    background: var(--accent)
}

.btn-outline {
    border: 1.5px solid var(--line);
    color: var(--ink)
}

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

/* about */
.about {
    padding-top: 36px;
    padding-bottom: 36px
}

@media (max-width:600px) {
    .about {
        padding-top: 24px;
        padding-bottom: 24px
    }
}

.about p {
    color: var(--ink-soft);
    max-width: 64ch;
    font-size: 16px
}

.about .emoji {
    font-size: 20px;
    line-height: 1;
}

/* section heading */
.section-head {
    padding-top: 20px;
    margin-bottom: 8px
}

.section-head .kicker {
    display: block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.section-head p {
    color: var(--ink-soft);
    margin: 0 0 8px;
    max-width: 60ch
}

/* workshop teaser list */
.workshop-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 24px 0 60px;
    border-top: 1px solid var(--line)
}

.workshop-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 24px;
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    color: inherit;
    transition: transform .15s ease;
}

.workshop-card:hover {
    transform: translateX(4px)
}

.workshop-card:hover h3 {
    color: var(--accent)
}

.workshop-photo {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--paper-alt);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-soft);
    font-size: 12px;
    text-align: center;
    padding: 8px;
    flex-shrink: 0;
}

.workshop-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.workshop-text h3 {
    font-size: 20px;
    margin-bottom: 6px
}

.workshop-text p {
    color: var(--ink-soft);
    font-size: 15px;
    margin: 0 0 10px;
    max-width: 55ch
}

.workshop-text .go {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--accent)
}

@media (max-width:600px) {
    .workshop-card {
        grid-template-columns: 1fr
    }

    .workshop-photo {
        width: 100%;
        height: 220px
    }
}

/* project detail page */
.project-hero {
    padding-top: 48px;
    padding-bottom: 8px
}

@media (max-width:600px) {
    .project-hero {
        padding-top: 32px;
        padding-bottom: 8px
    }
}

.project-hero .kicker {
    display: block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.project-media {
    width: 100%;
    /* aspect-ratio: 16/9; */
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--paper-alt);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-soft);
    font-size: 14px;
    text-align: center;
    padding: 16px;
    margin: 20px 0 8px;
}

.project-media img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 640px;
    margin: 0 auto;
}

.gallery-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 16px 0
}

.gallery-row .project-media {
    margin: 0;
    aspect-ratio: 4/3;
}

.gallery-row .project-media img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
}

@media (max-width:600px) {
    .gallery-row {
        grid-template-columns: 1fr;
    }
}

.video-embed {
    aspect-ratio: 16/9;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    margin: 20px 0
}

.video-embed iframe,
.video-embed video {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    object-fit: contain;
    background: #000;
}

/* photo/video captions */
.media-figure {
    margin: 0;
}

.media-figure .project-media,
.media-figure .video-embed {
    margin-bottom: 0;
}

.media-figure figcaption {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink-soft);
    text-align: center;
    margin: 8px 0 20px;
    letter-spacing: .02em;
}

.gallery-row .media-figure figcaption {
    margin: 8px 0 0;
}

.project-body {
    padding: 16px 0 40px
}

.project-body p {
    color: var(--ink-soft);
    font-size: 16px;
    max-width: 66ch
}

.back-link {
    display: inline-block;
    font-family: var(--mono);
    margin-top: 8px;
    font-weight: 500;
    font-size: 13px;
    text-decoration: none;
    color: var(--ink-soft)
}

.back-link:hover {
    color: var(--accent)
}

/* GitHub repo link (project pages) */
.repo-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    text-decoration: none;
    color: var(--paper);
    background: var(--ink);
    border: 1px solid var(--ink);
    padding: 9px 16px;
    border-radius: 999px;
    margin-top: 16px;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.repo-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.repo-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    fill: currentColor;
}

/* CV page */
.cv-header {
    padding: 48px 0 8px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap
}

@media (max-width:600px) {
    .cv-header {
        padding: 32px 0 8px
    }
}

.cv-header p.lead {
    color: var(--ink-soft);
    margin: 6px 0 0
}

.cv-section {
    padding: 28px 0;
    border-top: 1px solid var(--line)
}

.cv-section h2 {
    font-size: 22px
}

.cv-entry {
    margin-bottom: 22px
}

.cv-entry:last-child {
    margin-bottom: 0
}

.cv-entry .row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    align-items: baseline
}

.cv-entry .row strong {
    font-size: 16px;
    font-weight: 600
}

.cv-entry .meta {
    font-family: var(--mono);
    color: var(--ink-soft);
    font-size: 13px;
    white-space: nowrap
}

@media (max-width:480px) {
    .cv-entry .row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

.cv-entry .place {
    color: var(--ink-soft);
    font-size: 14px;
    margin-top: 2px
}

.cv-entry ul {
    color: var(--ink-soft);
    margin: 10px 0 0;
    padding-left: 20px;
    font-size: 15px
}

.cv-entry ul li {
    margin-bottom: 4px
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.chip {
    font-family: var(--mono);
    background: var(--paper-alt);
    border: 1px solid var(--line);
    color: var(--ink-soft);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px
}

/* title + status tag */
.title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.title-row h1,
.title-row h3 {
    margin: 0;
}

.status-tag {
    display: inline-flex;
    align-items: center;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--paper-alt);
    color: var(--ink-soft);
    white-space: nowrap;
}

.status-tag.status-done {
    background: rgba(58, 138, 93, 0.12);
    border-color: #3a8a5d;
    color: #2c6a48;
}

.status-tag.status-wip {
    background: rgba(176, 125, 23, 0.14);
    border-color: #b07d17;
    color: #8f6512;
}

.status-tag.status-paused {
    background: var(--paper-alt);
    border-color: var(--line);
    color: var(--ink-soft);
}

@media (max-width:480px) {
    .title-row {
        align-items: flex-start;
        gap: 8px;
    }
}

/* footer */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 32px 0;
    margin-top: 20px
}

.site-footer .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px
}

.site-footer .small {
    color: var(--ink-soft);
    font-size: 13px
}

.social-links {
    display: flex;
    gap: 16px
}

.social-links a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500
}

.social-links a:hover {
    color: var(--accent)
}