:root {
  --text-primary: #1b1b1b;
  --text-secondary: #6b6b6b;
  --text-tertiary: #b5b5b5;

  --border-line: #ececec;
  --border-subtle: rgba(0, 0, 0, 0.06);

  --bg-page: #fbfaf8;

  --font-sans:
    "Switzer", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:
    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.7;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }
}

.fade-in {
  padding: 6rem 0;
  animation: fadeIn 0.6s var(--ease-out) both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.intro {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 2rem;
}

.name {
  margin: 0;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 1em;
}

.updated {
  margin: 0.15rem 0 0;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.01em;
}

.bio {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.bio p {
  margin: 0;
  color: #2f2f2f;
}
.bio a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--text-tertiary);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.15s var(--ease-out);
}
.bio a:hover {
  text-decoration-color: var(--text-primary);
}

.app-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 2.5rem;
  padding: 16px 18px;
  border: 1px solid var(--border-line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.015);
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.18s var(--ease-out),
    background 0.18s var(--ease-out);
}
.app-card:hover {
  border-color: #dcdcdc;
  background: rgba(0, 0, 0, 0.028);
}
.app-card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.app-card-title {
  font-weight: 500;
  color: var(--text-primary);
}
.app-card-desc {
  color: var(--text-secondary);
  font-size: 13px;
}
.app-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 6px;
  background: var(--text-primary);
  color: var(--bg-page);
  font-size: 13px;
  font-weight: 500;
}
.app-card-cta svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  transform: translateX(0);
  transition: transform 0.2s var(--ease-out);
}
.app-card:hover .app-card-cta svg {
  transform: translateX(2px);
}

@media (max-width: 640px) {
  .app-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
}

.list-section {
  margin-top: 4rem;
}
.list-header {
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-line);
  margin-bottom: 0.25rem;
}
.list-header h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.entry-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
/* Dims only the row's content, not the divider line, so the list keeps its
   full-strength hairlines even while siblings are deemphasized on hover. */
.entry-list-group:hover .entry-wrapper {
  opacity: 0.4;
}
.entry-list-group .entry-wrapper:hover {
  opacity: 1 !important;
}
.entry {
  border-bottom: 1px solid var(--border-subtle);
}
.entry-wrapper {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  padding: 12px 0;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease-out;
}
.entry-meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.entry-main {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.entry-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-primary);
}
.entry-detail {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: right;
  white-space: nowrap;
}
.entry-detail svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateX(-4px);
  transition:
    transform 0.2s ease-out,
    opacity 0.2s ease-out;
}
.entry-wrapper:hover .entry-detail svg {
  opacity: 1;
  transform: translateX(0);
}

.site-footer {
  margin-top: 5rem;
  padding: 2rem 0;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 12px;
}
.site-footer a {
  color: var(--text-tertiary);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--text-primary);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .entry-wrapper,
  .bio a,
  .app-card,
  .app-card-cta svg {
    transition: none !important;
    animation: none !important;
  }
}
