/* styles.css */

/* ========== Base Reset & Layout ========== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f4f4f2;
  background: radial-gradient(circle at top left, #182341 0, #050713 50%, #03040a 100%);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: #f2cf76;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  margin-top: 0;
  color: #f7f5ef;
}

p {
  margin-top: 0;
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========== Header & Navigation ========== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(to bottom, rgba(3, 5, 17, 0.96), rgba(3, 5, 17, 0.92));
  border-bottom: 1px solid rgba(242, 207, 118, 0.12);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  border: 1px solid rgba(242, 207, 118, 0.45);
  background: radial-gradient(circle at 30% 20%, #e9c368 0, #a57924 40%, #1b0f07 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-mark img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  opacity: 0.8;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.brand-tagline {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Navigation */

.nav {
  display: flex;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f4f4f2;
  opacity: 0.8;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.2rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  opacity: 1;
  border-bottom-color: rgba(242, 207, 118, 0.8);
}

/* Mobile nav toggle */

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(242, 207, 118, 0.5);
  border-radius: 999px;
  width: 36px;
  height: 32px;
  padding: 0;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background-color: #f4f4f2;
  border-radius: 999px;
}

/* ========== Hero Section ========== */

.hero-section {
  padding: 4.5rem 0 4rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  gap: 3rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242, 207, 118, 0.9);
  margin-bottom: 0.7rem;
}

.hero-section h1 {
  font-size: clamp(2.3rem, 3vw, 2.9rem);
  margin-bottom: 0.8rem;
}

.hero-description {
  font-size: 1rem;
  max-width: 36rem;
  color: #e0dfda;
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Hero visual */

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-logo-card {
  background: radial-gradient(circle at 30% 0, rgba(242, 207, 118, 0.45), rgba(9, 12, 32, 0.95));
  border-radius: 1.1rem;
  padding: 1.8rem 1.6rem;
  border: 1px solid rgba(242, 207, 118, 0.35);
  max-width: 260px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.hero-logo-circle {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 20%, #f9df8d 0, #d99d38 40%, #301c0d 100%);
  box-shadow: 0 0 18px rgba(242, 207, 118, 0.8);
}

.hero-logo-fox {
  font-size: 2.3rem;
}

.hero-logo-caption {
  font-size: 0.9rem;
  color: #17141a;
  background: rgba(244, 244, 242, 0.9);
  padding: 0.7rem 0.8rem;
  border-radius: 0.75rem;
}

/* ========== Sections General ========== */

.section {
  padding: 3.5rem 0;
}

.section-header {
  text-align: left;
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: #d2d0c9;
}

/* ========== Titles Section ========== */

.section-titles {
  background: radial-gradient(circle at top right, rgba(242, 207, 118, 0.06), transparent 55%);
}

.titles-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 1.8rem;
}

.title-card {
  background: linear-gradient(135deg, rgba(10, 16, 34, 0.98), rgba(4, 9, 20, 0.98));
  border-radius: 1.2rem;
  padding: 1.7rem 1.6rem;
  border: 1px solid rgba(119, 134, 180, 0.5);
  box-shadow: 0 14px 30px rgba(1, 1, 8, 0.7);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 1.6rem;
}

.title-card-media {
  display: flex;
  align-items: flex-start;
}

.book-cover-placeholder {
  width: 100%;
  border-radius: 0.8rem;
  overflow: hidden;
  border: 1px solid rgba(242, 207, 118, 0.35);
  background: radial-gradient(circle at top, #141b2e 0, #050713 50%);
  display: block;      
  padding: 0;          
  height: auto;       
}

.book-cover-placeholder img {
  width: 100%;
  height: auto;
  object-fit: cover;
  opacity: 0.85;
}

/* Content */

.title-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  justify-content: center;
}

.book-title {
  font-size: 1.35rem;
}

.book-subtitle {
  font-size: 0.98rem;
  color: rgba(242, 207, 118, 0.9);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.book-blurb {
  font-size: 0.98rem;
  color: #e2e0d9;
}

.book-title-inline {
  font-style: italic;
}

.book-availability {
  font-size: 0.9rem;
  color: #c9c6bc;
  margin-top: 0.4rem;
}

.title-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

/* Placeholder card */

title-card--placeholder {
  /* reserved if needed */
}

.title-card--placeholder {
  background: linear-gradient(135deg, rgba(8, 12, 27, 0.98), rgba(3, 6, 17, 0.98));
  grid-template-columns: minmax(0, 1fr);
}

/* ========== About Section ========== */

.section-about {
  background: radial-gradient(circle at bottom left, rgba(242, 207, 118, 0.05), transparent 60%);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 1.8rem;
  align-items: flex-start;
}

.about-text p + p {
  margin-top: 0.8rem;
}

.about-side {
  display: flex;
}

.about-card {
  background: linear-gradient(135deg, rgba(9, 12, 30, 0.96), rgba(3, 6, 16, 0.96));
  border-radius: 1.1rem;
  padding: 1.4rem 1.3rem;
  border: 1px solid rgba(242, 207, 118, 0.4);
  box-shadow: 0 12px 26px rgba(1, 1, 8, 0.75);
}

.about-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
}

.about-card ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.about-card li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.about-card li::before {
  content: "▹";
  position: absolute;
  left: 0;
  top: 0;
  color: #f2cf76;
}

/* ========== Contact Section ========== */

.section-contact {
  background: radial-gradient(circle at top, rgba(242, 207, 118, 0.07), transparent 60%);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 1.8rem;
}

.contact-info h3,
.contact-form-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.contact-note {
  font-size: 0.9rem;
  color: #d2d0c9;
  margin-top: 0.8rem;
}

.contact-form-card {
  background: linear-gradient(135deg, rgba(9, 14, 31, 0.96), rgba(4, 8, 19, 0.96));
  border-radius: 1.1rem;
  padding: 1.4rem 1.3rem;
  border: 1px solid rgba(119, 134, 180, 0.6);
  box-shadow: 0 12px 28px rgba(1, 1, 8, 0.75);
}

.contact-form-note {
  font-size: 0.9rem;
  color: #d2d0c9;
  margin-bottom: 1rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.9rem;
}

.form-row label {
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.form-row input,
.form-row textarea {
  border-radius: 0.6rem;
  border: 1px solid rgba(119, 134, 180, 0.8);
  padding: 0.55rem 0.7rem;
  background-color: rgba(3, 6, 16, 0.95);
  color: #f4f4f2;
  font-size: 0.92rem;
  font-family: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(212, 210, 204, 0.7);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: rgba(242, 207, 118, 0.9);
  box-shadow: 0 0 0 1px rgba(242, 207, 118, 0.7);
}

.contact-direct {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.contact-direct a {
  color: #f2cf76;
  text-decoration: underline;
}

.contact-direct a:hover {
  color: #ffd98a;
}


/* ========== Buttons ========== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.08s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: radial-gradient(circle at 30% 0, #f2cf76 0, #d29a33 40%, #7b5410 100%);
  color: #141215;
  border-color: rgba(242, 207, 118, 0.9);
  box-shadow: 0 0 15px rgba(242, 207, 118, 0.6);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: radial-gradient(circle at 30% 0, #f8dfa0 0, #e0aa44 40%, #8a6015 100%);
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(242, 207, 118, 0.85);
}

.btn-outline {
  background: transparent;
  color: #f2cf76;
  border-color: rgba(242, 207, 118, 0.7);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: rgba(242, 207, 118, 0.08);
  box-shadow: 0 0 10px rgba(242, 207, 118, 0.5);
}

.btn-muted {
  background: transparent;
  color: #d2d0c9;
  border-color: rgba(128, 138, 176, 0.7);
}

.btn-muted:hover,
.btn-muted:focus-visible {
  background: rgba(93, 104, 149, 0.22);
}

/* ========== Footer ========== */

.site-footer {
  border-top: 1px solid rgba(119, 134, 180, 0.5);
  background: radial-gradient(circle at top center, rgba(242, 207, 118, 0.07), rgba(3, 4, 10, 0.97));
  padding: 1.3rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #d2d0c9;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-nav a {
  color: #f2cf76;
  opacity: 0.9;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  opacity: 1;
}

.footer-separator {
  opacity: 0.5;
}

/* ========== Responsive ========== */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .hero-section {
    padding-top: 3.7rem;
  }

  .hero-visual {
    order: -1;
  }

  .titles-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .title-card {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr);
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .header-inner {
    padding: 0.7rem 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: rgba(3, 5, 17, 0.98);
    border-bottom: 1px solid rgba(119, 134, 180, 0.6);
  }

  .nav-links {
    display: none;
    flex-direction: column;
    padding: 0.5rem 1.5rem 0.8rem;
    gap: 0.4rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.35rem 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .title-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-logo-card {
    max-width: 230px;
  }

  .section {
    padding: 3rem 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
