/* featherScroll — home.css (homepage-specific styles) */

#feather-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
  z-index: 1;
}

/* ── Home page ── */
.home-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}
.home-header {
  padding: 2rem 1.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
}
.home-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.home-brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(201, 168, 76, 0.5);
  object-fit: cover;
}
.home-brand-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #f5f0e8;
  letter-spacing: 0.03em;
}
.home-brand-name span {
  color: #e8c97a;
}
.home-username {
  font-size: 0.78rem;
  font-weight: 500;
  color: #a8c5b0;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 99px;
  padding: 4px 12px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
}
.home-username.show {
  opacity: 1;
  visibility: visible;
}

/* ── Hero ── */
.home-hero {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}
.home-hero-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 1rem;
  display: block;
}
.home-hero-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 8vw, 3.5rem);
  font-weight: 700;
  color: #f5f0e8;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
}
.home-hero-title em {
  color: #e8c97a;
  font-style: italic;
}
.home-hero-sub {
  font-size: 0.9rem;
  color: #a8c5b0;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.home-date {
  font-size: 0.72rem;
  color: rgb(255 233 0 / 60%);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Welcome card ── */
.home-welcome-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 14px;
  padding: 0.85rem 1.25rem;
  margin-top: 1rem;
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.home-welcome-card.show {
  opacity: 1;
  transform: translateY(0);
}
.home-welcome-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
  animation: featherWiggle 3s ease-in-out infinite;
}
.home-welcome-text {
  font-family: "DM Sans", sans-serif;
  font-size: 0.85rem;
  color: #c8d8c2;
  font-weight: 300;
  line-height: 1.5;
  text-align: left;
}
.home-welcome-text span {
  color: #e8c97a;
  font-weight: 700;
}
@keyframes featherWiggle {
  0%,
  100% {
    transform: rotate(-6deg);
  }
  50% {
    transform: rotate(6deg);
  }
}

/* ── Category nav ── */
.home-categories {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.5rem 2rem;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
}
.home-cat-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.4rem 1.5rem;
  border-radius: 16px;
  text-decoration: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.home-cat-card:active {
  transform: scale(0.98);
}
.home-cat-card-wild {
  background: linear-gradient(
    135deg,
    rgba(120, 20, 30, 0.5) 0%,
    rgba(80, 10, 20, 0.4) 100%
  );
  border: 1px solid rgba(180, 50, 60, 0.3);
}
.home-cat-card-know {
  background: linear-gradient(
    135deg,
    rgba(15, 30, 80, 0.5) 0%,
    rgba(10, 20, 60, 0.4) 100%
  );
  border: 1px solid rgba(60, 100, 200, 0.3);
}
.home-cat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}
.home-cat-card-wild::before {
  background: linear-gradient(90deg, #9b2335, #d86a79);
}
.home-cat-card-know::before {
  background: linear-gradient(90deg, #1a4db5, #6b9fff);
}
.home-cat-emoji {
  font-size: 2.2rem;
  flex-shrink: 0;
  line-height: 1;
}
.home-cat-body {
  flex: 1;
}
.home-cat-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #f5f0e8;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}
.home-cat-desc {
  font-size: 0.78rem;
  color: #a8c5b0;
  font-weight: 300;
  line-height: 1.4;
}
.home-cat-arrow {
  font-size: 1.2rem;
  color: rgba(245, 240, 232, 0.3);
  flex-shrink: 0;
}

/* ── Today in History card ── */
.ds-home-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.4rem 1.5rem;
  border-radius: 16px;
  background: #0d0d10;
  border: 1px solid rgba(232, 201, 122, 0.25);
  text-decoration: none;
  transition: transform 0.2s;
  position: relative;
  overflow: hidden;
}
.ds-home-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #9d7b26;
}
.ds-home-card:active {
  transform: scale(0.98);
}

.ds-home-card-left {
  flex: 1;
}
.ds-home-card-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #e8c97a;
  margin-bottom: 0.35rem;
  line-height: 1.2;
}
.ds-home-card-teaser {
  font-size: 0.85rem;
  color: #c8d8c2;
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  opacity: 0.5;
  transition: opacity 0.4s ease;
}
.ds-home-card-teaser.loaded {
  opacity: 1;
}
.ds-home-card-cta {
  font-size: 0.8rem;
  font-weight: 700;
  color: #e8c97a;
  letter-spacing: 0.02em;
}
.ds-home-card-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.ds-home-emoji {
  font-size: 2rem;
  line-height: 1;
}
.ds-home-today-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0d0d10;
  background: #e8c97a;
  border-radius: 99px;
  padding: 3px 10px;
}

/* ── Footer ── */
.home-footer {
  text-align: center;
  padding: 1.5rem;
  border-top: 1px solid rgba(245, 240, 232, 0.06);
}
.home-footer p {
  font-size: 0.7rem;
  color: #7a9b87;
  font-weight: 300;
}
.home-footer a {
  color: #7a9b87;
  text-decoration: none;
  margin: 0 0.5rem;
}
.home-footer a:hover {
  color: #a8c5b0;
}
