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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050711;
  color: #f5f5f7;
  line-height: 1.6;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: #050509;
  border-bottom: 3px solid #ffcf33; /* MAU yellow underline */
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
}

.site-logo {
  height: 72px;     /* bigger MAU logo */
  width: auto;
  display: block;
}

/* Navigation */
.main-nav {
  display: flex;
  gap: 1rem;
}

.main-nav a {
  text-decoration: none;
  color: #e2e4ff;
  font-size: 0.95rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.main-nav a.active {
  background: #ffcf33;  /* MAU yellow */
  color: #111111;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.5rem;
  padding: 3rem 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  margin-bottom: 1rem;
}

.hero-text p {
  max-width: 32rem;
  color: #d1d5ff;
  margin-bottom: 1.5rem;
}

.hero-buttons {
  display: flex;
  gap: 0.75rem;
}

.hero-art {
  width: min(420px, 100%);
  height: auto;
  border-radius: 1.5rem;
  border: 3px solid rgba(255, 207, 51, 0.85); /* MAU yellow accent */
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
}

/* Global sections */
.section {
  padding: 2.5rem 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
}

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

/* Comic-style alternate section */
.section-alt {
  background: radial-gradient(circle at top, rgba(255, 207, 51, 0.14), rgba(5, 7, 17, 0.95));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Page layout */
.page {
  padding: 0 0 3rem;
}

/* Make page headers align with sections */
.page-header {
  max-width: 1120px;
  margin: 0 auto 2rem;
  padding: 2.5rem 1.5rem 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.75;
}

.btn.primary {
  background: #ffcf33;   /* MAU yellow */
  color: #111111;
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.btn.link {
  background: none;
  padding: 0;
  color: #ffcf33;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card {
  background: rgba(10, 12, 28, 0.95);
  border-radius: 1.25rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card-image {
  border-radius: 1rem;
  overflow: hidden;
  max-height: 260px;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body h3,
.card-body h2 {
  font-size: 1.1rem;
}

.card-body p {
  font-size: 0.95rem;
  color: #d0d3ff;
}

/* Comic-strip preview (More from Myles) */
.comic-strip-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.strip-page {
  aspect-ratio: 2 / 3;
  border-radius: 1rem;
  overflow: hidden;
  background: #050711;
  display: flex;
  align-items: center;
  justify-content: center;
}

.strip-page img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Two-column layout */
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.sketch-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

/* Sketch tiles used on the Home page collage */
.sketch {
  aspect-ratio: 4 / 3;
  border-radius: 0.9rem;
  overflow: hidden;
}

/* Ensure gallery and featured images keep a consistent frame */
.card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Make sketch previews square and nicely cropped */
.sketch {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.sketch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sketch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Sketchbook grid (Sketchbook page) */
.sketchbook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.sketch-card {
  aspect-ratio: 4 / 3;
  border-radius: 1rem;
  overflow: hidden;
}

.sketch-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;    /* show whole sketch here */
  background: #050711;
  display: block;
  padding: 0.35rem;
}

/* Placeholders */
.placeholder {
  border: 1px dashed rgba(255, 255, 255, 0.35);
  background: linear-gradient(135deg, rgba(43, 33, 68, 0.6), rgba(10, 12, 28, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cfd2ff;
}

/* About */
.about-section {
  align-items: flex-start;
}

.about-text p + p {
  margin-top: 0.75rem;
}

.about-image img {
  max-width: 250px;
  border-radius: 50%;
  display: block;
  margin: 0 auto;
}

/* Contact */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 480px;
}

/* Contact layout improvements */
.contact-section {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;  /* form | aside */
  gap: 3rem;
  align-items: start;
}

.contact-form {
  max-width: 520px;
  margin: 0 auto;         /* center the form */
  width: 100%;
}

.contact-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-form label {
  font-size: 0.95rem;
  color: #d0d3ff;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font-size: 0.95rem;
  padding: 0.65rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(10, 12, 28, 0.9);
  color: #f5f5f7;
}

.contact-form button {
  width: 100%;             /* match the form width */
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border-radius: 999px;
}

.contact-aside {
  color: #cbd0ff;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Mobile behaviour */
@media (max-width: 768px) {
  .contact-section {
    grid-template-columns: 1fr; /* stack layout */
    gap: 2rem;
  }

  .contact-aside {
    text-align: center;
  }
}


/* Footer */
.site-footer {
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #a5a8cd;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Lightbox overlay */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
  z-index: 50;
}

#lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-inner {
  position: relative;
  max-width: min(960px, 96vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.lightbox-inner img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 0.9rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
}

.lightbox-caption {
  font-size: 0.9rem;
  color: #f5f5f7;
  text-align: center;
  max-width: 90vw;
}

.lightbox-close {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  background: #111111;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.4rem;
  line-height: 1;
  color: #ffffff;
  cursor: pointer;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

  .site-logo {
    height: 48px; /* smaller logo for phones */
  }

  .main-nav {
    display: none;
    position: absolute;
    right: 1.5rem;
    top: 4rem;
    background: #050509;
    padding: 0.75rem;
    border-radius: 0.75rem;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .lightbox-inner img {
    max-height: 70vh;
  }
}
