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

html { font-size: 16px; }

body {
  font-family: 'DM Mono', monospace;
  background: #ffffff;
  color: #111;
  min-height: 100vh;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.25rem 2.5rem;
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 100;
  border-bottom: 1px solid #eee;
  overflow: visible;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #111;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #999;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #111;
}

.nav-right {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-label {
  display: none;
  font-family: 'Caveat', cursive;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #999;
  line-height: 1;
  position: absolute;
  top: -14px;
  left: -80px;
  transform: rotate(-10deg);
  pointer-events: none;
  white-space: nowrap;
  z-index: 10;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #111;
}

/* ── Book Grid ── */

.books-section {
  padding: 2rem 2.5rem 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.books-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  align-items: flex-end;
}

/* ── Welcome-back popup ── */
.welcome-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.welcome-popup-overlay.visible {
  opacity: 1;
}

.welcome-popup {
  position: relative;
  background: #fafaf8;
  border-radius: 10px;
  max-width: 380px;
  width: 100%;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  transform: translateY(10px);
  transition: transform 0.25s ease;
}

.welcome-popup-overlay.visible .welcome-popup {
  transform: translateY(0);
}

.welcome-popup-close {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  border: 0;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  padding: 0;
}
.welcome-popup-close:hover { background: rgba(0,0,0,0.75); }

.welcome-popup-cover {
  width: 100%;
  margin: 0;
  line-height: 0;
}
.welcome-popup-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.welcome-popup-footer {
  padding: 1.5rem 1.5rem 1.75rem;
}

.welcome-popup-date {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #111;
  margin-bottom: 1.1rem;
}

.welcome-popup-btn {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: #111;
  padding: 0.75rem 2rem;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.15s;
}
.welcome-popup-btn:hover { background: #444; }

.book-tile {
  display: block;
  text-decoration: none;
  height: 280px;
  flex-shrink: 0;
  position: relative;
}

.book-tile {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.book-tile.visible {
  opacity: 1;
  transform: translateY(0);
}

.book-tile img {
  display: block;
  height: 100%;
  width: auto;
  box-shadow: 3px 4px 6px rgba(0,0,0,0.32), 1px 2px 2px rgba(0,0,0,0.18);
  transition: transform 0.2s ease;
}

.book-tile:hover img {
  transform: translateY(-6px);
}

@media (max-width: 768px) {
  .book-tile { height: 200px; }
}

@media (max-width: 480px) {
  .book-tile { height: 160px; }
}


.hero {
  padding: 4rem 2rem 3.5rem;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-tagline {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.4rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111;
  line-height: 1.05;
  white-space: nowrap;
}

.hero-label {
  font-size: clamp(14px, 2vw, 18px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #bbb;
  white-space: nowrap;
  margin-bottom: 0.5rem;
}





.book-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.book-item {
  display: block;
  text-decoration: none;
}

.book-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.book-item:hover img {
  opacity: 0.85;
  transform: translateY(-3px);
}

/* Interior pages */

.page-content {
  max-width: 680px;
  padding: 4rem 2rem 5rem;
}

.page-content h2 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 2rem;
}

.page-content p {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #444;
  margin-bottom: 1.5rem;
}

.page-content a { color: #111; }

.projects-grid {
  padding: 2rem 2rem 5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.project-item {
  display: block;
  text-decoration: none;
  color: #111;
}

.project-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f0f0f0;
  margin-bottom: 0.5rem;
  overflow: hidden;
  transition: opacity 0.2s;
}

.project-item:hover .project-thumb { opacity: 0.85; }

.project-title {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: none;
  color: #999;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 4rem 2rem 5rem;
  max-width: 900px;
}

.about-person h2 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1.25rem;
}

.about-person p {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #444;
  margin-bottom: 1.25rem;
}

.about-person a { color: #111; }

.about-divider {
  grid-column: 1 / -1;
  border: none;
  border-top: 1px solid #eee;
}

.about-meta {
  grid-column: 1 / -1;
  display: flex;
  gap: 4rem;
}

.about-meta div { flex: 1; }

.about-meta h3 {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: none;
  color: #bbb;
  margin-bottom: 0.5rem;
}

.about-meta p {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
}

.about-meta a { color: #111; }

footer {
  border-top: 1px solid #eee;
  padding: 2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p, footer a {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: none;
  color: #ccc;
  text-decoration: none;
}

footer a:hover { color: #111; }

@media (max-width: 768px) {
  nav { flex-wrap: wrap; padding: 1.25rem 1.5rem; gap: 0; }
  .logo { font-size: 15px; }
  .nav-toggle { display: block; }
  .nav-right { width: 100%; order: 3; }
  .nav-label { display: none; }
  .nav-links { display: none; width: 100%; flex-direction: column; gap: 1rem; padding: 1.25rem 0 0.5rem; }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 15px; color: #111; }
  .hero { padding: 2.5rem 1.25rem 2rem; }

  
  .books-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .books-section { padding: 1.5rem 1.5rem 3rem; }
  .book-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); padding: 1.5rem 1.25rem 4rem; }
  .about-grid { grid-template-columns: 1fr; padding: 2.5rem 1.25rem 4rem; gap: 2rem; }
  .about-meta { flex-direction: column; gap: 1.5rem; }
  .page-content { padding: 2.5rem 1.25rem 4rem; }
  footer { padding: 1.25rem; flex-direction: column; gap: 0.5rem; text-align: center; }
}





/* ── About page ── */

.about-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 2.5rem 6rem;
}

.about-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 0 2rem;
  margin-bottom: 1.5rem;
}

/* Two photos side by side, equal width, square crop */
.about-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 0.75rem;
}

.about-photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f0f0f0;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Two bios side by side */
.about-bios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 3rem 0;
}

.about-bio h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111;
  margin-bottom: 1.25rem;
}

.about-bio p {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 1.1rem;
}

.about-bio p:last-child { margin-bottom: 0; }
.about-bio em { font-style: italic; }
.about-bio a { color: #111; }

.about-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 0;
}

.about-meta {
  display: flex;
  gap: 4rem;
  padding: 3rem 0 0;
}

.about-meta div { flex: 1; }

.about-meta h3 {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: none;
  color: #bbb;
  margin-bottom: 0.6rem;
}

.about-meta p {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #444;
}

.about-meta a { color: #111; }

@media (max-width: 768px) {
  .about-section { padding: 2.5rem 1.5rem 4rem; }
  .about-photos { gap: 8px; }
  .about-bios { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-meta { flex-direction: column; gap: 2rem; }
}
/* ── Interior pages (Events, Newsletter, Contact) ── */

.interior-section {
  max-width: 680px;
  padding: 4rem 2.5rem 6rem;
}

.interior-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111;
  margin-bottom: 2rem;
}

.interior-body {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 1.5rem;
}

.interior-empty {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #bbb;
}

.nav-email {
  display: flex;
  align-items: center;
  color: #999;
  text-decoration: none;
  transition: color 0.15s;
  margin-left: 1.75rem;
}

.nav-email:hover { color: #111; }

@media (max-width: 768px) {
  .nav-email { display: none; }
}

.about-combined {
  padding: 3rem 0;
}

.about-combined p {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #444;
}

.about-combined em { font-style: italic; }

/* ── Footer ── */

footer {
  padding: 2rem 2.5rem;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
}

/* ── Make Trouble button ── */



.make-trouble-wrap {
  display: flex;
  justify-content: flex-end;
  padding: 1rem 0 2rem;
}

.make-trouble-btn {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ccc;
  background: none;
  border: 1px solid #eee;
  padding: 0.4rem 0.85rem;
  border-radius: 2px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.make-trouble-btn:hover {
  color: #111;
  border-color: #bbb;
}

/* ── Make Trouble nav label swap ── */

.scribbled-in {
  font-family: 'Caveat', cursive;
  font-size: 1.4em;
  font-weight: 700;
  color: #111;
  letter-spacing: 0.01em;
  display: inline-block;
  animation: scribble-in 0.2s ease-out;
}

@keyframes scribble-in {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Trouble overlay ── */

.stuff-wrap {
  position: relative;
  display: inline-block;
}

.stuff-original {
  display: inline-block;
}

#stuffWord {
  position: absolute;
  top: 50%;
  left: calc(50% - 3px);
  transform: translate(-50%, -50%) rotate(-5deg);
  white-space: nowrap;
  pointer-events: none;
}

.stuff-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
}

.stuff-overlay.troubled-overlay .scribbled-in {
  transform: rotate(-1deg);
  display: inline-block;
}

.stuff-wrap.troubled .stuff-original {
  position: relative;
}

.scribble-line {
  position: absolute;
  top: 60%;
  left: -2px;
  width: calc(100% + 4px);
  height: 12px;
  transform: translateY(-50%);
  pointer-events: none;
  overflow: visible;
}

.stuff-overlay.troubled-overlay {
  top: 10%;
}



.blah-text {
  font-size: 0.95em;
  letter-spacing: 0.05em;
  white-space: normal;
  display: block;
  line-height: 1.4;
}

#blahOriginal.scratched {
  text-decoration: line-through;
  text-decoration-color: #111;
  text-decoration-thickness: 2px;
  opacity: 0.4;
}

.blah-overlay {
  display: none;
  font-family: 'Caveat', cursive;
  font-size: 1.3em;
  font-weight: 700;
  color: #111;
  letter-spacing: 0.05em;
  line-height: 1.5;
  transform: rotate(-1deg);
  display: none;
}

.blah-overlay.visible {
  display: inline;
}

.margin-note {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-120%);
  margin-left: 8px;
  white-space: nowrap;
  font-size: 0.9em;
}

/* Mobile nav label inside dropdown */
.nav-links-label {
  display: none;
  font-family: 'Caveat', cursive;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #999;
  line-height: 1;
  list-style: none;
  transform: rotate(-10deg);
  transform-origin: left top;
  margin-bottom: -1rem;
  margin-left: 4px;
  pointer-events: none;
}

@media (max-width: 768px) {
  .nav-links-label { display: none; }
}

/* Hidden nav items */
.nav-links li.nav-hidden {
  display: none;
}

/* Envelope icon replaces "Contact" text inside the mobile dropdown */
.nav-contact-mobile {
  display: none;
}

.nav-contact-mobile a {
  display: flex;
  align-items: center;
  color: #999;
  transition: color 0.15s;
}

.nav-contact-mobile a:hover { color: #111; }

@media (max-width: 768px) {
  .nav-contact-mobile { display: list-item; }
}
