:root {
  color-scheme: dark;
  --background: #101622;
  --surface: #172131;
  --surface-hover: #1c2b3e;
  --line: #304256;
  --ink: #f0f6ff;
  --muted: #b2c1d3;
  --accent: #b8e8fa;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--ink); font: 16px/1.65 "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
.frame { width: min(1060px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: fixed; z-index: 2; top: .5rem; left: .5rem; padding: .5rem 1rem; color: var(--background); background: var(--accent); transform: translateY(-150%); }
.skip:focus { transform: none; }

.site-header { background: #101622; border-bottom: 1px solid var(--line); }
.header-content, .brand, .site-header nav { display: flex; align-items: center; }
.header-content { min-height: 68px; justify-content: space-between; gap: 14px; }
.brand { gap: 10px; font: 600 14px var(--mono); }
.brand img { border: 1px solid #ffffff40; border-radius: 50%; object-fit: cover; }
.site-header nav { gap: clamp(16px, 4vw, 38px); color: var(--muted); font-size: 14px; font-weight: 650; }
.site-header nav a { padding-block: 12px; }
.site-header nav a:hover, .site-footer a:hover { color: var(--accent); }

.hero { overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 20% 40%, #273e55 0%, #18263a 40%, #111825 80%); }
.hero-content { min-height: 466px; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(26px, 5.5vw, 80px); align-items: center; padding-block: 38px; }
.portrait { position: relative; isolation: isolate; justify-self: center; width: min(100%, 380px); aspect-ratio: 1; display: grid; place-items: center; }
.portrait::before, .portrait::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.portrait::before { inset: 1%; border: 1px solid #b8e8fa3b; background: radial-gradient(ellipse at center, #b8e8fa24, transparent 70%); }
.portrait::after { inset: 7%; border: 1px dashed #b8e8fa70; }
.portrait img { display: block; width: 74%; height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 2px solid #d1f0fb; box-shadow: 0 0 42px #90d7f545, 0 14px 28px #0e172774; }
.intro { min-width: 0; }
h1 { font-size: clamp(50px, 8.1vw, 108px); line-height: 1.1; letter-spacing: -.09em; font-weight: 850; }
.intro-copy { margin-top: 22px; color: var(--muted); font-size: clamp(15px, 1.7vw, 17px); line-height: 1.9; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.button { display: inline-flex; align-items: center; gap: 18px; min-height: 44px; padding: 8px 17px; border: 1px solid transparent; border-radius: 22px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.primary { color: #12202f; background: var(--accent); }
.primary:hover { background: #ddf5ff; }
.secondary { color: var(--accent); border-color: #668396; }
.secondary:hover { background: #b8e8fa19; border-color: var(--accent); }

.section { padding-block: 40px 47px; scroll-margin-top: 12px; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 20px; margin-bottom: 21px; }
h2 { font-size: clamp(28px, 4vw, 39px); line-height: 1.2; letter-spacing: -.055em; }
.text-link { color: var(--accent); font-size: 14px; font-weight: 650; }
.text-link span { margin-left: 4px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.project-status { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.project-status:empty { margin: 0; }
.project-grid { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.project { display: block; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.project-link { display: block; border-radius: inherit; }
.project-link:hover { background: var(--surface-hover); }
.link-list a:hover { border-color: #7ca4bf; background: var(--surface-hover); }
.project-info { display: grid; grid-template-columns: minmax(72px, 104px) minmax(0, 1fr) auto; column-gap: 14px; align-items: center; padding: 14px 18px; overflow-wrap: anywhere; }
.project-info h3 { grid-area: 1 / 2; font-size: 17px; line-height: 1.45; }
.project-info p { grid-column: 2; font-size: 14px; color: var(--muted); }
.project-info .project-type { grid-area: 1 / 1 / 3; justify-self: start; max-width: 100%; padding: 4px 10px; border-radius: 7px; color: var(--accent); background: #273a51; font: 650 12px/1.4 var(--mono); }
.project-arrow { grid-area: 1 / 3 / 3; color: var(--accent); font-size: 19px; }
.project-site, .project-downloads { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 11px 18px; border-top: 1px solid var(--line); }
.download-caption strong { display: block; color: var(--ink); font-size: 14px; }
.release-version { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.project-downloads ul { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; list-style: none; margin: 0; padding: 0; }
.project-downloads li { min-width: 0; }
.project-site a, .project-downloads a { display: inline-flex; align-items: center; gap: 10px; padding: 6px 11px; border: 1px solid #668396; border-radius: 8px; color: var(--accent); font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.project-site a:hover, .project-downloads a:hover { background: #b8e8fa19; border-color: var(--accent); }
.link-list { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.link-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.link-list strong { font: 700 17px var(--mono); }
.link-list a > span { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.link-list .link-arrow { grid-area: 1 / 2 / 3; color: var(--accent); font-size: 19px; }
.link-list .sub-account { grid-template-columns: auto minmax(0, 1fr) auto; }
.sub-account img { border-radius: 50%; object-fit: cover; }
.sub-account .account-handle { display: block; color: var(--muted); font-size: 13px; }
.link-list .sub-account .link-arrow { grid-area: 1 / 3; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-content { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 22px; }

@media (max-width: 760px) {
  .frame { width: calc(100% - 48px); }
  .hero-content { min-height: 370px; grid-template-columns: .8fr 1.2fr; gap: 24px; }
}
@media (max-width: 570px) {
  .frame { width: calc(100% - 36px); }
  .header-content { min-height: 60px; }
  .hero { background: radial-gradient(ellipse at 50% 16%, #283f56 0%, #18263a 43%, #111825 82%); }
  .hero-content { min-height: auto; grid-template-columns: 1fr; gap: 14px; padding-block: 25px 39px; text-align: center; }
  .portrait { width: min(68vw, 254px); }
  h1 { font-size: clamp(48px, 12vw, 64px); }
  .intro-copy { margin-top: 14px; }
  .actions { justify-content: center; margin-top: 19px; }
  .section { padding-block: 28px 35px; }
  .section-head { margin-bottom: 16px; }
  .project-info { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 14px; }
  .project-info .project-type { grid-area: 1 / 1; }
  .project-info h3 { grid-area: 2 / 1; }
  .project-info p { grid-column: 1; }
  .project-arrow { grid-area: 1 / 2 / 4; }
}
@media (max-width: 570px) {
  .link-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
