/* Made Out of Clay Productions — Global Styles */

:root {
  --cream: #faf6f0;
  --cream-dark: #f0e8d8;
  --terra: #c4622d;
  --terra-light: #e07848;
  --terra-dark: #8b3a16;
  --green: #3d6b4f;
  --green-light: #5a9470;
  --gold: #c9912a;
  --text: #1e1208;
  --text-muted: #6b4f35;
  --text-dim: #a08060;
  --border: #e0cdb0;
  --radius: 12px;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
}

/* NAV */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,246,240,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.15rem; font-weight: 700;
  color: var(--terra-dark); text-decoration: none;
  letter-spacing: 0.02em;
}
.nav-logo span { color: var(--terra); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--text-muted);
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--terra); }
.nav-cta {
  background: var(--terra); color: #fff !important;
  padding: 8px 18px; border-radius: 20px; font-weight: 600 !important;
  font-size: 0.85rem !important;
}
.nav-cta:hover { background: var(--terra-light) !important; }

/* HERO */
.hero {
  background: linear-gradient(160deg, #2d1a0a 0%, #5c2e10 50%, #8b4820 100%);
  color: #fff;
  padding: 80px 32px 100px;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--terra-light); margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700; line-height: 1.15;
  margin-bottom: 20px; color: #fff;
}
.hero h1 em { font-style: normal; color: #f4c878; }
.hero-sub {
  font-size: 1.1rem; color: rgba(255,255,255,0.75);
  max-width: 600px; margin: 0 auto 36px; line-height: 1.6;
}
.btn-primary {
  display: inline-block;
  background: var(--terra); color: #fff;
  font-weight: 700; font-size: 1rem;
  padding: 14px 32px; border-radius: var(--radius);
  text-decoration: none; transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover { background: var(--terra-light); transform: translateY(-1px); }
.btn-secondary {
  display: inline-block;
  background: transparent; color: var(--terra);
  font-weight: 600; font-size: 0.95rem;
  padding: 12px 28px; border-radius: var(--radius);
  text-decoration: none; border: 2px solid var(--terra);
  transition: all 0.2s;
}
.btn-secondary:hover { background: var(--terra); color: #fff; }

/* SECTIONS */
.section { padding: 72px 32px; max-width: 1100px; margin: 0 auto; }
.section-sm { padding: 48px 32px; max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--terra); margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700; line-height: 1.2; margin-bottom: 14px;
}
.section-sub {
  font-size: 1rem; color: var(--text-muted);
  max-width: 600px; margin-bottom: 48px; line-height: 1.6;
}
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* BOOK GRID */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 28px;
}
.book-card { text-decoration: none; color: inherit; }
.book-cover {
  width: 100%; aspect-ratio: 1/1;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  transition: transform 0.2s, box-shadow 0.2s;
  background: var(--cream-dark);
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book-card:hover .book-cover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.18); }
.book-card h3 { font-size: 0.9rem; font-weight: 700; margin-top: 12px; line-height: 1.3; }
.book-card .book-series { font-size: 0.75rem; color: var(--text-dim); margin-top: 3px; }
.book-card .book-price { font-size: 0.85rem; font-weight: 700; color: var(--terra); margin-top: 6px; }

/* SERIES STRIP */
.series-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.series-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; text-decoration: none; color: inherit;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.series-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,0.08); border-color: var(--terra); }
.series-icon { font-size: 2rem; margin-bottom: 12px; }
.series-card h3 { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.series-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 12px; }
.series-card .book-count { font-size: 0.78rem; font-weight: 600; color: var(--terra); }

/* AUTHOR STRIP */
.author-strip {
  background: var(--cream-dark); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 64px 32px;
}
.author-inner { max-width: 1100px; margin: 0 auto; display: flex; gap: 48px; align-items: center; flex-wrap: wrap; }
.author-avatar {
  width: 120px; height: 120px; border-radius: 50%;
  background: linear-gradient(135deg, var(--terra), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 2.5rem; color: #fff; font-weight: 700;
  flex-shrink: 0;
}
.author-body { flex: 1; min-width: 260px; }
.author-body h2 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.author-body p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 16px; }

/* NEWSLETTER */
.newsletter {
  background: linear-gradient(135deg, var(--terra-dark), var(--terra));
  padding: 64px 32px; text-align: center; color: #fff;
}
.newsletter h2 { font-family: var(--font-serif); font-size: 1.8rem; margin-bottom: 10px; }
.newsletter p { color: rgba(255,255,255,0.8); margin-bottom: 28px; font-size: 0.95rem; }
.newsletter-form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1; min-width: 200px;
  padding: 14px 18px; border-radius: var(--radius); border: none;
  font-size: 0.95rem; background: rgba(255,255,255,0.15); color: #fff;
  placeholder-color: rgba(255,255,255,0.6);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.6); }
.newsletter-form input:focus { outline: 2px solid rgba(255,255,255,0.5); }
.newsletter-form button {
  padding: 14px 24px; border-radius: var(--radius); border: none;
  background: #fff; color: var(--terra-dark); font-weight: 700; cursor: pointer;
  font-size: 0.95rem; transition: background 0.2s;
}
.newsletter-form button:hover { background: var(--cream); }

/* FOOTER */
footer {
  background: var(--text); color: rgba(255,255,255,0.6);
  padding: 40px 32px; text-align: center; font-size: 0.85rem;
}
footer a { color: rgba(255,255,255,0.5); text-decoration: none; }
footer a:hover { color: #fff; }
.footer-links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }

/* PAGE HERO (inner pages) */
.page-hero {
  background: var(--cream-dark); border-bottom: 1px solid var(--border);
  padding: 56px 32px 48px;
}
.page-hero-inner { max-width: 1100px; margin: 0 auto; }
.page-hero h1 { font-family: var(--font-serif); font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; margin-bottom: 12px; }
.page-hero p { color: var(--text-muted); font-size: 1rem; max-width: 560px; line-height: 1.6; }

/* CONTACT FORM */
.contact-form { max-width: 580px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--text-muted); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 0.95rem;
  background: #fff; color: var(--text); font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--terra);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* PRESS KIT */
.press-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.press-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px;
}
.press-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.press-card p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.5; }

/* RESPONSIVE */
@media (max-width: 640px) {
  nav { padding: 0 16px; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .section { padding: 48px 16px; }
  .hero { padding: 60px 16px 72px; }
  .author-inner { gap: 24px; }
}
