/* Redesign mock-up (1 Dec 2026). Loaded after style.css and overrides it.
   500px column and fonts as on the live site;
   icons scaled with the column: 40px, 13px apart (was 64px / 21px at 612px). */

body {
  margin: 0;
  background: #fff;
}

#frame {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* ---- the icon menu ---- */
#rail {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 40px 18px 40px 32px;   /* 18px from the line */
  z-index: 5;
}

#rail a {
  position: relative;
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  outline-offset: 4px;
}

#rail img {
  display: block;
  width: 40px;
  height: 40px;
  /* at rest: a touch muted; on hover the colours come up and glow */
  filter: saturate(.85) brightness(.98);
  transition: filter .35s ease;
}

#rail a { --glow: rgba(236, 106, 44, .55); }
#rail a:nth-child(1) { --glow: rgba(255, 72, 176, .45); }   /* home: pink roof */
#rail a:nth-child(2) { --glow: rgba(0, 120, 191, .45); }   /* about: blue */
#rail a:nth-child(3) { --glow: rgba(255, 220, 0, .7); }   /* essays: yellow nib */
#rail a:nth-child(4) { --glow: rgba(255, 72, 176, .4); }   /* updates: pink */
#rail a:nth-child(5) { --glow: rgba(0, 120, 191, .45); }   /* reading list: blue */
#rail a:nth-child(6) { --glow: rgba(255, 72, 176, .4); }   /* concepts: where the inks mix */
#rail a:nth-child(7) { --glow: rgba(255, 220, 0, .7); }   /* search: yellow lens */

#rail a:hover img, #rail a:focus-visible img {
  filter: saturate(1.45) brightness(1.08) drop-shadow(0 0 5px var(--glow)) drop-shadow(0 0 12px var(--glow));
}

/* away from the home page: the other icons show just their pencil outline, no colour;
   pointing at one brings its colour back */
#rail img.line { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none;
  filter: none; transition: opacity .35s ease; }
#rail.away a:not(.on) img:not(.line) { opacity: 0; transition: opacity .35s ease, filter .35s ease; }
#rail.away a:not(.on) img.line { opacity: 1; }
#rail.away a:not(.on):hover img:not(.line), #rail.away a:not(.on):focus-visible img:not(.line) {
  opacity: 1;
  filter: saturate(1.45) brightness(1.08) drop-shadow(0 0 5px var(--glow)) drop-shadow(0 0 12px var(--glow));
}
#rail.away a:not(.on):hover img.line, #rail.away a:not(.on):focus-visible img.line { opacity: 0; }

/* ---- the content column ---- */
#content {
  float: none;
  width: 500px;
  margin: 0;
  padding: 44px 48px 90px;
  min-height: 100vh;
  box-sizing: content-box;
  border-left: 1px solid #e6e3df;
  border-right: 1px solid #e6e3df;
}

/* Text: same fonts and sizes as the live site (style.css), nothing overridden. */

#content img { max-width: 100%; }
#content img[width] { height: auto; }   /* only resize images that set a width; height-only ones (like the About photo) keep their size */
/* Breakout: videos and wide landscape pictures run the full width between the two lines
   (out past the 48px padding on each side), with breathing room above and below.
   Text-passage screenshots and smaller pictures (like the About photo) stay in the text column. */
#content iframe.wide { display: block; width: calc(100% + 96px); margin: 24px -48px;
  height: auto; aspect-ratio: 16 / 9; }
#content img.wide { display: block; width: calc(100% + 96px); max-width: none; height: auto; margin: 24px -48px; }

#q { max-width: none; }

@media (prefers-reduced-motion: reduce) {
  #rail img { transition: none; }
}



/* ---- reading size: 15px text with room between lines (~70 characters a line) ---- */
#content { font-size: 15px; }
#content p, #content ul, #content ol, #content blockquote { line-height: 1.6; }
#content h1 { font-size: 26px; }   /* titles keep their old size */
#content h2 { font-size: 19.5px; }
#content h3 { font-size: 17px; }   /* stays a step above the 15px text */
#results .result .snippet, #results .empty { font-size: 15px; line-height: 1.6; }

/* ---- click a picture to see it full size ---- */
#content img.zoomable { cursor: zoom-in; }
#lightbox {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; box-sizing: border-box;
  background: #fff;
  cursor: zoom-out;
  opacity: 0; transition: opacity .2s ease;
}
#lightbox.open { opacity: 1; }
#lightbox img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto; object-fit: contain;
  box-shadow: 0 2px 30px rgba(0, 0, 0, .12);
}
#lightbox .close {
  position: absolute; top: 14px; right: 18px;
  font: 28px/1 Helvetica, Arial, sans-serif; color: #888;
  background: none; border: 0; cursor: pointer; padding: 6px;
}
#lightbox .close:hover, #lightbox .close:focus-visible { color: #000; }
@media (prefers-reduced-motion: reduce) { #lightbox { transition: none; } }
#pager { font-size: 13px; }   /* page numbers stay at the old size */

/* ---- menu as words (MENU_STYLE = "words" in generate.py): stacked tight, like the live site ---- */
#rail.words { gap: 0; text-align: right; align-items: flex-end; min-width: 96px; padding: 47px 18px 40px 32px;
  font: 13px "Myriad Pro", "Helvetica Neue", Helvetica, Arial, sans-serif; }
#rail.words .title { color: #000; }
#rail.words a { position: relative; width: auto; height: auto; border-radius: 0; color: #0864c7; text-decoration: underline; }
#rail.words a.on::before {   /* an orange dot beside the page you're on */
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #FA8072;   /* salmon */
  position: absolute; left: -11px; top: .5em;   /* hangs in the margin so the words stay lined up */
}


/* ---- try: Georgia for the content, salmon links ---- */
#content, #content p, #content ul, #content ol, #content li, #content blockquote,
#content h1, #content h2, #content h3 { font-family: Georgia, "Times New Roman", serif; }
#content:not(.ui) a, #content:not(.ui) a:visited { color: rgb(237, 109, 82); }   /* #ED6D52, essays only */
/* titles stay black and Threads · RSS feed / dates stay grey, as on the live site */
#content:not(.ui) h1 a, #content:not(.ui) h2 a, #content:not(.ui) h3 a, #content:not(.ui) a.entry-title,
#content:not(.ui) h1 a:visited, #content:not(.ui) h2 a:visited, #content:not(.ui) h3 a:visited,
#content:not(.ui) a.entry-title:visited { color: inherit; }
#content:not(.ui) .entry-meta a, #content:not(.ui) .byline a, #content:not(.ui) .note a,
#content:not(.ui) .entry-meta a:visited, #content:not(.ui) .byline a:visited, #content:not(.ui) .note a:visited { color: #aaa; }
#content #pager a, #content #pager a:visited { color: #0864c7; }   /* page numbers stay blue, visited or not */
#pager { font-family: Helvetica, Arial, sans-serif; }   /* and in the original font */
#content h1, #content h2, #content h3 { font-family: "Myriad Pro", "Helvetica Neue", Helvetica, Arial, sans-serif; }   /* titles: original font */
#content .byline, #content .entry-no, #content .entry-meta { font-family: Helvetica, Arial, sans-serif; }               /* dates: original font */


/* Interface pages (About, Essays list, Reading List, Concepts, Search, threads):
   the original sans-serif and blue links, as on the live site */
#content.ui, #content.ui p, #content.ui ul, #content.ui ol, #content.ui li, #content.ui blockquote,
#content.plain, #content.plain p, #content.plain ul, #content.plain ol, #content.plain li, #content.plain blockquote {
  font-family: Helvetica, Arial, sans-serif;
}
#content.ui, #content.plain { font-size: 13px; }   /* interface pages: the live site's size and line spacing */
#content.ui p, #content.ui ul, #content.ui ol, #content.ui blockquote,
#content.plain p, #content.plain ul, #content.plain ol, #content.plain blockquote { line-height: 18px; }
#content.ui h3, #content.plain h3 { font-size: 1.17em; }
#results .result .snippet, #results .empty { font-size: 13px; line-height: 18px; }
