@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&display=swap');

a {
  color: #1772d0;
  text-decoration: none;
}

a:focus,
a:hover {
  color: #f09228;
  text-decoration: none;
}

body,
td,
th,
tr,
p,
a {
  font-family: 'Atkinson Hyperlegible', ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

strong {
  font-family: 'Atkinson Hyperlegible', ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
}

h2 {
  margin: 0;
  font-weight: 700;
  font-family: 'Atkinson Hyperlegible', ui-sans-serif, system-ui, sans-serif;
  font-size: 24px;
  line-height: 1.33;
}

.papertitle {
  font-family: 'Atkinson Hyperlegible', ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.name {
  padding-top: 20px;
  margin: 0;
  font-family: 'Atkinson Hyperlegible', ui-sans-serif, system-ui, sans-serif;
  font-size: 32px;
  font-weight: 700;
}

.one {
  width: 160px;
  height: 160px;
  position: relative;
}

.two {
  width: 160px;
  height: 160px;
  position: absolute;
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

.fade {
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

span.highlight {
  background-color: #ffffd0;
}

.colored-box {
    color: black;
    padding: 20px;
    display: inline-block;
    border-radius: 10px;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 16px;
}

.project-card {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.2s ease;
}

.project-card:hover {
  border-color: #aaa;
}

.project-card-img-wrap {
  overflow: hidden;
  background: #f0f0f0;
}

.project-card-img-wrap img,
.project-card-img-wrap video {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.project-card:hover .project-card-img-wrap img,
.project-card:hover .project-card-img-wrap video {
  transform: scale(1.04);
}

.project-card-body {
  padding: 14px 16px;
}

@media (max-width: 600px) {
  .project-grid { grid-template-columns: 1fr; }
}

/* Blog styles */
.post-meta {
  font-family: 'Atkinson Hyperlegible', ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  color: #666;
}

.post-item {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e0e0e0;
}

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

.post-content h1,
.post-content h2,
.post-content h3 {
  font-family: 'Atkinson Hyperlegible', ui-sans-serif, system-ui, sans-serif;
  margin-top: 24px;
  margin-bottom: 8px;
}

.post-content h1 { font-size: 22px; }
.post-content h2 { font-size: 20px; }
.post-content h3 { font-size: 18px; }

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

.post-content code {
  font-family: monospace;
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 14px;
}

.post-content pre {
  background: #f5f5f5;
  padding: 16px;
  border-radius: 4px;
  overflow-x: auto;
}

.post-content pre code {
  background: none;
  padding: 0;
}

.post-content img {
  max-width: 100%;
  border-radius: 4px;
}

.post-content blockquote {
  border-left: 3px solid #1772d0;
  margin-left: 0;
  padding-left: 16px;
  color: #555;
}

/* Dark mode toggle button */
#dark-mode-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 20px;
  line-height: 40px;
  text-align: center;
  padding: 0;
  z-index: 1000;
  transition: background 0.2s, border-color 0.2s;
}

#dark-mode-toggle:hover {
  border-color: #aaa;
}

/* Dark mode */
body.dark-mode {
  background-color: #1a1a2e;
  color: #e0e0e0;
  transition: background-color 0.3s, color 0.3s;
}

body.dark-mode a {
  color: #6cb4ee;
}

body.dark-mode a:hover,
body.dark-mode a:focus {
  color: #f09228;
}

body.dark-mode .project-card {
  background: #16213e;
  border-color: #2a2a4a;
}

body.dark-mode .project-card:hover {
  border-color: #4a4a6a;
}

body.dark-mode .project-card-img-wrap {
  background: #0f0f23;
}

body.dark-mode .colored-box {
  color: #e0e0e0;
}

body.dark-mode span.highlight {
  background-color: #3a3a1a;
}

body.dark-mode #dark-mode-toggle {
  background: #16213e;
  border-color: #2a2a4a;
  color: #e0e0e0;
}

body.dark-mode .post-item {
  border-bottom-color: #2a2a4a;
}

body.dark-mode .post-meta {
  color: #999;
}

body.dark-mode .post-content code {
  background: #16213e;
}

body.dark-mode .post-content pre {
  background: #16213e;
}

body.dark-mode .post-content blockquote {
  color: #aaa;
  border-left-color: #6cb4ee;
}
