/* ==================================================================================================
   File: style.css
   Description: Main stylesheet for the Deep Fiction Phantom CMS theme.
   Author: LoTeK (Stephan Kühn)
   Mail: info@deep-fiction.com
   Web: https://lotek-zone.com/
   GitHub: https://github.com/LoTeK-Zone
   Repository: https://github.com/LoTeK-Zone/phantom-cms
   Version: 0.1.3
   Last Updated: 2026-05-24
   License: MIT
   ================================================================================================== */

:root {
   --df-bg: #02070a;
   --df-bg-soft: #071017;
   --df-panel: rgba(8, 19, 27, 0.84);
   --df-panel-strong: rgba(9, 23, 32, 0.94);
   --df-line: rgba(176, 126, 66, 0.32);
   --df-line-cool: rgba(133, 179, 210, 0.16);
   --df-text: #e7edf0;
   --df-muted: #aab8c0;
   --df-dim: #70818d;
   --df-gold: #b78242;
   --df-gold-soft: #d3a968;
   --df-blue: #69a9d6;
   --df-radius: 18px;
   --df-width: 1180px;
}

* {
   box-sizing: border-box;
}

html {
   min-height: 100%;
   background: var(--df-bg);
}

body {
   min-height: 100%;
   margin: 0;
   color: var(--df-text);
   background:
      radial-gradient(circle at 70% 10%, rgba(41, 116, 166, 0.16), transparent 34%),
      radial-gradient(circle at 18% 40%, rgba(181, 124, 56, 0.09), transparent 30%),
      linear-gradient(180deg, #02070a 0%, #061018 42%, #02070a 100%);
   font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
   line-height: 1.65;
}

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

img {
   display: block;
   max-width: 100%;
}

.site-main {
   min-height: 70vh;
}

.site-header {
   position: sticky;
   top: 0;
   z-index: 50;
   background: rgba(2, 7, 10, 0.82);
   border-bottom: 1px solid rgba(184, 139, 82, 0.18);
   backdrop-filter: blur(18px);
}

.site-header__inner {
   position: relative;
   display: grid;
   grid-template-columns: auto 1fr auto;
   align-items: center;
   width: min(100%, var(--df-width));
   min-height: 68px;
   margin: 0 auto;
   padding: 0 22px;
   gap: 22px;
}

.brand-link {
   display: inline-flex;
   align-items: center;
   gap: 12px;
   min-width: 0;
}

.brand-logo {
   width: 34px;
   height: 34px;
   border-radius: 50%;
   object-fit: cover;
   box-shadow: 0 0 22px rgba(194, 139, 67, 0.22);
}

.brand-text {
   font-family: Georgia, "Times New Roman", serif;
   font-size: 1.35rem;
   letter-spacing: 0.08em;
   text-transform: uppercase;
   white-space: nowrap;
}

.language-switch {
   display: inline-flex;
   align-items: center;
   gap: 5px;
}

.language-switch__item {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   min-width: 34px;
   min-height: 30px;
   color: var(--df-muted);
   border: 1px solid transparent;
   border-radius: 8px;
   font-size: 0.78rem;
   letter-spacing: 0.08em;
}

.language-switch__item--active {
   color: var(--df-gold-soft);
   border-color: rgba(183, 130, 66, 0.65);
   background: rgba(183, 130, 66, 0.09);
}

.home-hero {
   position: relative;
   min-height: 610px;
   overflow: hidden;
   background-image: url('../img/banner.jpg');
   background-size: cover;
   background-position: center center;
   border-bottom: 1px solid rgba(133, 179, 210, 0.14);
}

.home-hero__shade {
   position: absolute;
   inset: 0;
   background:
      linear-gradient(90deg, rgba(2, 7, 10, 0.94) 0%, rgba(2, 7, 10, 0.74) 35%, rgba(2, 7, 10, 0.34) 70%, rgba(2, 7, 10, 0.68) 100%),
      linear-gradient(180deg, rgba(2, 7, 10, 0.15) 0%, rgba(2, 7, 10, 0.18) 50%, rgba(2, 7, 10, 0.82) 100%);
}

.home-hero__content {
   position: relative;
   width: min(100%, var(--df-width));
   margin: 0 auto;
   padding: 134px 22px 92px;
}

.micro-label,
.section-kicker {
   margin: 0 0 14px;
   color: var(--df-gold-soft);
   font-size: 0.76rem;
   font-weight: 700;
   letter-spacing: 0.16em;
   text-transform: uppercase;
}

.home-hero h1 {
   max-width: 620px;
   margin: 0;
   color: #f5f1eb;
   font-family: Georgia, "Times New Roman", serif;
   font-size: clamp(3.2rem, 7vw, 6.8rem);
   font-weight: 400;
   line-height: 0.98;
   letter-spacing: -0.045em;
}

.home-hero p:not(.micro-label) {
   max-width: 500px;
   margin: 26px 0 0;
   color: #c8d1d6;
   font-size: 1.12rem;
}


.home-hero__note {
   max-width: 540px;
   padding: 13px 16px;
   color: #aebcc4;
   background: rgba(2, 7, 10, 0.48);
   border-left: 3px solid rgba(183, 130, 66, 0.72);
   border-radius: 0 12px 12px 0;
   font-size: 0.96rem;
}

.home-hero__actions {
   display: flex;
   flex-wrap: wrap;
   gap: 18px;
   margin-top: 34px;
}

.button-primary,
.button-secondary {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   gap: 14px;
   min-height: 48px;
   padding: 0 28px;
   border-radius: 10px;
   font-weight: 700;
   letter-spacing: 0.01em;
}

.button-primary {
   color: #140d07;
   background: linear-gradient(135deg, #d3a968, #a86d32);
   border: 1px solid rgba(236, 194, 126, 0.55);
   box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.button-secondary {
   color: var(--df-text);
   background: rgba(4, 12, 18, 0.48);
   border: 1px solid rgba(183, 130, 66, 0.54);
}

.home-wrap,
.content-stack {
   width: min(100%, var(--df-width));
   margin: 0 auto;
   padding: 72px 22px;
}

.home-intro {
   display: grid;
   grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
   gap: 56px;
   align-items: center;
   margin-bottom: 38px;
}

.home-intro h2,
.selected-section h2,
.author-strip h2,
.page-content h1 {
   margin: 0 0 22px;
   font-family: Georgia, "Times New Roman", serif;
   color: #f2eee7;
   font-size: clamp(2.1rem, 4vw, 3.2rem);
   font-weight: 400;
   line-height: 1.12;
}

.home-intro h2::after,
.selected-section h2::after,
.author-strip h2::after,
.page-content h1::after {
   content: "";
   display: block;
   width: 42px;
   height: 2px;
   margin-top: 16px;
   background: var(--df-gold);
}

.home-intro p,
.author-strip p,
.page-content p,
.page-content li {
   color: var(--df-muted);
   font-size: 1.05rem;
}

.text-link {
   display: inline-flex;
   align-items: center;
   gap: 10px;
   margin-top: 16px;
   color: var(--df-gold-soft);
   font-weight: 700;
}

.home-intro__emblem {
   position: relative;
   justify-self: center;
   width: min(100%, 430px);
   aspect-ratio: 1;
   padding: 14px;
   border-radius: 50%;
   border: 1px solid rgba(183, 130, 66, 0.34);
   background:
      radial-gradient(circle at center, rgba(56, 130, 189, 0.18), transparent 58%),
      rgba(5, 12, 17, 0.68);
   box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.42), 0 32px 90px rgba(0, 0, 0, 0.32);
}

.home-intro__emblem img {
   width: 100%;
   height: 100%;
   border-radius: 50%;
   object-fit: cover;
   opacity: 0.92;
}

.feature-grid,
.entry-grid {
   display: grid;
   grid-template-columns: repeat(3, minmax(0, 1fr));
   gap: 22px;
}

.feature-card,
.entry-card,
.content-card,
.author-strip,
.ethics-box {
   background:
      linear-gradient(145deg, rgba(12, 29, 40, 0.82), rgba(4, 11, 16, 0.92)),
      rgba(8, 19, 27, 0.86);
   border: 1px solid var(--df-line-cool);
   border-radius: var(--df-radius);
   box-shadow: 0 24px 90px rgba(0, 0, 0, 0.24);
}

.feature-card {
   min-height: 226px;
   padding: 32px;
   transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.feature-card:hover,
.entry-card:hover {
   transform: translateY(-2px);
   border-color: rgba(183, 130, 66, 0.56);
}

.feature-card__icon {
   display: block;
   color: var(--df-gold-soft);
   font-size: 2.5rem;
   line-height: 1;
   margin-bottom: 20px;
}

.feature-card h2 {
   margin: 0 0 12px;
   font-family: Georgia, "Times New Roman", serif;
   font-size: 1.48rem;
   font-weight: 400;
}

.feature-card p {
   margin: 0;
   color: var(--df-muted);
}

.feature-card__link {
   display: inline-block;
   margin-top: 24px;
   color: var(--df-gold-soft);
   font-weight: 700;
}

.ethics-box {
   display: grid;
   grid-template-columns: 100px 1fr;
   gap: 26px;
   align-items: center;
   margin: 24px 0 34px;
   padding: 28px 36px;
   border-color: rgba(183, 130, 66, 0.52);
}

.ethics-box__icon {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 76px;
   height: 76px;
   color: var(--df-gold-soft);
   border: 1px solid rgba(183, 130, 66, 0.42);
   border-radius: 24px;
   font-size: 2.1rem;
}

.ethics-box h2 {
   margin: 0 0 8px;
   color: var(--df-gold-soft);
   font-family: Georgia, "Times New Roman", serif;
   font-weight: 400;
}

.ethics-box p {
   margin: 0;
   color: #c4d0d6;
}

.section-heading-row {
   display: flex;
   justify-content: space-between;
   align-items: end;
   gap: 24px;
   margin-bottom: 20px;
}

.entry-card {
   overflow: hidden;
   transition: border-color 180ms ease, transform 180ms ease;
}

.entry-card img {
   width: 100%;
   height: 160px;
   object-fit: cover;
   border-bottom: 1px solid rgba(133, 179, 210, 0.14);
}

.entry-card__body {
   padding: 24px;
}

.entry-card h3 {
   margin: 0 0 8px;
   font-family: Georgia, "Times New Roman", serif;
   font-size: 1.42rem;
   font-weight: 400;
}

.entry-card p {
   min-height: 56px;
   margin: 0 0 20px;
   color: var(--df-muted);
}

.entry-card span {
   display: block;
   color: var(--df-blue);
   font-size: 0.78rem;
   font-weight: 800;
   letter-spacing: 0.11em;
   text-transform: uppercase;
}

.author-strip {
   display: grid;
   grid-template-columns: 96px 1fr auto;
   gap: 28px;
   align-items: center;
   margin-top: 34px;
   padding: 30px;
}

.author-strip__portrait {
   width: 96px;
   height: 96px;
   border-radius: 50%;
   background:
      radial-gradient(circle at 42% 30%, rgba(118, 162, 190, 0.32), transparent 28%),
      linear-gradient(135deg, #06111a, #11181c);
   border: 1px solid rgba(183, 130, 66, 0.22);
}

.author-strip h2 {
   margin-bottom: 10px;
   font-size: 1.65rem;
}

.author-strip p {
   margin: 0;
}

.content-stack {
   padding-top: 104px;
}

.content-card {
   max-width: 900px;
   margin: 0 auto;
}

.content-card__inner {
   padding: clamp(34px, 5vw, 72px);
}

.page-content h1 {
   font-size: clamp(2.45rem, 5vw, 4.4rem);
}

.page-content h2,
.page-content h3 {
   margin-top: 2.2em;
   color: #f1eee8;
   font-family: Georgia, "Times New Roman", serif;
   font-weight: 400;
}

.page-content a {
   color: var(--df-gold-soft);
   border-bottom: 1px solid rgba(183, 130, 66, 0.42);
}

.article-meta {
   margin: 0 0 18px;
   color: var(--df-gold-soft);
   font-size: 0.82rem;
   font-weight: 700;
   letter-spacing: 0.12em;
   text-transform: uppercase;
}

.site-footer {
   margin-top: 40px;
   border-top: 1px solid rgba(133, 179, 210, 0.14);
   background: rgba(1, 6, 9, 0.92);
}

.site-footer__inner {
   display: grid;
   grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.8fr);
   gap: 56px;
   width: min(100%, var(--df-width));
   margin: 0 auto;
   padding: 48px 22px 34px;
}

.footer-brand-line {
   display: flex;
   align-items: center;
   gap: 12px;
   font-family: Georgia, "Times New Roman", serif;
   font-size: 1.35rem;
   letter-spacing: 0.05em;
}

.footer-logo {
   width: 36px;
   height: 36px;
   object-fit: cover;
   border-radius: 50%;
}

.site-footer__brand p,
.footer-contact {
   color: var(--df-muted);
}

.site-footer__nav {
   display: grid;
   grid-template-columns: repeat(3, minmax(0, 1fr));
   gap: 26px;
}

.site-footer__nav h2 {
   margin: 0 0 12px;
   color: var(--df-dim);
   font-size: 0.76rem;
   letter-spacing: 0.14em;
   text-transform: uppercase;
}

.site-footer__nav a {
   display: block;
   margin: 7px 0;
   color: var(--df-muted);
}

.site-footer__nav a:hover {
   color: var(--df-gold-soft);
}

.site-footer__bottom {
   width: min(100%, var(--df-width));
   margin: 0 auto;
   padding: 16px 22px 28px;
   color: var(--df-dim);
   border-top: 1px solid rgba(133, 179, 210, 0.1);
   text-align: center;
   font-size: 0.88rem;
}

@media (max-width: 900px) {
   .home-intro,
   .feature-grid,
   .entry-grid,
   .site-footer__inner,
   .site-footer__nav {
      grid-template-columns: 1fr;
   }

   .home-intro__emblem {
      max-width: 320px;
   }

   .author-strip {
      grid-template-columns: 1fr;
   }
}

@media (max-width: 760px) {
   .site-header__inner {
      min-height: 62px;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      grid-template-rows: 38px auto;
      align-items: center;
      gap: 0 10px;
      padding: 12px 14px;
   }

   .brand-link {
      grid-row: 1;
      grid-column: 1;
      justify-self: start;
      align-self: center;
      min-width: 0;
   }

   .brand-text {
      max-width: 140px;
      overflow: hidden;
      text-overflow: ellipsis;
      font-size: 1rem;
      line-height: 1;
   }

   .language-switch {
      grid-row: 1;
      grid-column: 2;
      justify-self: end;
      align-self: center;
   }

   .home-hero {
      min-height: 560px;
   }

   .home-hero__content {
      padding-top: 110px;
   }

   .home-hero__actions,
   .section-heading-row {
      align-items: stretch;
      flex-direction: column;
   }

   .button-primary,
   .button-secondary {
      width: 100%;
   }

   .ethics-box {
      grid-template-columns: 1fr;
      padding: 26px;
   }

   .home-wrap,
   .content-stack {
      padding-left: 16px;
      padding-right: 16px;
   }
}
