/* So Much to Smile About — restored archive theme.
   Measurements, colours and type follow the original Atahualpa theme as
   recovered from the December 2018 capture (the blog's final state):
     wrapper 980px  ·  sidebar 340px  ·  links #FF166B
     body arial 13px/1.4 #666        ·  nav + headlines condensed uppercase
   The title lettering is the theme's own 980px PNG, not web type. */

:root {
  --pink: #FF166B;        /* theme link colour */
  --pink-title: #ED135A;  /* sampled from the title banner */
  --ink: #666;
  --dim: #999;
  --rule: #eee;
  --wrap: 980px;
  --side: 340px;        /* .colthree in the original theme; 300px of
                           content once the 20px gutters are removed,
                           which is exactly the ad banner width */
  /* futura-pt-condensed was a Typekit font and is not available; this is the
     closest widely-installed condensed geometric stack. */
  --display: "Futura Condensed", "Avenir Next Condensed", "Arial Narrow",
             "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 0 20px;
  background: #fff;
  color: var(--ink);
  font: 13px/1.6 Arial, Helvetica, sans-serif;
  text-align: center;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a:link, a:visited, a:active { color: var(--pink); text-decoration: none; font-weight: normal; }
a:hover { text-decoration: underline; }

#wrapper {
  width: var(--wrap);
  max-width: 100%;
  margin: 0 auto;
  text-align: left;
  padding: 0 10px;
}

/* ---------- header: title banner + link bar ---------- */

#header { padding-top: 34px; }

.title { display: block; text-align: center; }
.title img { display: inline-block; width: 100%; max-width: 980px; height: auto; }

.horbar {
  height: 1px;
  margin: 26px 0 0;
  background: var(--rule);
  border-top: solid 1px #ccc;
  font-size: 1px;
  clear: both;
}

#linkbar { text-align: center; padding: 10px 0 4px; }

.rmenu, .rmenu ul { list-style: none; margin: 0; padding: 0; }
.rmenu { display: inline-block; }
.rmenu > li { position: relative; display: inline-block; z-index: 1; }
.rmenu > li:hover, .rmenu > li:focus-within { z-index: 999; }

.rmenu a {
  display: block;
  margin: 0;
  padding: 4px 9px;
  border: solid 2px #fff;
  color: #777;
  text-transform: uppercase;
  font: 700 16px/1.2 var(--display);
  letter-spacing: 1px;
  text-decoration: none;
}
.rmenu a:hover { color: var(--pink); text-decoration: none; }

/* Dropdowns, as in the original: hidden until the parent is hovered. */
.rmenu .sub-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  width: 12em;
  background: #fff;
  border: solid 1px var(--rule);
  border-top: none;
  text-align: left;
  box-shadow: 0 2px 4px rgba(0,0,0,.06);
}
.rmenu > li:hover > .sub-menu,
.rmenu > li:focus-within > .sub-menu { display: block; }
.rmenu .sub-menu a { font-size: 14px; border: none; padding: 6px 10px; }

/* ---------- archive notice ---------- */

.notice {
  margin: 14px 0 0;
  padding: .55rem .8rem;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--pink);
  background: #fdf7f9;
  color: var(--dim);
  font-size: 11px;
  letter-spacing: .5px;
  text-transform: uppercase;
  text-align: center;
}

/* ---------- two-column layout ---------- */

#layout {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 18px;
}

#content { flex: 1 1 auto; min-width: 0; padding: 20px 24px 20px 0; }

#right {
  flex: 0 0 var(--side);
  width: var(--side);
  padding: 35px 20px 20px 20px;
  border-left: 1px solid var(--rule);
}

/* ---------- sidebar widgets ---------- */

.widget { margin-bottom: 28px; }

.widget-title h3 {
  margin: 0 0 8px;
  padding: 0 0 5px;
  font: 400 1.1em/1.3 var(--display);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #333;
}

.widget-profile { text-align: center; }
.portrait { display: block; }
.portrait img { width: 160px; height: auto; border-radius: 50%; }

.social { margin: 14px 0 0; line-height: 2; }
.social a { margin: 0 4px; }
.social img { width: 25px; height: 25px; vertical-align: middle; opacity: .85; }
.social a:hover img { opacity: 1; }

.searchform { display: flex; gap: 4px; }
.searchform input[type=text] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 4px 6px;
  border: 1px solid #ddd;
  font: 12px Arial, sans-serif;
  color: var(--ink);
}
.searchform button {
  padding: 4px 8px;
  border: 1px solid #ddd;
  background: #fafafa;
  color: #777;
  font: 700 11px var(--display);
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
}
.searchform button:hover { color: var(--pink); }

/* Sidebar advertising, as it stood in 2018: a "Shop" button over a stack of
   300x250 affiliate banners. Shown as images only — see sidebar.html. */
.shop-btn { margin: 0 0 12px; }
.shop-btn img { display: block; width: 100%; max-width: 300px; }

.ads { margin: 0; }
.ads img {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 0 12px;
  border: 1px solid var(--rule);
}
.ads img:last-child { margin-bottom: 0; }

/* The Marilyn Monroe quote the blog is named after. */
.widget-quote blockquote {
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--rule);
  color: #777;
  font-size: 12px;
  font-style: italic;
  line-height: 1.65;
}
.widget-quote em { font-style: normal; color: var(--pink); }
.widget-quote cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--dim);
}

.browse, .recent { list-style: none; margin: 0; padding: 0; }
.browse li, .recent li { padding: 3px 0; border-bottom: 1px solid var(--rule); }
.recent li:last-child, .browse li:last-child { border-bottom: none; }
.browse .count { color: var(--dim); font-size: 11px; }

/* ---------- posts ---------- */

.post { margin: 0 0 46px; }

.post-headline h1, .post-headline h2 {
  margin: 0;
  padding: 0;
  font: 500 1.5em/1.25 var(--display);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}
.post-headline h2 { font-size: 1.4em; }
.post-headline a { color: #444; }
.post-headline a:hover { color: var(--pink); text-decoration: underline; }

.post-byline, .post-footer {
  margin: 10px 0;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 11px;
  text-align: center;
}

.post-bodycopy { overflow-wrap: break-word; }
.post-bodycopy p { margin: 1em 0; }
.post-bodycopy img { display: block; margin: 1.2em auto; }
.post-bodycopy blockquote {
  margin: 1.5em 0;
  padding-left: 1em;
  border-left: 2px solid var(--rule);
  color: var(--dim);
  font-style: italic;
}
/* Old posts carry hardcoded widths; keep them from overflowing the column. */
.post-bodycopy table, .post-bodycopy iframe, .post-bodycopy embed, .post-bodycopy object {
  max-width: 100%;
}
.post-bodycopy table { display: block; overflow-x: auto; }

.more a {
  font: 700 11px var(--display);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Photographs the Internet Archive never captured. Shown as a quiet placeholder
   rather than a broken-image icon, so the gap reads as deliberate. */
.lost-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 7rem;
  margin: 1.2em auto;
  padding: 1.4rem 1rem;
  border: 1px dashed #e6dfe2;
  background: repeating-linear-gradient(
    45deg, #fdfafb, #fdfafb 10px, #f7f1f4 10px, #f7f1f4 20px
  );
  color: var(--dim);
  font-size: 11px;
  font-style: italic;
  letter-spacing: .5px;
  text-align: center;
}

/* ---------- comments ---------- */

#comments { margin: 3rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--rule); }
#comments .widget-title h3 { text-align: center; margin-bottom: 1.2rem; }

.commentlist { list-style: none; margin: 0; padding: 0; }
.commentlist .comment {
  padding: .9rem 0;
  border-bottom: 1px solid var(--rule);
}
.commentlist .comment:last-of-type { border-bottom: none; }

/* Threading: the original nested replies one level under their parent. */
.commentlist .depth-2 { margin-left: 1.75rem; }
.commentlist .depth-3 { margin-left: 3.5rem; }
.commentlist .depth-4 { margin-left: 5.25rem; }

/* Liz's own replies, flagged bypostauthor in the original markup. */
.commentlist .byauthor { background: #fdf7f9; padding-left: .8rem; border-left: 2px solid var(--pink); }

.comment-head { margin-bottom: .3rem; font-size: 11px; letter-spacing: .5px; text-transform: uppercase; color: var(--dim); }
.comment-head .authorname { color: #444; font-weight: bold; }
.comment-head .authorname a { color: var(--pink); }
.comment-head time { margin-left: .5rem; }
.comment-head .badge {
  display: inline-block;
  margin-left: .35rem;
  padding: 1px 6px;
  border-radius: 8px;
  background: var(--pink);
  color: #fff;
  font-size: 9px;
  letter-spacing: 1px;
}

/* Commenters pasted raw URLs — one runs to 79 characters. Without this the
   unbreakable string overflows the content column and collides with the
   sidebar on any viewport narrower than the 980px wrapper. */
.comment-body, .comment-head, .commentlist .comment {
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}

.comment-body { font-size: 13px; }
.comment-body p { margin: .4em 0; }
.comment-body img { max-width: 100%; height: auto; }

.comment-note {
  margin-top: 1.4rem;
  padding-top: .8rem;
  border-top: 1px dashed var(--rule);
  color: var(--dim);
  font-size: 11px;
  font-style: italic;
  text-align: center;
}

@media (max-width: 560px) {
  .commentlist .depth-2, .commentlist .depth-3, .commentlist .depth-4 { margin-left: .9rem; }
}

/* ---------- lists, pager, footer ---------- */

.navigation-bottom, .pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font: 700 11px var(--display);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.pager .next { margin-left: auto; text-align: right; }

.page-head { text-align: center; margin-bottom: 2rem; }
.page-head h1 {
  margin: 0 0 .3rem;
  font: 500 1.7em/1.2 var(--display);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.postlist { list-style: none; margin: 0; padding: 0; }
.postlist li { display: flex; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid var(--rule); }
.postlist time { flex: 0 0 5.5rem; color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; padding-top: .15rem; }
.postlist a { color: #444; }
.postlist a:hover { color: var(--pink); }

.year { margin-bottom: 2.2rem; }
.year h2 {
  margin: 0 0 .4rem;
  padding-bottom: .25rem;
  font: 500 1.25em var(--display);
  letter-spacing: 2px;
  color: var(--pink);
  border-bottom: 1px solid var(--rule);
}

.termlist { list-style: none; padding: 0; columns: 2; column-gap: 1.6rem; }
.termlist li { padding: .25rem 0; break-inside: avoid; }
.termlist .count { color: var(--dim); font-size: 11px; }

.pagination { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: center; list-style: none; padding: 2rem 0 0; }
.pagination li a, .pagination li.active span {
  display: block;
  padding: .25rem .6rem;
  border: 1px solid var(--rule);
  font: 700 11px var(--display);
  letter-spacing: 1px;
  color: #777;
}
.pagination li.active span { background: var(--pink); color: #fff; border-color: var(--pink); }
.pagination li.disabled { display: none; }

footer {
  clear: both;
  margin-top: 10px;
  padding: 20px 0 10px;
  border-top: 1px solid var(--rule);
  text-align: center;
  color: var(--dim);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
footer p { margin: .25rem 0; }
footer .small { text-transform: none; letter-spacing: 0; opacity: .85; }

/* ---------- responsive: the sidebar drops below the posts ---------- */

/* The original layout is 980px wide with a fixed 340px sidebar; below that
   there is not enough room for both columns, so the sidebar drops under the
   posts rather than squeezing the content into a sliver. */
@media (max-width: 980px) {
  #layout { flex-direction: column; }
  #content { padding: 10px 0; }
  #right {
    flex: none;
    width: 100%;
    padding: 24px 0 0;
    border-left: none;
    border-top: 1px solid var(--rule);
  }
  .widget-profile { text-align: center; }
}

@media (max-width: 560px) {
  #header { padding-top: 18px; }
  .rmenu a { font-size: 14px; padding: 3px 6px; }
  /* Touch devices cannot hover; show sub-items inline instead of hiding them. */
  .rmenu .sub-menu {
    display: block;
    position: static;
    width: auto;
    border: none;
    box-shadow: none;
    text-align: center;
  }
  .rmenu .sub-menu a { font-size: 12px; padding: 2px 5px; display: inline-block; }
  .rmenu > li { display: block; }
  .postlist li { flex-direction: column; gap: .1rem; }
  .postlist time { flex: none; padding: 0; }
  .termlist { columns: 1; }
}
