/*
 * Secret Forts Archive CSS
 * Based on original SFTheme styling (2014)
 * Primary font: Consolas/monospace (matching original)
 */

/* Archive Banner Styles */
.archive-banner {
  background-color: #f5f0e6;
  border-bottom: 1px solid #d4cfc3;
  padding: 10px 20px;
  font-family: Consolas, 'Lucida Console', 'DejaVu Sans Mono', monospace;
  font-size: 13px;
  line-height: 1.5;
  color: #5a5243;
}

.archive-banner-content {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.archive-banner p {
  margin: 0;
}

.archive-banner strong {
  color: #3d372e;
}

.archive-banner a {
  color: #6b5d4d;
  text-decoration: underline;
}

.archive-banner a:hover {
  color: #3d372e;
}

.archive-banner-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #8a8278;
  cursor: pointer;
  padding: 0 8px;
  line-height: 1;
}

.archive-banner-close:hover {
  color: #3d372e;
}

/* Site Container - Match original monospace aesthetic */
.site-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  font-family: Consolas, 'Lucida Console', 'DejaVu Sans Mono', monospace;
  color: #333333;
}

/* Site Header - Original Style with large title */
.site-header {
  text-align: center;
  padding: 30px 0 20px;
  border-bottom: 2px dashed #ccc;
  margin-bottom: 30px;
}

.header-top {
  font-family: Consolas, 'Lucida Console', 'DejaVu Sans Mono', monospace;
  font-size: 13px;
  letter-spacing: 1px;
  color: #333333;
  margin-bottom: 10px;
}

/* Header h1 - Original was 1000% (~100px), very prominent */
.site-header h1 {
  font-family: Consolas, 'Lucida Console', 'DejaVu Sans Mono', monospace;
  font-size: 72px;
  font-weight: normal;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin: 0;
  color: #323232;
  line-height: 1.1;
}

.site-header h1 a {
  color: inherit;
  text-decoration: none;
}

.site-header h1 a:hover {
  color: #000;
}

.header-tagline {
  font-family: Consolas, 'Lucida Console', 'DejaVu Sans Mono', monospace;
  font-size: 13px;
  letter-spacing: 1px;
  color: #333333;
  margin-top: 15px;
}

/* Year Navigation */
.year-nav {
  text-align: center;
  margin-bottom: 30px;
  padding: 15px 0;
  border-bottom: 1px dashed #ddd;
}

.year-nav a {
  display: inline-block;
  padding: 5px 12px;
  margin: 3px;
  color: #999;
  text-decoration: none;
  font-size: 14px;
  font-family: Consolas, 'Lucida Console', monospace;
  letter-spacing: 0.1em;
}

.year-nav a:hover {
  color: #000;
  text-decoration: underline;
}

.year-nav a.active {
  color: #333;
  font-weight: bold;
}

/* Main Content Layout */
.main-content {
  display: flex;
  gap: 40px;
}

.feed {
  flex: 1;
  max-width: 600px;
}

.sidebar {
  width: 280px;
  flex-shrink: 0;
}

/* Feed Posts - Using Courier New for titles like original */
.feed-post {
  margin-bottom: 0;
}

.feed-post .post-meta {
  font-family: Consolas, 'Lucida Console', monospace;
  font-size: 13px;
  color: #999;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.feed-post .post-title {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.4em;
  font-weight: normal;
  margin: 0 0 15px;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.feed-post .post-title a {
  color: #333333;
  text-decoration: none;
}

.feed-post .post-title a:hover {
  color: #000;
  text-decoration: underline;
}

.post-divider {
  border: none;
  border-top: 1px dashed #ccc;
  margin: 25px 0;
}

.view-more {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px dashed #ddd;
}

.view-more a {
  color: #999;
  text-decoration: none;
  font-family: Consolas, monospace;
}

.view-more a:hover {
  color: #000;
  text-decoration: underline;
}

/* Sidebar - Original style */
.sidebar-section {
  margin-bottom: 30px;
}

.sidebar-section h3 {
  font-family: Consolas, 'Lucida Console', monospace;
  font-size: 130%;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

.sidebar-section p {
  font-family: Consolas, 'Lucida Console', monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 10px;
}

.archive-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.archive-links a {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f9f7f4;
  border: 1px solid #eee;
  color: #555;
  text-decoration: none;
  font-family: Consolas, monospace;
  font-size: 14px;
  letter-spacing: 0.1em;
}

.archive-links a:hover {
  background: #f0ede8;
  color: #000;
}

.archive-links a span {
  color: #999;
  font-size: 12px;
}

/* Archive Pages */
.archive-main {
  max-width: 700px;
}

.archive-title {
  font-family: Consolas, 'Lucida Console', monospace;
  font-size: 1.2em;
  font-weight: normal;
  color: #666;
  margin-bottom: 30px;
}

.archive-title em {
  font-style: italic;
  color: #333;
}

.month-section {
  margin-bottom: 40px;
}

.month-header {
  font-family: Consolas, 'Lucida Console', monospace;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #ddd;
}

.archive-post {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px dashed #eee;
}

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

.archive-post .post-date {
  font-family: Consolas, 'Lucida Console', monospace;
  font-size: 13px;
  color: #999;
  margin-bottom: 5px;
}

.archive-post .post-title {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.3em;
  font-weight: normal;
  margin: 0;
  line-height: 1.4;
}

.archive-post .post-title a {
  color: #333;
  text-decoration: none;
}

.archive-post .post-title a:hover {
  color: #000;
  text-decoration: underline;
}

/* Site Footer */
.site-footer {
  margin-top: 50px;
  padding: 30px 0;
  border-top: 2px dashed #ddd;
  text-align: center;
  font-family: Consolas, 'Lucida Console', monospace;
  font-size: 13px;
  color: #888;
}

.site-footer a {
  color: #999;
  text-decoration: none;
}

.site-footer a:hover {
  color: #000;
  text-decoration: underline;
}

/* Dead/Archived link indicators */
a.dead-link {
  color: #999;
  text-decoration: line-through;
  cursor: not-allowed;
}

a.archived-link::after {
  content: " [archived]";
  font-size: 0.8em;
  color: #888;
}

/* Tag pages */
.archive-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: Consolas, 'Lucida Console', 'DejaVu Sans Mono', monospace;
}

.archive-container header {
  margin-bottom: 30px;
}

.archive-container h1 {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.8em;
  font-weight: normal;
  margin-bottom: 10px;
}

.archive-container nav {
  font-size: 14px;
}

.archive-container nav a {
  color: #999;
  margin-right: 15px;
}

.archive-container nav a:hover {
  color: #000;
  text-decoration: underline;
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-list li {
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
}

.post-list li a {
  color: #333;
  text-decoration: none;
}

.post-list li a:hover {
  color: #000;
  text-decoration: underline;
}

.post-list .date {
  color: #999;
  font-size: 13px;
  margin-left: 10px;
}

/* General link styling to match original */
a:link, a:visited {
  color: #999;
}

a:hover {
  color: #000;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-top: 2px dashed #ddd;
    padding-top: 30px;
    margin-top: 30px;
  }

  .site-header h1 {
    font-size: 36px;
    letter-spacing: 0.15em;
  }

  .archive-banner-content {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

/* ===== Post previews (homepage feed + year archives) ===== */
.post-preview {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 12px 0 0;
}

.post-thumb {
  flex-shrink: 0;
  display: block;
  line-height: 0;
}

.post-thumb img {
  display: block;
  width: 150px;
  height: 110px;
  object-fit: cover;
  border: 1px solid #e3ddd0;
  background: #f5f0e6;
}

.post-thumb:hover img {
  border-color: #b3a994;
}

.post-excerpt {
  flex: 1;
  margin: 0;
  font-family: Consolas, 'Lucida Console', 'DejaVu Sans Mono', monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #666;
}

/* Tighter thumbnails on the denser year-archive lists */
.archive-post .post-preview { margin-top: 8px; }
.archive-post .post-thumb img { width: 110px; height: 80px; }
.archive-post .post-excerpt { font-size: 12px; }

/* Placeholder for content images Wayback never archived */
.img-missing {
  display: inline-block;
  min-width: 140px;
  padding: 24px 20px;
  margin: 8px 0;
  border: 1px dashed #cfc8b8;
  background: #faf8f4;
  color: #b3a994;
  font-family: Consolas, 'Lucida Console', monospace;
  font-size: 11px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  vertical-align: middle;
}

.img-missing::before {
  content: "\229B";  /* circled slash */
  margin-right: 6px;
}

@media (max-width: 768px) {
  .post-preview { flex-direction: column; }
  .post-thumb img,
  .archive-post .post-thumb img {
    width: 100%;
    height: auto;
    max-height: 240px;
  }
}
