        :root {
            --text: #111110;
            --text-mid: #3d3d3a;
            --text-secondary: #6e6e68;
            --text-tertiary: #9a9a92;
            --bg: oklch(99.1% .005 91.5);
            --border: #e2e2dc;
            --tag-bg: #f4f4f0;
            --serif: "Instrument Serif", "Georgia", serif;
            --heading: "Lora", "Iowan Old Style", "Times New Roman", serif;
            --sans: "Instrument Sans", -apple-system, system-ui, sans-serif;
            --body: "Lora", "Iowan Old Style", "Times New Roman", serif;
            --lora: "Lora";
            --max-w: 780px;
            --pad: 24px;
            --sun-glow-opacity: 0.01;
            --sun-bounce-opacity: 0.15;
            --sun-video-filter: saturate(0.9) hue-rotate(18deg) brightness(0.96);
        }

        @media (prefers-color-scheme: dark) {
            :root {
                --text: #edede7;
                --text-mid: #c8c8be;
                --text-secondary: #908f88;
                --text-tertiary: #6b6b64;
                --bg: #111110;
                --border: #2c2c28;
                --tag-bg: #1e1e1b;
                --sun-video-filter: saturate(0.64) hue-rotate(14deg) brightness(0.82);
            }
        }

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

        html {
            font-size: 17px;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            scroll-behavior: smooth;
        }

        body {
            font-family: var(--sans);
            background: var(--bg);
            color: var(--text);
            line-height: 1.3;
            position: relative;
            overflow-x: hidden;
        }

        ::selection {
            background: var(--text);
            color: var(--bg);
        }

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

        .wrap {
            max-width: var(--max-w);
            margin: 0 auto;
            padding: 0 var(--pad);
            position: relative;
            z-index: 1;
        }

        #sunlit-bg {
            pointer-events: none;
            position: fixed;
            inset: 0;
            z-index: 0;
            overflow: hidden;
        }

        #sunlit-glow {
            position: absolute;
            inset: 0;
            background: linear-gradient(312deg,
                    color-mix(in srgb, #f8d99c 52%, transparent),
                    color-mix(in srgb, #f2c77c 35%, transparent) 24%,
                    transparent 68%);
            opacity: var(--sun-glow-opacity);
        }

        #sunlit-bounce {
            position: absolute;
            inset: 0;
            background: linear-gradient(356deg,
                    color-mix(in srgb, #f4d7a5 40%, transparent) 0%,
                    transparent 34%,
                    transparent 100%);
            opacity: var(--sun-bounce-opacity);
        }

        .sun-perspective {
            position: absolute;
            top: -28vh;
            right: -4vw;
            width: 84vw;
            height: 128vh;
            opacity: 0.16;
            transform-origin: top right;
            transform-style: preserve-3d;
            transform: matrix3d(0.7500, -0.0625, 0.0000, 0.0008,
                    0.0000, 1.0000, 0.0000, 0.0000,
                    0.0000, 0.0000, 1.0000, 0.0000,
                    0.0000, 0.0000, 0.0000, 1.0000);
        }

        #sun-leaves {
            position: absolute;
            inset: 0;
            opacity: 0;
            overflow: hidden;
            transition: opacity 0.2s ease;
        }

        body.sun-leaves-on #sun-leaves {
            opacity: 0.05;
        }

        #sun-leaves video {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: var(--sun-video-filter);
        }

        #sun-blinds {
            position: relative;
            width: 100%;
            height: 100%;
        }

        #sun-blinds .sun-shutters {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 44px;
        }

        #sun-blinds .sun-shutter,
        #sun-blinds .sun-bar {
            background: color-mix(in srgb, #2f2b26 30%, transparent);
        }

        #sun-blinds .sun-shutter {
            width: 100%;
            height: 34px;
        }

        #sun-blinds .sun-vertical {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: space-around;
        }

        #sun-blinds .sun-bar {
            width: 4px;
            height: 100%;
        }

        #sun-progressive-blur {
            position: absolute;
            inset: 0;
        }

        #sun-progressive-blur>div {
            position: absolute;
            inset: 0;
            backdrop-filter: blur(var(--sun-blur));
            -webkit-backdrop-filter: blur(var(--sun-blur));
            mask-image: linear-gradient(252deg, transparent, transparent var(--sun-stop-1), black var(--sun-stop-2), black);
            -webkit-mask-image: linear-gradient(252deg, transparent, transparent var(--sun-stop-1), black var(--sun-stop-2), black);
        }

        #sun-progressive-blur>div:nth-child(1) {
            --sun-blur: 6px;
            --sun-stop-1: 0%;
            --sun-stop-2: 0%;
        }

        #sun-progressive-blur>div:nth-child(2) {
            --sun-blur: 12px;
            --sun-stop-1: 36%;
            --sun-stop-2: 78%;
        }

        #sun-progressive-blur>div:nth-child(3) {
            --sun-blur: 42px;
            --sun-stop-1: 40%;
            --sun-stop-2: 70%;
        }

        #sun-progressive-blur>div:nth-child(4) {
            --sun-blur: 84px;
            --sun-stop-1: 68%;
            --sun-stop-2: 80%;
        }

        @keyframes sun-billow {
            0% {
                transform: perspective(420px) rotateX(0deg) rotateY(0deg) scale(1);
            }

            25% {
                transform: perspective(420px) rotateX(1deg) rotateY(2deg) scale(1.02);
            }

            50% {
                transform: perspective(420px) rotateX(-3deg) rotateY(-2deg) scale(0.98);
            }

            75% {
                transform: perspective(420px) rotateX(1deg) rotateY(-1deg) scale(1.03);
            }

            100% {
                transform: perspective(420px) rotateX(0deg) rotateY(0deg) scale(1);
            }
        }

        header {
            font-family: var(--body);
            padding: 26px 0 0;
            margin-bottom: 56px;
        }

        header .inner {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .site-brand {
            display: flex;
            align-items: center;
            gap: 12px;
            min-width: 0;
        }

        #photo {
            width: 88px;
            height: 88px;
            border-radius: 99px;
            overflow: hidden;
            flex-shrink: 0;
        }
        .photo-img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }

        .site-name {
            font-family: var(--heading);
            font-size: 2rem;
            font-weight: 600;
            letter-spacing: -0.01em;
            margin-top: 40px;
        }

        .nav-links {
            display: flex;
            align-items: center;
            gap: 20px;
            font-family: var(--sans);
            margin-top: 45px;
        }

        .leaf-toggle {
            border: 0;
            background: none;
            font: inherit;
            font-size: 0.82rem;
            line-height: 1;
            color: var(--text-tertiary);
            padding: 0 0 2px;
            cursor: pointer;
            opacity: 0.72;
            transition: color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
        }

        .leaf-toggle:hover {
            color: var(--text-secondary);
            opacity: 1;
        }

        .leaf-toggle[aria-pressed="true"] {
            color: var(--text);
            opacity: 1;
        }

        .leaf-icon {
            width: 0.9rem;
            height: 0.9rem;
            display: block;
        }

        .nav-links a {
            font-size: 0.84rem;
            color: var(--text-secondary);
            padding-bottom: 2px;
            transition: color 0.15s ease, border-color 0.15s ease;
        }

        .nav-links a:hover {
            color: var(--text);
            border-bottom: 1px solid var(--text-secondary);
        }

        section {
            margin-bottom: 60px;
        }

        .section-block {
            display: grid;
            grid-template-columns: minmax(60px, 90px) minmax(0, 1fr);
            column-gap: 28px;
            align-items: start;
        }

        .section-content {
            min-width: 0;
        }

        .section-label {
            font-family: var(--lora);
            font-size: 1.4rem;
            font-weight: 600;
            color: var(--text);
            line-height: 1.2;
            margin: 2px 0 0;
        }

        .intro-text {
            font-family: var(--serif);
            font-size: 1.5rem;
            line-height: 1.45;
            color: var(--text);
            max-width: 620px;
            font-weight: 400;
            white-space: pre-line;
        }

        .intro-text em {
            font-style: italic;
        }

        .role {
            padding: 13px 0 0 0;
            cursor: pointer;
            transition: background-color 0.16s ease;
        }

        .role-link-card:focus-visible {
            outline: 2px solid var(--text-secondary);
            outline-offset: 6px;
        }

        .role:first-of-type {
            padding-top: 5px;
        }

        .role:hover .role-name,
        .role:focus-within .role-name {
            background: color-mix(in srgb, var(--text) 100%, transparent);
            color: var(--bg);
        }

        .role-header {
            display: grid;
            grid-template-columns: 100px minmax(0, 1fr) auto;
            column-gap: 16px;
            align-items: baseline;
        }

        .role-header--no-arrow {
            grid-template-columns: 100px minmax(0, 1fr);
        }

        .role-left {
            display: flex;
            flex-direction: column;
            gap: 4px;
            min-width: 0;
        }

        .role-name-row {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            gap: 16px;
        }

        .role-name {
            font-family: var(--heading);
            font-size: 1.3rem;
            font-weight: 600;
            letter-spacing: -0.02em;
            line-height: 1.2;
            color: var(--text);
        }

        .role-at {
            font-family: var(--sans);
            font-size: 0.86rem;
            color: var(--text-mid);
            margin-top: 2px;
        }

        .role-years {
            font-family: var(--sans);
            font-size: 0.76rem;
            color: var(--text-tertiary);
            white-space: nowrap;
            flex-shrink: 0;
        }

        .role-arrow {
            display: inline-block;
            flex-shrink: 0;
            font-size: 0.86rem;
            color: var(--text-tertiary);
            transition:
                color 0.16s ease,
                transform 0.16s ease;
        }

        .role:hover .role-arrow,
        .role:focus-within .role-arrow {
            color: var(--text-secondary);
            transform: translateX(1px) translateY(-1px);
        }

        .role-body {
            margin-left: 116px;
            max-height: none;
            overflow: visible;
            opacity: 1;
        }

        .role-content {
            padding-top: 12px;
        }

        .role-earlier {
            cursor: default;
        }

        .role-earlier-content {
            padding-top: 0;
        }

        .role-content h2,
        .role-content h3,
        .role-content h4,
        .role-content h5,
        .role-content h6 {
            font-family: var(--heading);
            font-size: 1rem;
            font-weight: 600;
            letter-spacing: 0.01em;
            text-transform: uppercase;
            color: var(--text);
            margin-top: 24px;
            margin-bottom: 8px;
        }

        .role-content h2:first-child {
            margin-top: 0;
        }

        .role-content p {
            font-family: var(--body);
            font-size: 1rem;
            line-height: 1.7;
            color: var(--text-mid);
        }

        .role-content ul,
        .role-content ol {
            font-family: var(--body);
            font-size: 1rem;
            line-height: 1.7;
            color: var(--text-mid);
            margin: 8px 0;
            padding-left: 1.2rem;
        }

        .role-content li {
            margin-bottom: 6px;
        }

        .role-content img,
        .project-desc img,
        .role-content video,
        .project-desc video,
        .earlier img {
            display: block;
            width: 100%;
            max-width: 100%;
            height: auto;
            margin: 14px 0;
        }

        .earlier video {
            display: block;
            width: 100%;
            max-width: 100%;
            height: auto;
            margin: 14px 0;
        }

        .project-desc h1,
        .project-desc h2,
        .project-desc h3,
        .project-desc h4,
        .project-desc h5,
        .project-desc h6 {
            font-family: var(--heading);
        }

        .project-desc ul,
        .project-desc ol {
            font-family: var(--body);
            font-size: 1rem;
            line-height: 1.7;
            color: var(--text-mid);
            margin: 8px 0;
            padding-left: 1.2em;
        }

        .project-desc li {
            margin-bottom: 6px;
        }

        .project:first-of-type {
            padding-top: 7px;
        }

        .role-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 18px;
        }

        .tag {
            font-family: var(--sans);
            font-size: 0.75rem;
            color: var(--text-secondary);
            background: var(--tag-bg);
            padding: 4px 11px;
            border-radius: 3px;
            letter-spacing: 0.01em;
        }

        .earlier {
            margin-top: 20px;
            padding-top: 20px;
        }

        .earlier p {
            font-family: var(--body);
            font-size: 0.94rem;
            color: var(--text-mid);
            line-height: 1.7;
        }

        .earlier strong {
            font-weight: 500;
            color: var(--text);
        }

        .intro-text a,
        .role-content a,
        .project-desc a,
        .earlier a {
            text-decoration: underline;
            text-decoration-thickness: 1px;
            text-underline-offset: 0.14em;
        }

        .project {
            padding: 14px 0;
            display: block;
        }

        .project-link {
            cursor: pointer;
        }

        .project:hover .project-name {
            background: color-mix(in srgb, var(--text) 100%, transparent);
            color: var(--bg)
        }

        .project-link:focus-visible {
            outline: 2px solid var(--text-secondary);
            outline-offset: 6px;
        }

        .project-name-row {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            gap: 16px;
        }

        .project-name {
            font-family: var(--heading);
            font-size: 1.2rem;
            font-weight: 500;
            letter-spacing: -0.02em;
            line-height: 1.2;
            color: var(--text);
        }

        .project-name-link {
            display: inline-flex;
            align-items: baseline;
            gap: 6px;
            color: inherit;
        }

        .project-name-link:hover {
            color: var(--text-mid);
        }

        .project-out {
            font-size: 0.8rem;
            color: var(--text-tertiary);
        }

        .project-name-link:hover .project-out {
            color: var(--text-secondary);
            transform: translateX(1px) translateY(-1px);
        }

        .project-arrow {
            font-size: 0.86rem;
            color: var(--text-tertiary);
        }

        .project-link:hover .project-name {
            background: color-mix(in srgb, var(--text) 100%, transparent);
            color: var(--bg)
        }

        .project-link:hover .project-arrow {
            color: var(--text-secondary);
            transform: translateX(1px) translateY(-1px);
        }

        .project-sub {
            font-family: var(--sans);
            font-size: 0.8rem;
            color: var(--text-secondary);
            margin-bottom: 8px;
        }

        .project-desc {
            font-family: var(--body);
            font-size: 1rem;
            line-height: 1.7;
            color: var(--text-mid);
        }

        .article-item {
            padding: 13px 0 0 0;
            display: block;
        }

        .article-item:first-of-type {
            padding-top: 5px;
        }

        .article-link {
        }


        .article-link:focus-visible {
            outline: 2px solid var(--text-secondary);
            outline-offset: 6px;
        }

        .article-title-row {
            display: flex;
            align-items: baseline;
            gap: 16px;
        }

        .article-title-row.has-date {
            display: grid;
            grid-template-columns: 100px minmax(0, 1fr) auto;
            column-gap: 16px;
            align-items: baseline;
        }

        .article-date {
            width: 100px;
            flex-shrink: 0;
            font-family: var(--sans);
            font-size: 0.76rem;
            color: var(--text-tertiary);
            white-space: nowrap;
        }

        .article-title {
            font-family: var(--heading);
            font-size: 1.2rem;
            font-weight: 500;
            letter-spacing: -0.02em;
            color: var(--text);
            flex: 1;
        }

        .article-arrow {
            font-size: 0.86rem;
            color: var(--text-tertiary);

        }

        .article-link:hover .article-title {
                        background: color-mix(in srgb, var(--text) 100%, transparent);
                            color: var(--bg)
        }

        .article-link:hover .article-arrow {
            color: var(--text-secondary);
            transform: translateX(1px) translateY(-1px);
        }

        .article-sub {
            font-family: var(--sans);
            font-size: 0.86rem;
            color: var(--text-mid);
        }

        .article-item.has-date .article-sub {
            margin-left: 116px;
        }

        footer {
            padding: 42px 0 62px;
            display: flex;
            justify-content: space-between;
            align-items: baseline;
        }

        footer .email {
            font-family: var(--sans);
            font-size: 0.88rem;
            color: var(--text-secondary);
        }

        footer .email a {
            color: var(--text-secondary);
            border-bottom: 1px solid var(--border);
        }

        footer .email a:hover {
            color: var(--text);
            border-color: var(--text-secondary);
        }

        footer .ext-links {
            display: flex;
            gap: 24px;
        }

        footer .ext-links a {
            font-family: var(--sans);
            font-size: 0.82rem;
            color: var(--text-tertiary);
            border-bottom: 1px solid var(--border);
            transition: color 0.15s;
        }

        footer .ext-links a:hover {
            color: var(--text-secondary);
        }

        /* Detail pages (articles/roles/projects) */
        body.content-page {
            --max-w: 760px;
            line-height: 1.65;
        }

        body.content-page header {
            padding: 34px 0 30px;
            margin-bottom: 52px;
        }

        body.content-page .header-row {
            display: flex;
            justify-content: space-between;
            gap: 16px;
            align-items: center;
        }


        body.content-page .back-link {
            font-size: 0.84rem;
            color: var(--text-secondary);
            border-bottom: 1px solid var(--border);
            padding-bottom: 2px;
            transition: color 0.15s ease, border-color 0.15s ease;
        }

        body.content-page .back-link:hover {
            color: var(--text);
            border-color: var(--text-secondary);
        }

        body.content-page .detail-label {
            text-transform: uppercase;
            letter-spacing: 0.08em;
            font-size: 0.76rem;
            color: var(--text-tertiary);
            font-weight: 600;
            margin-bottom: 12px;
        }

        body.content-page .detail-title {
            font-family: var(--lora);
            font-size: 2.45rem;
            letter-spacing: -0.02em;
            line-height: 1.15;
            margin-bottom: 10px;
            font-weight: 00;
        }

        body.content-page .detail-subtitle {
            color: var(--text-secondary);
            font-size: 1rem;
            margin-bottom: 36px;
        }

        body.content-page .prose {
            color: var(--text-mid);
            max-width: 100%;
            padding-bottom: 80px;
            font-family: var(--body);
            font-size: 1.3em;
        }

        body.content-page .prose::after {
            content: "";
            display: block;
            clear: both;
        }

        body.content-page .prose .side-story {
            float: right;
            width: min(40%, 24rem);
            margin: 0.15em clamp(-220px, -14vw, -32px) 1.1em 1.4em;
            padding: 0.15em 0 0.25em 1em;
            border-left: 1px solid var(--border);
            color: var(--text-mid);
            font-size: 0.95em;
        }

        body.content-page .prose .side-story > :last-child {
            margin-bottom: 0;
        }

        body.content-page .prose .body-story {
            margin: 0.35em 0 1.15em;
            padding: 0.75em 0.9em;
            border: 1px solid var(--border);
            border-radius: 4px;
            background: color-mix(in srgb, white 75%, transparent);
        }

        body.content-page .prose .body-story > :last-child {
            margin-bottom: 0;
        }

        body.content-page .prose .callout {
            margin: 0.35em 0 1.15em;
            padding: 0.78em 0.9em;
            border: 1px solid color-mix(in srgb, var(--border) 86%, var(--text-secondary));
            border-left-width: 3px;
            border-radius: 4px;
            background: color-mix(in srgb, #f7f7f3 88%, transparent);
            color: var(--text);
        }

        body.content-page .prose .callout > :last-child {
            margin-bottom: 0;
        }

        body.content-page .prose blockquote {
            margin: 0.35em 0 1.15em;
            padding: 0.1em 0 0.1em 0.9em;
            border-left: 2px solid var(--border);
            color: var(--text-secondary);
        }

        body.content-page .prose blockquote > :last-child {
            margin-bottom: 0;
        }

        body.content-page .prose p,
        body.content-page .prose ul,
        body.content-page .prose ol,
        body.content-page .prose blockquote,
        body.content-page .prose pre {
            margin-bottom: 1.05em;
        }

        body.content-page .prose h1 {
            margin: 1.7em 0 0.55em;
            font-family: var(--heading);
            font-size: 1.36rem;
            font-weight: 600;
            letter-spacing: -0.01em;
            color: var(--text);
        }

        body.content-page .prose h2,
        body.content-page .prose h3,
        body.content-page .prose h4,
        body.content-page .prose h5,
        body.content-page .prose h6 {
            margin: 1.6em 0 0.45em;
            font-family: var(--heading);
            font-size: 1.2em;
            font-weight: 600;
            color: var(--text);
        }

        body.content-page .prose ul,
        body.content-page .prose ol {
            padding-left: 1.2em;
        }

        body.content-page .prose li {
            margin-bottom: 0.35em;
        }

        body.content-page .prose img,
        body.content-page .prose video {
            display: block;
            width: 100%;
            max-width: 100%;
            height: auto;
            margin: 14px 0;
        }

        body.content-page .prose a {
            text-decoration: underline;
            text-decoration-thickness: 1px;
            text-underline-offset: 0.14em;
        }

        body.content-page .prose code {
            font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
            font-size: 0.87em;
        }

        @media (max-width: 700px) {
            body.content-page header {
                margin-bottom: 40px;
            }

            body.content-page .detail-title {
                font-size: 2rem;
            }

            body.content-page .prose .side-story {
                float: none;
                width: 100%;
                margin: 0.4em 0 1.1em;
                padding: 0.15em 0 0.25em;
                border-left: 0;
                border-top: 1px solid var(--border);
            }
        }

        @media (max-width: 600px) {
            html {
                font-size: 16px;
            }

            header {
                margin-bottom: 42px;
            }

            .nav-links {
                gap: 18px;
            }


            #photo {
                width: 88px;
                height: 88px;
                border-radius: 99px;
            }

            section {
                margin-bottom: 52px;
            }

            .section-block {
                grid-template-columns: 1fr;
                row-gap: 14px;
            }

            .section-label {
                font-size: 1.14rem;
            }

            .article-title-row {
                gap: 12px;
            }

            .article-title-row.has-date {
                grid-template-columns: 98px minmax(0, 1fr) auto;
                column-gap: 12px;
            }

            .article-date {
                width: 98px;
                font-size: 0.78rem;
            }

            .article-item.has-date .article-sub {
                margin-left: 110px;
            }

            .role-header {
                grid-template-columns: 98px minmax(0, 1fr) auto;
                column-gap: 12px;
            }

            .role-header--no-arrow {
                grid-template-columns: 98px minmax(0, 1fr);
            }

            .role-years {
                font-size: 0.78rem;
            }

            .role-body {
                margin-left: 110px;
            }

            footer {
                flex-direction: column;
                gap: 16px;
            }

            .sun-perspective {
                width: 120vw;
                right: -28vw;
                opacity: 0.1;
            }

            #sun-blinds .sun-shutters {
                gap: 30px;
            }
        }

        @media (prefers-color-scheme: dark) {
            #sunlit-glow {
                opacity: 0.16;
                background: linear-gradient(312deg,
                        color-mix(in srgb, #37537a 52%, transparent),
                        color-mix(in srgb, #2f4467 40%, transparent) 28%,
                        transparent 72%);
            }

            #sunlit-bounce {
                opacity: 0.18;
                background: linear-gradient(356deg,
                        color-mix(in srgb, #21314c 40%, transparent) 0%,
                        transparent 34%,
                        transparent 100%);
            }

            .sun-perspective {
                opacity: 0.24;
            }

            body.sun-leaves-on #sun-leaves {
                opacity: 0.3;
            }

            #sun-blinds .sun-shutter,
            #sun-blinds .sun-bar {
                background: color-mix(in srgb, #090d14 82%, transparent);
            }
        }
