@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500&display=swap');

:root {
    color-scheme: light;
    --paper: #f6f5f2;
    --ink: #252621;
    --muted: #898981;
    --line: #deddd6;
    --accent: #bd6848;
    --subtle-ink: #77776f;
    --soft-ink: #65665f;
    --strong-ink: #4b4c45;
    --faint-ink: #b7b6ae;
    --surface: #e9e7e0;
    --surface-raised: #edebe5;
    --border-soft: #deddd5;
    --field-border: #dcdad2;
    --link: #5d766a;
    --button-text: #f7f6f1;
    --project-surface: rgba(255, 255, 255, .42);
    --nav-surface: rgba(250, 249, 246, .9);
    --nav-border: rgba(221, 219, 211, .85);
    --column: 660px;
    --mono: 'DM Mono', monospace;
    --sans: 'DM Sans', sans-serif;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --paper: #171916;
    --ink: #e7e6df;
    --muted: #a2a49a;
    --line: #393c36;
    --accent: #df9878;
    --subtle-ink: #b5b7ad;
    --soft-ink: #c4c6bc;
    --strong-ink: #e0dfd7;
    --faint-ink: #777a71;
    --surface: #242722;
    --surface-raised: #20231f;
    --border-soft: #3a3d36;
    --field-border: #454840;
    --link: #a5c4b1;
    --button-text: #171916;
    --project-surface: rgba(255, 255, 255, .035);
    --nav-surface: rgba(31, 34, 29, .92);
    --nav-border: rgba(86, 90, 81, .85);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.page-shell { overflow: clip; }

.content-width {
    width: min(var(--column), calc(100% - 48px));
    margin-inline: auto;
}

.utility-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    color: var(--muted);
    font: 10px/1.5 var(--mono);
    letter-spacing: .025em;
}

.utility-row p { margin: 0; }
.utility-row span { color: var(--faint-ink); padding-inline: 3px; }

.utility-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}

.theme-toggle:hover,.theme-toggle:focus-visible { border-color: var(--muted); }
.theme-icon { width: 16px; height: 16px; }
.theme-icon-sun { display: none; }
:root[data-theme="dark"] .theme-icon-sun { display: block; }
:root[data-theme="dark"] .theme-icon-moon { display: none; }

.page-shell > header { padding-top: 28px; }

.intro {
    padding-top: clamp(88px, 13vw, 154px);
    padding-bottom: 126px;
}

.profile-avatar {
    display: block;
    width: 72px;
    height: 72px;
    margin-bottom: 28px;
    border: 1px solid var(--border-soft);
    border-radius: 0;
    object-fit: cover;
}

.intro h1 {
    margin: 0;
    font: 500 clamp(38px, 6vw, 56px)/1.08 'Playfair Display', Georgia, serif;
    letter-spacing: -.045em;
}

.role {
    margin: 10px 0 24px;
    color: var(--subtle-ink);
    font-size: 13px;
}

.role span { padding-inline: 4px; color: var(--faint-ink); }

.intro-copy {
    max-width: 580px;
    margin: 0;
    color: var(--soft-ink);
    font-size: 15px;
    line-height: 1.85;
}

.contact-shortcut {
    display: inline-flex;
    gap: 17px;
    align-items: center;
    margin-top: 25px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    font-size: 12px;
}

.contact-shortcut span { color: var(--accent); }

.section { margin-bottom: 112px; scroll-margin-top: 40px; }
.section-heading { margin-bottom: 30px; }

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 11px;
    color: var(--strong-ink);
    font: 10px var(--mono);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.eyebrow span { color: var(--muted); font-size: 9px; }

.section-intro {
    max-width: 515px;
    margin: 0;
    color: var(--subtle-ink);
    font-size: 13px;
    line-height: 1.75;
}

.work-section { margin-bottom: 112px; }

/* Selected work: banner cards */
.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: min(880px, calc(100% - 48px));
    margin: 0 auto;
}

.project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-raised);
    color: var(--ink);
    text-decoration: none;
    transition: opacity .25s, transform .25s, border-color .25s;
}

.project-card-media { display: block; aspect-ratio: 2 / 1; overflow: hidden; background: var(--surface); }
.project-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project-card-copy { display: grid; gap: 4px; padding: 16px 18px 18px; }
.project-card-copy strong { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.project-card-copy span { color: var(--subtle-ink); font-size: 12px; }

.project-grid:hover .project-card:not(:hover) { opacity: .55; }
.project-card:hover,.project-card:focus-visible { border-color: var(--muted); transform: translateY(-2px); }
.project-card:hover img { transform: scale(1.03); }

.project-more { margin-top: 28px; }
.project-more .venture-row { border-top: 1px solid var(--line); }
.project-more .venture-copy strong { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }

.view-more {
    display: block;
    margin-top: 18px;
    color: var(--subtle-ink);
    font-size: 12px;
    text-align: right;
    text-decoration: none;
}

.view-more span { padding-left: 4px; transition: padding .2s; }
.view-more:hover { color: var(--ink); }
.view-more:hover span { padding-left: 8px; }

/* Project view */
.project-view {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: var(--paper);
    color: var(--ink);
    overscroll-behavior: contain;
}

.project-view::backdrop { background: var(--paper); }
.project-view[open] { animation: view-in .3s ease; }

@keyframes view-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

.project-view-inner {
    width: min(820px, calc(100% - 48px));
    margin: 0 auto;
    padding: 28px 0 56px;
}

.project-view-back {
    margin-bottom: 44px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: transparent;
    color: var(--subtle-ink);
    font: 11px var(--sans);
    cursor: pointer;
}

.project-view-back:hover,.project-view-back:focus-visible { border-color: var(--muted); color: var(--ink); }

.project-view-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.project-view-head h2 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin: 0;
    font-size: clamp(28px, 5vw, 38px);
    font-weight: 600;
    letter-spacing: -.035em;
    line-height: 1.15;
}

.project-view-head .status-tag { margin-left: 0; font-size: 9px; letter-spacing: .06em; }
.project-view-actions { display: flex; flex-shrink: 0; gap: 8px; }

.round-button {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--muted);
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    font: 14px var(--sans);
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.round-button i { font-size: 12px; }
.round-button:hover,.round-button:focus-visible { background: var(--ink); color: var(--paper); }

.stack-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 30px;
    padding: 0;
    list-style: none;
}

.stack-chips li {
    padding: 4px 11px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface-raised);
    color: var(--strong-ink);
    font-size: 11px;
}

.project-view-banner {
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
    background: var(--surface);
}

.project-view-banner img { display: block; width: 100%; height: auto; }

.project-view-copy { padding: 30px 0 34px; border-bottom: 1px solid var(--line); }
.project-view-copy p { margin: 0 0 16px; color: var(--soft-ink); font-size: 15px; line-height: 1.85; }
.project-view-copy p:last-child { margin-bottom: 0; }
.project-view-source a { color: var(--link); font-size: 12px; text-underline-offset: 3px; }
.project-view-source span { padding-left: 3px; color: var(--muted); }

.project-view-next {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding-top: 24px;
}

.share-status { color: var(--link); font: 10px var(--mono); }

.project-view-next a {
    display: grid;
    gap: 2px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 600;
    text-align: right;
    text-decoration: none;
}

.project-view-next small { color: var(--muted); font-size: 11px; font-weight: 400; }
.project-view-next a:hover { color: var(--accent); }

body.view-open { overflow: hidden; }

.content-sections { padding-top: 0; }

.timeline { margin-top: 39px; }

.timeline-entry {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.entry-date {
    margin: 3px 0 0;
    color: var(--muted);
    font: 10px/1.75 var(--mono);
    letter-spacing: .015em;
}

.timeline-entry:last-child { margin-bottom: 0; }

.entry-content h3 {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.entry-content h3 span,
.entry-meta span { color: var(--muted); }

.entry-meta {
    margin: 0 0 10px !important;
    color: var(--subtle-ink) !important;
    font-size: 11px !important;
}

.entry-content > p {
    margin: 0;
    color: var(--subtle-ink);
    font-size: 12px;
    line-height: 1.8;
}

.skill-list { margin-bottom: 36px; }

.skill-row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 24px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.skill-row:first-child { border-top: 1px solid var(--line); }
.skill-row p { margin: 0; color: var(--subtle-ink); font-size: 12px; line-height: 1.75; }
.skill-row p:first-child { padding-top: 2px; color: var(--strong-ink); font: 10px/1.75 var(--mono); }

.status-tag {
    margin-left: 8px;
    padding: 2px 7px;
    border: 1px solid var(--line);
    border-radius: 20px;
    color: var(--accent);
    font-size: 8px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

a.article-row:hover strong { color: var(--accent); }
.article-list .article-row:not(a) strong { color: var(--subtle-ink); }

.quote-window {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, #000 72%, transparent);
    mask-image: linear-gradient(90deg, #000 72%, transparent);
}

.quote-track {
    display: flex;
    gap: 14px;
    width: 100%;
}

.quote-card {
    position: relative;
    flex: 0 0 74%;
    min-height: 195px;
    margin: 0;
    padding: 28px 30px;
    background: var(--surface-raised);
}

.quote-card > span {
    color: var(--accent);
    font: 38px/.8 'Playfair Display', Georgia, serif;
}

.quote-card p {
    max-width: 340px;
    margin: 15px 0 21px;
    font: italic 18px/1.55 'Playfair Display', Georgia, serif;
}

.quote-card footer { color: var(--muted); font: 9px var(--mono); }
.quote-placeholder { border: 1px dashed var(--field-border); background: transparent; }
.quote-placeholder p { color: var(--muted); }
.quote-card footer span { padding-inline: 4px; color: var(--faint-ink); }

.tool-row {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    align-items: center;
    justify-items: center;
    gap: 8px;
    padding: 4px 0;
}

.tool-row span {
    display: grid;
    place-items: center;
    width: 100%;
    max-width: 44px;
    aspect-ratio: 1;
    border: 1px solid var(--border-soft);
    border-radius: 50%;
    color: var(--subtle-ink);
    font: 9px var(--mono);
}

.tool-row i { font-size: 15px; }

.venture-list { margin-top: 12px; }

.venture-row {
    display: flex;
    align-items: center;
    min-height: 72px;
    gap: 15px;
    margin-inline: -14px;
    padding-inline: 14px;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    transition: background .2s;
}

.venture-row:hover,.venture-row:focus-visible { background: var(--surface-raised); }
.venture-row:hover .external-mark { color: var(--accent); }

.venture-row:first-child { border-top: 1px solid var(--line); }

.venture-icon {
    display: grid;
    flex: 0 0 38px;
    height: 38px;
    place-items: center;
    background: var(--surface);
    color: var(--subtle-ink);
    font-size: 13px;
}

.venture-copy { display: grid; flex: 1; gap: 2px; }
.venture-copy strong { font-size: 12px; font-weight: 600; }
.venture-copy small { color: var(--muted); font-size: 10px; }
.external-mark { color: var(--muted); font-size: 15px; }

.article-list { margin-top: 8px; }

.article-row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    min-height: 40px;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
}

.article-row:first-child { border-top: 1px solid var(--line); }
.article-row time,.article-row > span { color: var(--muted); font: 9px var(--mono); }
.article-row strong { font-size: 11px; font-weight: 500; }
.article-row > span { text-align: right; }

.now-playing-label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 10px;
    color: var(--muted);
    font: 10px var(--mono);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.now-playing-label i { color: #1db954; font-size: 13px; }

.now-playing iframe {
    display: block;
    width: 100%;
    height: 152px;
    border: 0;
    border-radius: 12px;
    background: var(--surface);
}

.photo-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    width: calc(100% + 80px);
    margin: 88px -40px 26px;
}

.photo-photo {
    display: flex;
    align-items: flex-end;
    width: 28%;
    aspect-ratio: .76;
    padding: 10px;
    background-color: #d4d1c5;
    box-shadow: 0 10px 24px rgba(41, 40, 35, .12);
}

.photo-photo + .photo-photo { margin-left: -5%; }
.photo-photo { position: relative; overflow: hidden; }
.photo-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-photo { text-decoration: none; }
.photo-a,.photo-b { z-index: 1; }

.photo-photo .photo-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 20px;
    background: rgba(20, 20, 18, .72);
    color: #fff;
    font: 10px var(--sans);
    transition: background .2s;
}

.photo-link i { color: #1db954; }
a.photo-photo:hover .photo-link,a.photo-photo:focus-visible .photo-link { background: #1db954; }
a.photo-photo:hover .photo-link i,a.photo-photo:focus-visible .photo-link i { color: #fff; }
a.photo-photo:hover,a.photo-photo:focus-visible { z-index: 2; }
.photo-photo span { color: rgba(43, 43, 37, .55); font: 9px var(--mono); }
.photo-a { transform: rotate(-5deg); background: linear-gradient(150deg, #c9c7bc 15%, #a9a99a 55%, #ded5c4); }
.photo-b { transform: rotate(3deg) translateY(-9px); background: linear-gradient(35deg, #a7afa1 10%, #d2c7b5 58%, #b8aa9a); }
.photo-c { transform: rotate(-2deg) translateY(3px); background: linear-gradient(150deg, #d6c6b0 10%, #a4a697 62%, #c4c6b7); }
.photo-d { transform: rotate(5deg) translateY(-7px); background: linear-gradient(35deg, #b2b6aa 10%, #d5c6b8 58%, #aeb0a4); }

.photo-caption {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    font-size: 10px;
}

.photo-caption p { margin: 0; }
.photo-caption a { color: var(--strong-ink); text-decoration: none; }
.photo-caption a span { color: var(--accent); padding-left: 5px; }

.contact-form { margin-top: 32px; }
.contact-form label { display: grid; gap: 8px; color: var(--subtle-ink); font-size: 10px; }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 17px; }

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--field-border);
    border-radius: 0;
    outline: none;
    background: transparent;
    color: var(--ink);
    font: 12px var(--sans);
    padding: 13px 14px;
}

.contact-form input { height: 46px; }
.contact-form textarea { min-height: 125px; resize: vertical; }
.contact-form input::placeholder,.contact-form textarea::placeholder { color: var(--muted); }
.contact-form input:focus,.contact-form textarea:focus { border-color: var(--muted); }

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 17px;
}

.form-actions button {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 13px 16px;
    border: 0;
    background: var(--ink);
    color: var(--button-text);
    font: 11px var(--sans);
    cursor: pointer;
}

.form-actions button span { color: #d49a7e; }
.form-actions button:hover { opacity: .88; }
.form-status { margin: 12px 0 0; color: var(--subtle-ink); font-size: 10px; }
.keyboard-hint { margin: 0; color: var(--muted); font-size: 9px; }
.keyboard-hint span { padding-left: 8px; font-family: var(--mono); }

.social-list { margin-top: 50px; border-top: 1px solid var(--line); }

.social-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 48px;
    gap: 15px;
    border-bottom: 1px solid var(--line);
    color: var(--subtle-ink);
    text-decoration: none;
    font-size: 10px;
}

.social-list a > span:first-child { display: flex; align-items: center; gap: 12px; color: var(--strong-ink); }
.social-list i { width: 13px; color: var(--muted); text-align: center; }
.social-list b { padding-left: 8px; color: var(--muted); font-size: 13px; font-weight: 400; }


.page-footer {
    padding: 96px 0 96px;
    text-align: center;
}

.signature {
    margin: 0 auto 30px;
    color: var(--subtle-ink);
    font: italic 500 35px 'Playfair Display', Georgia, serif;
    letter-spacing: -.08em;
}

.signature span { color: var(--accent); }
.page-footer > p { margin: 4px 0; color: var(--muted); font-size: 9px; }
.page-footer > p span { padding-inline: 4px; color: var(--faint-ink); }
.footer-utility { padding-top: 96px; text-align: left; }

.floating-nav {
    position: fixed;
    z-index: 20;
    left: 50%;
    bottom: 20px;
    display: flex;
    gap: 4px;
    padding: 7px;
    transform: translateX(-50%);
    border: 1px solid var(--nav-border);
    border-radius: 30px;
    background: var(--nav-surface);
    box-shadow: 0 8px 26px rgba(40, 39, 34, .1);
    backdrop-filter: blur(12px);
}

.floating-nav a {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    color: var(--subtle-ink);
    text-decoration: none;
    font-size: 12px;
    transition: background .2s, color .2s;
}

.floating-nav a:hover,.floating-nav a:focus-visible { background: var(--surface); color: var(--ink); }

@media (max-width: 700px) {
    .project-grid { width: calc(100% - 40px); gap: 14px; }
    .project-view-inner { width: calc(100% - 40px); }
    .content-width { width: calc(100% - 40px); }
    .intro { padding-top: 100px; padding-bottom: 100px; }
    .timeline-entry { grid-template-columns: 95px minmax(0, 1fr); gap: 18px; }
    .article-row { grid-template-columns: 95px minmax(0, 1fr) auto; gap: 18px; }
    .quote-card { flex-basis: 82%; }
    .photo-strip { width: calc(100% + 40px); margin-inline: -20px; }
}

@media (max-width: 480px) {
    .project-grid { grid-template-columns: 1fr; width: calc(100% - 36px); }
    .project-view-inner { width: calc(100% - 36px); padding-top: 20px; }
    .project-view-back { margin-bottom: 30px; }
    .project-view-copy p { font-size: 14px; }
    .content-width { width: calc(100% - 36px); }
    .utility-row { font-size: 8px; }
    .utility-actions { gap: 7px; }
    .page-shell > header { padding-top: 20px; }
    .intro { padding-top: 82px; padding-bottom: 83px; }
    .intro-copy { font-size: 14px; }
    .section,.work-section { margin-bottom: 86px; }
    .timeline-entry { grid-template-columns: 1fr; gap: 4px; margin-bottom: 33px; }
    .entry-content h3 { font-size: 12px; }
    .entry-content > p { font-size: 11px; }
    .entry-date { font-size: 8px; }
    .tool-row { grid-template-columns: repeat(5, 1fr); gap: 12px 5px; }
    .quote-card { flex-basis: 88%; padding: 22px; }
    .quote-card p { font-size: 16px; }
    .tool-row span { font-size: 7px; }
    .venture-row { min-height: 70px; }
    .venture-copy small { font-size: 9px; }
    .article-row { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 9px 0; }
    .article-row time { grid-column: 1; grid-row: 1; }
    .article-row strong { grid-column: 1 / -1; grid-row: 2; }
    .article-row > span { grid-column: 2; grid-row: 1; }
    .article-row strong { font-size: 10px; line-height: 1.45; }
    .article-row time,.article-row > span { font-size: 8px; }
    .skill-row { grid-template-columns: 1fr; gap: 2px; }
    .photo-strip { width: calc(100% + 24px); margin: 64px -12px 19px; }
    .photo-photo { padding: 7px; }
    .photo-caption { font-size: 9px; }
    .form-pair { grid-template-columns: 1fr; gap: 14px; }
    .keyboard-hint { max-width: 130px; text-align: right; line-height: 1.6; }
    .social-list a { font-size: 9px; }
    .social-list a > span { min-width: 0; }
    .footer-utility { padding-top: 72px; }
    .venture-row { margin-inline: -10px; padding-inline: 10px; }
    .floating-nav { bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,*::before,*::after { transition-duration: .01ms !important; }
}

@media print {
    body { background: white; }
    .floating-nav { display: none; }
}
