/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* Typography */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.65;
  background-color: white;
  color: #1a1a1a;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  color: #1a1a1a;
}

h1 {
  font-size: 2.75rem;
  margin-top: 0;
  margin-bottom: 2rem;
  line-height: 1.2;
}

/* Site Header */
.site-header {
  margin-bottom: 0.5rem !important;
}

.back-link {
  display: inline-block;
  font-size: 1.2rem;
  color: #0f172a;
  text-decoration: underline;
  text-decoration-color: #cbd5e0;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  border-bottom: none;
  margin-top: 0;
  margin-bottom: 1rem;
  transition: text-decoration-color 0.2s ease;
}

.back-link:hover {
  color: #0f172a;
  text-decoration-color: #0f172a;
  border-bottom: none;
}

.back-arrow {
  font-size: 1rem;
}

.back-text {
  font-weight: 500;
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

/* Layout & Container */
.page-wrapper {
  padding: 1.5rem 2rem 1rem;
}

.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Typography Sizing */
p, ol, ul, li {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* Links */
a {
  color: #1e293b;
  text-decoration: underline;
  text-decoration-color: rgba(0, 0, 0, 0.2);
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-color: rgba(0, 0, 0, 0.4);
}

/* Inline Icons */
.inline-icon {
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
  vertical-align: text-bottom;
  margin-right: 0.35rem;
  color: #64748b;
}

/* Meta text (dates, timestamps) */
.meta {
  color: #94a3b8;
  font-size: 0.95rem;
}

/* Utility Classes */
.title {
  display: inline-block;
  vertical-align: top;
}

.timestamp {
  font-style: italic;
  color: #666;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Blockquotes v2 */
blockquote {
  background: #f8fafc;
  border-left: 2px solid #cbd5e1;
  margin: 0.5rem 0 !important;
  padding: 0.75rem 1.5rem;
  font-style: normal;
  color: #475569;
  border-radius: 0;
}

blockquote p {
  margin-bottom: 0.5rem;
}

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

/* Pagination */
.pagination {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pagination a, .pagination span.current, .pagination span.gap {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  line-height: 1.5;
  font-size: 1rem;
  text-decoration: none;
  background-color: transparent;
  border-bottom: none;
  transition: all 0.2s ease;
}

.pagination a {
  color: #0f172a;
  text-decoration: underline;
  text-decoration-color: #cbd5e0;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.pagination a:hover {
  text-decoration-color: #0f172a;
  background-color: transparent;
  border-bottom: none;
}

.pagination span.current {
  color: #1a1a1a;
  font-weight: 600;
  background-color: transparent;
}

.pagination span.gap {
  color: #94a3b8;
  background-color: transparent;
}

.pagination .first,
.pagination .prev,
.pagination .page,
.pagination .next,
.pagination .last {
  padding: 0;
  float: none;
  border: none;
}

/* Footer Styling */
.site-footer {
  text-align: center;
  margin: 0;
  padding: 2rem 0 1.5rem;
  border-top: 1px solid #f1f5f9;
  color: #64748b;
  font-size: 0.9rem;
}

.site-footer a {
  color: #475569;
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #1e293b;
  border-bottom: none;
}

/* Snippet List Styling */
.snippet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.snippet-item {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.snippet-item:last-child {
  border-bottom: none;
}

.snippet-header {
  margin-bottom: 0.35rem;
}

.snippet-title {
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: none;
  transition: color 0.2s ease;
  display: block;
}

.snippet-title:hover {
  color: #0f172a;
  text-decoration: none;
  border-bottom: none;
}

.snippet-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.snippet-date {
  font-weight: 400;
  color: #64748b;
}

.snippet-separator {
  color: #cbd5e1;
}

.snippet-source {
  color: #94a3b8;
  font-style: normal;
}

.snippet-body {
  margin-top: 0.5rem;
  color: #475569;
  font-size: 1rem;
  line-height: 1.6;
}

.snippet-body p {
  margin-bottom: 0.75rem;
}

.snippet-body p:last-child {
  margin-bottom: 0;
}

.snippet-video {
  margin-top: 1rem;
}

.snippet-video iframe {
  max-width: 100%;
  border-radius: 4px;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #1a1a1a;
  font-size: 1rem;
}

.form-group input[type="text"],
.form-group textarea {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #1a1a1a;
  background-color: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  transition: border-color 0.15s ease-in-out;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #475569;
  box-shadow: 0 0 0 3px rgba(71, 85, 105, 0.1);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  color: #fff;
  background-color: #1e293b;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background-color: #0f172a;
  color: #fff;
  border-bottom: none;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

table thead {
  background-color: #f8fafc;
}

table th {
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  color: #1a1a1a;
  border-bottom: 2px solid #e2e8f0;
}

table td {
  padding: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}

table tbody tr:hover {
  background-color: #f8fafc;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #64748b;
}

.breadcrumb a {
  color: #1e293b;
  text-decoration: underline;
  text-decoration-color: rgba(0, 0, 0, 0.2);
  font-size: 0.9rem;
  border-bottom: none;
}

.breadcrumb a:hover {
  text-decoration-color: rgba(0, 0, 0, 0.4);
  border-bottom: none;
}

.breadcrumb-separator {
  color: #cbd5e1;
}

.breadcrumb-current {
  color: #64748b;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.4rem;
  }
  
  .page-wrapper {
    padding: 1rem;
  }
  
  table {
    font-size: 0.9rem;
  }
  
  table th,
  table td {
    padding: 0.5rem;
  }
}

/* Home Page */
.home h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.home p {
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

.home-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.home-footer p {
  color: #64748b;
  font-size: 0.95rem;
}

/* Page Footer */
.page-footer {
  text-align: center;
  margin: 0;
  padding: 2rem 0 1.5rem;
  border-top: 1px solid #f1f5f9;
  color: #64748b;
  font-size: 0.9rem;
}

.page-footer p {
  font-size: 0.9rem;
  margin: 0;
}

.page-footer a {
  color: #475569;
  text-decoration: none;
  font-size: 0.9rem;
}

.page-footer a:hover {
  color: #1e293b;
}

/* Archives Page */
.archive-year {
  margin-bottom: 2.5rem;
}

.archive-year h2 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  margin-top: 0.5rem;
  color: #1a202c;
}

.archive-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.archive-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
}

.archive-date {
  display: block;
  color: #64748b;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

h3.archive-title {
  font-size: 1.4rem !important;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

h3.archive-title a {
  color: #1a202c;
  text-decoration: none;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
}

h3.archive-title a:hover {
  text-decoration: underline;
}

.archive-excerpt {
  color: #64748b;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
}

/* Post Page */
.post-header {
  text-align: center;
  margin-bottom: 2rem;
}

.post-header h1 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.post-date {
  color: #64748b;
  font-size: 1rem;
  margin-bottom: 0;
}

.post-body {
  line-height: 1.8;
}

.post-body h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.post-body h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.post-body p {
  margin-bottom: 1.25rem;
}

.post-body ul,
.post-body ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.post-body li {
  margin-bottom: 0.5rem;
}

.post-body img {
  display: block;
  margin: 1.5rem auto;
  border-radius: 4px;
  max-width: 650px;
  width: 100%;
}

