/* ============================================================
   TRENCHCOAT PRESS — STYLES
   Palette: near-black bg | cyan-blue accent | warm ivory text
   ============================================================ */

:root {
  --black:       #0a0a0c;
  --dark:        #111116;
  --dark-mid:    #181820;
  --dark-light:  #22222e;
  --cyan:        #2ab4d4;
  --cyan-bright: #4dd4f0;
  --cyan-dim:    #1a7a96;
  --amber:       #c8912a;
  --ivory:       #e8e4d8;
  --ivory-dim:   #a09880;
  --white:       #f5f2ec;
  --font-display: 'Cinzel', serif;
  --font-body:    'EB Garamond', serif;
  --font-sans:    'Oswald', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.75;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: var(--cyan); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--cyan-bright); }

/* ---- RAIN CANVAS ---- */
#rain-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
}

/* ---- CONTAINER ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.8rem 2rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
}

.btn-primary {
  background: var(--cyan);
  color: var(--black);
  font-weight: 600;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.btn-primary:hover {
  background: var(--cyan-bright);
  color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(42, 180, 212, 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.btn-secondary:hover {
  background: rgba(42, 180, 212, 0.12);
  color: var(--cyan-bright);
  border-color: var(--cyan-bright);
  transform: translateY(-2px);
}

/* ---- SECTION HEADINGS ---- */
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}
.section-heading::after {
  content: '';
  display: block;
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  margin-top: 0.4rem;
}
.section-heading.centered {
  display: block;
  text-align: center;
}
.section-heading.centered::after {
  margin: 0.4rem auto 0;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.section-sub {
  color: var(--ivory-dim);
  font-style: italic;
  margin-bottom: 2.5rem;
  font-size: 1.15rem;
}
.section-sub.centered { text-align: center; }

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(42, 180, 212, 0.15);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.6rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo-link { flex-shrink: 0; }
.nav-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin-left: auto;
}
.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--cyan); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ivory);
  font-size: 1.4rem;
  cursor: pointer;
  margin-left: auto;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--black);
  padding-top: 70px;
}

.hero-city-bg {
  position: absolute;
  inset: 0;
  background:
    /* top fade */
    linear-gradient(180deg, var(--black) 0%, transparent 30%, transparent 60%, var(--black) 100%),
    /* city glow */
    radial-gradient(ellipse 80% 40% at 50% 90%, rgba(42,180,212,0.08) 0%, transparent 70%),
    /* base */
    var(--dark);
  /* Stylized city silhouette using repeating gradients */
}

/* City skyline via clip-path layered pseudo-elements */
.hero-city-bg::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(180deg, transparent 0%, rgba(15,15,20,0.8) 60%, var(--dark-mid) 100%);
  clip-path: polygon(
    0% 100%, 0% 65%, 2% 65%, 2% 45%, 4% 45%, 4% 55%, 6% 55%, 6% 30%,
    7% 30%, 7% 55%, 8% 55%, 8% 40%, 10% 40%, 10% 60%, 12% 60%, 12% 35%,
    13% 35%, 13% 25%, 14% 25%, 14% 35%, 15% 35%, 15% 55%, 17% 55%,
    17% 42%, 19% 42%, 19% 58%, 21% 58%, 21% 28%, 22% 28%, 22% 15%,
    23% 15%, 23% 28%, 24% 28%, 24% 50%, 26% 50%, 26% 38%, 28% 38%,
    28% 55%, 30% 55%, 30% 32%, 32% 32%, 32% 22%, 33% 22%, 33% 32%,
    34% 32%, 34% 50%, 36% 50%, 36% 40%, 38% 40%, 38% 60%, 40% 60%,
    40% 35%, 42% 35%, 42% 48%, 44% 48%, 44% 28%, 46% 28%, 46% 18%,
    47% 18%, 47% 28%, 48% 28%, 48% 45%, 50% 45%, 50% 32%, 52% 32%,
    52% 22%, 53% 22%, 53% 32%, 54% 32%, 54% 52%, 56% 52%, 56% 38%,
    58% 38%, 58% 55%, 60% 55%, 60% 30%, 62% 30%, 62% 45%, 64% 45%,
    64% 60%, 66% 60%, 66% 42%, 68% 42%, 68% 28%, 70% 28%, 70% 18%,
    71% 18%, 71% 28%, 72% 28%, 72% 45%, 74% 45%, 74% 35%, 76% 35%,
    76% 55%, 78% 55%, 78% 40%, 80% 40%, 80% 30%, 82% 30%, 82% 48%,
    84% 48%, 84% 58%, 86% 58%, 86% 38%, 88% 38%, 88% 52%, 90% 52%,
    90% 42%, 92% 42%, 92% 60%, 94% 60%, 94% 45%, 96% 45%, 96% 55%,
    98% 55%, 98% 65%, 100% 65%, 100% 100%
  );
}

.hero-city-bg::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 25%;
  background: linear-gradient(180deg, transparent 0%, rgba(42,180,212,0.04) 50%, rgba(42,180,212,0.02) 100%);
}

.hero-fog {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 60% at 50% 100%, rgba(42,180,212,0.05) 0%, transparent 60%);
  animation: fog-drift 20s ease-in-out infinite alternate;
}

@keyframes fog-drift {
  from { transform: translateX(-3%); opacity: 0.6; }
  to   { transform: translateX(3%); opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-logo {
  width: min(380px, 70vw);
  filter: drop-shadow(0 0 40px rgba(42, 180, 212, 0.35));
  animation: logo-glow 4s ease-in-out infinite alternate;
}

@keyframes logo-glow {
  from { filter: drop-shadow(0 0 25px rgba(42, 180, 212, 0.25)); }
  to   { filter: drop-shadow(0 0 55px rgba(42, 180, 212, 0.55)); }
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-style: italic;
  color: var(--ivory-dim);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--ivory-dim);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.6;
  animation: hint-pulse 3s ease-in-out infinite;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--ivory-dim), transparent);
  animation: line-drop 3s ease-in-out infinite;
}

@keyframes hint-pulse { 0%,100%{opacity:0.4} 50%{opacity:0.9} }
@keyframes line-drop  { 0%{transform:scaleY(0);transform-origin:top} 50%{transform:scaleY(1);transform-origin:top} 51%{transform:scaleY(1);transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-strip {
  background: var(--cyan-dim);
  overflow: hidden;
  padding: 0.65rem 0;
  position: relative;
  z-index: 2;
}

.marquee-track {
  display: inline-flex;
  gap: 2rem;
  white-space: nowrap;
  animation: marquee-scroll 30s linear infinite;
}

.marquee-track span {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--black);
  font-weight: 600;
}
.marquee-track .sep { color: rgba(0,0,0,0.4); }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   SECTIONS — SHARED
   ============================================================ */
.section {
  padding: 7rem 0;
  position: relative;
  z-index: 2;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-section {
  background: var(--dark);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5rem;
  align-items: start;
}

.about-text p {
  margin-bottom: 1.2rem;
  color: var(--ivory);
  max-width: 55ch;
}

.pull-quote {
  border-left: 3px solid var(--cyan);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--cyan-bright);
  background: rgba(42, 180, 212, 0.05);
  max-width: 50ch;
}

/* Animated sigil */
.about-sigil {
  position: relative;
  width: 200px;
  height: 200px;
  flex-shrink: 0;
  margin-top: 3rem;
}

.sigil-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid var(--cyan-dim);
}
.sigil-ring.outer  { width: 200px; height: 200px; animation: spin-slow 25s linear infinite; border-style: dashed; }
.sigil-ring.middle { width: 150px; height: 150px; animation: spin-slow 18s linear infinite reverse; border-color: var(--cyan); }
.sigil-ring.inner  { width: 90px;  height: 90px;  animation: spin-slow 10s linear infinite; border-color: rgba(42,180,212,0.4); }

.sigil-eye {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 20px var(--cyan), 0 0 40px rgba(42,180,212,0.4);
  animation: eye-pulse 3s ease-in-out infinite;
}

@keyframes spin-slow { to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes eye-pulse { 0%,100%{box-shadow: 0 0 10px var(--cyan)} 50%{box-shadow: 0 0 30px var(--cyan), 0 0 60px rgba(42,180,212,0.5)} }

/* ============================================================
   AUTHORS
   ============================================================ */
.authors-section {
  background: var(--dark-mid);
  overflow: hidden;
}

.city-silhouette {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 35%;
  background: var(--dark);
  clip-path: polygon(
    0% 100%, 0% 60%, 3% 60%, 3% 40%, 5% 40%, 5% 55%, 7% 55%,
    7% 30%, 9% 30%, 9% 55%, 11% 55%, 11% 45%, 13% 45%, 13% 25%,
    15% 25%, 15% 45%, 17% 45%, 17% 60%, 20% 60%, 20% 35%, 23% 35%,
    23% 50%, 26% 50%, 26% 65%, 30% 65%, 30% 40%, 34% 40%, 34% 55%,
    38% 55%, 38% 28%, 40% 28%, 40% 18%, 42% 18%, 42% 28%, 44% 28%,
    44% 55%, 48% 55%, 48% 40%, 52% 40%, 52% 28%, 54% 28%, 54% 18%,
    56% 18%, 56% 28%, 58% 28%, 58% 55%, 62% 55%, 62% 35%, 66% 35%,
    66% 28%, 70% 28%, 70% 45%, 74% 45%, 74% 35%, 78% 35%, 78% 55%,
    82% 55%, 82% 40%, 86% 40%, 86% 30%, 89% 30%, 89% 55%, 92% 55%,
    92% 45%, 95% 45%, 95% 60%, 98% 60%, 98% 65%, 100% 65%, 100% 100%
  );
  opacity: 0.7;
}

.author-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4rem;
  align-items: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(42,180,212,0.15);
  padding: 3rem;
  position: relative;
  z-index: 2;
  margin-top: 3rem;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}
.author-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--cyan), transparent);
}

.author-portrait {
  position: relative;
  flex-shrink: 0;
}

.portrait-frame {
  width: 200px;
  height: 240px;
  border: 2px solid rgba(42,180,212,0.3);
  background: var(--dark);
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}

.author-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(20%) contrast(1.05);
  transition: filter 0.3s;
}
.author-photo:hover { filter: grayscale(0%) contrast(1); }

.author-badge {
  position: absolute;
  top: -0.6rem;
  left: -0.6rem;
  background: var(--cyan);
  color: var(--black);
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
}

.author-name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.author-divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  margin-bottom: 1.5rem;
}

.author-bio {
  color: var(--ivory);
  margin-bottom: 1rem;
  max-width: 55ch;
}

.author-links { margin-top: 1.5rem; }

/* ============================================================
   CATALOG
   ============================================================ */
.catalog-section {
  background: var(--black);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.books-grid--two {
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
  gap: 3rem;
}

.book-card {
  background: var(--dark);
  border: 1px solid rgba(42,180,212,0.1);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  display: flex;
  flex-direction: column;
}
.book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 20px rgba(42,180,212,0.12);
}

.book-cover {
  position: relative;
  overflow: hidden;
  line-height: 0;
}

.book-cover-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}
.book-card:hover .book-cover-img { transform: scale(1.03); }

.book-status-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
}
.book-status-badge.available {
  background: var(--cyan);
  color: var(--black);
}
.book-status-badge.coming-soon {
  background: rgba(200,145,42,0.9);
  color: var(--black);
}

.book-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.book-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}

.book-series {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
}

.book-author {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan-dim);
  margin-bottom: 0.4rem;
}

.book-blurb {
  font-size: 0.95rem;
  color: var(--ivory-dim);
  font-style: italic;
  flex: 1;
  margin-bottom: 0.5rem;
}

.btn-sm {
  padding: 0.55rem 1.4rem;
  font-size: 0.75rem;
  align-self: flex-start;
}

.catalog-cta {
  text-align: center;
  padding: 3rem;
  border: 1px solid rgba(42,180,212,0.15);
  background: rgba(42,180,212,0.04);
}
.catalog-cta p {
  color: var(--ivory-dim);
  margin-bottom: 1.5rem;
  font-style: italic;
}

/* ============================================================
   GENRE STRIPE
   ============================================================ */
.genre-stripe {
  background: var(--dark-mid);
  border-top: 1px solid rgba(42,180,212,0.12);
  border-bottom: 1px solid rgba(42,180,212,0.12);
  padding: 4rem 0;
  position: relative;
  z-index: 2;
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.genre-item {
  text-align: center;
  padding: 1.5rem;
}

.genre-icon {
  font-size: 1.4rem;
  color: var(--cyan);
  margin-bottom: 1rem;
  display: block;
}

.genre-item h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.genre-item p {
  color: var(--ivory-dim);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================================
   SUBMISSIONS
   ============================================================ */
.submissions-section {
  background: var(--dark);
}

.submissions-inner {
  max-width: 700px;
}

.submissions-inner h2 { margin-bottom: 1.5rem; }

.submissions-inner p {
  color: var(--ivory);
  margin-bottom: 1.2rem;
}
.submissions-inner strong { color: var(--cyan); }

.submissions-list {
  list-style: none;
  margin: 0.5rem 0 1.5rem 0;
}
.submissions-list li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  color: var(--ivory-dim);
  font-style: italic;
}
.submissions-list li::before {
  content: '&#9670;';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-style: normal;
  font-size: 0.6rem;
  top: 0.6rem;
}
.submissions-list.pass li::before { color: rgba(255,100,100,0.6); }

/* Fix the pseudo-element content */
.submissions-list li::before { content: '◆'; }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-section {
  background: linear-gradient(135deg, #0d1520 0%, #0a0c14 50%, #0d1520 100%);
  border-top: 1px solid rgba(42,180,212,0.15);
  border-bottom: 1px solid rgba(42,180,212,0.15);
  padding: 5rem 0;
  position: relative;
  z-index: 2;
}

.newsletter-inner {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.newsletter-inner > p {
  color: var(--ivory-dim);
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.newsletter-input {
  flex: 1;
  min-width: 220px;
  max-width: 340px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(42,180,212,0.3);
  color: var(--ivory);
  padding: 0.8rem 1.2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-input:focus { border-color: var(--cyan); }
.newsletter-input::placeholder { color: var(--ivory-dim); }

.newsletter-fine {
  font-size: 0.8rem;
  color: rgba(160,152,128,0.6);
  font-style: italic;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
  background: var(--dark-mid);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.contact-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(42,180,212,0.1);
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.contact-item:hover {
  border-color: rgba(42,180,212,0.4);
  background: rgba(42,180,212,0.06);
  transform: translateY(-4px);
}

.contact-icon {
  font-size: 2rem;
  display: block;
}

.contact-item h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
}

.contact-item p { color: var(--ivory-dim); font-size: 0.9rem; }

.contact-cta {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-top: 0.5rem;
}

.inline-link {
  background: none;
  border: none;
  color: var(--cyan);
  font-family: inherit;
  font-size: inherit;
  font-style: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: rgba(42,180,212,0.4);
}
.inline-link:hover { color: var(--cyan-bright); }

/* ============================================================
   CONTACT MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 8, 0.88);
  backdrop-filter: blur(6px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--dark);
  border: 1px solid rgba(42,180,212,0.25);
  max-width: 580px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  transform: translateY(16px);
  transition: transform 0.3s;
}
.modal-overlay.open .modal-box { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 1rem; right: 1.2rem;
  background: none;
  border: none;
  color: var(--ivory-dim);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--cyan); }

.modal-heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.modal-sub {
  color: var(--cyan-dim);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.contact-form { display: flex; flex-direction: column; gap: 1rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.35rem; }

.form-group label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(42,180,212,0.2);
  color: var(--ivory);
  padding: 0.7rem 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--cyan); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(160,152,128,0.5); }

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.contact-success {
  display: none;
  text-align: center;
  padding: 2rem 0;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.contact-success.visible { display: flex; }

.success-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(42,180,212,0.15);
  border: 2px solid var(--cyan);
  color: var(--cyan);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-success h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
}
.contact-success p { color: var(--ivory-dim); font-style: italic; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--black);
  border-top: 1px solid rgba(42,180,212,0.12);
  padding: 4rem 0 2rem;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .footer-logo {
  height: 80px;
  width: auto;
  margin-bottom: 1rem;
  opacity: 0.85;
}

.footer-brand p {
  color: var(--ivory-dim);
  font-style: italic;
  font-size: 0.95rem;
  max-width: 28ch;
}

.footer-links h5 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan-dim);
  margin-bottom: 1.2rem;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
  color: var(--ivory-dim);
  font-size: 0.95rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--cyan); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(160,152,128,0.5);
  font-size: 0.85rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-sigil { display: none; }
  .author-card { grid-template-columns: 1fr; gap: 2rem; }
  .portrait-frame { width: 160px; height: 200px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  .books-grid--two {
    grid-template-columns: minmax(0, 420px);
  }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(10,10,12,0.98);
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(42,180,212,0.2);
  }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; }
  .author-card { padding: 2rem 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .modal-box { padding: 1.75rem 1.25rem; }
}
