/* 1990 craigslist aesthetic: Times New Roman, blue/purple links,
   white background, minimal styling, left-aligned, table layout. */

body {
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  background: #ffffff;
  color: #000000;
  margin: 0;
  padding: 1em;
}

#wrap {
  max-width: 900px;
  margin: 0 auto;
}

#masthead h1 {
  font-size: 22px;
  margin: 0 0 2px 0;
  font-weight: bold;
}
#masthead h1 a { color: #000; text-decoration: none; }
#masthead h1 a:hover { text-decoration: underline; }
#masthead .tagline {
  margin: 0;
  font-size: 14px;
  color: #555;
  font-style: italic;
}

/* Default link behavior: blue unvisited, purple visited, underlined. */
a:link    { color: #0000ee; }
a:visited { color: #551a8b; }
a:hover   { color: #ee0000; }
a:active  { color: #ee0000; }

hr {
  border: none;
  border-top: 1px solid #888;
  margin: 10px 0;
}

/* Two-column layout via old-school table */
#layout {
  width: 100%;
  border-collapse: collapse;
}
#layout td {
  vertical-align: top;
  padding: 0;
}
#sidebar {
  width: 180px;
  padding-right: 20px !important;
  font-size: 14px;
  border-right: 1px solid #ccc;
}
#sidebar ul.months {
  list-style: square;
  padding-left: 18px;
  margin: 4px 0 8px 0;
}
#sidebar ul.months li { margin: 2px 0; }
#main {
  padding-left: 20px !important;
}

/* Posts */
.post h2 {
  font-size: 18px;
  margin: 8px 0 4px 0;
}
.post h2 a { text-decoration: none; }
.post h2 a:hover { text-decoration: underline; }
.post .meta {
  font-size: 12px;
  color: #666;
  margin: 0 0 10px 0;
  font-style: italic;
}
.post .body {
  line-height: 1.5;
  margin-bottom: 12px;
}
.post .body p { margin: 0 0 10px 0; }
.post .body img { max-width: 100%; height: auto; border: 1px solid #888; }
.post .body a { /* keep default colors */ }
.post .body blockquote {
  border-left: 3px solid #aaa;
  margin: 10px 0;
  padding: 2px 12px;
  color: #333;
}

/* Video embeds — responsive 16:9 */
.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin: 10px 0;
  background: #000;
  border: 1px solid #333;
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

.small    { font-size: 12px; color: #666; }
.notice   { background: #ffffcc; border: 1px solid #cc9; padding: 6px 10px; }
.error    { background: #ffdddd; border: 1px solid #c99; padding: 6px 10px; color: #a00; }
.footer   { text-align: center; margin-top: 20px; }

/* Admin table */
.admin-list {
  width: 100%;
  font-size: 14px;
  border-color: #666;
  margin: 10px 0;
}
.admin-list th {
  background: #eee;
  text-align: left;
}
.admin-list td { vertical-align: top; }
.admin-list button {
  font-size: 12px;
  padding: 2px 6px;
}
.sel { font-weight: bold; text-decoration: underline; }

/* Forms */
input[type="text"], input[type="password"] {
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  padding: 3px;
  border: 1px solid #666;
}
button {
  font-family: "Times New Roman", Times, serif;
  font-size: 14px;
  padding: 3px 10px;
  cursor: pointer;
}

/* Mobile: drop the sidebar down */
@media (max-width: 640px) {
  #layout, #layout tbody, #layout tr, #layout td { display: block; width: auto; }
  #sidebar { border-right: none; border-bottom: 1px solid #ccc; padding: 0 0 10px 0 !important; margin-bottom: 10px; }
  #main { padding-left: 0 !important; }
}
