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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: #fff;
  color: #222;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5;
}

header {
  padding: 3rem 2rem 2rem;
  text-align: center;
}

header h1 {
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.2em;
}

header .subtitle {
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: #595959;
  margin-top: 0.25rem;
}

nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0 2rem 2.5rem;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
}

nav a {
  color: #555;
  text-decoration: none;
  transition: color 0.2s;
}

nav a:hover, nav a.active { color: #2c4a6e; }

.fade-view {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.fade-view.in { opacity: 1; }

/* ---- Home ---- */
.home {
  display: none;
  max-width: 700px;
  margin: 0 auto;
  padding: 1.5rem 2rem 4rem;
}

.home.visible { display: block; }

.home .hero {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.home .hero-photo {
  width: 240px;
  flex-shrink: 0;
}

.home .hero-photo img {
  width: 100%;
  height: auto;
  display: block;
  border: 2px solid #e0e0e0;
}

.home .hero-text h2 {
  font-size: 0.95rem;
  font-weight: 400;
  color: #333;
  line-height: 1.6;
  margin-bottom: 0.75rem;
  font-style: italic;
}

.home .hero-text p {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.8;
}

.home .section-label {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: #333;
  margin-bottom: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.home .blurb {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.home .testimonial {
  margin-bottom: 2.5rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.home .testimonial .book-cover {
  width: 160px;
  flex-shrink: 0;
  border: 2px solid #e0e0e0;
}

.home .testimonial .book-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.home .testimonial .quote-text {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.8;
  font-style: italic;
}

.home .testimonial .quote-attr {
  font-size: 0.82rem;
  color: #595959;
  margin-top: 0.5rem;
  font-style: normal;
}

/* ---- About ---- */
.about {
  display: none;
  max-width: 650px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
  line-height: 1.8;
  font-size: 0.95rem;
  color: #444;
}

.about.visible { display: block; }
.about p + p { margin-top: 1rem; }

.about-photo {
  width: 220px;
  float: left;
  border: 2px solid #e0e0e0;
  margin: 0 1.5rem 1rem 0;
  cursor: pointer;
}

/* ---- Books ---- */
.books {
  display: none;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

.books.visible { display: block; }

.books .books-intro {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 650px;
}

.books .author-group {
  margin-bottom: 2.5rem;
}

.books .author-group h3 {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: #333;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}

.books .book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.books .book-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}


.books .book-card .cover-wrap {
  aspect-ratio: 3 / 4.4;
  display: flex;
  align-items: flex-end;
  margin-bottom: 0.75rem;
}

.books .book-card img {
  width: 100%;
  height: auto;
  border: 2px solid #e0e0e0;
  display: block;
}

.books .book-card .book-title {
  font-size: 0.82rem;
  font-weight: 300;
  color: #333;
  font-style: italic;
}

.books .book-card .book-desc {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-size: 0.78rem;
  color: #595959;
  margin-top: 0.25rem;
  line-height: 1.5;
}

.publisher {
  margin-top: auto;
  padding-top: 0.4rem;
  align-self: flex-start;
  font-size: 0.78rem;
  font-style: normal;
  color: #595959;
  text-decoration: none;
  border-bottom: 1px solid #ddd;
  padding-bottom: 1px;
  transition: border-color 0.2s;
}

.publisher:hover { border-color: #222; }

.books .books-note {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
  font-size: 0.92rem;
  color: #555;
  line-height: 1.8;
  font-style: italic;
  max-width: 650px;
}

/* ---- Work Together ---- */
.work-together {
  display: none;
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.8;
}

.work-together.visible { display: block; }
.work-together p + p { margin-top: 1rem; }


.work-together h3 {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: #333;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.work-together ul {
  margin: 0.5rem 0 1rem 1.5rem;
  font-size: 0.92rem;
  color: #555;
}

.work-together li { margin-bottom: 0.25rem; }

.work-together .services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 1.5rem 0;
  border: 1px solid #eee;
}

.work-together .service {
  padding: 1.2rem 1.3rem;
  background: #fafafa;
}

.work-together .service h3 {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #333;
  margin-bottom: 0.4rem;
}

.work-together .service p {
  font-size: 0.85rem;
  color: #595959;
  line-height: 1.6;
}

.work-together .section-photo {
  display: block;
  max-width: 400px;
  margin: 2rem auto;
  border: 2px solid #e0e0e0;
}

.work-together .cta {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 1.3rem;
  font-family: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  border: 1px solid #222;
  background: #222;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.work-together .cta:hover { background: #fff; color: #222; }

/* ---- Contact ---- */
.contact {
  display: none;
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

.contact.visible { display: block; }

.contact .contact-intro {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.contact .email-link {
  display: inline-block;
  color: #222;
  text-decoration: none;
  border-bottom: 1px solid #ccc;
  padding-bottom: 1px;
  transition: border-color 0.2s;
  font-size: 0.95rem;
}

.contact .email-link:hover { border-color: #222; }

.contact #contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.contact input,
.contact textarea,
.ml-row input {
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #ddd;
  background: #fafafa;
  color: #222;
  outline: none;
  transition: border-color 0.2s;
}

.contact input:focus,
.contact textarea:focus,
.ml-row input:focus { border-color: #999; }

.contact textarea { resize: vertical; min-height: 120px; }

.contact button,
.ml-row button {
  font-family: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  padding: 0.75rem 1.3rem;
  border: 1px solid #222;
  background: #222;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.contact button { align-self: flex-start; }

.contact button:hover,
.ml-row button:hover { background: #fff; color: #222; }

.contact .form-sent {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.6;
}

.mailing-list {
  margin-top: 2rem;
}

.mailing-list p {
  font-size: 0.85rem;
  color: #595959;
  margin-bottom: 0.75rem;
}

.ml-row {
  display: flex;
  gap: 0.5rem;
}

.ml-row input { flex: 1; }

.ml-msg {
  font-size: 0.82rem;
  margin-top: 0.5rem;
}

.ml-msg.success { color: #444; }
.ml-msg.error { color: #c44; }

/* ---- Blog ---- */
.blog {
  display: none;
  max-width: 650px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.8;
}

.blog.visible { display: block; }

.blog-posts { list-style: none; }

.blog-post {
  padding: 1.5rem 0;
  border-bottom: 1px solid #eee;
}

.blog-post:first-child { padding-top: 0; }

.blog-post .post-title {
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: #333;
}

.blog-post .post-date {
  font-size: 0.8rem;
  color: #595959;
  margin-top: 0.25rem;
}

.blog-post .post-excerpt {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.5rem;
  line-height: 1.6;
}

/* ---- Privacy modal ---- */
.privacy-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 100;
  align-items: center;
  justify-content: center;
}

.privacy-overlay.open {
  display: flex;
}

.privacy-modal {
  background: #fff;
  max-width: 500px;
  margin: 2rem;
  padding: 2rem;
  font-size: 0.88rem;
  color: #444;
  line-height: 1.8;
  position: relative;
}

.privacy-modal h3 {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: #333;
  margin-bottom: 1rem;
}

.privacy-modal p + p { margin-top: 0.75rem; }

.privacy-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #595959;
  cursor: pointer;
  transition: color 0.2s;
}

.privacy-close:hover { color: #222; }

footer {
  text-align: center;
  padding: 2rem;
  color: #595959;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.footer-link {
  color: #595959;
  text-decoration: none;
  border-bottom: 1px solid #ddd;
  padding-bottom: 1px;
  transition: border-color 0.2s;
}

.footer-link:hover { border-color: #999; }

@media (max-width: 600px) {
  header { padding: 2rem 1rem 1.5rem; }
  header h1 { font-size: 1.1rem; }
  nav { gap: 1.2rem; font-size: 0.7rem; }

  .home .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .home .hero-photo { width: 200px; }

  .home .testimonial {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .home .testimonial .book-cover { width: 140px; }

  .books .book-grid { grid-template-columns: repeat(2, 1fr); }

  .work-together .services { grid-template-columns: 1fr; }
}

.books .book-card img,
.home .book-cover img,
.home .hero-photo img,
.work-together .section-photo { cursor: pointer; }

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 200;
  cursor: pointer;
  justify-content: center;
  align-items: center;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

/* Utility classes (replaced inline styles) */
.clearfix { clear: both; }
.art-credit { font-size: 0.7rem; color: #767676; margin-top: 0.3rem; text-align: center; }
.art-credit a { color: #767676; text-decoration: none; border-bottom: 1px solid #ddd; }
.coming-soon { color: #767676; font-size: 0.92rem; font-style: italic; }

.quote-attr a { color: inherit; text-decoration: none; border-bottom: 1px solid #ddd; }

.contact-hint { font-size: 0.95rem; color: #444; line-height: 1.8; margin-top: 1.5rem; }
