@font-face {
  font-family: 'Helvetica Neue Local';
  src: url('./public/font/HelveticaNeueRoman.otf') format('opentype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Neue Local';
  src: url('./public/font/HelveticaNeueBold.otf') format('opentype');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}


::-webkit-scrollbar {
    display: none;
}

*, *::after, *::before { box-sizing: border-box; }

:root {
  --bg: #efeff4;
  --bg-elevated: #fff;
  --border: #c8c7cc;
  --text-primary: #1f1f1f;
  --text-strong: #000;
  --text-heading: #0f0f0f;
  --text-secondary: #6d6d72;
  --accent: #007AFF;
  --icon-bg: gray;
  --svg: #000;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1c1e;
    --bg-elevated: #2c2c2e;
    --border: #3a3a3c;
    --text-primary: #f2f2f7;
    --text-strong: #ffffff;
    --text-heading: #ffffff;
    --text-secondary: #a1a1a6;
    --accent: #0a84ff;
    --svg: #fff;
    --icon-bg: #48484a;
  }
}

html.dark-mode {
  --bg: #1c1c1e;
  --bg-elevated: #2c2c2e;
  --border: #3a3a3c;
  --text-primary: #f2f2f7;
  --text-strong: #ffffff;
  --text-heading: #ffffff;
  --text-secondary: #a1a1a6;
  --accent: #0a84ff;
  --icon-bg: #48484a;
  color-scheme: dark;
}

html.light-mode {
  --bg: #efeff4;
  --bg-elevated: #fff;
  --border: #c8c7cc;
  --text-primary: #1f1f1f;
  --text-strong: #000;
  --text-heading: #0f0f0f;
  --text-secondary: #6d6d72;
  --accent: #007AFF;
  --icon-bg: gray;
  color-scheme: light;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Helvetica Neue Local', Helvetica, Arial, sans-serif;
  transition: background-color 0.2s ease, color 0.2s ease;
}

section { margin-block: 4rem; }
section p { line-height: 1.5; }

footer {
  padding: 177px 1rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.7;
}

.navbar {
    position: fixed;
    display: flex;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 67px;
    align-self: center;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.navbox {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 10px 20px;
}

.navbox.rigth {
    justify-content: flex-end;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--accent);
}

.logo {
    display: flex;
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: bold;
}

.main {
    width: 100%;
    height: 100vh;
    display: flex;
    padding-top: 67px;
    left: 0;
}

.main-scroll {
    height: 100%;
    width: 100%;
    max-width: 570px;
    background: var(--bg);
    border-right: 1px solid var(--border);
    overflow: hidden;
    overflow-y: auto;
    padding-bottom: 120px;
}

.repo-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.repo-grid a {
    width: 100%;
    height: 87px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    display: flex;
    padding: 8px;
    gap: 8px;
    text-decoration: none;
}

.repo-icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: var(--icon-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    overflow: hidden;
}

.repo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--bg-elevated);
}

.repo-title {
    color: var(--text-strong);
    font-size: 1.1rem;
}

.repo-sub {
    color: var(--text-secondary);
    font-size: 1rem;
}


.about-area {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.about-icon {
    width: 197px;
    height: 197px;
}

.about-icon svg {
    width: 197px;
    height: 197px;
    fill: var(--svg);
    stroke: var(--svg);
}

.about-bottom {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.about-title {
    font-size: 1.7rem;
    width: 100%;
    text-align: center;
    color: var(--text-heading);
}

.about-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    width: 100%;
    text-align: center;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  user-select: none !important;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}


img {
  -webkit-user-drag: none;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .logo {
    font-size: 0.95rem;
  }

  .nav-links {
    gap: 8px;
  }

  .nav-links a {
    font-size: 0.75rem;
  }

  .navbox {
    padding: 10px 12px;
  }

  .main-scroll {
    max-width: 100%;
    border-right: none;
  }

  .about-area {
    display: none;
  }
}