@font-face {
  font-family: 'Pretendard Variable';
  src: url('/assets/fonts/PretendardVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f4f9fa;
  --ink: #111317;
  --muted: #505b70;
  --accent: #007a86;
  --line: #d4e0e5;
  --rule: url('/assets/brand/ink-rule-ink.webp');
  --rule-muted: url('/assets/brand/ink-rule-muted.webp');
  --arrow: url('/assets/brand/nav-arrow.webp');
  --interests: url('/assets/brand/life-music.webp');
  --greeting: url('/assets/brand/games-begin.webp');
  --theme-icon: url('/assets/brand/icon-moon.webp');
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --paper: #181f22;
  --ink: #f4f7f8;
  --muted: #aeb9c4;
  --accent: #5ee4ef;
  --line: #3b4a52;
  --rule: url('/assets/brand/ink-rule-ink-dark.webp');
  --rule-muted: url('/assets/brand/ink-rule-muted-dark.webp');
  --arrow: url('/assets/brand/nav-arrow-dark.webp');
  --interests: url('/assets/brand/life-music-dark.webp');
  --greeting: url('/assets/brand/games-begin-dark.webp');
  --theme-icon: url('/assets/brand/icon-sun-dark.webp');
}
* { box-sizing: border-box; }
html { background: var(--paper); scrollbar-color: var(--muted) var(--paper); }
body { margin: 0; color: var(--ink); font-family: 'Pretendard Variable', 'Apple SD Gothic Neo', sans-serif; -webkit-font-smoothing: antialiased; }
::selection { color: #111317; background: #d7fa00; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 7px; }
.skip-link { position: fixed; top: 12px; left: 12px; padding: 14px; background: var(--paper); z-index: 5; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.page { position: relative; max-width: 1168px; margin: 0 auto; padding: 0 48px; }
.paint { position: absolute; inset: 0 0 auto; height: 580px; overflow: hidden; pointer-events: none; }
.paint-lime { position: absolute; width: 235px; top: -92px; left: -83px; }
.paint-pink { position: absolute; width: 180px; top: 36px; right: -90px; }
.topbar { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.address { font-size: 16px; font-weight: 750; letter-spacing: -0.02em; }
.theme-toggle { border: 0; background: transparent; color: var(--ink); display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 8px; margin-right: -8px; cursor: pointer; }
.theme-icon { width: 26px; height: 26px; background: var(--theme-icon) center / contain no-repeat; }
.welcome { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; padding: 32px 0 64px; min-height: 490px; }
.brand-mark { position: relative; width: min(100%, 440px); margin-left: -12px; }
:root[data-theme='dark'] .brand-mark::after {
  /* Reuse the blog's exact subtitle selection, not an illustrated CSS contour. */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: url('/assets/brand/logo.webp') center / 100% 100% no-repeat;
  clip-path: polygon(47.44% 66.34%,59.49% 66.34%,59.49% 67.32%,74.23% 67.32%,74.23% 64.39%,76.92% 64.39%,76.92% 67.32%,82.95% 67.32%,82.95% 79.02%,59.49% 79.02%,59.49% 82.93%,47.44% 82.93%);
  filter: grayscale(1) contrast(1000%) invert(1); mix-blend-mode: screen;
}
h1 { margin: 25px 0 18px; font-size: clamp(32px, 3.4vw, 46px); font-weight: 900; line-height: 1.24; letter-spacing: -0.04em; word-break: keep-all; }
.intro-copy { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.7; word-break: keep-all; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.greeting { width: 300px; max-width: 100%; aspect-ratio: 237 / 76; margin: 30px 0 0; background: var(--greeting) center / contain no-repeat; }
.character-scene { position: relative; align-self: stretch; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 18px; }
.interests { position: absolute; top: -12px; right: 4px; width: 154px; aspect-ratio: 154 / 162; background: var(--interests) center / contain no-repeat; }
.mascot { width: 300px; transform: rotate(-8deg); }
.sites { scroll-margin-top: 24px; }
.site-list { list-style: none; padding: 0; margin: 0; position: relative; }
.site-list::before, .site-list li::after { content: ''; display: block; height: 4px; border: 0 solid transparent; border-image: var(--rule) 1 64 fill / 0.125px 8px / 0 round stretch; pointer-events: none; }
.site-list li::after { height: 2px; border-image-source: var(--rule-muted); }
.site-link { display: grid; grid-template-columns: 1fr 1.8fr 40px; gap: 28px; align-items: center; padding: 30px 8px; text-decoration: none; }
.site-name { position: relative; justify-self: start; font-size: 32px; font-weight: 850; line-height: 1.3; letter-spacing: -0.03em; }
.site-name::after { content: ''; position: absolute; bottom: -9px; left: -3px; right: -6px; height: 10px; background: url('/assets/brand/underline-cyan.webp') center / 100% 100% no-repeat; opacity: 0; transform: scaleX(0.8); transform-origin: left; transition: opacity 160ms ease, transform 160ms var(--ease-out); }
.site-detail { display: grid; gap: 7px; min-width: 0; }
.site-description { font-size: 17px; line-height: 1.6; word-break: keep-all; }
.site-domain { color: var(--muted); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.site-arrow { width: 40px; height: 28px; background: var(--arrow) center / contain no-repeat; transition: transform 160ms var(--ease-out); }
.site-link:focus-visible .site-name::after { opacity: 1; transform: none; transition: none; }
.site-link:active .site-arrow { transform: translateX(3px) scale(0.94); }
.theme-toggle:active .theme-icon { transform: scale(0.94); }
footer { display: flex; justify-content: flex-end; gap: 24px; padding: 30px 0 36px; color: var(--muted); font-size: 13px; line-height: 1.6; }
@media (hover: hover) and (pointer: fine) {
  .site-link:hover .site-name::after { opacity: 1; transform: none; }
  .site-link:hover .site-arrow { transform: translateX(6px); }
  .theme-toggle:hover { color: var(--accent); }
}
@media (max-width: 900px) {
  .page { padding-inline: 32px; }
  .welcome { gap: 24px; padding-top: 20px; }
  .interests { width: 140px; right: 0; }
  .mascot { width: min(100%, 270px); }
  .site-link { grid-template-columns: 1fr 2fr 32px; gap: 20px; }
  .site-arrow { width: 32px; }
}
@media (max-width: 600px) {
  .page { padding-inline: 24px; }
  .topbar { min-height: 76px; }
  .paint-lime { width: 160px; left: -83px; top: -73px; }
  .paint-pink { width: 120px; right: -75px; top: 75px; }
  .welcome { display: block; position: relative; padding: 20px 0 32px; min-height: 0; }
  .brand-mark { width: min(100%, 320px); margin-left: -8px; }
  h1 { margin-top: 34px; font-size: 34px; max-width: 240px; }
  .intro-copy { font-size: 16px; }
  .greeting { width: 237px; max-width: 100%; margin-top: 24px; }
  .character-scene { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 16px; padding: 0 8px; }
  .mascot { width: 145px; transform: rotate(-8deg); }
  .interests { display: block; position: static; width: 105px; flex-shrink: 0; }
  .site-link { grid-template-columns: minmax(0, 1fr) 32px; gap: 14px 16px; padding: 26px 0; }
  .site-name { font-size: 28px; }
  .site-detail { grid-row: 2; grid-column: 1 / -1; gap: 5px; }
  .site-description { font-size: 16px; }
  .site-arrow { grid-row: 1; grid-column: 2; }
  footer { padding-top: 24px; gap: 12px; font-size: 12px; }
}
@media (max-width: 374px) {
  .page { padding-inline: 20px; }
  h1 { font-size: 30px; }
  .character-scene { gap: 16px; }
  .mascot { width: 112px; }
  footer { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .mascot, .site-arrow, .site-link:hover .site-arrow, .site-link:active .site-arrow, .theme-toggle:active .theme-icon { transform: none; }
}
