body {
    background: #f5f3f0;
    color: #68625a;
    text-shadow:0px 0px 0px #bbb;
    font-family: "IBM Plex Mono", monospace;
    font-size: 13px;
    line-height: 1.8;
    letter-spacing: 1px;
    margin: 0;
    text-align: left;
    }

    a {
    color: #333;
    text-decoration: none;
    }

    a:hover {
    background: rgba(238, 194, 206, 0.2);
    box-shadow: 0 0 12px rgba(238, 194, 206, 0.25);
    }
    
    .nav-message-center {
    text-align: center;
    font-size: 10px;
    margin: 10px 0 20px 0;
    opacity: 0.7;
    font-style: italic;
    }
    
    .nav-message-left {
    text-align: left;
    font-size: 10px;
    margin: 10px 0 20px 0;
    opacity: 0.7;
    font-style: italic;
    }


    .juno-section {
    margin-top: 20px;
    border: 1px dotted #999;
    margin-bottom: 20px;
    }

    .juno-grid {
    display: grid;
    grid-template-columns: 180px 1fr 1fr 1fr;
    }

    .juno-box {
    padding: 10px;
    border-right: 1px dotted #999;
    line-height: 1.5;
    }

    .juno-box:last-child {
    border-right: none;
    }

    .juno-box img {
    display: block;
    width: 100%;
    }

#container {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 13px;
    }
  

    header {
    text-align: center;
    padding: 16px 8px;
    }

    header img {
    max-width: 100%;
    height: auto;
    filter: grayscale(100%);
    }
    
    .site-name {
    margin-top: 10px;
    font: 50px "Astloch";
    letter-spacing: 3px;
    color:  #EEC2CE;
    }

    .slogan {
    font:italic 12px "IBM Plex Mono";
    margin-top: 5px;
    color:#999;
    }

    nav {
    text-align: center;
    padding: 6px 4px;
    margin-bottom: 10px;
    }

    nav a {
    text-transform: lowercase;
    letter-spacing: 2px;
    background: #f5f3f0;
    display: inline-flex;
    align-items: center;
    padding: 4px 6px;
    margin-right: 4px;
    font:italic 12px "IBM Plex Mono";
    color:#333;
    border-radius:5px;
    }

#dark-mode-toggle {
    text-transform: lowercase;
    letter-spacing: 2px;
    background: #f5f3f0;
    display: inline-flex;
    align-items: center;
    padding: 4px 6px;
    margin-right: 4px;
    font: italic 12px "IBM Plex Mono";
    color: #333;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    }

#dark-mode-toggle:hover {
    background: #ddd;
    }

    nav a img {
    vertical-align: middle;
    margin-right: 4px;
    }

    .three-column {
    display: flex;
    gap: 10px;
    }

    .three-column .sidebar {
    width: 200px;
    }

    .three-column main {
    flex: 1;
    }

    .two-column {
    display: flex;
    gap: 10px;
    }

    .two-column .sidebar {
    width: 200px;
    }

    .two-column main {
    flex: 1;
    border-left: 1px dotted #999;
    border-right: none;
    }
    
    ::-webkit-scrollbar {
    width: 6px;
    }

   ::-webkit-scrollbar-track {
   background: transparent;
   }

   ::-webkit-scrollbar-thumb {
   background: #888;
   border: 1px dotted #999;
   }
    

#content {
    display: flex;
    gap: 10px;
    border-top: 1px dotted #999;
    padding-top: 10px;
    }

    .sidebar {
    width: 200px;
    padding: 4px; 
    }

    .sidebar > div {
    margin-bottom: 8px;
    }

    .title {
    font: 16px "IBM Plex Mono";
    margin-top: 10px;
    margin-bottom: 4px;
    color:#EEC2CE;
    }

    .divider {
    height: 0;
    border-bottom: 1px dotted #999;
    margin: 6px 0;
    }

    .toggle-content {
    padding-left: 15px;
    }

    main {
    flex: 1;
    padding: 12px;
    border-left: 1px dotted #999;
    border-right: 1px dotted #999;
    }

    .main-title {
    color:#EEC2CE;
    font: 20px "IBM Plex Mono";
    text-transform: lowercase;
    margin: 0 0 10px;
    letter-spacing: 2px;
    line-height: 18px;
    font-weight: 500;
    }

    .date {
    color:#333;
    font: 11px "IBM Plex Mono";
    text-transform: lowercase;
    margin: 0 0 10px;
    letter-spacing: 2px;
    line-height: 22px;
    font-weight: 500;
    }

    .framed-image {
    border: 1px dotted #999;
    padding: 4px;
    }

    footer {
    border-top: 1px dotted #999;
    text-align: center;
    padding: 22px 8px;
    font-size: 10px;
    }

    summary {
    list-style: none;
    }

    summary::-webkit-details-marker {
    display: none;
    }

    summary::before {
    content: "+ ";
    }

    details[open] summary::before {
    content: "− ";
    }

    .info-block {
    display: flex;
    margin-bottom: 0px;
    }

    .info-title {
    width: 120px;
    border: 1px dotted #999;
    padding: 10px;
    text-align: left;
    color: #333;
  
    }

    .info-content {
    flex: 1;
    border: 1px dotted #999;
    padding: 10px;
    margin-left: 0px;
    text-align: left;
    }

    .lightbox {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 999;
    }

    .lightbox:target {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 50px;
    }
    
    .lightbox-content {
    display: inline-block;
    flex-direction: column;
    width: fit-content;
    max-width: 90vw;
    position: relative;
    }

    .lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #bbb;
    font-size: 11px;
    text-decoration: none;
    border: 1px dotted #999;
    padding: 3px 6px;
    }
     
    .lightbox-close:hover {
    color: #888;
    }

    .lightbox img {
    display: block;
    width: auto;
    max-width: 90vw;
    max-height: 90vh;
    }

    
    .lightbox-caption {
    box-sizing: border-box;
    width: 100%;
    margin-top: 0px;
    padding: 6px 8px;
    color: #111;
    font-size: 11px;
    text-align: center;
    border: 1px dotted #999;
    border-top: none;
    background: #EEC2CE;
    }

    .section-divider {
    border-top: 1px dotted #999;
    margin: 8px 0;
    }
    
        /* ===== house-map ===== */
    
   .house-map {
    position: relative;
    width: 100%;
    max-width: 800px;
    }

   .house-map img {
    width: 100%;
    height: auto;
    display: block;
    }
    
   .hotspot {
    position: absolute;
    display: block;
    }

   .frontyard {
    position: absolute;
    left: 22%;
    top: 85%;
    width: 50%;
    height: 11%;
    }

   .frontyard:hover {
    background: rgba(238, 194, 206, 0.2);
    box-shadow: 0 0 12px rgba(238, 194, 206, 0.25);
    }

   .frontporch {
    position: absolute;
    left: 22%;
    top: 71.5%;
    width: 50%;
    height: 10%;
    }

   .frontporch:hover {
    background: rgba(238, 194, 206, 0.2);
    box-shadow: 0 0 12px rgba(238, 194, 206, 0.25);
   }
   
   .livingroom {
    position: absolute;
    left: 22.5%;
    top: 53.2%;
    width: 15.8%;
    height: 18%;
    }

   .livingroom:hover {
    background: rgba(238, 194, 206, 0.2);
    box-shadow: 0 0 12px rgba(238, 194, 206, 0.25);
    }

   .mainbedroom {
    position: absolute;
    left: 39%;
    top: 58%;
    width: 18.8%;
    height: 13.2%;
    }

   .mainbedroom:hover {
    background: rgba(238, 194, 206, 0.2);
    box-shadow: 0 0 12px rgba(238, 194, 206, 0.25);
    }
   
   .diningroom {
    position: absolute;
    left: 39%;
    top: 46.5%;
    width: 18.8%;
    height: 11%;
    }

   .diningroom:hover {
    background: rgba(238, 194, 206, 0.2);
    box-shadow: 0 0 12px rgba(238, 194, 206, 0.25);
    }
    
   .guestbedroom {
    position: absolute;
    left: 58.5%;
    top: 53.2%;
    width: 12.5%;
    height: 18%;
    }

   .guestbedroom:hover {
    background: rgba(238, 194, 206, 0.2);
    box-shadow: 0 0 12px rgba(238, 194, 206, 0.25);
   }
   
   .pantry {
    position: absolute;
    left: 39%;
    top: 35.8%;
    width: 18%;
    height: 10%;
    }

   .pantry:hover {
    background: rgba(238, 194, 206, 0.2);
    box-shadow: 0 0 12px rgba(238, 194, 206, 0.25);
   }
   
   .backroom {
    position: absolute;
    left: 76.2%;
    top: 19.7%;
    width: 16.7%;
    height: 6.2%;
    }

   .backroom:hover {
    background: rgba(238, 194, 206, 0.2);
    box-shadow: 0 0 12px rgba(238, 194, 206, 0.25);
   }
    
        /* ===== medialog ===== */

    .medialog-category {
    color: #888;
    font-size: 13px;
    margin-bottom: 8px;
    }
    
   .medialog-category-subtitle {
    color: #999;
    line-height: 1.2;
    font-size: 10px;
    font-style: italic;
    font-weight: normal;
    margin-bottom: 8px;
    }
    
    .medialog-entry {
    display: grid;
    grid-template-columns: 100px 1fr;
    margin-bottom: 0px;
    align-items: stretch;
    }

    .medialog-entry img {
    width: 100px;
    height: 100%;
    object-fit: cover;
    display: block;
    border: 1px dotted #888;
    }

    .medialog-entry-content {
    display: grid;
    grid-template-rows: auto 1px 1fr;
    border: 1px dotted #888;
    }

    .medialog-entry-title {
    color: #888;
    font-size: 11px;
    font-weight: bold;
    padding: 5px;
    padding-left: 10px;
    }

    .medialog-divider {
    border: 1px dotted #999;
    }

    .medialog-entry-text {
    color: #888;
    font-size: 11px;
    line-height: 1.6;
    padding: 5px;
    padding-left: 10px;
    }
    
    .media-frame {
    width: 100%;
    min-height: 600px;
    border: none;
    }
    
    .medialog-page {
    background: transparent;
    }
    
    iframe {
    background: transparent;
    width: 100%;
    height: 1000px;
    }
    
    /* ===== captain's log ===== */

   .captains-log {
    width: 100%;
   }
   
   .captains-log-page main {
    border: none;
   }

   /* entire post box */

   .captains-log-post {
    display: grid;
    grid-template-columns: 90px 100px 1fr;
    border: 1px dotted #999;
    margin-bottom: 0px;
    }

    /* icon column */

   .captains-log-icon-cell {
    padding: 15px;
    border-right: 1px dotted #999;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    }

   .captains-log-icon {
    width: 60px;
    height: auto;
    display: block;
    }

   /* metadata column */

   .captains-log-meta {
    padding: 15px;
    border-right: 1px dotted #999;
    line-height: 1;
    }

   .captains-log-name {
    color: #888;
    font-weight: bold;
    margin-bottom: 8px;
    }

   .captains-log-date,
   .captains-log-time {
    color: #888;
    margin-bottom: 4px;
    }

   .captains-log-content {
    padding: 15px;
    color: #888;
    line-height: 1.6;
    }
    
    .captains-log-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 10px;
    border: 1px dotted #999;
    }
    
   
    /* ===== commonplace ===== */
   
    .commonplace{
    column-count: 3;
    column-gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    background: transparent;
    }

   .commonplace-card{
   display: block;
   break-inside: avoid;
   margin-bottom: 20px;
   color: inherit;
   text-decoration: none;
   box-sizing: border-box;
   }
 
   .commonplace-text-card{
   padding: 12px;
   }
   
   .commonplace-image-card{
   padding: 0;
   line-height: 0;
   }

   .commonplace-image-card img{
   display: block;
   width: 100%;
   height: auto;
   }
   


@media(max-width: 600px){
    #content {
    display: flex;
    gap: 10px;
    border-top: 1px dotted #999;
    padding-top: 10px;
    align-items: flex-start;
    flex-direction: column;
    }
    
    .two-column,
    .three-column {
    flex-direction: column;
    }

    .two-column .sidebar,
    .three-column .sidebar {
    width: 100%;
    }

    .sidebar {
    width: 100%;
    box-sizing: border-box;
    padding: 4px;
    }
    
    .sidebar img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    }

    main {
    border-left: none;
    border-right: none;
    padding: 4px;
    }
    
    nav {
    font-size: 10px;
    padding: 6px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    }
    
    nav a {
    margin: 4px 0;
    width: 100%;
    justify-content: center;
    }
    
    p {
    margin-top: 5px;
    margin-bottom: 5px;
    }
  
   .juno-grid {
    grid-template-columns: 1fr;
    }
    
    }

  
