@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Fraunces:wght@400;600;700&family=Manrope:wght@400;500;600;700&display=swap");

:root{
  --bg: #f7efe5;
  --bg-ink: #654835;
  --card: #ffffff;
  --muted: #7a5b4c;
  --accent: #d8732e;
  --accent-2: #e9b55b;
  --border: rgba(90,60,43,0.12);
  --shadow: 0 16px 32px rgba(90,60,43,0.14);
  --shadow-soft: 0 16px 48px rgba(216,115,46,0.18);
}

.theme-evening{
  --bg: #1b1613;
  --bg-ink: #eadfd6;
  --card: #241d19;
  --muted: #d2c0b2;
  --accent: #f0a45a;
  --accent-2: #f3c27c;
  --border: rgba(234,223,214,0.12);
  --shadow: 0 18px 36px rgba(0,0,0,0.35);
  --shadow-soft: 0 18px 48px rgba(240,164,90,0.18);
}

*{ box-sizing: border-box; }

html, body{
  max-width: 100%;
  overflow-x: hidden;
}

body{
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(255,255,255,0.9), transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(255,207,142,0.45), transparent 50%),
    radial-gradient(circle at 60% 80%, rgba(255,170,90,0.25), transparent 55%),
    linear-gradient(180deg, #f9f1e6 0%, #f6efe6 45%, #f7f0e7 100%);
  color: var(--bg-ink);
  line-height: 1.7;
}

.theme-evening body{
  background:
    radial-gradient(circle at 15% 10%, rgba(255,200,140,0.08), transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(255,170,100,0.12), transparent 55%),
    radial-gradient(circle at 60% 80%, rgba(255,140,80,0.08), transparent 60%),
    linear-gradient(180deg, #18120f 0%, #1c1512 55%, #1a1411 100%);
  color: var(--bg-ink);
}

.page{
  min-height: 100vh;
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.page::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(255,210,120,0.25), transparent 40%),
    radial-gradient(circle at 20% 70%, rgba(255,200,140,0.18), transparent 45%),
    radial-gradient(circle, rgba(255,255,255,0.55) 1px, transparent 1px);
  background-size: 100%, 100%, 180px 180px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.theme-evening .page::before{
  opacity: 0.18;
}

.about-page{
  padding: 30px 0 80px;
  display: grid;
  place-items: center;
}

.about-card{
  background: rgba(255,255,255,0.92);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 40px 46px 46px;
  max-width: 760px;
  text-align: center;
  border: 1px solid var(--border);
  position: relative;
  margin-bottom: 24px;
}

.about-logo-wrap{
  position: relative;
  width: 210px;
  height: 210px;
  display: grid;
  place-items: center;
  margin: -120px auto 0;
}

.about-logo-wrap::after{
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 3px solid rgba(255,214,145,0.55);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 200ms ease;
}

.about-logo-wrap::before{
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 2px solid rgba(255,214,145,0.35);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 200ms ease;
}

.about-logo-wrap:hover::after,
.about-logo-wrap:hover::before{
  opacity: 1;
  animation: bubblePulse 1.4s ease-in-out infinite;
}

.about-logo{
  width: 210px;
  height: 210px;
  object-fit: contain;
  filter: drop-shadow(0 24px 40px rgba(228,116,42,0.35));
  transition: transform 260ms ease, filter 260ms ease;
}

.about-logo-wrap:hover .about-logo{
  transform: scale(1.05);
  filter: drop-shadow(0 30px 60px rgba(228,116,42,0.5));
}

.about-card h1{
  margin: 10px 0 18px;
  color: #d3752e;
  font-size: 36px;
}

.about-card p{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 17px;
}

.founder-line{
  display: inline-block;
  margin: 2px 0 18px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(216,115,46,0.35);
  background: rgba(233,181,91,0.16);
  color: #b05a22;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.theme-evening .founder-line{
  border-color: rgba(240,164,90,0.4);
  background: rgba(240,164,90,0.14);
  color: #f3c27c;
}

.about-card .btn{
  margin-top: 10px;
}

.container{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

.main-stack{
  display: grid;
  gap: 48px;
  padding-bottom: 40px;
}

h1, h2, h3{
  font-family: "Fraunces", "Georgia", serif;
  letter-spacing: -0.5px;
  font-weight: 600;
}

a{
  color: inherit;
  text-decoration: none;
}

a:hover{
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
.chip:focus-visible{
  outline: 2px solid #f2b343;
  outline-offset: 3px;
}

.skip-link{
  position: absolute;
  left: 16px;
  top: -48px;
  background: #ffffff;
  color: #5a3c2b;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(90,60,43,0.2);
  box-shadow: var(--shadow);
  z-index: 10;
}

.skip-link:focus{
  top: 12px;
}

.topbar{
  padding: 26px 0 10px;
}

.topbar-inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo{
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(90,60,43,0.25));
}

.brand-name{
  font-family: "Fraunces", "Georgia", serif;
  font-size: 30px;
  letter-spacing: 1px;
  color: var(--bg-ink);
}

.brand-wordmark .brand-name{
  font-family: "Cinzel", "Fraunces", "Georgia", serif;
  font-size: clamp(44px, 9vw, 88px);
  letter-spacing: 1px;
  font-weight: 600;
  line-height: 0.95;
  background: linear-gradient(120deg, #b86a34, #d8732e 55%, #e9b55b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  display: inline-block;
  overflow: visible;
}

.brand-name .highlight{
  color: var(--accent);
}

.brand-wordmark .brand-name::after{
  content: "\2726";
  position: absolute;
  top: 52%;
  left: -6%;
  font-size: 18px;
  color: #f0b15d;
  text-shadow: 0 6px 18px rgba(216,115,46,0.5);
  opacity: 0;
  transform: translateY(-50%) rotate(0deg);
  animation: brandStarSweep 6s ease-in-out infinite;
  pointer-events: none;
}

.theme-evening .brand-wordmark .brand-name::after{
  color: #f3c27c;
  text-shadow: 0 6px 18px rgba(240,164,90,0.45);
}

@keyframes brandStarSweep{
  0%{
    left: -6%;
    opacity: 0;
    transform: translateY(-50%) rotate(0deg) scale(0.6);
  }
  10%{
    opacity: 1;
    transform: translateY(-60%) rotate(20deg) scale(1);
  }
  50%{
    left: 102%;
    opacity: 0.9;
    transform: translateY(-45%) rotate(180deg) scale(0.9);
  }
  60%{
    opacity: 0;
  }
  100%{
    left: 102%;
    opacity: 0;
  }
}


@media (prefers-reduced-motion: reduce){
  .brand-wordmark .brand-name::after{
    animation: none;
    opacity: 0.9;
    left: 90%;
  }
}


.nav{
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--muted);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.theme-toggle{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(90,60,43,0.2);
  background: rgba(255,255,255,0.85);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  color: var(--muted);
}

.theme-toggle svg{
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.theme-evening .theme-toggle{
  background: rgba(36,29,25,0.9);
  border-color: var(--border);
  color: #f1d1b5;
}

.theme-evening .nav-cta{
  background: rgba(36,29,25,0.9);
  border-color: var(--border);
  color: var(--bg-ink);
}

.search-wrap{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.search-toggle{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(90,60,43,0.2);
  background: rgba(255,255,255,0.85);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  color: #b86a34;
}

.theme-evening .search-toggle{
  background: rgba(36,29,25,0.9);
  border-color: var(--border);
  color: #f1d1b5;
}

.search-toggle svg{
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.nav-cta{
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--border);
  color: var(--bg-ink);
}

.hero{
  padding: 40px 0 30px;
}

.hero-grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 30px;
}

.hero-content h1{
  font-size: 48px;
  margin: 12px 0 8px;
  color: #5f4333;
  line-height: 1.15;
}

.hero-content{
  display: grid;
  gap: 10px;
}

.eyebrow{
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--accent);
  margin: 0;
}

.subtitle{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  max-width: 420px;
}

.hero-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  justify-content: flex-start;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.btn.primary{
  background: linear-gradient(120deg, #d8732e, #e9b55b);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn.ghost{
  border-color: var(--border);
  color: var(--bg-ink);
  background: rgba(255,255,255,0.9);
}

.btn:hover{
  transform: translateY(-1px);
}

.hero-visual{
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
}

.hero-orbit{
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(255,213,128,0.6) 55%, transparent 70%);
  box-shadow: 0 25px 80px rgba(228,116,42,0.35);
  transition: transform 260ms ease, filter 260ms ease;
}

.hero-logo{
  width: 360px;
  height: 360px;
  object-fit: contain;
  filter: drop-shadow(0 24px 45px rgba(228,116,42,0.35));
  z-index: 1;
  transition: transform 260ms ease, filter 260ms ease;
}

.hero-visual::after{
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 3px solid rgba(255,214,145,0.55);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 200ms ease;
}

.hero-visual::before{
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 2px solid rgba(255,214,145,0.35);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 200ms ease;
}

.hero-visual:hover::after,
.hero-visual:hover::before,
.hero-logo:hover ~ .hero-visual::after{
  opacity: 1;
  animation: bubblePulse 1.4s ease-in-out infinite;
}

.hero-visual:hover .hero-logo{
  transform: scale(1.05);
  filter: drop-shadow(0 34px 70px rgba(228,116,42,0.55));
}

.hero-visual:hover .hero-orbit{
  animation: jellyOrbit 1.6s ease-in-out infinite;
  filter: brightness(1.05);
}



@keyframes bubblePulse{
  0%{ transform: scale(0.75); opacity: 0.3; }
  55%{ transform: scale(1.2); opacity: 0.75; }
  100%{ transform: scale(0.9); opacity: 0.45; }
}

@keyframes jellyOrbit{
  0%{ transform: scale(1); }
  25%{ transform: scale(1.03, 0.97); }
  50%{ transform: scale(0.99, 1.03); }
  75%{ transform: scale(1.02, 0.98); }
  100%{ transform: scale(1); }
}


.featured{
  margin: 0;
}

.featured h2{
  margin: 0 0 16px;
  font-size: 26px;
}

.featured-card{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  background-color: #5a3c2b;
  background:
    linear-gradient(120deg, rgba(70,35,20,0.85), rgba(228,116,42,0.55)),
    url("https://images.unsplash.com/photo-1469474968028-56623f02e42e?auto=format&fit=crop&w=1400&q=80") center/cover;
  color: #fff;
  border-radius: 20px;
  padding: 26px 30px;
  box-shadow: var(--shadow);
  min-height: 170px;
}

.featured-card h3{
  margin: 0 0 8px;
  font-size: 24px;
}

.featured-card p{
  margin: 0 0 12px;
  max-width: 420px;
}

.featured-meta{
  font-size: 14px;
  opacity: 0.8;
}

.topics{
  margin: 0;
}

.topics-head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}

.topics h2{
  margin: 0;
}

.topic-list{
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.topic-item{
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(90,60,43,0.08);
}

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

.topic-thumb{
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(90,60,43,0.12);
  padding: 8px;
}

.topic-item h3{
  margin: 0 0 6px;
  font-size: 20px;
}

.topic-item p{
  margin: 0 0 10px;
  color: var(--muted);
}

.topic-meta{
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.howto-subscribe{
  margin: 0;
}

.howto-grid{
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 24px;
  align-items: center;
}

.card-glow{
  position: absolute;
  inset: -30% -20% auto auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,214,145,0.45), rgba(255,214,145,0));
  opacity: 0.65;
  pointer-events: none;
}

.theme-evening .card-glow{
  background: radial-gradient(circle, rgba(255,170,100,0.25), rgba(255,170,100,0));
  opacity: 0.5;
}

.howto-card{
  padding: 26px 28px;
  border-radius: 22px;
  border: 1px solid rgba(216,115,46,0.2);
  background:
    radial-gradient(circle at 90% 20%, rgba(255,214,145,0.35), transparent 55%),
    linear-gradient(120deg, rgba(255,255,255,0.98), rgba(255,248,238,0.94));
  box-shadow: 0 18px 40px rgba(90,60,43,0.18);
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 10px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.howto-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(90,60,43,0.22);
  border-color: rgba(216,115,46,0.35);
}

.subscribe-card{
  border-radius: 18px;
  border: 1px solid rgba(216,115,46,0.25);
  background:
    radial-gradient(circle at 80% 0%, rgba(255,200,140,0.35), transparent 55%),
    linear-gradient(120deg, rgba(255,255,255,0.98), rgba(255,245,234,0.9));
  padding: 22px;
  box-shadow: 0 16px 36px rgba(216,115,46,0.2);
  display: grid;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.subscribe-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(216,115,46,0.25);
  border-color: rgba(216,115,46,0.45);
}

.subscribe-copy h2,
.howto-head h2{
  letter-spacing: -0.4px;
}

.theme-evening .howto-card{
  background:
    radial-gradient(circle at 90% 20%, rgba(255,170,100,0.18), transparent 55%),
    linear-gradient(120deg, rgba(36,29,25,0.95), rgba(28,22,19,0.9));
  border-color: rgba(240,164,90,0.25);
  box-shadow: 0 18px 40px rgba(0,0,0,0.4);
}

.theme-evening .subscribe-card{
  background:
    radial-gradient(circle at 80% 0%, rgba(255,170,100,0.18), transparent 55%),
    linear-gradient(120deg, rgba(36,29,25,0.95), rgba(28,22,19,0.9));
  border-color: rgba(240,164,90,0.25);
  box-shadow: 0 18px 40px rgba(0,0,0,0.4);
}

.howto-head{
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.howto-head h2{
  margin: 0;
  font-size: 26px;
}

.howto-subtitle{
  margin: 0;
  color: var(--muted);
}

.howto-steps{
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.howto-details{
  margin-top: 8px;
}

.howto-toggle{
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(216,115,46,0.25);
  background: rgba(255,255,255,0.9);
  color: #7a4e37;
  box-shadow: 0 10px 22px rgba(216,115,46,0.18);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.howto-toggle::-webkit-details-marker{
  display: none;
}

.howto-details[open] .howto-toggle{
  background: rgba(255,255,255,0.95);
  border-color: rgba(216,115,46,0.45);
}

.theme-evening .howto-details[open] .howto-toggle{
  background: rgba(36,29,25,0.95);
  border-color: rgba(240,164,90,0.35);
}

.howto-details[open] .howto-steps{
  margin-top: 10px;
}

.howto-toggle:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(216,115,46,0.22);
}

.theme-evening .howto-toggle{
  background: rgba(36,29,25,0.9);
  border-color: rgba(240,164,90,0.25);
  color: #eadfd6;
}

.howto-toggle-icon{
  font-size: 12px;
  color: #d8732e;
  text-shadow: 0 4px 10px rgba(216,115,46,0.3);
}

.howto::after{
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px dashed rgba(216,115,46,0.25);
  opacity: 0.6;
  pointer-events: none;
}

.theme-evening .howto::after{
  border-color: rgba(240,164,90,0.25);
}

.howto-step{
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  display: grid;
  gap: 6px;
  box-shadow: 0 12px 26px rgba(90,60,43,0.08);
}

.theme-evening .howto-step{
  background: rgba(36,29,25,0.9);
}

.howto-number{
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #b86a34;
  font-weight: 600;
}

.howto-step h3{
  margin: 0;
  font-size: 16px;
}

.howto-step p{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.library{
  margin: 0;
}

.library-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 24px;
}

.library-head h2{
  font-size: 28px;
  margin: 0 0 6px;
}

.library-subtitle{
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 16px;
}

.subscribe-copy h2{
  margin: 6px 0 8px;
  font-size: 28px;
}

.subscribe-subtitle{
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.subscribe-form{
  display: grid;
  gap: 12px;
}

.subscribe-form input{
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.9);
  border-radius: 999px;
  padding: 12px 16px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 14px;
  color: var(--bg-ink);
}

.theme-evening .subscribe-form input{
  background: rgba(36,29,25,0.9);
  border-color: var(--border);
  color: var(--bg-ink);
}

.subscribe-note{
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.library-helper{
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.library-eyebrow{
  margin: 0 0 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.saved-page .library{
  position: relative;
}

.saved-hero{
  align-items: stretch;
  padding: 28px 30px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 60% 0%, rgba(255,255,255,0.75), transparent 45%),
    radial-gradient(circle at 10% 10%, rgba(255,235,210,0.6), transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(255,200,140,0.35), transparent 55%),
    linear-gradient(120deg, rgba(255,255,255,0.95), rgba(255,248,238,0.85));
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.theme-evening .saved-hero{
  background:
    radial-gradient(circle at 60% 0%, rgba(255,220,180,0.08), transparent 45%),
    radial-gradient(circle at 10% 10%, rgba(255,200,140,0.12), transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(255,170,100,0.14), transparent 55%),
    linear-gradient(120deg, rgba(36,29,25,0.95), rgba(28,22,19,0.9));
}

.saved-hero-content{
  max-width: 520px;
}

.saved-hero h2{
  font-size: 36px;
  margin: 0 0 8px;
  letter-spacing: -0.6px;
}

.saved-hero .library-subtitle{
  color: #7b533c;
}

.saved-hero .library-helper{
  color: #8a634b;
}

.theme-evening .saved-hero .library-subtitle{
  color: #e6d7cc;
}

.theme-evening .saved-hero .library-helper{
  color: #cbb7aa;
}

.saved-hero-card{
  position: relative;
  min-width: 220px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(216,115,46,0.2);
  background: rgba(255,255,255,0.85);
  display: grid;
  place-items: center;
  box-shadow: 0 18px 36px rgba(216,115,46,0.18);
}

.theme-evening .saved-hero-card{
  background: rgba(36,29,25,0.9);
  border-color: rgba(240,164,90,0.2);
}

.saved-hero-ring{
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(216,115,46,0.35);
  position: absolute;
  inset: 18px;
  margin: auto;
  box-shadow: inset 0 0 0 6px rgba(216,115,46,0.12);
}

.saved-hero-note{
  position: relative;
  z-index: 1;
  text-align: center;
  display: grid;
  gap: 6px;
}

.saved-hero-icon{
  font-size: 16px;
  color: #d8732e;
  text-shadow: 0 4px 12px rgba(216,115,46,0.3);
}

.saved-hero-label{
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #b86a34;
}

.saved-hero-title{
  font-size: 14px;
  color: var(--bg-ink);
  font-family: "Fraunces", "Georgia", serif;
}

.saved-hero::after{
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px dashed rgba(216,115,46,0.25);
  opacity: 0.6;
}

.theme-evening .saved-hero::after{
  border-color: rgba(240,164,90,0.25);
}


@media (max-width: 900px){
  .saved-hero{
    flex-direction: column;
  }

  .saved-hero-card{
    width: 100%;
  }
}

.search{
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: var(--shadow);
}

.theme-evening .search,
.theme-evening .chip,
.theme-evening .btn.ghost,
.theme-evening .topic-list,
.theme-evening .policy-card,
.theme-evening .submit-card,
.theme-evening .about-card,
.theme-evening .story{
  background: rgba(36,29,25,0.9);
  border-color: var(--border);
  color: var(--bg-ink);
}

.theme-evening .topic-thumb{
  background: rgba(36,29,25,0.9);
  border-color: var(--border);
}

.theme-evening .bookmark-btn,
.theme-evening .share-btn{
  background: rgba(36,29,25,0.9);
  border-color: var(--border);
  color: var(--muted);
}

.theme-evening .card{
  background: var(--card);
}

.theme-evening .site-footer{
  background-color: #14110f;
}

.theme-evening .hero-orbit{
  background:
    radial-gradient(circle, rgba(255,245,235,0.55) 0%, rgba(255,200,140,0.18) 55%, transparent 70%);
  box-shadow: 0 16px 55px rgba(240,164,90,0.18);
}

.theme-evening .hero-logo{
  filter: drop-shadow(0 26px 55px rgba(240,164,90,0.28)) brightness(1.05);
}

.search-nav{
  max-width: 220px;
  display: none;
}

.search-wrap:hover .search-nav,
.search-wrap:focus-within .search-nav{
  display: inline-flex;
}

.search-nav.is-open{
  display: inline-flex;
}

.search input{
  border: none;
  outline: none;
  background: transparent;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 13px;
  color: var(--bg-ink);
  width: 200px;
  text-transform: none;
}

.search input::placeholder{
  color: var(--muted);
}

.search-results{
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(360px, calc(100vw - 32px));
  max-height: 220px;
  overflow: auto;
  z-index: 30;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,0.98);
  box-shadow: var(--shadow);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.search-results[hidden]{
  display: none !important;
}

.theme-evening .search-results{
  background: rgba(36,29,25,0.98);
  border-color: var(--border);
}

.search-result-item{
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.search-result-item:hover{
  background: rgba(233,181,91,0.14);
  border-color: rgba(216,115,46,0.3);
}

.search-result-title{
  font-family: "Fraunces", "Georgia", serif;
  font-size: 16px;
  line-height: 1.35;
  color: var(--bg-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-snippet{
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.search-result-empty{
  margin: 0;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
}

.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.chips{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip{
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.8);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.chip.active{
  border-color: rgba(228,116,42,0.5);
  color: #b05a22;
  background: rgba(255,255,255,0.95);
}

.stories-grid{
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.stories-empty{
  display: none;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.stories-status{
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 24px 26px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 20px;
  transition: transform 160ms ease, border-color 160ms ease;
  animation: fadeUp 500ms ease both;
}

.card:hover{
  transform: translateY(-2px);
  border-color: rgba(228,87,46,0.35);
}

.card.is-loading{
  position: relative;
  overflow: hidden;
  min-height: 160px;
}

.card.is-loading::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(255,255,255,0.35), rgba(255,255,255,0.7), rgba(255,255,255,0.35));
  transform: translateX(-100%);
  animation: shimmer 1.6s ease-in-out infinite;
}

.card.is-loading .skeleton{
  height: 12px;
  border-radius: 999px;
  background: rgba(146,112,95,0.2);
}

.card.is-loading .skeleton.title{ height: 18px; width: 70%; }
.card.is-loading .skeleton.line{ width: 90%; }
.card.is-loading .skeleton.line.short{ width: 55%; }

.card-top{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.card-actions{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.card-main{
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.card-copy{
  display: grid;
  gap: 10px;
}

.card h2{
  margin: 0;
  font-size: 20px;
  line-height: 1.08;
}

.card p{
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.card-link{
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--accent);
}

.card-date{
  font-size: 13px;
  color: var(--muted);
}

.card-read{
  font-size: 13px;
  color: var(--muted);
}

.card-media{
  width: 140px;
  height: 140px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.85);
  display: block;
}

.card-media.is-empty{
  background:
    radial-gradient(circle at 30% 30%, rgba(233,181,91,0.55), transparent 55%),
    linear-gradient(135deg, rgba(255,255,255,0.95), rgba(245,232,219,0.9));
}

.theme-evening .card-media{
  background: rgba(36,29,25,0.9);
  border-color: var(--border);
}

.bookmark-btn{
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.85);
  color: #b05a22;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.bookmark-btn svg{
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.bookmark-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(228,116,42,0.5);
}

.bookmark-btn.saved{
  background: rgba(228,116,42,0.15);
  border-color: rgba(228,116,42,0.6);
  color: #e4742a;
}

.badges{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.badge{
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.8);
  font-family: "Manrope", "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.site-footer{
  background-color: #1f1b18;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.18) 1.4px, transparent 1.4px),
    radial-gradient(circle, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px;
  background-position: 0 0, 40px 40px;
  color: #c9b8aa;
  padding: 18px 0 10px;
  margin-top: auto;
  position: relative;
  overflow: hidden;
}

.footer-inner{
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 14px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.footer-brand{
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: #c9b8aa;
}

.footer-logo-wrap{
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.footer-logo{
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: none;
  opacity: 0.95;
}

.footer-brand p{
  margin: 0;
  max-width: 260px;
}

.footer-links{
  display: grid;
  gap: 10px;
  font-size: 14px;
}

.footer-links a{
  color: #c9b8aa;
}

.footer-links a:hover{
  color: #e9a86b;
}

.footer-social{
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  align-items: center;
}

.social-icon{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.08);
  color: #e9a86b;
}

.social-icon svg{
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-bottom{
  text-align: center;
  font-size: 12px;
  color: #a89486;
  margin-top: 14px;
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
}

.footer-human{
  text-align: center;
  font-size: 13px;
  color: #d8c9bd;
  letter-spacing: 0.2px;
  position: relative;
  z-index: 1;
}

.footer-copy{
  font-size: 12px;
  color: #a89486;
}

/* Story page */
.story-layout{
  padding: 50px 0 0;
}

.story-layout main{
  padding-bottom: 36px;
}

.reading-progress{
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #d8732e, #e9b55b);
  z-index: 200;
  box-shadow: 0 0 12px rgba(216,115,46,0.45);
}

.theme-evening .reading-progress{
  background: linear-gradient(90deg, #f0a45a, #f3c27c);
  box-shadow: 0 0 12px rgba(240,164,90,0.4);
}

.policy-page{
  padding: 20px 0 40px;
}

.policy-card{
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 36px 42px 30px;
  max-width: 860px;
  margin: 0 auto 24px;
}

.policy-hero{
  margin-bottom: 16px;
}

.policy-eyebrow{
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--accent);
  margin: 0 0 6px;
}

.policy-card h1{
  margin: 0 0 10px;
  font-size: 34px;
  color: #5f4333;
}

.policy-intro{
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 620px;
}

.policy-section{
  padding: 14px 0;
  border-top: 1px solid rgba(90,60,43,0.08);
}

.policy-section h3{
  margin: 0 0 6px;
  font-size: 18px;
  color: #b86a34;
}

.policy-section p{
  margin: 0;
  color: var(--muted);
}

.policy-contact{
  color: var(--bg-ink);
  font-weight: 600;
}

.policy-meta{
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.submit-page{
  padding: 20px 0 40px;
}

.submit-card{
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 36px 42px 32px;
  max-width: 760px;
  margin: 0 auto 24px;
}


.submit-form{
  display: grid;
  gap: 16px;
}

.submit-status{
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.submit-form button:disabled{
  opacity: 0.7;
  cursor: not-allowed;
}

.field{
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  font-family: "Manrope", "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.field input,
.field textarea{
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.9);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 14px;
  color: var(--bg-ink);
  text-transform: none;
}

.field textarea{
  resize: vertical;
}

.back{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 20px;
  color: var(--muted);
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.story{
  background:
    radial-gradient(circle at 85% 6%, rgba(233,181,91,0.22), transparent 30%),
    radial-gradient(circle at 15% 0%, rgba(216,115,46,0.12), transparent 26%),
    var(--card);
  border: 1px solid rgba(90,60,43,0.16);
  border-radius: 24px;
  padding: 34px;
  box-shadow: 0 24px 46px rgba(90,60,43,0.16);
  display: grid;
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.theme-evening .story{
  background:
    radial-gradient(circle at 85% 6%, rgba(243,194,124,0.14), transparent 30%),
    radial-gradient(circle at 15% 0%, rgba(240,164,90,0.1), transparent 26%),
    var(--card);
  border-color: rgba(234,223,214,0.2);
  box-shadow: 0 24px 46px rgba(0,0,0,0.35);
}

.story-hero{
  border: 1px solid rgba(216,115,46,0.22);
  background: rgba(255,255,255,0.64);
  border-radius: 20px;
  padding: 22px;
  display: grid;
  gap: 12px;
}

.theme-evening .story-hero{
  background: rgba(36,29,25,0.72);
  border-color: rgba(243,194,124,0.25);
}

.story-kicker{
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  color: var(--accent);
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.story h1{
  font-size: 42px;
  margin: 0;
  line-height: 1.12;
}

.story-header{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.story-toolbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.story-tools{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.share-btn{
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.9);
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.share-btn svg{
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.share-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(216,115,46,0.5);
  color: #b86a34;
}

.share-btn.copied{
  background: rgba(216,115,46,0.15);
  border-color: rgba(216,115,46,0.6);
  color: #d8732e;
}

.story-meta{
  color: var(--muted);
  font-size: 14px;
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.story-lede{
  margin: 4px 0 0;
  font-size: 20px;
  line-height: 1.55;
  color: #654835;
  font-family: "Fraunces", "Georgia", serif;
}

.theme-evening .story-lede{
  color: #f2ddd0;
}

.story-content{
  display: grid;
  gap: 16px;
}

.story-content:empty{
  display: none;
}

.story-paragraph{
  margin: 0;
  font-size: 18px;
  line-height: 1.9;
  color: #5d4639;
}

.theme-evening .story-paragraph{
  color: #eadfd6;
}

.story-paragraph:first-letter{
  font-family: "Fraunces", "Georgia", serif;
  font-size: 1.22em;
  font-weight: 700;
  color: var(--accent);
}

.story-insights{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.story-section h3{
  margin: 0 0 8px;
  color: #b86a34;
  font-size: 18px;
}

.story-section p{
  margin: 0;
}

.insight-card{
  border: 1px solid rgba(216,115,46,0.25);
  border-radius: 16px;
  background: rgba(255,255,255,0.74);
  padding: 16px 16px 14px;
  box-shadow: 0 10px 24px rgba(90,60,43,0.08);
}

.theme-evening .insight-card{
  background: rgba(36,29,25,0.72);
  border-color: rgba(243,194,124,0.25);
}

.action-card{
  background:
    linear-gradient(140deg, rgba(233,181,91,0.2), rgba(255,255,255,0.78) 60%),
    rgba(255,255,255,0.78);
}

.theme-evening .action-card{
  background:
    linear-gradient(140deg, rgba(240,164,90,0.16), rgba(36,29,25,0.78) 60%),
    rgba(36,29,25,0.78);
}

hr{
  border: none;
  border-top: 1px solid var(--border);
  margin: 12px 0;
}

@keyframes fadeUp{
  from{ opacity: 0; transform: translateY(10px); }
  to{ opacity: 1; transform: translateY(0); }
}

@keyframes shimmer{
  0%{ transform: translateX(-100%); }
  100%{ transform: translateX(100%); }
}

@media (max-width: 920px){
  .container{
    padding: 0 20px;
  }
  .library-head{
    flex-direction: column;
    align-items: flex-start;
  }
  .search{
    width: 100%;
  }
  .search-wrap{
    width: 100%;
  }
  .search-nav{
    width: 100%;
  }
  .search input{
    width: 100%;
  }
  .topbar-inner{
    flex-direction: column;
    align-items: flex-start;
  }
  .nav{
    width: 100%;
    flex-wrap: wrap;
    gap: 12px 14px;
  }
  .theme-toggle{
    margin-right: 0;
  }
  .hero-grid{
    grid-template-columns: 1fr;
    text-align: left;
  }
  .hero-visual{
    order: -1;
  }
  .topics-head{
    flex-direction: column;
    align-items: flex-start;
  }
  .topic-item{
    grid-template-columns: auto 1fr;
  }
  .topic-meta{
    grid-column: 2;
  }
  .featured-card{
    flex-direction: column;
    align-items: flex-start;
  }
  .card{
    border-radius: 24px;
    padding: 20px;
  }
  .card-main{
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 14px;
  }
  .card-media{
    width: 120px;
    height: 120px;
    border-radius: 14px;
  }
  .card-date,
  .card-read{
    font-size: 13px;
  }
  .bookmark-btn{
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .bookmark-btn svg{
    width: 15px;
    height: 15px;
  }
  .howto-grid{
    grid-template-columns: 1fr;
  }
  .footer-inner{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px){
  .container{ padding: 0 16px; }
  .topbar{ padding: 18px 0 8px; }
  .topbar-inner{ gap: 14px; }
  .brand-wordmark .brand-name{ font-size: clamp(40px, 16vw, 56px); }
  .nav{
    font-size: 12px;
    letter-spacing: 0.7px;
    gap: 10px 12px;
  }
  .nav-cta{ padding: 8px 14px; }
  .search-results{
    width: min(320px, calc(100vw - 24px));
    left: -8px;
  }
  .hero-content h1{ font-size: 34px; }
  .hero-actions{
    width: 100%;
    gap: 10px;
  }
  .hero-actions .btn{
    width: 100%;
  }
  .hero-visual{ min-height: 0; }
  .hero-logo{
    width: min(280px, 82vw);
    height: min(280px, 82vw);
  }
  .hero-orbit{
    width: min(268px, 78vw);
    height: min(268px, 78vw);
  }
  .card{
    border-radius: 20px;
    padding: 16px;
    gap: 14px;
  }
  .card-top{
    flex-direction: column;
    gap: 10px;
  }
  .card-actions{
    width: 100%;
    justify-content: space-between;
  }
  .card-main{
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .card-media{
    width: min(130px, 40vw);
    height: min(130px, 40vw);
  }
  .card h2{
    font-size: 20px;
  }
  .about-card{
    padding: 32px 24px 36px;
  }
  .about-logo-wrap{
    width: 180px;
    height: 180px;
    margin: -95px auto 0;
  }
  .about-logo{
    width: 180px;
    height: 180px;
  }
  .about-card h1{
    font-size: 30px;
  }
  .topic-item{
    grid-template-columns: 1fr;
  }
  .topic-meta{
    grid-column: auto;
  }
  .story{
    padding: 22px 18px;
    border-radius: 18px;
    gap: 16px;
  }
  .story-hero{
    padding: 16px;
    border-radius: 14px;
    gap: 10px;
  }
  .story h1{
    font-size: 30px;
  }
  .story-lede{
    font-size: 18px;
  }
  .story-paragraph{
    font-size: 17px;
    line-height: 1.8;
  }
  .story-insights{
    grid-template-columns: 1fr;
  }
  .policy-card{
    padding: 28px 22px 26px;
  }
  .policy-card h1{
    font-size: 28px;
  }
  .submit-card{
    padding: 28px 22px 26px;
  }
  .site-footer{
    padding: 36px 0 16px;
  }
  .footer-social{
    justify-content: flex-start;
  }
}
