/* ============================================
   Kotaro Yoshida — Academic Homepage
   Clean, minimal, researcher-style design
   ============================================ */

:root {
  --color-bg: #f5ead4;
  --color-surface: #faf3e6;
  --color-text: #1a1a1a;
  --color-text-secondary: #555555;
  --color-text-muted: #888888;
  --color-accent: #2563eb;
  --color-accent-light: #dbeafe;
  --color-border: #e5e5e5;
  --color-border-light: #f0f0f0;
  --font-serif: 'EB Garamond', 'Georgia', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 780px;
  --nav-height: 56px;
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 24px);
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(245, 234, 212, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-light);
  z-index: 100;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 20px;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: all 0.3s;
}

/* ============================================
   Hero / About
   ============================================ */
.hero {
  padding-top: calc(var(--nav-height) + 64px);
  padding-bottom: 48px;
}

.hero-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.hero-photo {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.5);
  transform-origin: 80% 10%;
}

.hero-text h1 {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: 4px;
}

.subtitle {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-secondary);
  margin-bottom: 2px;
}

.affiliation {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.bio {
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
  max-width: 620px;
}

.bio a {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.bio a:hover {
  border-bottom-color: var(--color-accent);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.link-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 7px 14px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  transition: all 0.2s;
  background: var(--color-surface);
}

.link-item:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: var(--color-accent-light);
}

.link-item svg {
  flex-shrink: 0;
}

/* ============================================
   Section Headings
   ============================================ */
section {
  padding: 48px 0;
}

section h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  color: var(--color-text);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-text);
}

section h3 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-top: 32px;
  margin-bottom: 16px;
}

.section-note {
  font-size: 13px;
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: -20px;
  margin-bottom: 8px;
}

/* ============================================
   News
   ============================================ */
.news-list {
  display: flex;
  flex-direction: column;
}

.news-item {
  display: flex;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border-light);
  align-items: baseline;
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  min-width: 80px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.news-text {
  font-size: 14.5px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.news-text strong {
  color: var(--color-text);
  font-weight: 600;
}

.news-text a {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.news-text a:hover {
  border-bottom-color: var(--color-accent);
}

/* ============================================
   Publications
   ============================================ */
.pub-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pub-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.pub-venue {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 3px 10px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
  letter-spacing: 0.02em;
}

.pub-content {
  flex: 1;
}

.pub-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: 3px;
}

.pub-authors {
  font-size: 13.5px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 2px;
}

.pub-info {
  font-size: 13px;
  color: var(--color-text-muted);
  font-style: italic;
}

.pub-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.pub-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 3px 10px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
}

.tag-arxiv {
  color: #b31b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.tag-arxiv:hover {
  background: #b31b1b;
  color: #fff;
  border-color: #b31b1b;
}

.tag-github {
  color: #1f2328;
  background: #f6f8fa;
  border: 1px solid #d1d9e0;
}

.tag-github:hover {
  background: #1f2328;
  color: #fff;
  border-color: #1f2328;
}

.tag-pdf {
  color: #d97706;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.tag-pdf:hover {
  background: #d97706;
  color: #fff;
  border-color: #d97706;
}

.tag-openreview {
  color: #8b2252;
  background: #fdf2f8;
  border: 1px solid #f5c6e0;
}

.tag-openreview:hover {
  background: #8b2252;
  color: #fff;
  border-color: #8b2252;
}

/* ============================================
   Timeline (Experience & Education)
   ============================================ */
.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--color-border);
}

.timeline-item {
  position: relative;
  padding-bottom: 32px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -28px;
  top: 7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--color-accent);
  z-index: 1;
}

.timeline-item:first-child .timeline-marker {
  background: var(--color-accent);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.timeline-header h3 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  text-transform: none;
  letter-spacing: -0.01em;
  margin: 0;
}

.timeline-header h3 a {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s;
}

.timeline-header h3 a:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.timeline-with-logo {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.timeline-with-logo .timeline-main {
  flex: 1;
}

.company-logo {
  flex-shrink: 0;
}

.company-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
}

.timeline-location {
  font-size: 13px;
  color: var(--color-text-muted);
}

.timeline-role {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 2px;
}

.timeline-date {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.timeline-desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-top: 4px;
}

/* ============================================
   Awards
   ============================================ */
.awards-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.awards-list li {
  display: flex;
  gap: 16px;
  align-items: baseline;
}

.award-year {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  min-width: 72px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.awards-list li div {
  font-size: 14.5px;
  line-height: 1.5;
}

.award-detail {
  color: var(--color-text-muted);
  font-weight: 400;
}

/* ============================================
   Contact
   ============================================ */
.contact-content p {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.2s;
}

.contact-item:hover {
  border-color: var(--color-accent);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.contact-item svg {
  flex-shrink: 0;
  color: var(--color-text-muted);
}

.contact-item:hover svg {
  color: var(--color-accent);
}

.contact-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 1px;
}

.contact-value {
  display: block;
  font-size: 14.5px;
  color: var(--color-text-secondary);
}

/* ============================================
   Posts page
   ============================================ */
.page-header {
  padding-top: calc(var(--nav-height) + 64px);
  padding-bottom: 8px;
}

.page-header h1 {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.page-header p {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin-top: 8px;
}

.posts-list {
  display: flex;
  flex-direction: column;
  padding: 32px 0 64px;
}

.post-item {
  display: flex;
  gap: 20px;
  align-items: baseline;
  padding: 20px 16px;
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  margin-bottom: 12px;
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.2s;
  background: var(--color-surface);
}

.post-item:hover {
  border-color: var(--color-accent);
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.08);
  transform: translateY(-1px);
}

.post-item:hover .post-title {
  color: var(--color-accent);
}

.post-date {
  font-size: 13px;
  color: var(--color-text-muted);
  min-width: 90px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.post-info {
  flex: 1;
}

.post-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.15s;
}

.post-excerpt {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 4px;
  line-height: 1.5;
}

.posts-empty {
  text-align: center;
  padding: 80px 0;
  color: var(--color-text-muted);
  font-size: 15px;
}

/* ============================================
   Category Cards
   ============================================ */
.category-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 32px 0 64px;
}

.category-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.2s;
  position: relative;
}

.category-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
  transform: translateY(-2px);
}

.category-icon {
  color: var(--color-accent);
  margin-bottom: 16px;
}

.category-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin: 0 0 8px;
}

.category-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.category-arrow {
  display: inline-block;
  margin-top: 16px;
  font-size: 18px;
  color: var(--color-text-muted);
  transition: all 0.2s;
}

.category-card:hover .category-arrow {
  color: var(--color-accent);
  transform: translateX(4px);
}

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb .sep {
  font-size: 11px;
}

/* ============================================
   Post Article
   ============================================ */
.post-article {
  padding: 32px 0 64px;
}

.post-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.post-article h1 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 8px;
}

.lang-toggle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1.5px solid #c8b896;
  border-radius: 4px;
  padding: 2px 4px;
}

.lang-toggle .lang-btn {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  padding: 2px 8px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.lang-toggle .lang-btn.active {
  font-weight: 700;
  color: var(--color-text);
  background: rgba(200, 184, 150, 0.25);
}

.lang-toggle .lang-btn:not(.active):hover {
  color: var(--color-text-secondary);
  background: rgba(200, 184, 150, 0.12);
}

.lang-toggle .lang-sep {
  font-size: 13px;
  color: var(--color-text-muted);
  user-select: none;
}

.post-meta {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border-light);
}

.post-body {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.post-body h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  border-bottom: none;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 0;
}

.post-body h3 {
  font-size: 16px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-text);
  margin-top: 32px;
  margin-bottom: 12px;
}

/* Section hierarchy: visual nesting with left borders */
.post-body .section-h2 {
  border-left: 3px solid #c8b896;
  padding-left: 20px;
  margin-top: 48px;
  margin-bottom: 8px;
}

.post-body .section-h2 > h2 {
  margin-top: 0;
  margin-left: -20px;
  padding-left: 17px;
  border-left: none;
}

.post-body .section-h3 {
  border-left: 2px solid #c8b896;
  padding-left: 16px;
  margin-top: 28px;
  margin-bottom: 8px;
}

.post-body .section-h3 > h3 {
  margin-top: 0;
  margin-left: -16px;
  padding-left: 14px;
}

.post-body p {
  margin-bottom: 16px;
}

.post-body a {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.post-body a:hover {
  border-bottom-color: var(--color-accent);
}

.post-body img {
  max-width: 100%;
  border-radius: 8px;
  margin: 24px 0;
}

.post-body blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: 20px;
  margin: 24px 0;
  color: var(--color-text-muted);
  font-style: italic;
}

.post-body code {
  font-size: 14px;
  background: var(--color-border-light);
  padding: 2px 6px;
  border-radius: 4px;
}

.post-body pre {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 24px 0;
}

.post-body pre code {
  background: none;
  padding: 0;
  font-size: 13.5px;
  color: inherit;
}

/* ============================================
   Photo Gallery
   ============================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 32px 0 64px;
}

.gallery-item {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  transition: all 0.2s;
}

.gallery-item:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
  transform: translateY(-2px);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.gallery-caption {
  font-size: 13px;
  color: var(--color-text-muted);
  padding: 10px 12px;
  line-height: 1.4;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 200;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 32px;
  padding: 12px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
}

.lightbox-close {
  top: 16px;
  right: 20px;
  font-size: 36px;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
}

.lightbox-caption {
  color: #ccc;
  font-size: 14px;
  margin-top: 16px;
  text-align: center;
}

/* ============================================
   Footer
   ============================================ */
footer {
  padding: 32px 0;
  border-top: 1px solid var(--color-border-light);
  margin-top: 24px;
}

footer p {
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: center;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(245, 234, 212, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--color-border-light);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .hero {
    padding-top: calc(var(--nav-height) + 40px);
  }

  .hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-photo img {
    width: 150px;
    height: 150px;
  }

  .hero-links {
    justify-content: center;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .hero-links {
    gap: 10px;
  }

  .link-item {
    font-size: 13px;
    padding: 6px 12px;
  }

  section {
    padding: 36px 0;
  }

  section h2 {
    font-size: 24px;
  }

  .pub-item {
    flex-direction: column;
    gap: 6px;
  }

  .news-item {
    flex-direction: column;
    gap: 4px;
  }

  .awards-list li {
    flex-direction: column;
    gap: 2px;
  }

  .timeline-header {
    flex-direction: column;
    gap: 2px;
  }

  .category-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .post-article h1 {
    font-size: 24px;
  }

  .pr-paper-card {
    flex-direction: column;
    gap: 8px;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

/* ============================================
   Paper Readings
   ============================================ */
.pr-search-bar {
  position: relative;
  margin-bottom: 16px;
}

.pr-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}

.pr-search-input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pr-search-input::placeholder {
  color: var(--color-text-muted);
}

.pr-search-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-light);
}

.pr-tags-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.pr-filter-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.pr-filter-tag:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.pr-filter-tag.active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.pr-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.pr-results-count {
  font-size: 13px;
  color: var(--color-text-muted);
}

.pr-papers-list {
  display: flex;
  flex-direction: column;
  padding-bottom: 64px;
}

.pr-paper-card {
  flex-direction: column;
  gap: 8px;
}

.pr-paper-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pr-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.pr-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  letter-spacing: 0.01em;
}

/* Subtle animation on load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  animation: fadeInUp 0.6s ease-out;
}

/* Selection color */
::selection {
  background: var(--color-accent-light);
  color: var(--color-text);
}
