/* =====================================================================
   Look of the whole site. You normally never need to edit this file.
   Colors and font are in the first block if you ever want to change them.
   ===================================================================== */
:root{
  --bg:#ffffff;
  --text:#111111;
  --muted:#8a8a8a;      /* inactive nav items, footer */
  --link:#2a3fd6;       /* blue links and active nav item */
  --font:"Courier Prime","Courier New",Courier,monospace;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{
  margin:0;background:var(--bg);color:var(--text);
  font-family:var(--font);font-size:15px;line-height:1.2;
  min-height:100vh;min-height:100dvh;
  display:flex;flex-direction:column;
  padding:16px max(14px,env(safe-area-inset-right)) 0 max(14px,env(safe-area-inset-left));
}
a{color:var(--link);text-decoration:none}
a:hover{text-decoration:underline}
a:focus-visible{outline:2px solid var(--link);outline-offset:2px}

/* text for search engines and screen readers, not shown on screen */
.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* top navigation (built by site.js) */
#site-nav{display:flex;flex-wrap:nowrap;gap:0 17px;margin-bottom:18px;white-space:nowrap}
#site-nav a{color:var(--muted)}
#site-nav a.on,#site-nav a:hover{color:var(--link);text-decoration:none}
#site-nav a.title{color:var(--text)}
body.home #site-nav a.title{color:var(--link)}
#site-nav a.close{display:none;margin-left:auto;color:var(--text)}

/* two columns: names on the left, text and photos on the right */
.cols{display:grid;grid-template-columns:240px minmax(0,540px);gap:0 24px}
#site-list{display:flex;flex-direction:column}
#site-list a{color:var(--text)}
#site-list a:hover{color:var(--link);text-decoration:none}

.body p{margin:0 0 17px}
.links{display:flex;flex-wrap:wrap;gap:0 14px;margin:0 0 17px}
.body img{display:block;width:100%;height:auto;margin:0 0 14px;
  /* makes saving photos harder: no long-press menu, no drag, no right-click save */
  pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none}

/* trip details block (Location, Dates, Camera, Film) */
.meta{display:grid;grid-template-columns:11ch minmax(0,1fr);gap:0;margin:0 0 22px}
.meta dt{color:var(--muted)}
.meta dd{margin:0 0 8px}

/* footer (built by site.js), sits at the bottom of the screen */
#site-footer{margin-top:auto;padding:60px 0 18px;color:var(--muted);font-size:11px}

/* phone layout */
@media (max-width:640px){
  body{padding-top:0;padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}
  /* top menu stays at the top of the screen while you scroll */
  #site-nav{
    position:sticky;top:0;z-index:20;gap:0 17px;background:var(--bg);
    margin:0 calc(-1 * max(12px,env(safe-area-inset-right,0px))) 8px calc(-1 * max(12px,env(safe-area-inset-left,0px)));
    padding:14px max(12px,env(safe-area-inset-right,0px)) 10px max(12px,env(safe-area-inset-left,0px));
  }
  /* Close only appears inside an entry (a trip or a shop item) */
  body.series #site-nav a.close,body.product #site-nav a.close{display:inline}
  .cols{grid-template-columns:minmax(0,1fr)}
  body.series #site-list,body.product #site-list{display:none}   /* entries show only the text and photos */
  .meta{grid-template-columns:11ch minmax(0,1fr);gap:0}          /* details start at the same indent as on desktop */
  .meta dd{text-align:left;overflow-wrap:anywhere}
  /* an entry's text (starting with Location) begins lower down the screen, below the menu */
  body.series .body,body.product .body{padding-top:130px}  #site-footer{padding-top:48px;font-size:10px}
}
@media (prefers-reduced-motion:reduce){*{animation:none!important}}
