/* Author site styles — VERSION 1.0.0 (2026-11-18) */
:root {
  --ink: #16181d;
  --ink-soft: #3b3f48;
  --muted: #6b6f78;
  --paper: #faf6ef;
  --paper-2: #f1eadd;
  --card: #ffffff;
  --accent: #b5532a;
  --accent-dark: #8e3e1d;
  --line: #e4dccd;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(22, 24, 29, .08);
  --max: 1160px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -.01em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: min(var(--max), 92%); margin: 0 auto; }
.section { padding: 88px 0; }
.section.alt { background: var(--paper-2); }
.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .8em;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 2px solid var(--ink); background: var(--ink); color: #fff;
  transition: transform .15s, background .15s, color .15s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); color: #fff; background: var(--ink-soft); }
.btn.accent { background: var(--accent); border-color: var(--accent); }
.btn.accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.small { padding: .55em 1.1em; font-size: .85rem; }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 239, .9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--ink); }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: .95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

/* Hero */
.hero { padding: 80px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-cover { position: relative; justify-self: center; }
.hero-cover img {
  width: 330px; border-radius: 6px;
  box-shadow: 0 30px 60px rgba(22,24,29,.25), 0 0 0 1px rgba(0,0,0,.04);
  transform: rotate(2deg);
}
.hero-cover::before {
  content: ""; position: absolute; inset: -28px -36px; z-index: -1;
  background: radial-gradient(circle at 40% 40%, #f3d2bd, transparent 70%);
}
.badge {
  align-self: flex-start;
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: .35em .8em; border-radius: 999px;
  background: #fbe3d6; color: var(--accent-dark);
}
.badge.soon { background: #e6e9ef; color: var(--ink-soft); }

/* Cards / grids */
.grid { display: grid; gap: 28px; }
.grid.books { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid.episodes { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid.ebooks { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: transform .2s;
}
.card:hover { transform: translateY(-4px); }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body p { color: var(--ink-soft); font-size: .95rem; }
.card-actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; padding-top: 8px; }
.meta { font-size: .82rem; color: var(--muted); }
.book-cover { background: var(--paper-2); padding: 28px; display: flex; justify-content: center; }
.book-cover img { height: 280px; width: auto; border-radius: 4px; box-shadow: 0 12px 28px rgba(0,0,0,.18); }

/* Book detail (books page) */
.book-row {
  display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: center;
  padding: 48px 0; border-bottom: 1px solid var(--line);
}
.book-row:last-child { border-bottom: 0; }
.book-row img { width: 260px; border-radius: 6px; box-shadow: 0 20px 40px rgba(0,0,0,.2); }
.formats { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 18px; }
.formats span { font-size: .8rem; border: 1px solid var(--line); border-radius: 999px; padding: .2em .8em; color: var(--ink-soft); background: #fff; }

/* Video */
.video-wrap { position: relative; aspect-ratio: 16 / 9; background: #111; }
.video-wrap iframe, .video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  color: #d9d3c7; font-size: .9rem; background: linear-gradient(135deg, #22252c, #3a2b25);
}
.video-placeholder .play {
  width: 64px; height: 64px; border-radius: 50%; background: var(--accent);
  display: grid; place-items: center; margin: 0 auto 10px; color: #fff; font-size: 1.4rem;
}

/* About */
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; }
.about-grid img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Contact */
.contact-box {
  background: var(--ink); color: #f3eee5; border-radius: 24px; padding: 56px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
}
.contact-box h2 { color: #fff; }
.contact-box p { color: #c9c3b8; }
form { display: grid; gap: 14px; }
label { font-size: .85rem; font-weight: 600; color: #e5dfd4; }
input, textarea {
  width: 100%; padding: .85em 1em; border-radius: 10px; border: 1px solid #3b3f48;
  background: #23262d; color: #fff; font: inherit; font-size: .95rem;
}
input:focus, textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .9rem; min-height: 1.4em; }
.form-note.ok { color: #9fe0b0; }
.form-note.err { color: #ffb4a2; }

/* Page header */
.page-hero { padding: 72px 0 40px; border-bottom: 1px solid var(--line); }

/* Footer */
.site-footer { padding: 48px 0; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.social { display: flex; gap: 18px; }
.social a { color: var(--ink-soft); font-weight: 500; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-box { grid-template-columns: 1fr; }
  .hero-cover { order: -1; }
  .hero-cover img { width: 240px; }
  .book-row { grid-template-columns: 1fr; gap: 24px; justify-items: start; }
  .book-row img { width: 200px; }
  .contact-box { padding: 36px 26px; }
  .about-grid img { max-width: 300px; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); display: none; padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 14px; }
  .section { padding: 64px 0; }
}
