@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative&family=Libre+Baskerville&family=Lora&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300&display=swap');

#author-blurb {
    max-width: 700px;
    margin: -80px auto 40px auto;
    padding: 30px 40px;
    background: linear-gradient(160deg, rgba(255,255,255,0.6), rgba(210,240,220,0.4));
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    backdrop-filter: blur(6px);
    text-align: center;
    position: relative;
}

#author-blurb h2 {
    font-family: 'Cinzel Decorative', serif;
    color: #7a3a3a;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

#author-blurb p {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    margin: 10px 0;
}

#author-blurb::after {
    content: "✦ ✦ ✦";
    display: block;
    margin-top: 15px;
    color: rgba(120, 80, 80, 0.4);
    letter-spacing: 8px;
    font-size: 12px;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Libre Baskerville', serif;
    background-color: #e3e5e4;
}


body {
     display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#header {
    background-image: url('images/head.jpg'),url('images/bg1.jpg');
    background-repeat: no-repeat, repeat-x;
    background-position: center;
    position-relative;
    height: 706px;
    top: 0px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.2) 80%, rgba(0,0,0,0) 100%);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: cover;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.2) 80%, rgba(0,0,0,0) 100%);
    mask-repeat: no-repeat;
    mask-size: cover;
}

#content {
    width: 75%;
    margin: 40px auto;  flex: 1;
}

h1 {
    text-align: center;
    font-family: 'Cinzel Decorative', serif;
    color: #d17a7a;
    margin-bottom: 30px;
}

h1::after {
    content: "✦ ✦ ✦";
    display: block;
    margin-top: 10px;
    color: rgba(180, 80, 80, 0.5);
    letter-spacing: 10px;
    font-size: 14px;
}

.ff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.ff-card {
    background: linear-gradient(145deg, #161616, #1e1e1e);
    border: 1px solid rgba(120, 80, 80, 0.2);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 0 25px rgba(0,0,0,0.6);
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.ff-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(120deg, rgba(120,40,40,0.2), rgba(60,120,100,0.2));
    opacity: 0;
    transition: 0.4s; pointer-events: none;
}

.ff-card:hover::before {
    opacity: 1;
}

.ff-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 25px rgba(120,40,40,0.4), inset 0 0 20px rgba(60,120,100,0.15);
}

.ff-card h2 {
    font-family: 'Cinzel Decorative', serif;
    font-size: 20px;
    margin-bottom: 10px;
    color: #c96a6a;
}

.ff-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #bfbfbf;
}

.ff-card a {
    display: inline-block;
    margin-top: 12px;
    font-size: 14px;
    color: #7aa37a;
    text-decoration: none;
}

.ff-card a:hover {
    color: #a5c9a5;
}

.ff-tags {
    margin-top: 12px;
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    margin: 4px 6px 0 0;
    font-size: 12px;
    border-radius: 20px;
    font-family: 'Lora', serif;
    letter-spacing: 1px;
    background: #222;
    color: #ccc;
    border: 1px solid #333;
    transition: 0.2s;
}

.tag:hover {
    transform: scale(1.05);
    box-shadow: 0 0 8px currentColor;
}

.tag-angst {
    background: rgba(120, 40, 40, 0.2);
    color: #c96a6a;
    border-color: rgba(120, 40, 40, 0.5);
}

.tag-fluff {
    background: rgba(60, 100, 70, 0.2);
    color: #9bcf9b;
    border-color: rgba(60, 100, 70, 0.5);
}

.tag-dark {
    background: rgba(20,20,20,0.6);
    color: #aaaaaa;
    border-color: #444;
}

.tag-romance {
    background: rgba(150, 60, 80, 0.2);
    color: #e09aa9;
    border-color: rgba(150, 60, 80, 0.5);
}

.tag-humour {
    background: rgba(60, 120, 100, 0.2);
    color: #7fd1c2;
    border-color: rgba(60, 120, 100, 0.5);
}

.reading-page {
    max-width: 1300px;
    width: 65%;
    margin: 60px auto 90px auto; 
    padding: 40px;
    background: linear-gradient(160deg, #141414, #1c1a1a);
    border-radius: 14px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    position: relative;
}


.reading-page::before,
.reading-page::after {
    content: "";
    position: absolute;
    width: 2px;
    top: 20px;
    bottom: 20px;
    background: linear-gradient(to bottom, transparent, rgba(120,80,80,0.3), transparent);
}

.reading-page::before { left: -15px; }
.reading-page::after { right: -15px; }

.reading-page h1 { text-align: center; color: #d17a7a; }
.reading-page p { line-height: 1.9; font-size: 17px; color: #d0d0d0; margin-bottom: 20px; }

blockquote {
    border-left: 3px solid #7aa37a;
    padding-left: 15px;
    color: #a8c0a8;
    margin: 25px 0;
    font-style: italic;
}

.chapter-title {
    text-align: center;
    font-family: 'Cinzel Decorative', serif;
    color: #9bcf9b;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.chapter-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(120,80,80,0.3);
}

.chapter-nav a {
    font-size: 14px;
    color: #b84a4a;
    text-decoration: none;
}

.chapter-nav a:hover {
    color: #7aa37a;
    text-shadow: 0 0 6px rgba(122,163,122,0.6);
}

.chapter-center {
    text-align: center;
    margin-top: 20px;
}

.chapter-center a {
    font-size: 13px;
    color: #888;
}

.chapter-center a:hover { color: #aaa; }

a { color: #b84a4a; transition: 0.3s; }
a:hover { color: #7aa37a; }

#footer {
    text-align: center;
    padding: 40px;
    background: linear-gradient(145deg, #0d0d0d, #141414);
    color: #777;
    font-size: 14px;
    margin-top: auto; 
}