/*
 * The Digital Press: Layout Components
 * Rowe Innovations, LLC
 *
 * Minimal layout CSS. Tailwind handles most styling.
 */

/* ============================================
   Content Wrapper - Prose-like Max Width
   ============================================ */

.prose-content {
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: var(--color-paper);
}

.hero h1 {
  color: var(--color-paper);
}

.hero .lead {
  color: rgba(250, 249, 249, 0.9);
}

/* ============================================
   Button Components
   ============================================ */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-wide);
  padding: var(--space-sm) var(--space-md);
  border-radius: 4px;
  text-decoration: none;
  transition:
    background-color var(--transition-duration-normal) var(--transition-smooth),
    transform var(--transition-duration-fast) var(--transition-smooth);
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-paper);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  border-bottom: none;
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-paper);
}

.btn-accent:hover {
  background-color: var(--color-accent-dark);
  border-bottom: none;
}

/* ============================================
   Card Component
   ============================================ */

.card {
  border: 1px solid var(--color-gray-light);
  border-radius: 8px;
  padding: var(--space-md);
  height: 100%;
  transition:
    transform var(--transition-duration-normal) var(--transition-smooth),
    box-shadow var(--transition-duration-normal) var(--transition-smooth);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.card-title {
  font-family: var(--font-display);
  color: var(--color-primary-dark);
  margin-bottom: var(--space-sm);
}

/* ============================================
   Wiglaf Software Brand Accent
   ============================================ */

.wiglaf-accent {
  border-left: 4px solid var(--color-accent);
  padding-left: var(--space-md);
}

.wiglaf-accent h2,
.wiglaf-accent h3,
.wiglaf-accent .card-title {
  color: var(--color-accent);
}

/* ============================================
   Navigation
   ============================================ */

header {
  background: white;
}

nav a {
  border-bottom: none;
  transition: color var(--transition-duration-fast) var(--transition-smooth);
}

nav a:hover {
  letter-spacing: normal;
}

/* ============================================
   Footer
   ============================================ */

footer {
  background: white;
  border-top: 1px solid var(--color-gray-light);
  margin-top: var(--space-lg);
}

footer a {
  color: var(--color-gray-mid);
  border-bottom: none;
  text-decoration: none;
}

footer a:hover {
  color: var(--color-primary);
  letter-spacing: normal;
}

/* ============================================
   Content Styles (Tailwind Reset Override)
   ============================================ */

.content {
  color: var(--color-ink);
}

.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
  font-family: var(--font-display);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary-dark);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-md);
  line-height: var(--line-height-tight);
}

.content h2 { font-size: var(--font-size-2xl) !important; }
.content h3 { font-size: var(--font-size-xl) !important; }
.content h4 { font-size: var(--font-size-lg) !important; }

.content h2:first-child,
.content h3:first-child {
  margin-top: 0;
}

.content p {
  margin-bottom: var(--space-sm);
  line-height: var(--line-height-relaxed);
  color: var(--color-ink);
}

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

.content strong {
  font-weight: var(--font-weight-semibold);
  color: var(--color-ink);
}

.content em {
  font-style: italic;
}

.content a {
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-duration-fast) var(--transition-smooth);
}

.content a:hover {
  border-bottom-color: var(--color-accent);
}

.content ul,
.content ol {
  margin-bottom: var(--space-sm);
  padding-left: var(--space-md);
}

.content li {
  margin-bottom: var(--space-xs);
  line-height: var(--line-height-relaxed);
  color: var(--color-ink);
}

.content ul li {
  list-style-type: disc;
}

.content ol li {
  list-style-type: decimal;
}

.content blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: var(--space-md);
  margin: var(--space-lg) 0;
  font-style: italic;
  color: var(--color-ink-light);
}

.content code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--color-paper-dark);
  padding: 0.125em 0.25em;
  border-radius: 3px;
}

.content pre {
  background: var(--color-ink);
  color: var(--color-paper);
  padding: var(--space-md);
  border-radius: 4px;
  overflow-x: auto;
  margin: var(--space-md) 0;
}

.content pre code {
  background: transparent;
  padding: 0;
}

.content hr {
  border: none;
  border-top: 1px solid var(--color-gray-light);
  margin: var(--space-lg) 0;
}

/* ============================================
   Content Images
   ============================================ */

.content img,
article img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: var(--space-md) 0;
}
