/*
Theme Name: Ask Uncle La Gaffe Papa1337
Theme URI: https://asklagaffe.com
Author: Alfons Scholing & ChatGPT
Description: Final bande dessinée–style theme with comic-cover landing, bubble ask box, and webcomic layouts.
Version: 2.0.0
Text Domain: askunclelagaffe-papa1337
*/

:root {
  --al-paper: #f4e0ac;
  --al-ink: #1a120b;
  --al-teal: #1f7a69;
  --al-orange: #d97632;
  --al-cream: #fff5d8;
}

/* Base */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--al-paper);
  color: var(--al-ink);
  font-family: "EB Garamond", "Garamond", "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: "EB Garamond", "Garamond", serif;
  font-weight: 700;
  margin: 0 0 .35em;
  color: var(--al-teal);
}

h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  text-shadow: 0 3px 0 rgba(0,0,0,0.25);
}

p {
  margin: 0 0 .8em;
}

a {
  color: var(--al-teal);
}

a:hover {
  color: var(--al-orange);
}

.screen-reader-text {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* COVER (front page) */

.al-main-cover {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Logo = menu */

.al-logo-button {
  position: fixed;
  z-index: 30;
  top: .75rem;
  left: .75rem;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
}

.al-logo-button img {
  width: 96px;
  height: auto;
  display: block;
}

/* Menu overlay */

.al-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: rgba(8, 5, 3, 0.92);
  color: #fdf5da;
  display: none;
}

.al-menu-overlay.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.al-menu-inner {
  text-align: center;
  padding: 1.5rem;
}

.al-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.al-menu-list li {
  margin-bottom: .75rem;
}

.al-menu-list a {
  color: #fdf5da;
  text-decoration: none;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
}

/* Hero */

.al-hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 4.5rem 1.1rem 2.3rem;
  position: relative;
}

.al-hero-bg {
  position: absolute;
  inset: 0;
  background:
    url("assets/img/ask-room-bg.jpg")
    center bottom / cover no-repeat;
  z-index: -2;
}

.al-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(0,0,0,0.18), transparent 55%);
  z-index: -1;
}

/* Hero copy panel */

/* Simple intro animations */

@keyframes al-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.al-hero-copy {
  max-width: 30rem;
  background: rgba(244, 224, 172, 0.94);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  box-shadow: 0 18px 35px rgba(0,0,0,0.3);
  margin-bottom: 1.5rem;
  animation: al-fade-up 0.7s ease-out both;
}

.al-bubble-wrap {
  width: 100%;
  margin-top: auto;
  display: flex;
  justify-content: center;
  animation: al-fade-up 0.8s ease-out 0.15s both;
}


/* Bubble form – code only, no image */

.al-bubble-wrap {
  width: 100%;
  margin-top: auto;
  display: flex;
  justify-content: center;
}

.al-bubble-form {
  position: relative;
  width: 100%;
  max-width: 720px;
  padding: 0.9rem 1.1rem;
  background: var(--al-cream);
  border-radius: 999px;
  border: 3px solid #15100c;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Little speech tail */
.al-bubble-form::after {
  content: "";
  position: absolute;
  left: 18%;
  bottom: -16px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 16px 16px 0 0;
  border-color: var(--al-cream) transparent transparent transparent;
  filter: drop-shadow(0 3px 0 rgba(0,0,0,0.25));
}

/* Input + button */

.al-bubble-input {
  flex: 1 1 auto;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 1.02rem;
  line-height: 1.4;
  min-height: 2.3rem;
}

.al-bubble-input::placeholder {
  color: rgba(0, 0, 0, 0.6);
}

.al-bubble-input:focus {
  outline: none;
}

.al-bubble-submit {
  flex: 0 0 auto;
  border-radius: 999px;
  border: none;
  padding: 0.5rem 1.4rem;
  font-size: 0.98rem;
  font-weight: 600;
  background: var(--al-teal);
  color: #fff;
  cursor: pointer;
}

/* Stack nicely on small screens */
@media (max-width: 599px) {
  .al-bubble-form {
    flex-direction: column;
    align-items: stretch;
    border-radius: 20px;
  }

  .al-bubble-form::after {
    left: 24%;
  }

  .al-bubble-submit {
    width: 100%;
    text-align: center;
  }
}
/* Static page / single layout */

.al-single-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 4.5rem 1.25rem 3.5rem;
}


.al-episode-header {
  max-width: 40rem;
  margin: 0 auto 1.75rem;
  text-align: center;
  background: var(--al-cream);
  border-radius: 999px;
  padding: 0.9rem 1.8rem;
  position: relative;
  box-shadow: 0 18px 35px rgba(0,0,0,0.3);
}

.al-episode-header::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -16px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 16px 16px 0 0;
  border-color: var(--al-cream) transparent transparent transparent;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.28));
}

.al-episode-header h1 {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  margin: 0;
}

.al-episode-header .al-episode-meta {
  margin-top: 0.25rem;
}


.al-episode-meta {
  font-size: .9rem;
  opacity: .8;
}

/* Episode body */

.al-episode-body {
  max-width: 40rem;
  margin: 0 auto 2rem;
  background: var(--al-cream);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 18px 35px rgba(0,0,0,0.28);
}

.al-episode-body p {
  font-size: 1.06rem;
  line-height: 1.65;
}

/* Featured panel */

.al-episode-panel img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 22px 40px rgba(0,0,0,0.32);
  margin-bottom: 1.2rem;
}

/* Excerpt bubble */

.al-episode-bubble {
  max-width: 620px;
  margin: 0 auto 1.5rem;
  padding: 2.4rem 1.8rem 3rem;
  background:
    url("assets/img/ask-bubble.png")
    center / contain no-repeat;
}

.al-episode-bubble p {
  margin: 0;
}

/* Nav */

.al-episode-nav {
  max-width: 40rem;
  margin: 0 auto 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem;
}

.al-episode-nav a {
  display: inline-block;
  padding: .55rem .9rem;
  border-radius: .75rem;
  border: 2px solid #15100c;
  background: var(--al-paper);
  text-decoration: none;
  font-size: .9rem;
}

/* Comments */

.al-comments {
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  background: #fffdf5;
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 5px 0 rgba(0,0,0,0.2);
}

/* Search grid */

.al-search-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 1.25rem 3rem;
}

.al-search-header {
  max-width: 40rem;
  margin-bottom: 1.5rem;
  background: rgba(244, 224, 172, 0.95);
  border-radius: .9rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 4px 0 rgba(0,0,0,0.22);
}

.al-comic-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.al-comic-cell { margin: 0; }

.al-comic-link {
  text-decoration: none;
  color: inherit;
}

.al-comic-frame {
  background: var(--al-cream);
  border: 3px solid #15100c;
  border-radius: 14px;
  box-shadow: 0 18px 35px rgba(0,0,0,0.28);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  transition: transform .16s ease, box-shadow .16s ease;
}

.al-comic-frame:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 40px rgba(0,0,0,0.32);
}

.al-comic-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.al-comic-meta {
  padding: .75rem .85rem 1rem;
}

.al-comic-title {
  font-size: 1.35rem;
  margin-bottom: .35rem;
  text-shadow: 0 2px 0 rgba(0,0,0,0.18);
}

.al-comic-question {
  font-size: .95rem;
  line-height: 1.4;
}

.al-pagination {
  margin-top: 2rem;
  text-align: center;
}

.al-pagination .page-numbers {
  display: inline-block;
  margin: 0 .15rem;
  padding: .3rem .6rem;
  border-radius: 999px;
  border: 2px solid #15100c;
  background: var(--al-paper);
  font-size: .9rem;
}

/* Comments list */

.comment-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.comment {
  margin-bottom: 1rem;
  border-bottom: 1px dashed rgba(0,0,0,0.12);
  padding-bottom: .75rem;
}

.comment-author { font-weight: 600; }

/* Mobile tweaks */

@media (max-width: 599px) {
  .al-hero {
    padding-top: 4.3rem;
  }
  .al-single-page,
  .al-search-page {
    padding-top: 4.5rem;
  }
  .al-episode-body {
    padding: 1rem 1.1rem;
  }
}

/* Tablet+ */

@media (min-width: 768px) {
  .al-hero {
    padding: 5rem 2.5rem 3rem;
  }

  .al-logo-button img {
    width: 120px;
  }

  /* Simple intro animations */

@keyframes al-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.al-hero-copy {
  max-width: 30rem;
  background: rgba(244, 224, 172, 0.94);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  box-shadow: 0 18px 35px rgba(0,0,0,0.3);
  margin-bottom: 1.5rem;
  animation: al-fade-up 0.7s ease-out both;
}

.al-bubble-wrap {
  width: 100%;
  margin-top: auto;
  display: flex;
  justify-content: center;
  animation: al-fade-up 0.8s ease-out 0.15s both;
}


  .al-bubble-form {
    margin-right: 3rem;
  }
}


.al-episode-body h2,
.al-episode-body h3 {
  font-size: 1.35rem;
  margin-top: 1.1rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 0 rgba(0,0,0,0.18);
}


@media (max-width: 1024px) {
  .al-hero {
    min-height: 80vh;
    padding-top: 3.5rem;
  }
}


.al-episode-home {
  max-width: 900px;
  margin: 4.25rem auto 0.75rem;
  padding: 0 1.25rem;
}

.al-pill-link {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--al-cream);
  border: 2px solid #15100c;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--al-ink);
  box-shadow: 0 10px 22px rgba(0,0,0,0.26);
}

.al-pill-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.28);
}
