@font-face {
  font-family: 'Pretendard Variable';
  src: url('/assets/fonts/PretendardVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 14px/1.625 var(--font); letter-spacing: var(--tracking); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; border: 0; cursor: pointer; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; }
main:focus { outline: none; }
[hidden] { display: none !important; }
.wrap { width: min(672px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 50; padding: 12px 20px; border-radius: 8px; background: var(--ink); color: var(--on-ink); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.site-header { background: var(--canvas); }
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 52px; }
.brand { flex-shrink: 0; margin-right: auto; font-size: 14px; font-weight: 600; line-height: 20px; }
.brand-dot { font-size: 1.5em; line-height: 0; }
.language-link { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; font-size: 12px; color: var(--ink-muted); }
.language-link:hover { color: var(--ink); }
.theme-toggle { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; padding: 0; border-radius: var(--radius-pill); background: transparent; color: var(--ink-muted); }
.theme-toggle:hover { background: var(--surface-soft); color: var(--ink); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-sun, :root[data-theme="dark"] .theme-moon { display: none; }
:root[data-theme="dark"] .theme-sun { display: block; }
.home-page { width: 100%; }
.home-hero { padding: 128px 24px; text-align: center; }
.hero-wordmark { margin: 0 0 48px; font-size: 112px; font-weight: 650; line-height: 80px; letter-spacing: -.065em; }
.home-hero h1 { margin: 0 auto; font-size: 30px; font-weight: 500; line-height: 36px; letter-spacing: -.4px; word-break: keep-all; }
.home-page > .section { margin: 0; padding: 48px 24px; border-top: 1px solid var(--line); }
.section-inner { width: min(672px, 100%); }
.section-label { margin: 0 0 20px; color: var(--ink-muted); font-size: 12px; font-weight: 400; line-height: 16px; letter-spacing: 1.5px; text-transform: uppercase; }
.project-list { margin-inline: -8px; }
.project-row { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 57px; padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 6px; transition: background var(--duration-feedback); }
.project-row:hover { background: var(--surface-soft); }
.app-icon { display: block; flex-shrink: 0; width: 36px; height: 36px; border-radius: 8px; background: var(--surface-soft); object-fit: cover; }
.project-row .app-icon { width: 28px; height: 28px; border-radius: 6px; }
.project-row-content { flex: 1; min-width: 0; line-height: 20px; }
.project-row-content h3 { display: inline; margin: 0; font-size: 14px; font-weight: 500; line-height: 20px; }
.project-row-content p { display: inline; margin: 0 0 0 10px; color: var(--ink-muted); font-size: 12px; line-height: 16px; }
.status { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 2px 8px; border: 1px solid color-mix(in srgb, var(--success) 35%, transparent); border-radius: var(--radius-pill); color: var(--success-active); font-size: 10px; line-height: 10px; white-space: nowrap; }
:root[data-theme="dark"] .status { color: var(--success); }
.status-dot { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.row-arrow { display: flex; flex-shrink: 0; align-items: center; color: var(--ink-muted); transition: transform var(--duration-feedback); }
.row-arrow svg { width: 14px; height: 14px; }
.project-row:hover .row-arrow { transform: translateX(3px); }
.contact-section .section-label { margin-bottom: 16px; }
.contact-email { font-size: 16px; line-height: 24px; color: var(--ink-muted); }
.contact-email:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.site-footer { padding: 64px 24px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; width: min(672px, 100%); text-align: center; color: var(--ink-muted); font-size: 11px; line-height: 16px; }
.footer-info p { margin: 0; }
.footer-info p + p { margin-top: 4px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 28px; }
.footer-nav a:hover { color: var(--ink); }
.project-page { max-width: 640px; padding-top: 64px; padding-bottom: 64px; }
.breadcrumb { color: var(--ink-muted); font-size: 12px; line-height: 16px; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 24px; }
.breadcrumb a:hover { color: var(--ink); }
.project-hero { margin: 24px 0 32px; }
.project-title { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.project-title h1 { margin: 0; font-size: 20px; font-weight: 500; line-height: 28px; }
.project-summary { margin: 0; color: var(--ink-muted); font-size: 14px; line-height: 22.75px; word-break: keep-all; }
.project-page .section { margin-bottom: 32px; }
.project-intro { padding-top: 32px; border-top: 1px solid var(--line); }
.project-intro .section-label { margin-bottom: 12px; }
.project-intro > p { margin-bottom: 0; color: var(--ink-muted); line-height: 22.75px; word-break: keep-all; }
.project-actions { margin-top: 8px; }
.project-service-link { color: var(--ink-muted); font-size: 14px; }
.project-service-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.platform-note { margin: 8px 0 0; color: var(--ink-muted); font-size: 12px; line-height: 18px; }
.screenshots-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 16px; }
.screenshots-grid figure { min-width: 0; margin: 0; }
.screenshot-button { position: relative; display: block; overflow: hidden; border-radius: 12px; background: var(--surface-soft); }
.screenshot-button::after { content: ''; position: absolute; inset: 0; border: 1px solid var(--line-art); border-radius: inherit; pointer-events: none; }
.screenshot-button img { display: block; width: 100%; height: auto; }
.screenshot-caption { margin-top: 10px; color: var(--ink-muted); font-size: 12px; line-height: 18px; word-break: keep-all; }
.screenshot-number { display: inline-block; margin-right: 6px; font-variant-numeric: tabular-nums; }
.screenshot-note { margin: 16px 0 0; color: var(--ink-muted); font-size: 12px; line-height: 18px; }
.project-next { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.project-next > span { display: flex; flex-direction: column; gap: 6px; }
.project-next small { color: var(--ink-muted); font-size: 12px; }
.project-next strong { font-size: 14px; font-weight: 500; }
.project-next svg { width: 16px; height: 16px; color: var(--ink-muted); }
.projects-index { padding-top: 64px; padding-bottom: 80px; }
.projects-index h1 { margin-bottom: 32px; font-size: 24px; font-weight: 500; line-height: 32px; }
.text-page { max-width: 640px; padding-top: 64px; padding-bottom: 80px; }
.text-page .breadcrumb { margin-bottom: 24px; }
.text-page h1 { margin-bottom: 32px; font-size: 24px; font-weight: 500; line-height: 32px; word-break: keep-all; }
.text-page h2 { margin: 32px 0 12px; font-size: 16px; font-weight: 500; line-height: 24px; }
.text-page p { color: var(--ink-muted); font-size: 14px; line-height: 22.75px; overflow-wrap: anywhere; }
.text-page a { text-decoration: underline; text-underline-offset: 3px; }
.text-meta { margin: -16px 0 32px; font-size: 12px !important; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.button { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: var(--radius-pill); background: var(--ink); color: var(--on-ink); font-size: 13px; }
.button-secondary { background: var(--surface-soft); color: var(--ink); }
.screen-dialog { width: min(540px, calc(100% - 40px)); max-height: calc(100dvh - 40px); padding: 0; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius-dialog); background: var(--canvas); color: var(--ink); box-shadow: 0 24px 100px var(--dialog-shadow); }
.screen-dialog::backdrop { background: var(--backdrop); backdrop-filter: blur(4px); }
body:has(.screen-dialog[open]) { overflow: hidden; }
.dialog-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; border-bottom: 1px solid var(--line); background: var(--canvas); color: var(--ink-muted); font-size: 13px; }
.dialog-controls { display: flex; align-items: center; flex-shrink: 0; gap: 4px; }
.dialog-image { display: block; width: 100%; height: auto; }
.dialog-close, .dialog-previous, .dialog-next { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: var(--radius-pill); background: transparent; color: var(--ink); }
.dialog-controls svg { width: 20px; height: 20px; }
.dialog-previous svg { transform: rotate(180deg); }
.dialog-controls button:hover { background: var(--surface-hover); }
@media (max-width: 767px) {
  .home-hero h1 { font-size: 24px; line-height: 32px; }
}
@media (max-width: 639px) {
  .header-inner { min-height: 52px; }
  .language-link, .theme-toggle { min-height: 44px; }
  .home-hero { padding: 80px 24px; }
  .hero-wordmark { margin-bottom: 40px; font-size: clamp(58px, 19vw, 88px); line-height: .85; }
  .home-hero h1 { font-size: 20px; line-height: 28px; }
  .project-row-content h3, .project-row-content p { display: block; }
  .project-row-content p { margin: 2px 0 0; line-height: 18px; }
  .project-row { gap: 10px; }
  .project-page, .projects-index, .text-page { padding-top: 48px; padding-bottom: 48px; }
  .screenshots-grid { gap: 12px; }
  .site-footer { padding-block: 48px; }
  .footer-nav a { min-height: 44px; }
  .dialog-header { gap: 8px; padding-inline: 12px; font-size: 12px; }
}
@media (max-width: 480px) {
  .screenshots-grid { grid-template-columns: 1fr; gap: 24px; }
  .screenshots-grid figure { width: 100%; max-width: 343px; margin-inline: auto; }
  .project-title { gap: 10px; }
  .project-title h1 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
