@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&display=swap');

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  position: relative;
  background: #050106; 
  color: #f5e9ff;
  font-family: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  text-align: center;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2; 

  background: radial-gradient(
    circle at top,
    #4a255f 0%,
    #2b173e 35%,
    #120814 70%,
    #050106 100%
  );
}

/* this layers a generic "noise" png (cardboard texture)  over the background. tbh idk if it changes much, but, I kept it */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;

  background-image: url("/images/noise.jpg");
  background-repeat: repeat;
  background-size: 320px 320px;

  opacity: 0.10;
  mix-blend-mode: soft-light;
}


main {
  background: rgba(18, 10, 24, 0.9);
  position: relative;
  border: 2px solid #e0b76a;
  padding: 2rem 3rem;
  max-width: 700px;
  border-radius: 12px;
  box-shadow:
    0 0 30px rgba(0, 0, 0, 0.7),
    0 0 25px rgba(224, 183, 106, 0.5);
  margin: 4rem auto 4rem auto;
}

main::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 120px rgba(0,0,0,0.55);
  z-index: 0;
}


h1 {
  font-size: 2.5rem;
  margin-top: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

p {
  font-size: 1.1rem;
  line-height: 1.6;
}


header h1 {
  font-size: 2.6rem;       
  margin: 0;
  letter-spacing: 0.04em;   
  white-space: nowrap;    
}


.tagline {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #d8cfff;
  opacity: 0.9;
}

nav {
  margin-top: 1.5rem;
  display: flex;
  gap: 1.2rem;
  justify-content: center;
}

nav a {
  text-decoration: none;
  color: #e0b76a;
  padding: 0.4rem 0.8rem;
  border: 1px solid #e0b76a;
  border-radius: 8px;
  transition: 0.2s;
  font-size: 0.95rem;
}

nav a:hover {
  background: #e0b76a;
  color: #05030a;
}

nav a.active {
  background: rgba(224,183,106,0.18);
  box-shadow: 0 0 10px rgba(224,183,106,0.45);
}

section {
  margin-top: 1.8rem;
  font-size: 1.1rem;
}

.divider {
  margin: 2rem auto 1.5rem auto;
  width: 65%;
  height: 2px;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0),
    rgba(224,183,106,0.8),
    rgba(0,0,0,0)
  );
  filter: blur(0.3px);
}

/* --- This is when I wish I commented AS I made CSS. I need to review my html to see if I am even using about-plaque anymore. Knowing me I'll delete this and not notice the difference until months later --- */
.content-panel,
.shelf,
.about-plaque {
  max-width: 46rem;
  margin: 1.8rem auto 0 auto;
  padding: 0.2rem 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* Library shelf styling (this may be the old styling, but again, afraid to delete until html is reviewed) */
.shelf h2 {
  margin-top: 0;
  color: #f5e9ff;
  letter-spacing: 0.04em;
  font-size: 1.4rem;
}

.shelf-note {
  color: #d8cfff;
  opacity: 0.9;
}

/* About me page syling */
.about-intro {
  max-width: 46rem;
  margin: 0 auto 0.9rem auto;
  color: #d8cfff;
  opacity: 0.95;
  line-height: 1.7;
}

.about-plaque h2 {
  margin-top: 1.2rem;
  margin-bottom: 0.6rem;
  color: #f5e9ff;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
}

.about-plaque p {
  color: #d8cfff;
  opacity: 0.92;
  line-height: 1.6;
}

/* footer styling */
footer {
  margin-top: 2.5rem;
}

footer p {
  font-size: 0.8rem;
  color: #a392c9;
  opacity: 0.85;
}

/* --- background motes. Be careful fucking with the HTML that this touches. remember how much shit you went through to make it look right --- */
.magic-dust {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.magic-dust span {
  position: absolute;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle, rgba(255,240,200,1), rgba(255,240,200,0));
  border-radius: 50%;
  animation: drift 18s linear infinite;
  animation-fill-mode: both;
}

.magic-dust span:nth-child(3n) {
  animation-delay: -6s;
}

.magic-dust span:nth-child(4n) {
  animation-delay: -12s;
}

.magic-dust span:nth-child(5n) {
  animation-delay: -3s;
}

@keyframes drift {
  0% {
    transform: translateY(80px) translateX(-40px);
    opacity: 0;
  }
  15% {
    opacity: 0.8;
  }
  85% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-220px) translateX(90px);
    opacity: 0;
  }
}


/* --- Library bookshelves (library page plus the little wooden shelves underneath) --- */

.library-intro {
  max-width: 46rem;
  margin: 0 auto 1.5rem auto;
  color: #d8cfff;
  opacity: 0.95;
  line-height: 1.7;
}


.bookshelves {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-top: 1.5rem;
}


.shelf-row {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 4.0rem;
  padding: 1.4rem 0 1.9rem 0;
}


.shelf-row::before {
  content: "";
  position: absolute;
  left: 1%;
  right: 1%;
  bottom: 0.2rem;
  height: 14px;

  /* Real Wood */
  background-image:
    url("/images/dark-wood.jpg"),
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.25),
      rgba(0, 0, 0, 0.85)
    );

  background-size: cover;
  background-position: center;
  background-repeat: repeat;

  border-radius: 0;

  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.06),
    inset 0 -2px 4px rgba(0,0,0,0.7),
    0 5px 14px rgba(0,0,0,0.9);
}

.book {
  display: block;
  width: 180px;          
  overflow: hidden;
  border-radius: 4px;
  box-shadow:
    0 0 6px rgba(0, 0, 0, 0.7),
    0 0 16px rgba(224, 183, 106, 0.25);
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.book img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;

  image-rendering: auto;  
  image-rendering: -webkit-optimize-contrast;
}

.book:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 10px rgba(0, 0, 0, 0.8),
    0 0 22px rgba(224, 183, 106, 0.45);
}

/* === BOOK DETAIL PAGE LAYOUT (the part where I put my notes and such) === */

.book-layout {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  margin-top: 2rem;
  text-align: left;  
}

.book-meta {
  flex: 0 0 180px;    
}

.book-detail-cover {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow:
    0 0 6px rgba(0, 0, 0, 0.7),
    0 0 16px rgba(224, 183, 106, 0.25);
}

.book-rating {
  margin-top: 0.8rem;
  font-size: 1.2rem;
  color: #e0b76a;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* unfilled star styling (just star) */
.star {
  opacity: 0.25;
}

/* filled star styling */
.star.filled {
  opacity: 1;
}

.rating-text {
  font-size: 0.9rem;
  color: #d8cfff;
  opacity: 0.9;
  letter-spacing: 0;
}

.book-notes {
  flex: 1;
}

.book-title {
  font-size: 2.1rem;
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.book-author {
  margin: 0.4rem 0 1.2rem;
  font-size: 1.05rem;
  color: #d8cfff;
  opacity: 0.9;
}

.book-notes p {
  margin-bottom: 1rem;
}

/* Mobile (don't ever ask me how mobile styling works. I have no clue. I'm told by Mozilla's CSS docs that flex will handle it like magic. I just trust the magic */
@media (max-width: 768px) {
  .book-layout {
    flex-direction: column;
    align-items: center;
  }

  .book-meta {
    text-align: center;
  }

  .book-notes {
    width: 100%;
  }

  .book-title,
  .book-author {
    text-align: center;
  }
}

.book-rating {
  margin-top: 0.8rem;
  display: flex;
  justify-content: center;
}

.star-row {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  font-size: 1.3rem;
  color: #e0b76a;
  letter-spacing: 0.12em;
}

.star {
  opacity: 0.28;
}

.star.filled {
  opacity: 1;
}

/* === HOME PAGE INTRO SECTION (my index.html page) */

.home-intro {
  margin-top: 2rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.home-welcome-title {
  font-size: 1.9rem;
  margin: 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-welcome-text {
  margin-top: 0.9rem;
  color: #d8cfff;
  opacity: 0.95;
  line-height: 1.7;
}

/* Home page featured display */

.home-featured {
  margin-top: 2.5rem;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

.home-featured-title {
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin: 0;
}

.home-featured-subtitle {
  margin-top: 0.7rem;
  color: #d8cfff;
  opacity: 0.9;
  font-size: 0.98rem;
}

.home-featured-grid {
  margin-top: 1.8rem;
  display: flex;
  justify-content: center;
  gap: 2.4rem;
  flex-wrap: wrap;
}

.featured-item {
  text-decoration: none;
  color: inherit;
  width: 160px;
}

.featured-cover-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  padding-bottom: 1.4rem; 
}

.featured-cover {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow:
    0 0 6px rgba(0, 0, 0, 0.7),
    0 0 16px rgba(224, 183, 106, 0.4);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
}

/* Little shelf plank underneath each featured cover. Stopped using when I changed CSS so books weren't uniform size anymore. May add back later.  */
.featured-shelf {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0.1rem;
  height: 8px;

  background-image:
    url("/images/dark-wood.jpg"),
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.2),
      rgba(0, 0, 0, 0.8)
    );
  background-size: cover;
  background-position: center;

  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.85);
}

.featured-item:hover .featured-cover {
  transform: translateY(-4px);
  box-shadow:
    0 0 10px rgba(0, 0, 0, 0.9),
    0 0 22px rgba(224, 183, 106, 0.7);
}

/* --- Home Fragments (Robert's Nuggets) --- */

.home-fragments {
  max-width: 46rem;
  margin: 2.5rem auto 2.5rem auto;
}

.fragment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.fragment {
  padding: 1.1rem 1.2rem;
  border-radius: 12px;
  border: 1px solid rgba(224,183,106,0.35);
  background: radial-gradient(circle at top, rgba(60,40,80,0.55), rgba(15,8,22,0.95));

  box-shadow:
    0 0 14px rgba(0,0,0,0.8),
    0 0 18px rgba(224,183,106,0.25);

  transition:
    transform 0.15s ease-out,
    box-shadow 0.15s ease-out,
    border-color 0.15s ease-out;
}

.fragment:hover {
  transform: translateY(-2px);
  border-color: rgba(224,183,106,0.8);
  box-shadow:
    0 0 18px rgba(0,0,0,0.9),
    0 0 28px rgba(224,183,106,0.5);
}

.fragment-text {
  margin: 0 0 0.6rem 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #f5e9ff;
}

.fragment-note {
  margin: 0;
  font-size: 0.85rem;
  color: #d8cfff;
  opacity: 0.85;
}

/* Mobile magic (DON'T EVER ASK ME HOW MOBILE SHIT WORKS I HAVE NO IDEA JUST TRUST MOZILLA) */
@media (max-width: 780px) {
  .fragment-grid {
    grid-template-columns: 1fr;
  }
}

.fragment-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.fragment-link .fragment {
  cursor: pointer;
}

.fragment-link .fragment:hover {
  border-color: rgba(224,183,106,0.95);
  box-shadow:
    0 0 20px rgba(0,0,0,0.9),
    0 0 32px rgba(224,183,106,0.55);
}

/* ---- ABOUT ME SECTION ---- */

.about-wrapper {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.about-top {
  /* will add later */
}

.about-photo {
  float: left;
  width: 230px;
  margin-right: 1.8rem;
  margin-bottom: 1.2rem;
}

.profile-pic {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.25);
  box-shadow:
    inset 0 0 18px rgba(255,255,255,0.2),
    0 0 26px rgba(224,183,106,0.35),
    0 0 38px rgba(120,72,180,0.55);
}

.about-text h1 {
  margin-top: 0;
  letter-spacing: 0.07em;
}

.about-text p {
  color: #d8cfff;
  opacity: 0.92;
  line-height: 1.65;
}

/* mobile magic (IF YOU'VE READ THIS FAR YOU KNOW NEVER TO ASK ME HOW TF MOBILE SHIT WORKS. LOOK UP MOZILLA DEVELOPER NOTES. TRUST THE DARK MAGIC) */
@media (max-width: 760px) {
  .about-photo {
    float: none;
    margin: 0 auto 1.2rem auto;
    width: 220px;
  }

  .about-text {
    text-align: center;
  }
}


/* ---- social section of about me page  ---- */

.social-section {
  margin-top: 2.8rem;
  text-align: center;
}

.social-section h2 {
  letter-spacing: 0.06em;
}

.social-links {
  margin-top: 1.2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid #e0b76a;
  color: #e0b76a;
  text-decoration: none;
  transition: 0.2s;
}

.social:hover {
  background: #e0b76a;
  color: #050106;
  box-shadow: 0 0 16px rgba(224,183,106,0.5);
}

.linkedin:hover { background: #0A66C2; color: white; }
.bsky:hover { background: #0085FF; color: white; }
.reddit:hover { background: #FF4500; color: white; }

/* ---- mobile magic (site MDN dark magic) ---- */
@media (max-width: 760px) {
  .about-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-photo {
    margin: 0 auto;
    width: 220px;
  }

  .about-text {
    text-align: center;
  }

  .social-links {
    flex-wrap: wrap;
  }
}

.social-section {
  margin-top: 2.5rem;
}

.social-section h2 {
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.social {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid #e0b76a;
  color: #e0b76a;
  text-decoration: none;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(5, 1, 6, 0.6);
}

.social:hover {
  background: #e0b76a;
  color: #050106;
  box-shadow: 0 0 16px rgba(224,183,106,0.5);
  transform: translateY(-1px);
}

.social-icon {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
  border-radius: 4px; 
}

/* ---- CONTACT FORM ---- */

.contact-section {
  margin-top: 3rem;
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.contact-section h2 {
  text-align: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.contact-blurb {
  text-align: center;
  color: #d8cfff;
  opacity: 0.9;
  margin-bottom: 1.8rem;
}

.contact-form {
  display: grid;
  gap: 1.1rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  color: #d8cfff;
  opacity: 0.9;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(224,183,106,0.55);
  background: rgba(5, 1, 6, 0.8);
  color: #f5e9ff;
  font-family: inherit;
  font-size: 1rem;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.8);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(224,183,106,0.9);
  box-shadow:
    0 0 0 1px rgba(224,183,106,0.7),
    0 0 14px rgba(224,183,106,0.5),
    inset 0 0 8px rgba(0,0,0,0.8);
}

.about-divider {
  margin: 2.4rem auto 2.4rem auto;
  width: 65%;
  height: 2px;

  background: linear-gradient(
    to right,
    rgba(0,0,0,0),
    rgba(224,183,106,0.85),
    rgba(0,0,0,0)
  );

  filter: blur(0.2px);
}

.contact-submit {
  justify-self: center;
  margin-top: 0.5rem;
  padding: 0.55rem 1.6rem;
  border-radius: 999px;
  border: 1px solid #e0b76a;
  background: rgba(5,1,6,0.8);
  color: #e0b76a;
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.2s;
}

.contact-submit:hover {
  background: #e0b76a;
  color: #050106;
  box-shadow:
    0 0 16px rgba(224,183,106,0.6),
    0 0 26px rgba(120,72,180,0.6);
  transform: translateY(-1px);
}

/* mobile magic thanks to the dark gods at mozilla */
@media (max-width: 760px) {
  .contact-section {
    padding-top: 1rem;
  }
}

.footer-icon {
  height: 3em;      
  vertical-align: middle; 
  margin: 0 0.4rem;      
  filter: drop-shadow(0 0 4px rgba(224,183,106,0.35));
}

/* subnav for some pages, like gallery */

.subnav {
  margin-top: 0.9rem;
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.subnav a {
  text-decoration: none;
  color: #d8cfff;
  opacity: 0.85;
  font-size: 0.95rem;
  padding: 0.2rem 0.2rem;
  border-bottom: 1px solid transparent;
  transition: 0.2s;
}

.subnav a:hover {
  opacity: 1;
  border-bottom-color: rgba(224,183,106,0.8);
  text-shadow: 0 0 10px rgba(224,183,106,0.25);
}

.subnav a.active {
  opacity: 1;
  color: #e0b76a;
  border-bottom-color: rgba(224,183,106,0.95);
  text-shadow: 0 0 12px rgba(224,183,106,0.35);
}

/* Gallery styling */

.gallery-intro {
  max-width: 46rem;
  margin: 0 auto 1.5rem auto;
  color: #d8cfff;
  opacity: 0.95;
  line-height: 1.7;
  text-align: center;
}

.lobby-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  max-width: 52rem;
  margin: 0 auto;
}

@media (max-width: 780px) {
  .lobby-grid {
    grid-template-columns: 1fr;
  }
}

.lobby-card {
  display: block;
  padding: 1.2rem 1.2rem;
  border-radius: 12px;
  border: 1px solid rgba(224,183,106,0.28);
  background: radial-gradient(circle at top, rgba(60,40,80,0.45), rgba(15,8,22,0.92));
  box-shadow:
    0 0 14px rgba(0,0,0,0.8),
    0 0 18px rgba(224,183,106,0.18);
  text-decoration: none;
  color: inherit;
  transition: 0.15s ease-out;
  text-align: left;
}

.lobby-card:hover {
  transform: translateY(-2px);
  border-color: rgba(224,183,106,0.65);
  box-shadow:
    0 0 18px rgba(0,0,0,0.9),
    0 0 28px rgba(224,183,106,0.35);
}

.lobby-card h2 {
  margin: 0 0 0.4rem 0;
  color: #f5e9ff;
  letter-spacing: 0.05em;
}

.lobby-card p {
  margin: 0;
  color: #d8cfff;
  opacity: 0.92;
}

/* Featured Photo Styling */
.featured-image {
  position: relative;
  margin-top: 1.5rem;
}

/* The image itself */
.featured-image img {
  display: block;
  width: 100%;
  border-radius: 14px;

  box-shadow:
    0 0 0 1px rgba(224,183,106,0.35),
    0 0 25px rgba(224,183,106,0.25),
    0 12px 40px rgba(0,0,0,0.9);
}

.featured-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  pointer-events: none;

  background: radial-gradient(
    circle at center,
    rgba(0,0,0,0) 60%,
    rgba(0,0,0,0.35) 100%
  );
}

.featured-label {
  position: absolute;
  top: 0.9rem;
  left: 1rem;

  padding: 0.35rem 0.75rem;
  border-radius: 999px;

  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  color: #f5e9ff;
  background: rgba(20, 12, 30, 0.65);
  backdrop-filter: blur(6px);

  box-shadow:
    0 0 12px rgba(0,0,0,0.6),
    0 0 14px rgba(224,183,106,0.35);
}

.featured-caption {
  border-top: 1px solid rgba(224,183,106,0.25);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  padding: 0.75rem 1rem;
  text-align: center;

  font-size: 1rem;
  color: #f5e9ff;

  background: rgba(5, 1, 6, 0.85);

  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;

  text-shadow: 0 2px 4px rgba(0,0,0,0.9);
}

/* Gallery - The Bird Cage styling */

.bird-entry {
  position: relative;
  text-align: left;

  background:
    radial-gradient(circle at 30% 10%, rgba(255,255,255,0.18), transparent 55%),
    repeating-linear-gradient(
      to bottom,
      rgba(60, 45, 25, 0.06) 0px,
      rgba(60, 45, 25, 0.06) 1px,
      transparent 1px,
      transparent 14px
    ),
    linear-gradient(
      180deg,
      rgba(244, 236, 220, 0.96),
      rgba(235, 226, 207, 0.96)
    );

  color: rgba(30, 20, 10, 0.92);

  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 0;
  padding: 1.7rem 2.2rem 2.2rem 2.7rem;
  margin: 2rem auto;

  box-shadow: 0 16px 36px rgba(0,0,0,0.30);
  overflow: hidden;
}

/* Book gutter */
.bird-entry::before {
  content: "";
  position: absolute;
  top: 1.3rem;
  bottom: 1.3rem;
  left: 1.3rem;
  width: 2px;
  background: rgba(140, 95, 45, 0.28);
}

/* Title */
.bird-entry h2 {
  margin: 0 0 0.7rem 0;
  font-size: 1.65rem;
  letter-spacing: 0.03em;
  color: rgba(25, 16, 8, 0.95);
}

/* Notes */
.bird-entry p {
  margin: 0 0 1.5rem 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(25, 16, 8, 0.88);
}

/* Drop cap */
.bird-entry p::first-letter {
  float: left;
  font-size: 2.7rem;
  line-height: 1;
  padding: 0.15rem 0.45rem 0 0;
  color: rgba(140, 95, 45, 0.95);
}

.bird-photos {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.bird-photos a {
  display: block;
  width: 100%;
  height: 100%;
}

.bird-photos img {
  width: 100%;
  height: auto;         
  max-height: 300px;     
  display: block;
  object-fit: cover;    

  box-shadow: none;
  background: transparent;
}

/* 1 photo styling */

.bird-photos.photos-1 {
  grid-template-columns: 1fr;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.bird-photos.photos-1 img {
  max-height: 480px;
}

/* 2 photo styling */

.bird-photos.photos-2 {
  grid-template-columns: repeat(2, 1fr);
}

.bird-photos.photos-2 img {
  max-height: 280px;
}

/* 3 photo */

.bird-photos.photos-3 {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(2, clamp(140px, 18vw, 200px));
}

.bird-photos.photos-3 a:nth-child(1) {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.bird-photos.photos-3 a:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.bird-photos.photos-3 a:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}

/* Force images to fill tiles ONLY in 3-photo layout */
.bird-photos.photos-3 img {
  width: 100%;
  height: 100%;
  max-height: none;   /* override global cap */
  object-fit: cover;
}


/* 4 photo */

.bird-photos.photos-4 {
  grid-template-columns: repeat(2, 1fr);
}

.bird-photos.photos-4 img {
  max-height: 240px;
}

/* 5 photo */

.bird-photos.photos-5 {
  grid-template-columns: repeat(3, 1fr);
}

.bird-photos.photos-5 img {
  max-height: 220px;
}

/* mobile magic */

@media (max-width: 760px) {
  .bird-entry {
    padding: 1.5rem;
  }

  .bird-entry::before {
    display: none;
  }

  .bird-photos.photos-1,
  .bird-photos.photos-2,
  .bird-photos.photos-3,
  .bird-photos.photos-4,
  .bird-photos.photos-5 {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .bird-photos img {
    max-height: 360px;
  }
}

/* Not Found (404) page styling */

.notfound-wrap {
  margin: 2.2rem auto 2.6rem auto;
  max-width: 920px;
  text-align: left;
}

.notfound-title {
  margin: 0 0 1.2rem 0;
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  text-align:center;
}

.notfound-figure {
  margin: 0;
  margin-bottom: 1.6rem;
}

.notfound-figure img {
  width: 100%;
  height: auto;
  display: block;

  border-radius: 18px;

  box-shadow:
    0 0 0 1px rgba(224,183,106,0.18),
    0 18px 34px rgba(0,0,0,0.65);
}

.notfound-text {
  text-align: center; 
  max-width: 700px;    
  margin: 0 auto;    
}


.notfound-text p {
  line-height: 1.75;
  margin: 0 0 1rem 0;
}

.notfound-back {
  display: inline-block;
  margin-top: 0.3rem;

  color: rgba(224,183,106,0.95);
  text-decoration: none;

  border-bottom: 1px solid rgba(224,183,106,0.55);
  padding-bottom: 2px;
}

.notfound-back:hover {
  border-bottom-color: rgba(224,183,106,0.95);
}

/* Gallery - Photos & Art styling */

.pa-page {
  margin-top: 1.2rem;
}

.pa-masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin: 1.6rem auto 0;
  grid-auto-flow: dense;
}

.pa-item {
  margin: 0;
}

.pa-item a{
  display:block;
  position:relative;
  border-radius:18px;
  overflow:hidden;
}

.pa-item img{
  width:100%;
  height:260px;       
  object-fit:cover;   
  display:block;
}

.pa-item.span-3 img{
  height:420px;
}

.pa-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  padding: 0.75rem 1rem;
  text-align: center;

  color: #f5e9ff;
  background: rgba(0, 0, 0, 0.75);

  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}


.pa-item a:hover .pa-caption,
.pa-item a:focus-visible .pa-caption {
  opacity: 1;
  transform: translateY(0);
}


.pa-item.span-2 {
  grid-column: span 2;
}

.pa-item.span-3 {
  grid-column: span 3;
}

/* mobile magic */

@media (max-width: 1100px) {
  .pa-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pa-item.span-3 {
    grid-column: span 2;
  }
}

@media (max-width: 700px) {
  .pa-masonry {
    grid-template-columns: 1fr;
  }

  .pa-item.span-2,
  .pa-item.span-3 {
    grid-column: span 1;
  }

  .pa-item img {
    border-radius: 16px 16px 0 0;
  }

  .pa-caption {
    border-radius: 0 0 16px 16px;
  }
}

