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

html {
  -webkit-text-size-adjust: 100%; /* Prevent iPhone landscape text enlargement */
}

.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 {
  padding-top: 70px;
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fff;
  color: black;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
  z-index: 999;
  display: flex;
  align-items: center;
  padding: 8px 20px;
  font-weight: bold;
  font-size: xx-large;
}

nav ul {
  display: flex;
  width: 100%;
  list-style: none;
  align-items: center;
  justify-content: flex-end;
  font-size: x-large;
}

nav li:first-child {
  margin-right: auto;
}

nav li {
  height: 50px;
}

nav a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 30px;
  text-decoration: none;
  color: black;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

nav a:hover {
  background-color: lightblue;
}

 
/* === ANIMATED SIDEBAR VERSION === */
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 10px;
  background-color: rgba(255, 255, 255, 0.95);
  overflow-y: auto;
  transform: translateX(100%);   /* Start hidden off-screen */
  opacity: 0;                    /* Hidden visually */
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  pointer-events: none;           /* Disable clicks when hidden */
}

.sidebar.active {
  transform: translateX(0);      /* Slide in */
  opacity: 1;                    /* Fade in */
  pointer-events: all;           /* Enable clicks again */
}

.sidebar li {
  width: 100%;
  margin-bottom: 15px;
}

.sidebar a {
  width: 100%;
  padding: 10px 20px;
  font-size: 1.25rem;
  color: black;
}

.sidebar a:hover {
  background-color: lightblue;
}

/* Menu button for mobile */
.menu-button {
  display: none;
  cursor: pointer;
}

.menu-button a {
  padding: 0;
  height: 50px;
  display: flex;
  align-items: center;
  color: black;
}

/* Logo */
.logo img {
  width: 200px;
  height: 210px;
  border-radius: 48%;
  display: block;
  margin: 1rem auto;
}

/* Main content */
main, h1 {
  text-align: center;
  font-family: Arial, sans-serif;
  background-color: #f0f8ff;
  padding-bottom: 0.5em;
  color: black;
}

 /* Blog meta and profile pic */ 
.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0;
  padding-left: 10vw;
}

.profile-pic img {
  display: block;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-pic {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 1rem;
  padding-bottom: 13px; /* Ensures proper alignment */
}

.author-info {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  line-height: 1.2;
}

/* Blog metadata (author & date) */
.author-name {
  font-weight: bold;
  color: #333;
}

.post-date {
  color: #888;
  font-size: 0.85rem;
}

 
 .pblog .blog-photo {
  max-width: 600px;  /* caps the max width */
 width: 100%;       /* makes it responsive */
  height: auto;
  display: block;
  margin: 1rem auto; /* centers */
 border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.pblog {
  max-width: 800px;
  margin: 0 auto;
  padding-left: 5vw;
  padding-right: 5vw;
}

 /* Match blog page author section to homepage cards */
 .blogonly .profile-pic {
   
  padding-bottom: 13px;
}

 /* Responsive nav & sidebar */
@media (max-width: 800px) {
  .hideOnMobile {
    display: none;
  }
  .menu-button {
    display: block;
  }
}

/* Smaller sidebar on tiny screens */
@media (max-width: 400px) {
  .sidebar {
    width: 41%;
    height: 50%;
  }
}

.sidebar.active ~ ul .menu-button {
  display: none;
}

/* Universal landscape fix for phones */
@media (orientation: landscape) and (max-height: 500px) {
  .pblog {
    max-width: 600px;
    padding-left: 3vw;
    padding-right: 3vw;
  }

  .pblog .blog-photo {
    max-width: 450px;
    width: 90%;
  }
}

/* Smooth transition */
.pblog .blog-photo {
  transition: width 0.3s ease, max-width 0.3s ease;
}

/* Mobile landscape "zoom to fill" effect */
/*@media screen and (orientation: landscape) and (max-width: 768px) {
  .pblog .blog-photo {
    width: 100vw;          
    height: 100vh;
    object-fit: cover;      
    object-position: center center; 
    display: block;
    margin: 0 auto;
    border-radius: 0;        
  }
}*/

/* Landscape fix — match clone site behavior */
@media screen and (orientation: landscape) and (max-width: 900px) {
  .pblog .blog-photo {
    width: 100%;
    height: 75vh;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
  }

  body {
    overflow-x: hidden;
  }
}

/* Mobile landscape: make text span 80% of the viewport */
@media screen and (orientation: landscape) and (max-width: 768px) {
  .pblog {
    max-width: 80vw;     /* paragraphs take up 80% of the screen width */
    margin: 0 auto;      /* keep them centered */
    padding-left: 0;     /* prevent double padding */
    padding-right: 0;
  }

  .pblog p {
    font-size: 1rem;     /* optional: adjust font size if needed */
    line-height: 1.6;    /* keep it readable */
  }
}

/* === Materials & Tools: Technical Callout === */
.pblog h2 + ul {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.25rem 1.75rem;
  background-color: #111;
  color: #f2f2f2;
  border: 2px dashed #cfa96b; /* workshop tag feel */
  border-radius: 8px;
  list-style: none;
  font-family: "Courier New", Courier, monospace;
}

/* Items */
.pblog h2 + ul li {
  margin-bottom: 0.75rem;
  line-height: 1.5;
  font-size: 0.95rem;
}

/* Labels */
.pblog h2 + ul strong {
  color: #cfa96b;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Section title: break narrative */
.pblog h2 {
  margin-top: 3rem;
  font-size: 1.4rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #111;
}

/* Optional: subtle divider above */
.pblog h2::before {
  content: "— SHOP NOTES —";
  display: block;
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: #888;
  margin-bottom: 0.5rem;
}

 


 

 

 
