html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body{
  background-color: #FFFFFF;
  font-family: 'System-ui';
  color: #202020;
  padding-left: 40px;
  padding-right: 40px;
  cursor: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  transition-delay: 0.5s; /* Delay before fade starts */
}

body.loaded {
  opacity: 1;
}

@media (max-width: 688px) {
  body {
    padding-left: 10px;
    padding-right: 10px;
  }
}

::selection {
  background-color: rgba(255, 119, 0, 0.8);
  color: #FFFFFF;}
  
.cursor {
  width: 7px;
  height: 7px;
  background-color: #ff7700;
  opacity: 0.8;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999}

@media (hover: none) and (pointer: coarse) {
  body {
    cursor: auto !important;
  }

.cursor {
    display: none !important;
  }
}

/* ^ Default Stuff */

/* =======================================================================================================================================  */

/* Menu Bar */

.nav-menu {
  display: flex;
  gap: 10px;
  padding: 10px;
  margin-left: -40px;
  
  font-family: system-ui;
  
}

@media (max-width: 688px) {
  .nav-menu {
    margin-left: -10px;
  }
}

.nav-menu a {
  text-decoration: none;
  font-weight: 300;
  font-size: 14px;
  padding: 4.5px 6px;
  background-color: #f5f5f5;
  color: #111;
  transition: background-color 0.2s ease;
}

@media (max-width: 688px) {
  .nav-menu a {
    font-size: 12px;
  }
}

.nav-icon {
  color: rgba(255, 119, 0, 0.8);
  width: 16px;
  height: 16px;
  display: block;
}

.nav-icon {
  color: rgba(255, 119, 0, 0.8);
}

.nav-icon:hover {
  fill: white;
}

.nav-menu a:hover,
.nav-menu a:focus {
  color: white;
  background-color: rgba(255, 119, 0, 0.8);
  outline: none;
  cursor: none;
}


/* =======================================================================================================================================  */

/* Every Page */

.center{
  display: flex;
  justify-content: center;
}

.title {
  color: #202020;
  display: block;
  font-size: 42px;
  font-family: system-ui;
  font-weight: 600;
  margin-bottom: -10px;
  padding-top: 30px;
  text-align: left;
}

.title_center {
  display: block;
  color: #202020;
  font-family: system-ui;
  font-size: 42px;
  font-weight: 600;
  text-align: center;
  padding-top: 0px;
  margin-bottom: 0px;
  }

@media (max-width: 688px) {
  .title_center {
    margin-top: -5px;
  }
}

.bio {
  margin-top: 15px;
  font-family: system-ui;
  display: block;
  font-size: 14px;
  font-weight: 300;
  max-width: 490px;
  text-align: left;
  line-height: 1.5;
  
} 


@media (max-width: 688px) {
  .bio,
  .bio_center {
    font-size: 13px;
  }
}

.bio_center {
  display: block;
  font-family: system-ui;
  font-size: 14px;
  font-weight: 300;
  text-align: center;
  margin-top: 10px;  
}

.sub_bio {
  font-family: system-ui;
  font-size: 12px;
  font-style: italic;
  color: #8F8F8F;
  font-weight: 300;
  line-height: 1.5;
  padding-bottom: 2px;
  text-align: left;
}

.sub_bio_center {
  font-family: system-ui;
  font-size: 12px;
  font-style: italic;
  color: #8F8F8F;
  font-weight: 300;
  line-height: 1.5;
  padding-bottom: 2px;
  text-align: center;
  }

.center_text {
  font-family: system-ui;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  text-align: center;
  margin-top: 12px;
}

.quietlink {
  display: inline;
  margin-top: 15px;
  font-family: system-ui;
  color:#202020;
  text-decoration: none;
  font-size: 14px;
  font-weight: 300;
  text-align: left;
  transition-duration: 0.2s} 

.quietlink:hover {
  color:#ff7700;
  opacity: 0.75;
  cursor: none;
}

.quietlink_center {
  display: inline-block;
  margin-top: 15px;
  font-family: system-ui;
  color:#202020;
  text-decoration: none;
  font-size: 14px;
  font-weight: 300;
  text-align: center;
  transition-duration: 0.2s} 

.quietlink_center:hover {
  color:#ff7700;
  opacity: 0.75;
  cursor: none;
}

.page-title {
  color:#202020;
  display: inline;
  text-decoration: none;
  font-family: system-ui;
  font-size: 18px;
  font-weight: 400;
  width: 550px;
  margin-bottom: -10px;
  text-align: left;
  line-height: 1.3;
  transition-duration: 0.3s;
}

.page-title:hover {
  display: inline;
  color:rgba(255, 119, 0, 0.8);
  cursor: none;
}

.hyperlink {
  color: #202020;
  text-decoration: none;
  position: relative;
  cursor: none;
  transition: color 0.3s ease;
  background-image: linear-gradient(to top, rgba(255, 119, 0, 0.8) 0%, rgba(255, 119, 0, 0.8) 75%);
  background-size: 100% 2px;
  background-repeat: no-repeat;
  background-position: bottom;
  transition: background-size 0.3s ease, color 0.3s ease;
}

.hyperlink:hover {
  color: white;
  background-size: 100% 100%;
}

.mobile-only {
  display: none;
}

.tooltip {
  visibility: hidden;
  font-family: system-ui;
  background: rgba(255, 119, 0, 0.9);
  color: #ffffff;
  font-size: 12px;
  text-align: left;
  padding: 2px 8px;
  border-style: solid;
  border-color: rgb(255, 119, 0);
  border-width: 0.2px;
  border-radius: 3px;
  position: absolute;
  z-index: 1;
  opacity: 0;
  transition: 0.3s;
  white-space: nowrap;
  pointer-events: none}

.hyperlink:hover .tooltip {
  visibility: visible;
  opacity: 1}

/* =======================================================================================================================================  */

/* Picture Page */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Default: 3 per row */
  gap: 10px;
}

@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr); /* Medium screens: 2 per row */
  }
}

@media (max-width: 688px) {
  .gallery {
    padding-right: 0px;
  }
  .title_center {
    padding-top: 40px;
  }
}


@media (max-width: 600px) {
  .gallery {
    grid-template-columns: 1fr; /* Mobile: 1 per row */
  }
}

.gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.lightbox {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  transition: transform 0.3s ease
}

.fade-in {
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =======================================================================================================================================  */

/* Journey Page */


.grid-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
}

.journey_grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  padding-bottom: 20px;
  margin: 0 auto; /* centers horizontally */
  max-width: 600px;
  padding-left: 20px;
  padding-right: 20px;
}

.text {
  margin-top: 10px;
  font-family: system-ui;
  font-size: 14px;
  font-weight: 300;
  max-width: 360px;
  line-height: 1.5;
  text-align: left;
} 

.left-cell {
  margin-top: 12px;
  font-family: system-ui;
  font-size: 16px;
  color: #202020;
  font-weight: 300;
  max-width: 120px;
  width: 100%;
  text-align: left;
  line-height: 1.5;
  text-decoration: none;
  transition: 0.3s;
  cursor: none
}

@media (max-width: 688px) {
  .left-cell {
    margin-left: 15px;
  }
}

.role a {
  font-family: system-ui;
  font-size: 16px;
  font-weight: 300;
  color:#202020;
  text-decoration: none;
  padding-bottom: 5px;
  text-align: left;
  transition-duration: 0.2s;
}

.role a:hover {
  color:rgba(255, 119, 0, 0.8);
  cursor: none;
}

.location {
  font-family: system-ui;
  font-size: 12px;
  font-style: italic;
  color: #8F8F8F;
  font-weight: 300;
  line-height: 1.5;
  padding-bottom: 2px;
  text-align: left;
}

.location a {
  color: #8F8F8F;
  text-decoration: none;
}

.location a:hover {
  color:rgba(255, 119, 0, 0.8);
  cursor: none;
}

.description {
  font-family: system-ui;
  font-size: 14px;
  font-weight: 300;
  color: #8F8F8F;
  line-height: 1.5;
  text-align: left;
  padding-bottom: 10px;
}

.timeline {
  position: relative;
}

.progress-line {
  position: absolute;
  left: 165px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #eaeaea;
  z-index: 0;
  overflow: hidden;
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: #ff7700;
  z-index: 1;
  transition: height 0.2s ease-out;
}

#globeChart {
  max-height: 60%;
  max-width: 80%;
  aspect-ratio: 1 / 1;         /* Ensures it's a square */
  border-radius: 50%;          /* Makes it a circle */
  overflow: hidden;
  background-color: #f0f0f0;   /* Slight contrast to show the globe edges */
  margin: 0 auto;
  box-shadow: 0 0px 6px rgba(0, 0, 0, 0.1);}

/* =======================================================================================================================================  */

/* Books Page */

.book-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 850px;
  margin: 40px auto;
  margin-top: 10px;
  line-height: 1.5;
  font-family: system-ui;
}

.book-row {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr 3fr;
  align-items: start;
  gap: 10px;
  border-bottom: 1px solid #eaeaea;
  padding: 10px 0;
}

.book-row.header {
  font-size: 16px;
  font-weight: 400;
  border-bottom: 1px solid #919090;
}

.book-name {
  display: inline;
  width: fit-content;
  padding-right: 2px;
  line-height: 1.5;
  color: #202020;
  font-weight: 300;
  text-decoration: none;
  position: relative;
  cursor: none;
  transition: color 0.3s ease;
  background-image: linear-gradient(to top, rgba(255, 119, 0, 0.8) 0%, rgba(255, 119, 0, 0.8) 75%);
  background-size: 100% 2px;
  background-repeat: no-repeat;
  background-position: bottom;
  transition: background-size 0.3s ease, color 0.3s ease;
}

.book-name:hover {
  color: white;
  background-size: 100% 100%;
}

.author-name {
  font-size: 16px;
  font-weight: 300;
}

.rating {
  font-size: 16px;
  font-weight: 300;
  margin-left: 10px; /* slight space before rating */
}

.quote {
  position: relative;
  font-size: 14px;
  font-weight: 300;
  padding: 0;
  transition-duration: 0.2s
}

.quote:hover {
  color: #ff7700;
}

.quote-toggle {
  all: unset;
  font-size: 12px;
  cursor: none;
  color: #202020;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.quote-toggle:hover .arrow-line {
  stroke: #ff7700;
}  

.arrow {
  margin-left: 3px;
  transition: transform 0.3s ease;
  transform-origin: center center;
  vertical-align: middle;
  transition-duration: 0.2s;
}

.quote-cell.expanded .arrow {
  transform: rotate(90deg);
}

.quote-full {
  max-height: 0;
  overflow: hidden;
  padding-top: 10px;
  opacity: 0;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 300;
  color: #202020;
  font-style: italic;
  transition: max-height 0.4s ease, opacity 0.4s ease;
}

.quote-cell.expanded .quote-full {
  max-height: 500px; /* any value larger than expected content */
  opacity: 1;
}

.list-container {
  display: flex;
  flex-direction: column;
  align-items: center; /* centers the items horizontally */
  margin: 0 auto;
  width: 100%;
}

.list-item {
  font-family: system-ui;
  font-weight: 300;
  text-align: left;       /* left-aligns the text inside */
  max-width: 370px;       /* limits width for readability */
  width: 100%;            /* stretches within the max-width */
}

.book-hover-cover {
  position: absolute;
  top: 0;
  left: 110%;
  height: 120px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: none;
  z-index: 10;
}

.book-name:hover + .book-hover-cover {
  display: block;
}

/* ==== Section Title with Line ==== */
.section-title-line {
  display: flex;
  align-items: flex-end; /* Aligns the line with the bottom of the text */
  gap: 16px;
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.title_left {
  font-family: system-ui;
  font-size: 18px;
  margin: 0;
  font-weight: 500;
  color: #202020;
  text-align: left;
  white-space: nowrap;
}

.title-line {
  flex: 1;
  height: 1.5px;
  background: #eaeaea;
  margin-left: 0;
  margin-bottom: 4px; /* Fine-tune vertical alignment */
}

/* ==== Book Cover Hover Animation ==== */
#book-hover-cover {
  opacity: 0;
  clip-path: inset(0 0 100% 0); /* Hidden (only top edge visible) */
  transition: 
    opacity 0.2s,
    clip-path 0.5s cubic-bezier(0.4, 0.2, 0.2, 1);
}

#book-hover-cover.active {
  opacity: 1;
  clip-path: inset(0 0 0 0); /* Fully revealed */
}

/* ==== Book Row Hover Orange Tint ==== */
.book-row:not(.header):hover, .book-row:not(.header).hovered {
  background: rgba(255, 119, 0, 0.10);
  transition: background 0.4s;
}


/* =======================================================================================================================================  */

/* Tools Page */

.tool-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 900px;
  margin: 40px auto;
  font-family: system-ui;
  gap: 10px;
}

.tool-row {
  display: grid;
  grid-template-columns: 1fr 1fr 3fr 1fr;
  align-items: start;
  gap: 14px;
  border-bottom: 1px solid #eaeaea;
  padding: 10px 0;
}

.tool-row.header {
  font-size: 16px;
  font-weight: 400;
  border-bottom: 1px solid #000;
}

.tool-name {
  display: inline;
  width: fit-content;
  padding-right: 2px;
  line-height: 1.5;
  color: #202020;
  font-weight: 300;
  text-decoration: none;
  position: relative;
  cursor: none;
  transition: color 0.3s ease;
  background-image: linear-gradient(to top, rgba(255, 119, 0, 0.8) 0%, rgba(255, 119, 0, 0.8) 75%);
  background-size: 100% 2px;
  background-repeat: no-repeat;
  background-position: bottom;
  transition: background-size 0.3s ease, color 0.3s ease;
}

.tool-name:hover {
  color: white;
  background-size: 100% 100%;
}

.tool-purpose {
  font-size: 16px;
  font-weight: 300;
}

.tool-thoughts {
  font-size: 14px;
  padding-bottom: 5px;
  line-height: 1.4;
  font-weight: 300;
  color: #202020;
  font-style: italic;
}

.tool-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 300;
  padding-left: 20px;
}

.status-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.tool-status.active .status-indicator {
  background-color: #baeac8; /* calm green */
}

.tool-status.inactive .status-indicator {
  background-color: #f3a1a1; /* faded crimson */
}

.tool-status.wishlist .status-indicator {
  background-color: #d6c3f9; /* faded crimson */
}
