:root {
    color-scheme: light;
    --bg: #f4f4f4;
    --fg: #202020;
    --muted: #656565;
    --line: #ccc;
    --soft: #e9e9e9;
    --font-sans: -apple-system, BlinkMacSystemFont, 'PingFang TC', 'PingFang SC', 'Hiragino Sans', 'Noto Sans TC', 'Noto Sans CJK TC', 'Microsoft JhengHei UI', 'Microsoft JhengHei', 'Segoe UI', sans-serif
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 35px
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.9;
    -webkit-font-smoothing: antialiased;
    transition: background .2s, color .2s
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #111111;
    --fg: #ededed;
    --muted: #aaa;
    --line: #444;
    --soft: #252525
}

a {
    color: inherit;
    text-decoration: none
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--fg);
    outline-offset: 6px
}

a:hover {
    color: var(--muted)
}

button {
    font: inherit;
    color: inherit
}

.wrap {
    max-width: 1040px;
    margin: auto;
    padding: 0 34px
}

.header {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--fg)
}

.identity {
    display: flex;
    gap: 13px;
    align-items: center
}

.avatar {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(1)
}

.handle,
.micro {
    font-family: var(--font-sans);
    font-size: 11px;
    letter-spacing: .14em
}

.nav {
    display: flex;
    gap: 30px;
    font-size: 14px
}

.nav a {
    position: relative
}

.nav a:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    height: 1px;
    background: var(--fg);
    width: 0;
    transition: width .2s
}

.nav a:hover:after {
    width: 100%
}

.hero {
    padding: 108px 0 60px
}

.eyebrow {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .18em;
    display: flex;
    align-items: center;
    gap: 12px
}

.eyebrow:before {
    content: '';
    width: 26px;
    height: 1px;
    background: var(--muted)
}

.hero-main {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: center;
    margin: 32px 0 36px
}

h1 {
    font-family: var(--font-sans);
    font-size: clamp(44px, 5.7vw, 72px);
    letter-spacing: .04em;
    line-height: 1.3;
    font-weight: 400;
    margin: 0 0 18px
}

.roman {
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: .24em;
    color: var(--muted)
}

.seal {
    border: 1px solid var(--line);
    border-radius: 50%;
    width: 140px;
    height: 140px;
    display: grid;
    place-items: center;
    flex-shrink: 0
}

.seal img {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
    filter: grayscale(1)
}

.intro {
    font-family: var(--font-sans);
    font-size: 22px;
    letter-spacing: .06em;
    margin: 0 0 8px
}

.intro-sentence {
    margin: 0;
    overflow-wrap: anywhere;
}

.intro-source {
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    letter-spacing: .03em;
}

.intro-source cite {
    font-style: normal;
}

.sub {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
    max-width: 560px
}

.hero-links {
    display: flex;
    gap: 28px;
    margin: 36px 0 56px;
    font-size: 13px
}

.text-link {
    border-bottom: 1px solid var(--fg);
    padding-bottom: 5px;
    display: inline-flex;
    gap: 30px;
    align-items: center
}

.quiet {
    border-color: var(--line)
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    font-size: 12px;
    color: var(--muted)
}

.jp {
    letter-spacing: .12em
}

.cursor {
    display: inline-block;
    height: 15px;
    border-right: 1px solid;
    margin-left: 6px;
    vertical-align: -3px
}

.section {
    border-top: 1px solid var(--line);
    padding: 58px 0 62px;
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 36px
}

.section-title .micro {
    color: var(--muted);
    font-size: 10px
}

h2 {
    font-family: var(--font-sans);
    font-size: 25px;
    letter-spacing: .12em;
    font-weight: 400;
    margin: 10px 0 2px
}

.section-title p {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: .08em;
    margin: 0
}

.about-copy {
    font-family: var(--font-sans);
    font-size: 19px;
    line-height: 2.05;
    margin: 3px 0 20px
}

.body-copy {
    font-size: 14px;
    line-height: 2.1;
    color: var(--muted);
    margin: 0
}

.tags {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 26px
}

.tags span {
    font-size: 11px;
    padding: 3px 10px;
    border: 1px solid var(--line)
}

.interest {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    column-gap: 16px;
    border-bottom: 1px solid var(--line);
    padding: 22px 0
}

.interest:first-child {
    padding-top: 0
}

.interest:last-child {
    border-bottom: 0;
    padding-bottom: 0
}

.num {
    font-family: var(--font-sans);
    font-size: 11px;
    color: var(--muted);
    padding-top: 6px
}

h3 {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 20px;
    letter-spacing: .04em;
    margin: 0 0 7px
}

.interest p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.9;
    margin: 0;
    max-width: 540px
}

.interest .arrow {
    font-size: 19px;
    transition: transform .2s
}

.interest:hover .arrow {
    transform: translate(3px, -3px)
}

.interest .meta {
    font-family: var(--font-sans);
    letter-spacing: .05em;
    font-size: 10px;
    margin-top: 12px
}

.contact-lead {
    font-family: var(--font-sans);
    font-size: 26px;
    letter-spacing: .1em;
    margin: 0 0 22px
}

.email {
    font-family: var(--font-sans);
    font-size: clamp(16px, 2.4vw, 25px);
    display: flex;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--fg);
    padding: 0 0 16px
}

.socials {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
    margin-top: 24px;
    font-family: var(--font-sans);
    font-size: 12px
}

.socials a span {
    margin-left: 12px
}

.footer {
    border-top: 1px solid var(--fg);
    padding: 25px 0 35px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .05em
}

.theme {
    position: fixed;
    bottom: 24px;
    right: 24px;
    border: 1px solid var(--line);
    background: var(--bg);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 2px 12px #00000008
}

.theme svg {
    width: 18px;
    height: 18px;
    fill: currentColor
}

.skip {
    position: absolute;
    left: 20px;
    top: -80px;
    background: var(--bg);
    padding: 10px;
    z-index: 3
}

.skip:focus {
    top: 10px
}

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

@media(max-width:650px) {
    .wrap {
        padding: 0 24px
    }

    .header {
        height: 82px
    }

    .handle {
        display: none
    }

    .nav {
        gap: 19px;
        font-size: 12px
    }

    .hero {
        padding: 67px 0 40px
    }

    .hero-main {
        gap: 16px;
        margin-top: 30px
    }

    .seal {
        width: 76px;
        height: 76px
    }

    .seal img {
        width: 62px;
        height: 62px
    }

    h1 {
        font-size: 36px;
        letter-spacing: .04em
    }

    .roman {
        font-size: 9px;
        letter-spacing: .12em
    }

    .intro {
        font-size: 19px
    }

    .sub {
        font-size: 13px
    }

    .hero-links {
        margin: 28px 0 43px;
        gap: 24px
    }

    .hero-bottom {
        font-size: 10px
    }

    .hero-bottom .micro {
        font-size: 9px
    }

    .section {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 38px 0 42px
    }

    .section-title {
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 13px;
        align-items: center
    }

    .section-title .micro {
        grid-row: 1 / 3
    }

    h2 {
        font-size: 23px;
        margin: 0
    }

    .section-title p {
        grid-column: 2
    }

    .about-copy {
        font-size: 18px
    }

    .interest {
        column-gap: 10px
    }

    .footer {
        flex-direction: column;
        gap: 6px;
        padding-bottom: 80px
    }

    .theme {
        right: 18px;
        bottom: 18px
    }

    .contact-lead {
        font-size: 24px
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    * {
        transition: none !important
    }
}

.hero-main {
    margin-top: 0
}

.hero {
    padding-bottom: 72px
}

.mbti-content {
    min-width: 0
}

.report-date {
    font: 11px var(--font-sans);
    color: var(--muted);
    letter-spacing: .1em;
    margin: 18px 0 24px
}

.type-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 30px
}

.type-summary>div {
    border-top: 1px solid var(--line);
    padding-top: 12px
}

.type-summary span {
    display: block;
    font: 10px var(--font-sans);
    color: var(--muted)
}

.type-summary strong {
    display: block;
    font: 30px var(--font-sans);
    letter-spacing: .05em;
    margin-top: 8px
}

.score-wrap {
    overflow-x: auto
}

.scores {
    border-collapse: collapse;
    width: 100%;
    font: 13px var(--font-sans)
}

.scores caption {
    text-align: left;
    font-family: var(--font-sans);
    font-size: 15px;
    padding-bottom: 12px
}

.scores th,
.scores td {
    text-align: right;
    border-bottom: 1px solid var(--line);
    padding: 12px 6px;
    white-space: nowrap
}

.scores th:first-child {
    text-align: left
}

.scores thead th {
    font-weight: 400;
    color: var(--muted);
    font-size: 11px
}

.scores td:nth-child(6) {
    font-weight: bold
}

.score-key {
    font: 11px/1.9 var(--font-sans);
    color: var(--muted);
    margin: 18px 0 24px
}

.mbti-content>.text-link {
    font-size: 12px
}

@media(max-width:650px) {
    .hero {
        padding-bottom: 48px
    }

    .type-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 16px
    }

    .scores th,
    .scores td {
        padding: 11px 4px;
        font-size: 12px
    }
}

.scores,
.type-summary strong {
    font-variant-numeric: tabular-nums;
}
