/* Author Mel - site styles
   Colors and type follow the original Wix design (Futura -> Jost). */
:root {
  --navy: #060d41;
  --accent: #2c41e3;
  --coral: #ff6161;
  --bg: #ffffff;
  --bg-soft: #f8f8f9;
  --line: #e4e4ea;
  --text: var(--navy);
  --muted: #4a4f73;
  --font: "Jost", "Futura", "Century Gothic", "Trebuchet MS", sans-serif;
  --wrap: 1180px;
  --prose: 640px;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.85;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-weight: 400; line-height: 1.2; margin: 0 0 .6em; }
p { margin: 0 0 1.1em; }
figure { margin: 0; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
}
.header-inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  position: relative;
}
.logo {
  font-size: 28px; font-weight: 400; letter-spacing: .45em;
  text-decoration: none; white-space: nowrap; line-height: 1.3;
}
.logo:hover { color: var(--navy); }
.tagline { margin: 0; font-size: 15px; font-weight: 400; line-height: 1.4; }
.nav-area { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.site-nav a { text-decoration: none; font-size: 17px; }
.site-nav a[aria-current="page"] { color: var(--accent); }

.nav-toggle, .nav-toggle-label { display: none; }

.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; font-size: 13px; line-height: 1.6; }
.social li { display: flex; align-items: center; }
.social li + li::before { content: "/"; margin: 0 10px; font-size: 18px; line-height: 1; }
.social a { text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border: 1px solid var(--coral);
  color: var(--coral);
  padding: 7px 36px;
  font-size: 15px; font-weight: 300; line-height: 1.6;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--coral); color: #fff; }
.btn-row { text-align: center; margin: 40px 0 0; }

/* ---------- Layout helpers ---------- */
.section { padding: clamp(40px, 6vw, 72px) var(--gutter); }
.section-soft { background: var(--bg-soft); }
.prose { max-width: var(--prose); margin: 0 auto; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .9em; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }
.prose img { margin: 0 auto; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; margin: 1.4em 0; }
.prose h2 { font-size: 28px; margin-top: 1.4em; }
.prose h3 { font-size: 22px; margin-top: 1.3em; }
.centered { text-align: center; }

/* Split hero: image left, text right (About, Podcast, Ourboox, Contact) */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  max-width: 100%; min-height: 360px;
}
.split-media { position: relative; overflow: hidden; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(28px, 5vw, 64px) clamp(20px, 4vw, 52px);
}
.split-text h1 { font-size: clamp(36px, 4.4vw, 52px); font-weight: 300; }
.split-text p { max-width: 400px; font-size: 16px; line-height: 1.7; }
.split-art { background-size: cover; background-position: center bottom; }

/* ---------- Home ---------- */
.home-hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 4vw, 64px);
  max-width: var(--wrap); margin: 0 auto; padding: 24px var(--gutter) 0;
  align-items: end;
}
.home-hero img { width: 100%; }
.home-intro h2 { font-size: 28px; text-align: center; }
.home-intro .prose { text-align: center; }
.credits { font-size: 15px; line-height: 1.6; }
.home-cards { display: grid; grid-template-columns: repeat(4, 1fr); }
.home-cards > * { min-height: 360px; }
.home-cards .card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-text {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 32px 24px;
}
.card-text h3 { font-size: 16px; letter-spacing: .35em; text-transform: none; }
.card-text p { font-size: 16px; line-height: 1.6; max-width: 230px; }
.card-text .btn { margin-top: 8px; }

/* ---------- Ourboox page ---------- */
.story-title { position: absolute; top: 14%; left: 28%; font-size: clamp(32px, 4vw, 50px); font-weight: 300; line-height: 1.25; margin: 0; }
.story-title a { display: inline-block; vertical-align: middle; }
.story-title img { width: clamp(120px, 13vw, 170px); display: inline-block; vertical-align: -0.15em; }
.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  max-width: 760px; margin: 56px auto 0;
}
.gallery-card {
  display: flex; flex-direction: column; text-decoration: none;
  background: #fff; box-shadow: 0 1px 4px rgba(6,13,65,.14);
  transition: box-shadow .2s, transform .2s;
}
.gallery-card:hover { box-shadow: 0 4px 14px rgba(6,13,65,.2); transform: translateY(-2px); color: inherit; }
.gallery-card img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.gallery-card span { font-size: 13px; line-height: 1.45; padding: 14px 16px 18px; text-align: center; }

/* ---------- Contact ---------- */
.contact-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.contact-split .split-media { min-height: 560px; }
.contact-info { justify-content: flex-start; padding-top: clamp(40px, 7vw, 90px); }
.contact-info .contact-name { font-size: 18px; margin: 0; }
.contact-info .contact-role { font-size: 14px; margin: 0 0 18px; }
.contact-block { border-top: 1px solid var(--line); padding: 22px 0 28px; max-width: 360px; }
.contact-block h2 { font-size: 18px; margin-bottom: 10px; }
.contact-block p { font-size: 14px; line-height: 1.6; margin: 0; }

/* ---------- Books ---------- */
.page-title { text-align: center; font-size: clamp(32px, 4vw, 44px); font-weight: 300; }
.page-intro { text-align: center; max-width: var(--prose); margin: 0 auto 40px; }
.books-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px;
  max-width: var(--wrap); margin: 0 auto;
}
.book-card { text-decoration: none; text-align: center; }
.book-card img { width: 100%; aspect-ratio: 489 / 220; object-fit: cover; transition: opacity .2s; }
.book-card:hover img { opacity: .88; }
.book-card span { display: block; margin-top: 12px; font-size: 18px; font-weight: 400; }

.book { max-width: var(--wrap); margin: 0 auto; padding: clamp(32px, 5vw, 64px) var(--gutter); }
.book-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.book-info h1 { font-size: clamp(32px, 4vw, 46px); font-weight: 300; }
.book-credits p { margin: 0; font-size: 16px; }
.book-credits { margin-bottom: 28px; }
.book-blurb { margin: 0; }
.book-read-more { margin-top: 32px; }
.book-read-more p { font-size: 22px; font-weight: 400; margin-bottom: 10px; }
.ourboox-link img { width: 200px; }
.book-illustrations { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.book-illustrations img { width: 100%; }
.book-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 48px; }
.book-nav > :first-child { justify-self: start; }
.book-nav > :last-child { justify-self: end; }

/* ---------- Blog ---------- */
.post-list { list-style: none; padding: 0; margin: 0 auto; max-width: 900px; }
.post-item { border-bottom: 1px solid var(--line); }
.post-item:first-child { border-top: 1px solid var(--line); }
.post-item a { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 28px 0; text-decoration: none; }
.post-item a:hover h2 { color: var(--accent); }
.post-thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-item h2 { font-size: 22px; margin: 0 0 6px; transition: color .2s; }
.post-item time { font-size: 14px; color: var(--muted); }
.post-item p { font-size: 16px; line-height: 1.65; margin: 8px 0 0; }

.post { max-width: 760px; margin: 0 auto; padding: clamp(32px, 5vw, 64px) var(--gutter); }
.post-header h1 { font-size: clamp(30px, 4vw, 40px); }
.post-meta { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.post-body { max-width: none; }
.post-body img { width: auto; max-height: 720px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; border-top: 1px solid var(--line); padding-top: 24px; }
.post-nav a { text-decoration: none; font-size: 16px; line-height: 1.4; }
.post-nav span { display: block; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.post-nav-newer { text-align: right; }
.back-link { margin-top: 28px; font-size: 16px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 22px var(--gutter) 28px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
}
.footer-brand { display: flex; flex-direction: column; line-height: 1.3; }
.footer-name { font-size: 20px; font-weight: 400; text-decoration: none; }
.footer-brand span { font-size: 13px; }
.footer-links { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.footer-email { font-size: 13px; }
.to-top {
  justify-self: end; width: 32px; height: 32px; border: 1px solid var(--navy);
  display: grid; place-items: center; text-decoration: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .home-cards { grid-template-columns: 1fr 1fr; }
  .books-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .header-inner { align-items: center; }
  .logo { font-size: 22px; letter-spacing: .3em; }
  .nav-toggle-label {
    display: block; width: 28px; height: 22px; position: relative; cursor: pointer;
  }
  .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
    position: absolute; left: 0; width: 28px; height: 1.5px; background: var(--navy); content: "";
  }
  .nav-toggle-label span { top: 10px; }
  .nav-toggle-label span::before { top: -8px; }
  .nav-toggle-label span::after { top: 8px; }
  .nav-area {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--line);
    align-items: flex-start;
  }
  .nav-toggle:checked ~ .nav-area { display: flex; }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .site-nav a { font-size: 19px; }
  .nav-area .social { margin-top: 12px; }

  .home-hero { grid-template-columns: 1fr; gap: 12px; }
  .split, .contact-split { grid-template-columns: 1fr; }
  .split-media { max-height: 420px; }
  .contact-split .split-media { min-height: 0; max-height: 520px; }
  .split-art { min-height: 300px; }
  .home-cards { grid-template-columns: 1fr; }
  .home-cards > * { min-height: 0; }
  .home-cards .card-media { max-height: 420px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .books-grid { grid-template-columns: 1fr; }
  .book-top { grid-template-columns: 1fr; }
  .book-illustrations { grid-template-columns: 1fr; }
  .book-nav { grid-template-columns: 1fr; justify-items: center; }
  .book-nav > :first-child, .book-nav > :last-child { justify-self: center; }
  .post-item a { grid-template-columns: 1fr; gap: 14px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-newer { text-align: left; }
  .footer-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-brand { align-items: center; }
  .to-top { justify-self: center; }
}
