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

html {
  scrollbar-width: none;
}

body {
  background-color: #fef1e7;
  color: #000;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

::-webkit-scrollbar {
  display: none;
}

.wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

nav {
  padding: 6px 24px 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.9);
  margin-bottom: 100px;
}

nav .nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .site-name {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 34px;
  font-weight: 500;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: -0.01em;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  align-items: center;
}

.social-icons {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-left: 8px;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  padding-left: 20px;
}

.social-icons a {
  display: flex;
  align-items: center;
  color: #1a1a1a;
  transition: all 0.2s;
}

.social-icons svg {
  width: 20px;
  height: 20px;
  stroke: #1a1a1a;
  transition: all 0.2s ease;
}

.social-icons a:hover svg {
  stroke: #c4622d;
}

nav ul li a {
  font-size: 18px;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: 0.02em;
}

nav ul li a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

nav ul li a.active {
  text-decoration: underline;
  text-underline-offset: 4px;
}

h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b6560;
  margin-top: 52px;
  margin-bottom: 16px;
}

p {
  margin-bottom: 24px;
  font-weight: 400;
}

a {
  color: #ff9d8c;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.75;
}

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

hr {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin: 40px 0;
}

.about-layout {
  display: flex;
  justify-content: flex-start;
  gap: 80px;
  align-items: flex-start;
}

.about-photo {
  flex-shrink: 0;
  width: 160px;
  position: relative;
}

.photo-clip-wrapper {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.14));
  overflow: hidden;
}

.photo-clip-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 8%;
  display: block;
}

.about-photo .photo-placeholder {
  width: 160px;
  height: 160px;
  background-color: #e8e2d9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b6560;
  font-size: 16px;
  text-align: center;
  padding: 40px;
}

.about-text {
  flex: 1;
  padding-top: 0;
  font-size: 20px;
}

.interests-list {
  margin-bottom: 24px;
  margin-left: 32px;
  list-style-type: disc;
}

.interests-list li {
  margin-bottom: 8px;
}

.project-entry {
  margin-bottom: 56px;
}

.project-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.project-title {
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0px;
}

.project-link {
  color: #c4622d;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.project-link:hover {
  opacity: 0.8;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-repo-link {
  color: #c4622d;
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity 0.2s ease;
}

.text-repo-link:hover {
  opacity: 0.8;
}

.project-link svg {
  width: 18px;
  height: 18px;
}

.project-meta {
  font-size: 16px;
  color: #6b6560;
  margin-bottom: 20px;
  font-style: italic;
}

.filter-container {
  display: flex;
  align-items: center;
  gap: 12px;
  position: absolute;
  top: -2px;
  left: 0;
  z-index: 10;
}

.filter-label {
  color: #6b6560;
  font-style: italic;
  font-size: 15px;
}

.custom-select-wrapper {
  position: relative;
  display: inline-block;
}

.filter-dropdown {
  appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  padding: 2px 28px 2px 12px;
  font-family: inherit;
  font-size: 14px;
  color: #1a1a1a;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.filter-dropdown:hover,
.filter-dropdown:focus {
  border-color: #c4622d;
  color: #c4622d;
}

.custom-select-wrapper::after {
  content: "▼";
  font-size: 9px;
  color: #c4622d;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  transition: transform 0.2s ease;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 80px;
  width: 100%;
}

.page-btn {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #6b6560;
  font-family: 'EB Garamond', serif;
  font-size: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-btn:hover {
  border-color: #c4622d;
  color: #c4622d;
}

.page-btn.active {
  background-color: #c4622d;
  color: #fef1e7;
  border-color: #c4622d;
}

.project-preview {
  margin-top: 16px;
  font-size: 18px;
  color: #333;
  line-height: 1.85;
  text-align: left;
  max-height: 96px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-preview::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: linear-gradient(to bottom, rgba(254, 241, 231, 0), #fef1e7);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.project-entry.expanded .project-preview {
  max-height: 5000px;
}

.project-preview p {
  margin-bottom: 14px;
}

.project-preview p:last-child {
  margin-bottom: 0;
}

.project-entry.expanded .project-preview::after {
  opacity: 0;
}

.read-more-container {
  margin-top: -24px;
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
  pointer-events: none;
  transition: margin-top 0.4s ease;
}

.project-entry.expanded .read-more-container {
  margin-top: 12px;
}

.read-more-btn {
  pointer-events: auto;
  background: rgba(254, 241, 231, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  border: none;
  cursor: pointer;
  color: #c4622d;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease, transform 0.4s ease;
}

.read-more-btn:hover {
  background-color: rgba(254, 241, 231, 0.9);
}

.read-more-icon {
  transition: transform 0.4s ease;
}

.project-entry.expanded .read-more-icon {
  transform: rotate(180deg);
}

.back-link {
  font-size: 15px;
  color: #6b6560;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 40px;
}

.back-link:hover {
  color: #1a1a1a;
  text-decoration: underline;
}

.loading-text {
  color: #6b6560;
  font-style: italic;
  font-size: 16px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.contact-card {
  padding: 32px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.3s ease;
  background: white;
}

.contact-card:not(.no-link):hover {
  border-color: #c4622d;
  background: #fffafa;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.contact-card .card-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b6560;
}

.contact-card .card-value {
  font-size: 18px;
  color: #1a1a1a;
}

.contact-card:hover .card-value {
  color: #c4622d;
}

.contact-card.no-link:hover {
  cursor: default;
}

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

.bottom-quote {
  margin-top: 100px;
  text-align: left;
}

.curved-line {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  height: 60px;
  margin-top: 60px;
  margin-bottom: 80px;
}

.curved-line svg {
  width: 100%;
  height: 100%;
  display: block;
}

.quote-content {
  margin-bottom: 120px;
}

.quote-content blockquote {
  font-family: inherit;
  font-size: 32px;
  line-height: 1.4;
  font-weight: 400;
  color: #1a1a1a;
  margin: 0;
  letter-spacing: -0.01em;
}

.quote-content cite {
  display: block;
  font-family: inherit;
  font-size: 28px;
  margin-top: 40px;
  color: #1a1a1a;
  font-style: normal;
}

.blessing {
  text-align: center;
  font-family: inherit;
  font-style: italic;
  font-size: 14px;
  color: #6b6560;
  margin-top: 100px;
  margin-bottom: 0;
}

footer {
  margin-top: 40px;
  padding: 40px 0 48px;
  border-top: none;
  text-align: center;
  font-size: 14px;
  color: #6b6560;
}

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

  nav {
    padding: 16px 16px 12px;
    margin-bottom: 40px;
  }

  nav .nav-inner {
    flex-direction: column;
    gap: 20px;
  }

  nav ul {
    gap: 20px;
    flex-wrap: wrap;
  }

  .about-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .about-layout>div:first-child:empty {
    display: none;
  }

  .about-photo {
    width: 140px;
  }

  .photo-clip-wrapper,
  .about-photo .photo-placeholder {
    width: 140px;
    height: 140px;
  }

}

@media (max-width: 640px) {
  .bottom-quote {
    margin-top: 60px;
  }

  .quote-content blockquote {
    font-size: 24px;
  }

  .quote-content cite {
    font-size: 20px;
    margin-top: 24px;
  }

  .blessing {
    margin-top: 60px;
  }

  .filter-container {
    position: relative;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
  }

}