:root.home-page {
    color-scheme: light;
    scroll-behavior: smooth;
    --n-0: #fff;
    --n-50: #f7f8fa;
    --n-100: #eef0f4;
    --n-200: #e3e6ec;
    --n-300: #c8cdd8;
    --n-400: #868fa0;
    --n-500: #697285;
    --n-600: #4b5464;
    --n-700: #343b49;
    --n-800: #222833;
    --n-900: #11141b;
    --color-bg: #fff;
    --color-accent: #1e4bd8;
    --color-accent-hover: #16379e;
    --color-accent-subtle: #e8edfd;
    --color-on-accent: #fff;
    --rank-gold: #7a5200;
    --rank-silver: #4a5c73;
    --rank-bronze: #8a4a00;
    --rank-plat: #00695a;
    --rank-special: #5b35c9;
    --rank-muted: var(--n-400);
    --home-text: #203039;
    --home-muted: #566b76;
    --home-accent: #175c88;
    --home-line: #d6e1e6;
    --home-width: 1180px;
    --home-gutter: 40px;
}

.hero, .home-main {
    width: min(var(--home-width),calc(100% - var(--home-gutter)*2));
    margin-inline: auto;
    color: var(--home-text);
    line-height: 1.65;
}
.hero { padding-top: 64px; }
.hero__intro { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.hero__name {
    font-family: var(--font-display);
    font-size: clamp(38px,4.6vw,68px);
    font-weight: var(--fw-bold);
    line-height: 1;
    letter-spacing: -.035em;
    color: var(--color-text);
}
.hero__media { margin-top: 42px; }
.hero__image { display: block; width: 100%; height: auto; aspect-ratio: 2.5; object-fit: cover; object-position: 50% 70%; }
.home-socials { display: flex; flex-wrap: wrap; gap: 22px; font-size: 14px; line-height: 1.5; }
.home-socials a { color: var(--home-accent); }
.home-main h2 { font-size: 31px; font-weight: 600; line-height: 1.2; letter-spacing: -.03em; }
.home-main a { text-underline-offset: 4px; text-decoration-thickness: 1px; }
.home-more { color: var(--home-accent); font-size: 14px; text-decoration: underline; }
.home-section { padding-top: 88px; }
.home-section__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 25px; }
.home-lede { margin-top: 14px; color: var(--home-muted); }

.home-about { display: grid; grid-template-columns: 1fr 3fr; gap: 50px; margin-top: 72px; padding: 36px 40px; border-radius: 12px; background: #eef3f5; }
.home-facts { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 30px; }
.home-facts dt { color: var(--home-muted); font-size: 14px; line-height: 1.6; margin-bottom: 6px; }
.home-facts dd { font-size: 17px; line-height: 1.5; }
.home-facts dd span { display: block; color: var(--home-muted); font-size: 14px; }
.home-judges { display: flex; flex-direction: column; gap: 8px; margin-top: 34px; list-style: none; }
.judge-profile { display: grid; grid-template-columns: 125px 175px minmax(0,1fr); gap: 14px; align-items: center; font-size: 14px; line-height: 1.6; text-decoration: none; }
.judge-platform { color: var(--home-text); }
.judge-extra { margin-inline-start: 18px; color: var(--home-muted); }
.judge-max { color: var(--judge-tone,var(--home-muted)); font-weight: 600; }
.judge-profile:hover { text-decoration: none; }
.judge-profile:hover .judge-platform { text-decoration: underline; }
.judge-rating { justify-self: start; padding: 2px 7px; border: 1px solid currentColor; border-radius: 3px; font-weight: 600; white-space: nowrap; color: var(--judge-tone,var(--home-muted)); }
.judge-updated { color: var(--home-muted); font-size: 12px; margin-top: 10px; }
.judge-updated:empty { display: none; }
.home-about__content>.home-more { display: inline-block; margin-top: 24px; }

.judge-rating--unrated { --judge-tone: var(--home-muted); }
.judge-rating--bronze { --judge-tone: #8a4a00; }
.judge-rating--silver { --judge-tone: #4a5c73; }
.judge-rating--gold { --judge-tone: #7a5200; }
.judge-rating--platinum { --judge-tone: #00695a; }
.judge-rating--diamond { --judge-tone: #246c8b; }
.judge-rating--ruby { --judge-tone: #b8003d; }
.judge-rating--master { --judge-tone: #5b35c9; }
.judge-rating--cf-newbie { --judge-tone: #6b7280; }
.judge-rating--cf-pupil { --judge-tone: #116611; }
.judge-rating--cf-specialist { --judge-tone: #0a6e70; }
.judge-rating--cf-expert { --judge-tone: #435da1; }
.judge-rating--cf-cm { --judge-tone: #8a008a; }
.judge-rating--cf-master { --judge-tone: #8a5200; }
.judge-rating--cf-im { --judge-tone: #c2410c; }
.judge-rating--cf-gm, .judge-rating--cf-igm { --judge-tone: #b81c1c; }
.judge-rating--cf-legendary { --judge-tone: #b91c1c; }
.judge-rating--ac-gray { --judge-tone: #6b7280; }
.judge-rating--ac-brown { --judge-tone: #6e3600; }
.judge-rating--ac-green { --judge-tone: #116611; }
.judge-rating--ac-cyan { --judge-tone: #00707c; }
.judge-rating--ac-blue { --judge-tone: #1a41d6; }
.judge-rating--ac-yellow { --judge-tone: #78691b; }
.judge-rating--ac-orange { --judge-tone: #9a4300; }
.judge-rating--ac-red { --judge-tone: #c01818; }

.home-problems { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 56px; align-items: stretch; }
.home-problems__text { padding-block: 32px; }
.home-problems .home-lede { max-width: 46ch; }
.home-problem-list { list-style: none; margin: 32px 0 24px; counter-reset: problem; }
.home-problem-list li { counter-increment: problem; padding-block: 13px; border-top: 1px solid var(--home-line); }
.home-problem-list li:last-child { border-bottom: 1px solid var(--home-line); }
.entry-list__meta { color: var(--home-muted); font-size: 13px; line-height: 1.6; }
.home-problem-list .entry-list__meta { display: flex; gap: 10px; margin-bottom: 5px; }
.home-problem-list .entry-list__meta::before { content: counter(problem,decimal-leading-zero); opacity: .7; font-variant-numeric: tabular-nums; }
.home-problem-list .entry-list__title { color: var(--home-text); font-size: 18px; font-weight: 500; line-height: 1.5; }
.home-problem-list .entry-list__title:hover { color: var(--home-accent); }
.home-notebook img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-post-list { list-style: none; margin-top: 24px; }
.home-post-list li { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 35px; padding-block: 17px; border-bottom: 1px solid var(--home-line); }
.home-post-list .entry-list__meta { font-size: 14px; line-height: 1.7; }
.home-post-list .entry-list__title { color: var(--home-accent); font-weight: 500; text-decoration: underline; }
.home-languages h2 { font-size: 24px; border-bottom: 1px solid var(--home-line); padding-bottom: 12px; }

.home-main .timeline-section { max-width: calc(var(--w-page) - var(--sp-5)*2); margin: 88px auto 0; padding: 0; color: var(--color-text); line-height: var(--lh-normal); }
.home-main .tl-head__title { font-family: var(--font-sans); font-size: var(--fs-100); font-weight: var(--fw-semi); line-height: var(--lh-tight); letter-spacing: .08em; }
.home-footer { margin-top: 72px; }
.home-footer .home-back-to-top { display: inline-block; margin-bottom: 20px; color: var(--home-accent); text-decoration: underline; text-underline-offset: 4px; }

@media(max-width:850px) {
    :root.home-page { --home-gutter: 28px; }
    .hero { padding-top: 48px; }
    .hero__image { aspect-ratio: 2; }
    .home-section { padding-top: 68px; }
    .home-about { grid-template-columns: 1fr; gap: 26px; }
    .home-facts { gap: 24px; }
    .home-problems { gap: 32px; }
}
@media(max-width:650px) {
    :root.home-page { --home-gutter: 22px; }
    .hero, .home-main { font-size: 15px; }
    .hero { padding-top: 40px; }
    .hero__intro { display: block; }
    .hero__intro .home-socials { margin-top: 22px; }
    .hero__media { margin-top: 30px; }
    .hero__image { aspect-ratio: 1.1; object-position: 50% 55%; }
    .home-main h2 { font-size: 27px; }
    .home-section { padding-top: 56px; }
    .home-section__heading { gap: 14px; }
    .home-more { font-size: 13px; }
    .home-about { margin-top: 48px; padding: 28px 22px; }
    .home-facts { grid-template-columns: 1fr; gap: 17px; }
    .home-facts>div { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 16px; }
    .home-facts dt { margin: 0; padding-top: 2px; font-size: 13px; }
    .home-facts dd { font-size: 16px; }
    .home-facts dd span { font-size: 13px; }
    .home-judges { margin-top: 28px; gap: 13px; }
    .judge-profile { grid-template-columns: 80px minmax(0,1fr); gap: 4px 12px; font-size: 13px; }
    .judge-extra { grid-column: 2; margin-inline-start: 0; font-size: 12px; }
    .home-problems { grid-template-columns: minmax(0,1fr); gap: 28px; }
    .home-problems__text { padding-block: 0; }
    .home-notebook img { height: auto; aspect-ratio: 1.4; }
    .home-post-list li { display: flex; flex-direction: column; gap: 5px; padding-block: 16px; }
    .home-post-list li:first-child { padding-top: 0; }
    .home-post-list .entry-list__meta { font-size: 13px; }
    .home-languages h2 { font-size: 24px; }
    .home-main .timeline-section { margin-top: 56px; }
    .home-footer { margin-top: 42px; }
}
@media(prefers-reduced-motion:reduce) {
    :root.home-page { scroll-behavior: auto; }
}
