:root {
    color-scheme: dark;
    --bg: #161616;
    --text: #e4e4e2;
    --muted: #8e8e8b;
    --rule: #2b2b2b;
    --accent: #ffe768;
}

::selection {
    background: var(--accent);
    color: #161616;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

main {
    max-width: 620px;
    margin: 0 auto;
    padding: 96px 20px 64px;
}

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

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

h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.role {
    margin: 2px 0 0;
    color: var(--muted);
}

p { margin: 0 0 1em; }

.intro { margin-top: 40px; }

h2 {
    scroll-margin-top: 32px;
    margin: 56px 0 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.work li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--rule);
}

.work li:first-child { border-top: 1px solid var(--rule); }

@media (min-width: 521px) {
    .work a { white-space: nowrap; }
}

.work span { color: var(--muted); text-align: right; }

.links li { display: inline; }

.links li + li::before {
    content: " / ";
    color: var(--muted);
}

.back {
    display: inline-block;
    margin-bottom: 40px;
    font-size: 15px;
    color: var(--muted);
}

.shots {
    display: flex;
    gap: 12px;
    margin: 40px 0 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
}

.shots a {
    flex: 0 0 auto;
    scroll-snap-align: start;
    cursor: zoom-in;
}

.shots img {
    display: block;
    width: 150px;
    height: auto;
    border-radius: 6px;
}

.caption {
    margin-top: 6px;
    font-size: 14px;
    color: var(--muted);
}

.video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 900 / 566;
    border: 1px solid var(--rule);
    border-radius: 6px;
    background: #1f1f1f;
}

.video.portrait {
    max-width: 300px;
    aspect-ratio: 600 / 1300;
}

.teaser {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.teaser-text { flex: 1; }

.teaser-text p:last-child { margin-bottom: 0; }

.teaser .clip {
    flex: 0 0 140px;
    width: 140px;
}

@media (max-width: 520px) {
    .teaser { flex-direction: column; gap: 16px; }
    .teaser .clip { width: 160px; flex-basis: auto; }
}

.thread {
    margin-top: 40px;
    border-left: 1px solid var(--rule);
    padding-left: 20px;
}

.post + .post { margin-top: 40px; }

.post time {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    color: var(--muted);
}

.post .video { margin-top: 12px; }

details.code {
    margin-top: 8px;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}

details.code summary {
    cursor: pointer;
    padding: 10px 0;
    list-style: none;
}

details.code summary::-webkit-details-marker { display: none; }

details.code summary::before {
    content: "+ ";
    color: var(--accent);
}

details.code summary:hover { color: var(--accent); }

details.code[open] summary::before { content: "- "; }

details.code .caption { margin: 0 0 12px; }

details.code pre {
    margin: 0 0 16px;
    max-height: 70vh;
    overflow: auto;
    border: 1px solid var(--rule);
    border-radius: 6px;
}

details.code pre code.hljs {
    padding: 14px 16px;
    font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    background: #1c1c1c;
}

footer {
    margin-top: 72px;
    font-size: 14px;
    color: var(--muted);
}

@media (max-width: 520px) {
    main { padding-top: 56px; }
    .work li { flex-direction: column; gap: 0; }
    .work span { text-align: left; font-size: 15px; }
}
