﻿/* app.css — Global shared styles: posts, pages, widgets, comments, forms, accessibility, icons
 * Loaded on every page.
 * Page-specific styles live in:
 *   assets/css/base.css          — tokens, reset, typography, layout
 *   assets/css/header.css        — header, navigation
 *   assets/css/footer.css        — footer
 *   assets/css/home.css          — homepage sections (front page only)
 *   assets/css/templates/*.css   — per-template styles (loaded conditionally)
 */
/* ============================================================================
   Posts & Pages
   ========================================================================= */

.entry-header {
  margin-bottom: var(--space-6);
}

.entry-title {
  margin-bottom: var(--space-3);
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: 14px;
  color: var(--color-text-soft);
  margin-bottom: var(--space-4);
}

.entry-content {
  margin-bottom: var(--space-6);
}

.entry-content > * {
  margin-bottom: var(--space-4);
}

.entry-content img {
  max-width: 100%;
  height: auto;
}

.entry-footer {
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  font-size: 14px;
  color: var(--color-text-soft);
}

.post-thumbnail {
  margin-bottom: var(--space-5);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.post-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
}

/* ============================================================================
   Widgets & Sidebar
   ========================================================================= */

/* .widget-area {
  font-size: 15px;
}

.widget {
  margin-bottom: var(--space-6);
  padding: var(--space-5);
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
}

.widget-title {
  margin-bottom: var(--space-4);
  font-size: 18px;
  color: var(--color-dark);
}

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

.widget ul li {
  margin-bottom: var(--space-2);
}

.widget a {
  color: var(--color-text);
}

.widget a:hover {
  color: var(--color-accent);
} */

/* ============================================================================
   Comments
   ========================================================================= */

.comments-area {
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.comments-title {
  margin-bottom: var(--space-5);
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6);
}

.comment-body {
  margin-bottom: var(--space-5);
  padding: var(--space-5);
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
}

.comment-respond {
  margin-top: var(--space-6);
}

/* ============================================================================
   Forms
   ========================================================================= */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
textarea,
select {
  width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 16px;
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: border-color var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(255, 58, 45, 0.1);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* ============================================================================
   Accessibility
   ========================================================================= */

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background-color: var(--color-dark);
  color: var(--color-bg);
  text-decoration: none;
  border-radius: var(--radius-sm);
  z-index: 9999;
}

.skip-link:focus {
  top: var(--space-4);
}

/* ============================================================================
   Icons
   ========================================================================= */

.icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

/* ============================================================================
   Responsive Adjustments
   ========================================================================= */

@media (max-width: 1024px) {
  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 32px;
  }

  h3 {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 22px;
  }
}
