/*
  Jan Frommann - Personal Site
  A homemade corner of the internet
*/

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Lora', Georgia, serif;
  background-color: #fffefc;
  color: #2d2a26;
  line-height: 1.7;
  font-size: 17px;
  min-height: 100vh;
}

a {
  color: #1a0dab;
  text-decoration: none;
  border-bottom: none;
}

a:hover {
  text-decoration: underline;
}

/* Navigation */
nav {
  background-color: #fffefc;
  border-bottom: 1px solid #eee;
  padding: 12px 0;
}

nav ul {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  list-style: none;
  display: flex;
  gap: 30px;
}

nav a {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #666;
  border-bottom: none;
}

nav a:hover {
  color: #1a0dab;
}

/* Header / About section */
.site-header {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 20px 40px;
  display: flex;
  gap: 30px;
  align-items: flex-start;
  border-bottom: 1px dashed #ddd;
}

.profile-image {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background-color: #e5e5e5;
  flex-shrink: 0;
  overflow: hidden;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio h1 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: #222;
  margin-bottom: 12px;
}

.bio p {
  margin-bottom: 10px;
  font-size: 16px;
}

.bio-links {
  margin-top: 15px;
  font-size: 15px;
}

.bio-links a {
  margin-right: 15px;
}

/* Main content area */
.main-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 50px;
}

/* Blog posts */
.posts {
  min-width: 0;
}

.posts h2 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  color: #888;
  margin-bottom: 25px;
}

.post-preview {
  margin-bottom: 35px;
  padding-bottom: 35px;
  border-bottom: 1px solid #eee;
}

.post-preview:last-child {
  border-bottom: none;
}

.post-preview h3 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.post-preview h3 a {
  color: #222;
  border-bottom: none;
}

.post-preview h3 a:hover {
  color: #1a0dab;
}

.post-date {
  font-size: 14px;
  color: #888;
  margin-bottom: 12px;
}

.post-excerpt {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

/* Sidebar */
.sidebar {
  font-size: 15px;
}

.sidebar h3 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  color: #888;
  margin-bottom: 15px;
}

.sidebar ul {
  list-style: none;
  margin-bottom: 30px;
}

.sidebar li {
  margin-bottom: 10px;
}

.sidebar a {
  font-size: 15px;
}

/* Page content (for say-hi, blogroll, posts) */
.page-content {
  max-width: 650px;
  margin: 0 auto;
  padding: 50px 20px;
}

.page-content h1 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 30px;
}

.page-content h2 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 22px;
  font-weight: 600;
  margin-top: 35px;
  margin-bottom: 15px;
}

.page-content p {
  margin-bottom: 20px;
}

.page-content ul {
  margin-left: 25px;
  margin-bottom: 20px;
}

.page-content li {
  margin-bottom: 8px;
}

/* Blog post page */
.post-header {
  margin-bottom: 30px;
}

.post-header h1 {
  margin-bottom: 10px;
}

.post-header .post-date {
  font-size: 15px;
  color: #888;
}

.post-subtitle {
  font-size: 18px;
  font-style: italic;
  color: #666;
  margin-bottom: 5px;
}

blockquote {
  margin: 25px 0;
  padding: 15px 25px;
  border-left: 3px solid #ddd;
  background: #fafafa;
}

blockquote p {
  margin-bottom: 10px;
}

blockquote p:last-child {
  margin-bottom: 0;
}

.post-body {
  font-size: 17px;
}

.post-body p {
  margin-bottom: 20px;
}

.back-link {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px dashed #ddd;
}

/* Blogroll specific */
.blogroll-section {
  margin-bottom: 40px;
}

.blogroll-section h2 {
  margin-top: 0;
}

.blogroll-section ul {
  list-style: none;
  margin-left: 0;
}

.blogroll-section li {
  margin-bottom: 12px;
}

.blogroll-description {
  display: block;
  font-size: 14px;
  color: #888;
  margin-top: 3px;
}

/* Image gallery */
.image-gallery {
  margin-top: 30px;
  margin-left: -100px;
  margin-right: -100px;
}

.image-gallery figure {
  margin: 0 0 50px 0;
}

.image-gallery img {
  max-width: 100%;
  width: 100%;
  border-radius: 3px;
}

.image-gallery figcaption {
  font-size: 14px;
  color: #888;
  margin-top: 8px;
  font-style: italic;
}

.placeholder-note {
  color: #888;
  font-style: italic;
}

/* Footer with fade to white */
.site-footer {
  margin-top: 60px;
  padding: 80px 20px 50px;
  text-align: center;
  background: #ffffff;
}

.site-footer::before {
  content: '';
  display: block;
  height: 120px;
  margin-top: -200px;
  margin-bottom: 80px;
  background: #fff;
}

.footer-image img {
  max-width: 840px;
  width: 100%;
}

/* Responsive */
@media (max-width: 700px) {
  .site-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .bio-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .bio-links a {
    margin-right: 0;
  }

  .main-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sidebar {
    border-top: 1px dashed #ddd;
    padding-top: 30px;
  }
}
