@font-face {
  font-family: 'Lora';
  src: url('/fonts/lora-variable.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --pico-font-family: 'Lora', Georgia, serif;
  --pico-font-size: 18px;
  --pico-line-height: 1.7;
}

header.container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

header.container nav {
  margin: 0;
  padding: 0;
  min-height: 0;
  height: 66px;
  display: flex;
  align-items: center;
}

header.container nav ul {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

header.container nav li {
  padding: 0 9px !important;
}

.site-title {
  text-decoration: none;
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content h2 {
  margin-top: 2.5rem;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--pico-muted-border-color);
}

#theme-toggle {
  padding: 0.25rem 0.5rem;
  font-size: 1.2rem;
  cursor: pointer;
}

article header h2 a,
article header h3 a {
  text-decoration: none;
}

footer {
  margin-top: 3rem;
}

.hero-banner {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 280px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-banner .hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}

.hero-banner h1 {
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.3;
  max-width: 80%;
}

.hero-banner .hero-meta {
  backdrop-filter: blur(4px);
  color: rgba(255, 255, 255, 0.9);
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.hero-banner .hero-meta a {
  color: rgba(255, 255, 255, 0.9);
}

.article-content img {
  border-radius: 8px;
  width: 45%;
  max-width: 320px;
}

.article-content img.float-right {
  float: right;
  margin: 0.5rem 0 1rem 1.5rem;
}

.article-content img.float-left {
  float: left;
  margin: 0.5rem 1.5rem 1rem 0;
}

@media (max-width: 600px) {
  .article-content img {
    float: none !important;
    width: 100%;
    max-width: 100%;
    margin: 1rem 0 !important;
  }
}

.home-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 360px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.home-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-hero .home-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}

.home-hero h1 {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  margin: 0;
  font-size: 2.2rem;
  line-height: 1.2;
}

.home-hero p {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  color: rgba(255, 255, 255, 0.9);
  padding: 0.4rem 1rem;
  border-radius: 6px;
  margin: 0.5rem 0 0;
  font-size: 1rem;
  font-style: italic;
}

@media (max-width: 768px) {
  .home-hero { height: 260px; }
  .home-hero h1 { font-size: 1.5rem; }
  .home-hero p { font-size: 0.85rem; }
}

.post-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.post-card-thumb {
  flex-shrink: 0;
}

.post-card-thumb img {
  border-radius: 6px;
  object-fit: cover;
  width: 160px;
  height: 112px;
}

.post-card-body {
  flex: 1;
  min-width: 0;
}

.post-card-body h2,
.post-card-body h3 {
  margin-top: 0;
  margin-bottom: 0.3rem;
}

.post-card-body h2 a,
.post-card-body h3 a {
  text-decoration: none;
}

.post-card-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .post-card { flex-direction: column; }
  .post-card-thumb img { width: 100%; height: 160px; }
}

.share-bar {
  margin-bottom: 1rem;
}

.share-btn {
  padding: 0.4rem 1.2rem;
  font-size: 0.9rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .hero-banner { height: 220px; }
  .hero-banner h1 { font-size: 1.3rem; max-width: 95%; }
}
