/* Ironvein Publishing — Global Styles */

:root {
  --bg-primary: #080808;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --accent-red: #8b1a1a;
  --accent-red-bright: #c0392b;
  --accent-gold: #b8963e;
  --accent-gold-light: #d4af6a;
  --text-primary: #e8e8e8;
  --text-secondary: #a0a0a0;
  --text-muted: #606060;
  --border: #2a2a2a;
  --border-accent: #3a1a1a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Georgia', 'Times New Roman', serif;
  line-height: 1.7;
  font-size: 17px;
}

/* ── Typography ── */

h1, h2, h3, h4, h5 {
  font-family: 'Palatino Linotype', 'Palatino', 'Book Antiqua', Georgia, serif;
  font-weight: normal;
  letter-spacing: 0.04em;
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--accent-gold-light);
}

p {
  margin-bottom: 1.2em;
  color: var(--text-secondary);
}

/* ── Header & Navigation ── */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(8, 8, 8, 0.96);
  border-bottom: 1px solid var(--border-accent);
  backdrop-filter: blur(6px);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: 'Palatino Linotype', 'Palatino', serif;
  font-size: 1.45rem;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.logo-tagline {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

nav a {
  font-family: 'Palatino Linotype', serif;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding-bottom: 2px;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-gold);
  transition: width 0.3s ease;
}

nav a:hover,
nav a.active {
  color: var(--accent-gold-light);
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* ── Hamburger (mobile) ── */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--text-secondary);
  transition: all 0.3s ease;
}

/* ── Hero ── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--bg-primary);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(139, 26, 26, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(30, 10, 10, 0.4) 0%, transparent 60%),
    linear-gradient(180deg, #080808 0%, #0d0505 50%, #080808 100%);
}

.hero-ornament {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.hero-ornament::before,
.hero-ornament::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(184, 150, 62, 0.08);
  border-radius: 50%;
}

.hero-ornament::before {
  width: 600px;
  height: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-ornament::after {
  width: 900px;
  height: 900px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding: 2rem;
}

.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1.1;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  text-shadow: 0 2px 40px rgba(139, 26, 26, 0.4);
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.hero-divider::before,
.hero-divider::after {
  content: '';
  height: 1px;
  width: 80px;
  background: linear-gradient(to right, transparent, var(--accent-gold));
}

.hero-divider::after {
  background: linear-gradient(to left, transparent, var(--accent-gold));
}

.hero-divider span {
  color: var(--accent-gold);
  font-size: 1.1rem;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

/* ── Buttons ── */

.btn {
  display: inline-block;
  padding: 0.8rem 2.2rem;
  font-family: 'Palatino Linotype', serif;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: var(--text-primary);
}

.btn-primary:hover {
  background: var(--accent-red-bright);
  border-color: var(--accent-red-bright);
  color: var(--text-primary);
  box-shadow: 0 0 24px rgba(192, 57, 43, 0.3);
}

.btn-outline {
  background: transparent;
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.btn-outline:hover {
  background: rgba(184, 150, 62, 0.1);
  color: var(--accent-gold-light);
}

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Sections ── */

section {
  padding: 6rem 2rem;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.8rem;
  display: block;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.section-rule {
  width: 60px;
  height: 1px;
  background: var(--accent-red);
  margin: 1.2rem 0 2rem;
}

.section-rule.centered {
  margin-left: auto;
  margin-right: auto;
}

.section-intro {
  max-width: 640px;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.85;
}

/* ── Mission Strip ── */

.mission {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 2rem;
  text-align: center;
}

.mission blockquote {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-style: italic;
  color: var(--text-primary);
  max-width: 800px;
  margin: 0 auto 1rem;
  line-height: 1.6;
  position: relative;
}

.mission blockquote::before {
  content: '\201C';
  font-size: 5rem;
  color: var(--accent-red);
  line-height: 0;
  position: absolute;
  top: 1.2rem;
  left: -2rem;
  opacity: 0.5;
}

.mission cite {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-style: normal;
}

/* ── Authors Grid ── */

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

.author-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.author-card:hover {
  border-color: var(--accent-red);
  transform: translateY(-4px);
}

.author-card-img {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, #1a0a0a 0%, #2a1010 50%, #1a0505 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.author-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%) contrast(1.1);
}

.author-placeholder {
  font-size: 5rem;
  color: rgba(184, 150, 62, 0.2);
}

.author-card-body {
  padding: 1.8rem;
}

.author-card-name {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.author-card-genre {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.author-card-bio {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* ── Books Grid ── */

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

.book-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s ease;
}

.book-card:hover {
  border-color: var(--accent-red);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(139, 26, 26, 0.25);
}

.book-cover {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
}

.book-cover-placeholder {
  width: 100%;
  aspect-ratio: 2/3;
  background: linear-gradient(160deg, #1a0a0a, #2d1010, #1a0808);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.book-cover-placeholder .book-icon {
  font-size: 3.5rem;
  opacity: 0.3;
}

.book-cover-placeholder .book-title-preview {
  font-size: 0.9rem;
  color: var(--accent-gold);
  opacity: 0.6;
  text-align: center;
  padding: 0 1rem;
}

.book-info {
  padding: 1.4rem;
}

.book-title {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.book-author {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.book-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.book-genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.genre-tag {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--border-accent);
  color: var(--text-muted);
}

/* ── Submissions ── */

.submissions {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.submissions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 1rem;
}

.submissions-info h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
  margin-top: 2rem;
}

.submissions-info h3:first-child {
  margin-top: 0;
}

.criteria-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.criteria-list li {
  padding: 0.5rem 0;
  padding-left: 1.4rem;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.criteria-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent-red);
}

/* ── Contact Form ── */

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

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

.form-group label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  font-family: Georgia, serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s ease;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-gold);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group select option {
  background: var(--bg-card);
}

/* ── Page Banner ── */

.page-banner {
  min-height: 45vh;
  display: flex;
  align-items: flex-end;
  padding: 0 2rem 4rem;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(139, 26, 26, 0.18) 0%, transparent 55%),
    linear-gradient(180deg, #080808 0%, #0e0404 100%);
  border-bottom: 1px solid var(--border-accent);
  margin-top: 72px;
}

.page-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.page-banner-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.8rem;
  display: block;
}

.page-banner h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.page-banner p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0;
}

/* ── Author Detail ── */

.author-profile {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 5rem;
}

.author-portrait {
  position: sticky;
  top: 100px;
}

.author-portrait-img {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, #1a0a0a 0%, #2a1010 50%, #1a0505 100%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.author-portrait-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.1);
}

.author-socials {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.social-link {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-link:hover {
  color: var(--accent-gold);
}

.author-bio h2 {
  font-size: 2.2rem;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.author-bio .author-genre-label {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
  display: block;
}

/* ── Info Cards ── */

.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2rem;
  border-top: 2px solid var(--accent-red);
}

.info-card-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.info-card h3 {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.info-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Footer ── */

footer {
  background: #050505;
  border-top: 1px solid var(--border);
  padding: 4rem 2rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand .logo-name {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
  display: block;
}

.footer-brand .logo-tagline {
  display: block;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 300px;
  line-height: 1.7;
  margin: 0;
}

.footer-col h4 {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col ul li a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-col ul li a:hover {
  color: var(--accent-gold-light);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-bottom a {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-vein {
  display: inline-block;
  color: var(--accent-red);
  font-style: italic;
}

/* ── Utilities ── */

.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.ornament-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
}

.ornament-line::before,
.ornament-line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.ornament-line span {
  color: var(--accent-red);
  font-size: 0.9rem;
}

/* ── Responsive ── */

@media (max-width: 900px) {
  nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(8, 8, 8, 0.98);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    transition: all 0.35s ease;
    pointer-events: none;
  }

  nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-toggle {
    display: flex;
  }

  .submissions-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .author-portrait {
    position: static;
    max-width: 300px;
  }

  .info-cards {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  section {
    padding: 4rem 1.2rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
