@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative&family=Libre+Baskerville&family=Lora&display=swap');

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Libre Baskerville', serif;
background:
  radial-gradient(circle at 50% 90%, rgba(134,230,163,0.18), transparent 60%),
  radial-gradient(circle at 30% 100%, rgba(120,200,160,0.10), transparent 55%),
  linear-gradient(to bottom, #000000 0%, #020302 40%, #062010 100%);
    color: #cfd6d2;
    min-height: 100vh;
}

.embers {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}

.ember {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffb347, #ff5a1f 60%, transparent 80%);
    box-shadow: 0 0 4px rgba(255, 120, 40, 0.15);
    opacity: 0.25;
    animation: emberFall linear infinite, emberFlicker 1.5s infinite alternate;
}

@keyframes emberFall {
    0% { transform: translateY(-10vh) translateX(0); }
    100% { transform: translateY(110vh) translateX(40px); }
}

@keyframes emberFlicker {
    0% { opacity: 0.2; }
    100% { opacity: 0.4; }
}

#header {
    height: 688px;
    position: relative;
    overflow: hidden;
    padding-top: 120px;
}

.fae {
    position: absolute;
    left: 50%;
    bottom: 15%;
    transform: translateX(-50%);
    width: 1280px;
    animation: faeFloat 7s ease-in-out infinite;
}

@keyframes faeFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-12px); }
}

h1 {
    text-align: center;
    font-family: 'Cinzel Decorative', serif;
    color: #b9e6c9;
    letter-spacing: 6px;
    margin-bottom: 60px;
    opacity: 0.85;
    text-shadow: 0 0 12px rgba(134,230,163,0.08);
}

#author-blurb {
    width: 60%;
    margin: -50px auto 80px auto;
    padding: 40px;
    background: linear-gradient(160deg, #0a0d0a, #141814);
    border-left: 2px solid rgba(134,230,163,0.25);
    position: relative;
    z-index: 2;
    transform: rotate(-1deg);
    box-shadow:
        0 0 30px rgba(0,0,0,0.8),
        inset 0 0 15px rgba(134,230,163,0.05);
}

#author-blurb h2 {
    font-family: 'Cinzel Decorative', serif;
    color: #b9e6c9;
    letter-spacing: 3px;
}

#author-blurb p {
    color: #a9b7b0;
}

#content {
    width: 80%;
    position: relative;
    z-index: 2;
    margin: 0 auto 80px auto;
}

.ff-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.ff-card {
    width: 280px;
    padding: 25px;
    background: linear-gradient(145deg, #060806, #0c120e);
    border: 1px solid rgba(134,230,163,0.12);
    color: #cfd6d2;
    clip-path: polygon(
        0% 10%, 10% 0%, 90% 0%, 100% 10%,
        100% 90%, 90% 100%, 10% 100%, 0% 90%
    );
    transition: 0.4s ease;
}

.ff-card:nth-child(odd) {
    margin-left: -20px;
    transform: rotate(-1deg);
}

.ff-card:nth-child(even) {
    margin-right: -20px;
    transform: rotate(1deg);
}

.ff-card:nth-child(3n) {
    margin-left: 30px;
    transform: translateY(10px) rotate(1.2deg);
}

.ff-card:nth-child(4n) {
    margin-right: 30px;
    transform: translateY(-10px) rotate(-0.8deg);
}

.ff-card:hover {
    transform: scale(1.03) rotate(0deg);
    margin-left: 0;
    margin-right: 0;
    box-shadow: 0 0 20px rgba(134,230,163,0.08);
}

.ff-card h2 {
    color: #b9e6c9;
}

.ff-card p {
    color: #a9b7b0;
}

a {
    color: #86e6a3;
}

a:hover {
    color: #c7f7d6;
}

.tag {
    padding: 7px 12px;
    font-size: 13px;
    color: #a9cbb6;
    background: rgba(10, 18, 12, 0.45);
    border: 1px solid rgba(134,230,163,0.15);
}

.reading-page {
    position: relative;
    width: 70%;
    margin: 80px auto;
    padding: 70px;
    background: linear-gradient(160deg, #010201, #08110c, #020302);
    clip-path: polygon(
        0 5%, 5% 0, 95% 0, 100% 5%,
        100% 95%, 95% 100%, 5% 100%, 0 95%
    );
    box-shadow:
        0 0 40px rgba(0,0,0,1),
        0 0 18px rgba(134,230,163,0.04),
        inset 0 0 20px rgba(134,230,163,0.03);
    overflow: hidden;
}

.reading-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(134,230,163,0.05), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.02), transparent 60%);
    pointer-events: none;
}

.reading-page::after {
    content: "";
    position: absolute;
    top: 6%;
    bottom: 6%;
    left: 18px;
    right: 18px;
    border-left: 1px solid rgba(134,230,163,0.12);
    border-right: 1px solid rgba(134,230,163,0.12);
    pointer-events: none;
}

blockquote {
    border-left: 2px solid rgba(134,230,163,0.4);
    padding-left: 15px;
    color: #a9cbb6;
}

.chapter-nav {
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
}

.chapter-nav a {
    color: #c96b6b;
}

.fae-footer {
  position: relative;
  padding: 80px 20px 50px;
  text-align: center;
  color: rgba(220, 255, 235, 0.88);
  font-family: system-ui, sans-serif;
  overflow: hidden;
}

/* mystical fog / aura */
.fae-glow-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 100%, rgba(134,230,163,0.30), transparent 60%),
    radial-gradient(circle at 20% 85%, rgba(200,255,220,0.14), transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(120,200,160,0.12), transparent 65%);
  filter: blur(40px);
  opacity: 0.95;
}

/* content sits above glow */
.fae-content {
  position: relative;
  z-index: 1;
}

/* ornamental divider */
.fae-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
}

.fae-divider span {
  height: 1px;
  width: 80px;
  background: linear-gradient(to right, transparent, rgba(134,230,163,0.6), transparent);
  opacity: 0.8;
}

.fae-sigil {
  font-size: 18px;
  color: rgba(200, 255, 220, 0.95);
  text-shadow:
    0 0 10px rgba(134,230,163,0.5),
    0 0 25px rgba(120,200,160,0.4);
}

.fae-title {
  font-size: 20px;
  letter-spacing: 6px;
  margin-bottom: 18px;
  text-transform: uppercase;
  color: rgba(235, 255, 245, 0.95);
  text-shadow:
    0 0 12px rgba(134,230,163,0.35),
    0 0 30px rgba(120,200,160,0.25);
}

.fae-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.fae-links a {
  text-decoration: none;
  color: rgba(200, 255, 220, 0.85);
  letter-spacing: 2px;
  font-size: 13px;
  position: relative;
  transition: 0.3s ease;
}

.fae-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0%;
  height: 1px;
  background: rgba(134,230,163,0.7);
  transition: 0.3s ease;
  transform: translateX(-50%);
}

.fae-links a:hover {
  color: #d6ffe7;
  text-shadow: 0 0 12px rgba(134,230,163,0.5);
}

.fae-links a:hover::after {
  width: 100%;
}

.fae-footer-note {
  font-size: 12px;
  opacity: 0.65;
  letter-spacing: 1.5px;
  margin-top: 8px;
}


.wisp {
    position: fixed;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #86e6a3, #000);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

.wisp-trail {
    position: fixed;
    width: 4px;
    height: 4px;
    background: #66d98f;
    border-radius: 50%;
    opacity: 0.3;
    animation: fadeOut 1s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: scale(0.2);
    }
}

.firefly {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #66d98f;
    border-radius: 50%;
    opacity: 0.3;
    animation: float linear infinite, flicker 2s infinite alternate;
}

@keyframes float {
    from { transform: translateY(0); }
    to { transform: translateY(-100vh); }
}

@keyframes flicker {
    0% { opacity: 0.2; }
    100% { opacity: 0.5; }
}


#books {
    width:56%;
    margin: 100px auto;
    text-align: center;
}

#books h1 {
    margin-bottom: 50px;
}


.book-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}


.book-card {
    display: flex;
    gap: 25px;
    align-items: center;

    padding: 25px;
    background: linear-gradient(145deg, #060806, #0c120e);
    border: 1px solid rgba(134,230,163,0.12);

    clip-path: polygon(
        0% 10%, 10% 0%, 90% 0%, 100% 10%,
        100% 90%, 90% 100%, 10% 100%, 0% 90%
    );

    transition: 0.3s ease;
}

.book-card:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(134,230,163,0.1);
}

.book-card img {
    width: 140px;
    height: auto;
    flex-shrink: 0;
    border-radius: 4px;
}

.book-info {
    text-align: left;
}

.book-card h3 {
    color: #b9e6c9;
    margin-bottom: 8px;
}


.book-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #a9cbb6;
    margin-bottom: 12px;
}


.book-card a {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid rgba(134,230,163,0.3);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 1px;
}

.book-card a:hover {
    background: rgba(134,230,163,0.1);
    color: #d6ffe7;
}