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

body {
  font-family: 'Georgia', serif;
  background: #fff;
  color: #111;
  min-height: 100vh;
}

main {
  max-width: 540px;
  margin: 0 auto;
  padding: 80px 20px 60px;
}

.hero {
  text-align: center;
  margin-bottom: 48px;
}

.gem-icon {
  color: #111;
  margin-bottom: 12px;
}

h1 {
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* Search */
.search-container {
  position: relative;
  margin-bottom: 56px;
}

#search-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: inherit;
  border: 1.5px solid #111;
  border-radius: 0;
  background: #fff;
  color: #111;
  outline: none;
  transition: border-color 0.15s;
}

#search-input::placeholder {
  color: #999;
}

#search-input:focus {
  border-color: #555;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid #111;
  border-top: none;
  z-index: 10;
}

.dropdown.hidden {
  display: none;
}

.dropdown-item {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: #111;
  border-bottom: 1px solid #eee;
  transition: background 0.1s;
}

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

.dropdown-item:hover,
.dropdown-item.active {
  background: #111;
  color: #fff;
}

.dropdown-item .title {
  font-size: 0.95rem;
  font-weight: 600;
}

.dropdown-item .excerpt {
  font-size: 0.8rem;
  color: #777;
  margin-top: 2px;
}

.dropdown-item:hover .excerpt,
.dropdown-item.active .excerpt {
  color: #ccc;
}

.search-status {
  font-size: 0.75rem;
  color: #999;
  margin-top: 6px;
  min-height: 1.2em;
}

/* Posts list */
.posts {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.post-link {
  text-decoration: none;
  color: inherit;
}

.post-card {
  padding: 20px 0;
  border-top: 1px solid #ddd;
  transition: padding-left 0.15s;
}

.post-card:hover {
  padding-left: 8px;
}

.post-card h2 {
  font-size: 1.1rem;
  font-weight: 600;
}

.post-card time {
  font-size: 0.8rem;
  color: #888;
  display: block;
  margin-top: 4px;
}
