/* Basic styling for the Just Another Woman With Taste blog.
 * The design focuses on clean typography, plenty of whitespace and a
 * simple layout. You can tweak the CSS to better match Olivia’s aesthetic
 * preferences.
 */

body {
  margin: 0;
  padding: 0;
  font-family: "Georgia", serif;
  background-color: #fafafa;
  color: #222;
  line-height: 1.6;
}

header {
  background-color: #fff;
  border-bottom: 1px solid #eee;
  padding: 2rem 1rem;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: normal;
  letter-spacing: 0.05rem;
}

header p {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #666;
}

nav {
  margin-top: 1.5rem;
}

nav a {
  margin: 0 0.5rem;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  position: relative;
  padding-bottom: 0.25rem;
}

nav a.active,
nav a:hover {
  color: #000;
}

main {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.post {
  margin-bottom: 3rem;
}

.post h2 {
  margin: 0;
  font-size: 1.8rem;
}

.post .meta {
  margin-top: 0.2rem;
  font-size: 0.85rem;
  color: #888;
}

.post img {
  max-width: 100%;
  height: auto;
  margin-top: 1rem;
}

.post .content {
  margin-top: 1rem;
  white-space: pre-wrap;
}

/* Admin form styling */
form label {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
}

form input[type="text"],
form input[type="date"],
form select,
form textarea {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.25rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

form button {
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background-color: #222;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
}

form button:hover {
  background-color: #444;
}

/* Styles for the list of existing posts in the admin interface */
#post-list {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
}

#post-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

#post-list li span {
  flex: 1;
}

#post-list button {
  background-color: #e74c3c;
  color: #fff;
  border: none;
  padding: 0.3rem 0.6rem;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.85rem;
}

#post-list button:hover {
  background-color: #c0392b;
}