/*
Theme Name: FearSeed
Theme URI: https://example.com/fearseed
Author: FearSeed
Description: A cinematic horror WordPress theme built from the FearSeed landing-page aesthetic. Dark, atmospheric, responsive and content-focused.
Version: 1.0.1
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fearseed
Tags: blog, dark, one-column, custom-menu, featured-images, custom-logo, editor-style, threaded-comments
*/

:root {
  --fs-bg: #050505;
  --fs-bg-soft: #0b0707;
  --fs-panel: rgba(20, 0, 0, .18);
  --fs-text: #e8e8e8;
  --fs-muted: #999;
  --fs-dim: #5f5f5f;
  --fs-red: #8b0000;
  --fs-red-soft: #641010;
  --fs-border: #351010;
  --fs-max: 1180px;
  --fs-reading: 760px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--fs-bg);
  color: var(--fs-text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
  line-height: 1.65;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 40%, rgba(80, 0, 0, .18), transparent 35%),
    radial-gradient(circle at 20% 80%, rgba(100, 0, 0, .08), transparent 30%);
  z-index: -2;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .07;
  z-index: 90;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0, rgba(255,255,255,.04) 1px, transparent 1px, transparent 3px);
}

a { color: #c24a4a; text-decoration: none; }
a:hover, a:focus { color: #f07878; }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  clip: auto !important; width: auto; height: auto; margin: 10px; padding: 12px 16px;
  background: #fff; color: #111; z-index: 9999;
}

/* Atmosphere */
.fs-noise {
  position: fixed;
  inset: -50%;
  width: 200%; height: 200%;
  opacity: .035;
  pointer-events: none;
  z-index: 80;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  animation: fs-noise .2s steps(2) infinite;
}
@keyframes fs-noise {
  0% { transform: translate(0,0); }
  25% { transform: translate(2%,-1%); }
  50% { transform: translate(-1%,2%); }
  75% { transform: translate(1%,1%); }
  100% { transform: translate(-2%,-1%); }
}
.fs-fog {
  position: fixed;
  width: 800px; height: 400px;
  left: 50%; bottom: -150px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(180,180,180,.07), transparent 65%);
  filter: blur(30px);
  animation: fs-fog 10s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}
@keyframes fs-fog {
  from { transform: translateX(-55%) scale(1); opacity: .4; }
  to { transform: translateX(-45%) scale(1.25); opacity: .8; }
}

/* Site header */
.fs-site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 70;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(to bottom, rgba(5,5,5,.82), transparent);
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.fs-site-header.is-scrolled {
  background: rgba(5,5,5,.86);
  border-bottom: 1px solid rgba(53,16,16,.55);
  backdrop-filter: blur(12px);
}
.fs-brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.fs-brand .custom-logo { max-height: 42px; width: auto; }
.fs-brand-text {
  font-family: "Creepster", cursive;
  color: #e7e7e7;
  letter-spacing: 2px;
  font-size: 28px;
  line-height: 1;
  text-shadow: 2px 0 #420000;
}
.fs-menu-toggle {
  display: none;
  border: 1px solid var(--fs-border);
  color: #aaa;
  background: rgba(20,0,0,.24);
  padding: 8px 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 10px;
  cursor: pointer;
}
.fs-nav ul { list-style: none; display: flex; align-items: center; gap: 22px; }
.fs-nav a {
  color: #777;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2.2px;
  transition: color .2s ease;
}
.fs-nav a:hover, .fs-nav a:focus, .fs-nav .current-menu-item > a { color: #cfcfcf; }

/* Keep the WordPress chrome out of the cinematic first screen.
   Inner pages still use the normal FearSeed site header. */
body.fearseed-landing .fs-site-header {
  display: none;
}

/* Hero */
.fs-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  position: relative;
}
.fs-hero-content { max-width: 900px; position: relative; z-index: 3; }
.fs-eyebrow {
  color: #777;
  text-transform: uppercase;
  letter-spacing: 7px;
  font-size: 11px;
  margin-bottom: 30px;
}
.fs-logo {
  font-family: "Creepster", cursive;
  font-size: clamp(70px, 14vw, 170px);
  letter-spacing: 5px;
  line-height: .8;
  color: #eee;
  text-shadow: 0 0 10px rgba(255,255,255,.12), 4px 0 #420000, -3px 0 rgba(100,0,0,.5);
  animation: fs-flicker 5s infinite;
}
@keyframes fs-flicker {
  0%, 18%, 20%, 22%, 63%, 64%, 100% { opacity: 1; }
  19%, 21%, 62% { opacity: .65; }
}
.fs-tagline {
  margin-top: 35px;
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 300;
  letter-spacing: 4px;
  color: #aaa;
}
.fs-tagline span { color: var(--fs-red); }
.fs-coming {
  display: inline-block;
  margin-top: 45px;
  padding: 14px 28px;
  border: 1px solid #3b1111;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 11px;
  background: rgba(20,0,0,.25);
}
.fs-scroll {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  color: #555;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  animation: fs-pulse 2s infinite;
  z-index: 3;
}
@keyframes fs-pulse { 50% { opacity: .25; } }

/* Landing story */
.fs-story {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 100px 25px;
  position: relative;
}
.fs-story-card {
  width: min(720px, 100%);
  padding: 70px 55px;
  border-top: 1px solid var(--fs-border);
  border-bottom: 1px solid var(--fs-border);
  background: linear-gradient(180deg, rgba(20,0,0,.18), rgba(0,0,0,.4));
  position: relative;
  z-index: 2;
}
.fs-story-label, .fs-section-label {
  color: #7e1111;
  text-transform: uppercase;
  letter-spacing: 5px;
  font-size: 10px;
  margin-bottom: 30px;
}
.fs-story h2, .fs-horror-title {
  font-family: "Creepster", cursive;
  font-size: clamp(42px, 7vw, 70px);
  font-weight: normal;
  line-height: 1;
  margin-bottom: 30px;
  color: #ddd;
}
.fs-story-content, .fs-story-content p {
  color: #999;
  font-size: 16px;
  line-height: 2;
  font-weight: 300;
}
.fs-story-content p + p { margin-top: 20px; }
.fs-story-content strong { color: #d8d8d8; }
.fs-story-content a { text-decoration: underline; text-underline-offset: 3px; }
.fs-whisper {
  margin-top: 40px !important;
  color: var(--fs-red-soft) !important;
  font-style: italic;
  text-align: center;
  font-size: 18px !important;
}
.fs-blood {
  position: absolute;
  width: 2px; height: 80px;
  background: linear-gradient(#710000, transparent);
  top: 0; left: 15%;
  opacity: .5;
}
.fs-blood::after {
  content: "";
  position: absolute;
  width: 7px; height: 7px;
  background: #710000;
  border-radius: 50%;
  bottom: 0; left: -2px;
}
.fs-read-more {
  display: inline-block;
  margin-top: 34px;
  color: #8e4444;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 10px;
}

/* Fragment grid */
.fs-fragments { padding: 110px 24px 130px; position: relative; z-index: 2; }
.fs-wrap { width: min(var(--fs-max), calc(100% - 32px)); margin: 0 auto; }
.fs-section-head { text-align: center; margin-bottom: 48px; }
.fs-section-head h2 {
  font-family: "Creepster", cursive;
  font-weight: normal;
  font-size: clamp(38px, 6vw, 64px);
  letter-spacing: 1px;
}
.fs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.fs-card {
  border: 1px solid rgba(53,16,16,.75);
  background: linear-gradient(180deg, rgba(20,0,0,.18), rgba(5,5,5,.86));
  min-height: 100%;
  transition: transform .25s ease, border-color .25s ease;
}
.fs-card:hover { transform: translateY(-4px); border-color: rgba(126,17,17,.9); }
.fs-card-media { aspect-ratio: 16/9; overflow: hidden; background: #0b0808; }
.fs-card-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.28) contrast(1.08) brightness(.72); transition: transform .4s ease; }
.fs-card:hover .fs-card-media img { transform: scale(1.035); }
.fs-card-body { padding: 26px; }
.fs-card-meta { color: #6e3a3a; text-transform: uppercase; font-size: 9px; letter-spacing: 2px; margin-bottom: 12px; }
.fs-card h3 { font-family: "Creepster", cursive; font-weight: normal; font-size: 30px; line-height: 1.1; }
.fs-card h3 a { color: #d8d8d8; }
.fs-card p { margin-top: 14px; color: #777; font-size: 14px; line-height: 1.75; }

/* Inner pages */
.fs-main { position: relative; z-index: 2; padding: 140px 24px 100px; min-height: calc(100vh - 120px); }
.fs-page-head { width: min(var(--fs-reading), 100%); margin: 0 auto 55px; text-align: center; }
.fs-page-head .fs-section-label { margin-bottom: 20px; }
.fs-page-title {
  font-family: "Creepster", cursive;
  font-weight: normal;
  color: #e0e0e0;
  font-size: clamp(46px, 8vw, 82px);
  line-height: .98;
}
.fs-page-description { margin-top: 22px; color: #777; font-size: 15px; }
.fs-post-list { width: min(920px, 100%); margin: 0 auto; display: grid; gap: 28px; }
.fs-list-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 180px;
  border-top: 1px solid var(--fs-border);
  background: rgba(10,5,5,.22);
}
.fs-list-card-media { min-height: 180px; background: #090707; overflow: hidden; }
.fs-list-card-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) brightness(.72); }
.fs-list-card-body { padding: 26px 30px; }
.fs-list-card h2 { font-family: "Creepster", cursive; font-weight: normal; font-size: 34px; line-height: 1.1; }
.fs-list-card h2 a { color: #d9d9d9; }
.fs-list-card p { color: #7c7c7c; margin-top: 11px; font-size: 14px; }
.fs-list-meta { color: #6d3434; text-transform: uppercase; letter-spacing: 2px; font-size: 9px; margin-bottom: 10px; }

/* Article */
.fs-article { width: min(var(--fs-reading), 100%); margin: 0 auto; }
.fs-article-head { text-align: center; margin-bottom: 44px; }
.fs-article-meta { color: #6d3434; text-transform: uppercase; letter-spacing: 2.6px; font-size: 9px; margin-bottom: 18px; }
.fs-article-title {
  font-family: "Creepster", cursive;
  font-weight: normal;
  font-size: clamp(48px, 8vw, 86px);
  line-height: .95;
  color: #e1e1e1;
}
.fs-featured-image { margin: 0 auto 42px; width: min(980px, 100%); }
.fs-featured-image img { width: 100%; display: block; filter: grayscale(.2) contrast(1.05) brightness(.8); }
.fs-entry-content { color: #a0a0a0; font-size: 17px; font-weight: 300; line-height: 1.95; }
.fs-entry-content > * + * { margin-top: 1.35em; }
.fs-entry-content h2, .fs-entry-content h3, .fs-entry-content h4 {
  font-family: "Creepster", cursive;
  color: #d8d8d8;
  font-weight: normal;
  line-height: 1.1;
  margin-top: 1.7em;
}
.fs-entry-content h2 { font-size: 44px; }
.fs-entry-content h3 { font-size: 34px; }
.fs-entry-content blockquote { border-left: 2px solid #5d1111; padding-left: 24px; color: #8a5c5c; font-style: italic; }
.fs-entry-content ul, .fs-entry-content ol { padding-left: 24px; }
.fs-entry-content pre, .fs-entry-content code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.fs-entry-content pre { overflow: auto; padding: 18px; background: #0a0707; border: 1px solid #2c1010; }
.fs-entry-content table { width: 100%; border-collapse: collapse; }
.fs-entry-content th, .fs-entry-content td { border: 1px solid #2d1717; padding: 10px 12px; text-align: left; }
.fs-entry-content figure { max-width: 100%; }
.fs-entry-content figcaption { color: #666; font-size: 12px; margin-top: 8px; }
.fs-tags { margin-top: 44px; color: #666; font-size: 12px; }
.fs-tags a { display: inline-block; margin: 4px 8px 4px 0; padding: 6px 9px; border: 1px solid #311212; color: #855; }
.fs-post-nav { width: min(var(--fs-reading), 100%); margin: 70px auto 0; padding-top: 26px; border-top: 1px solid var(--fs-border); display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.fs-post-nav a { color: #777; font-size: 12px; }
.fs-post-nav .nav-next { text-align: right; }

/* Forms */
.fs-search-form { width: min(620px, 100%); margin: 32px auto 0; display: flex; gap: 8px; }
.fs-search-form input[type="search"],
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%;
  background: rgba(15,7,7,.85);
  border: 1px solid #301414;
  color: #ddd;
  padding: 13px 14px;
  outline: none;
}
.fs-search-form input:focus, .comment-form input:focus, .comment-form textarea:focus { border-color: #6e2222; }
.fs-button, .fs-search-form button, .comment-form input[type="submit"] {
  border: 1px solid #4a1616;
  color: #aaa;
  background: rgba(30,0,0,.35);
  padding: 12px 18px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 10px;
  cursor: pointer;
}

/* Comments */
.fs-comments { width: min(var(--fs-reading), 100%); margin: 70px auto 0; padding-top: 35px; border-top: 1px solid var(--fs-border); }
.fs-comments-title { font-family: "Creepster", cursive; font-size: 38px; font-weight: normal; }
.comment-list { list-style: none; margin-top: 26px; }
.comment-list .children { list-style: none; margin-left: 24px; }
.comment-body { padding: 22px 0; border-bottom: 1px solid #241010; }
.comment-meta { font-size: 11px; color: #666; }
.comment-content { margin-top: 12px; color: #919191; }
.comment-reply-link { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; }
.comment-respond { margin-top: 35px; }
.comment-reply-title { font-family: "Creepster", cursive; font-size: 34px; font-weight: normal; }
.comment-form p { margin-top: 14px; }
.comment-form label { display: block; color: #777; font-size: 11px; margin-bottom: 6px; }

/* Pagination */
.navigation.pagination { width: min(920px, 100%); margin: 50px auto 0; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.page-numbers { min-width: 38px; padding: 8px 11px; border: 1px solid #281010; text-align: center; color: #777; }
.page-numbers.current { color: #ddd; border-color: #651919; background: rgba(60,0,0,.22); }

/* Footer */
.fs-footer {
  padding: 38px 20px;
  text-align: center;
  color: #3b3b3b;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}
.fs-footer-nav { margin-bottom: 12px; }
.fs-footer-nav ul { display: flex; list-style: none; justify-content: center; gap: 16px; flex-wrap: wrap; }
.fs-footer-nav a { color: #4d4d4d; }

/* WordPress alignments */
.alignwide { margin-left: calc(50% - 45vw); margin-right: calc(50% - 45vw); max-width: 90vw; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.wp-caption, .gallery-caption { color: #666; font-size: 12px; }
.bypostauthor > .comment-body { border-left: 1px solid #571515; padding-left: 16px; }
.sticky { border-color: #5d1717; }

@media (max-width: 900px) {
  .fs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fs-list-card { grid-template-columns: 190px 1fr; }
}
@media (max-width: 700px) {
  .fs-site-header { padding: 15px 18px; }
  .fs-menu-toggle { display: inline-block; }
  .fs-nav {
    display: none;
    position: absolute;
    left: 16px; right: 16px; top: 68px;
    padding: 18px;
    border: 1px solid var(--fs-border);
    background: rgba(5,5,5,.96);
  }
  .fs-nav.is-open { display: block; }
  .fs-nav ul { flex-direction: column; align-items: flex-start; gap: 14px; }
  .fs-grid { grid-template-columns: 1fr; }
  .fs-list-card { grid-template-columns: 1fr; }
  .fs-list-card-media { min-height: 220px; }
  .fs-post-nav { grid-template-columns: 1fr; }
  .fs-post-nav .nav-next { text-align: left; }
}
@media (max-width: 600px) {
  .fs-story-card { padding: 50px 25px; }
  .fs-logo { font-size: 82px; }
  .fs-tagline { letter-spacing: 2px; }
  .fs-eyebrow { letter-spacing: 4px; }
  .fs-main { padding-left: 18px; padding-right: 18px; }
  .fs-entry-content { font-size: 16px; }
  .fs-search-form { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
