*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background-color: #f5f5f5;
  color: #111111;
}

.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #dddddd;
}

.site-header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.site-header h1 {
  margin: 0 0 0.5rem 0;
  font-size: 1.8rem;
}

.site-header p {
  margin: 0;
  max-width: 40rem;
  line-height: 1.5;
  color: #444444;
}

.site-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem 1rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: #ffffff;
  border: 1px solid #222222;
  border-radius: 10px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #666666;
  margin-bottom: 0.75rem;
}

.card-text {
  font-size: 1.02rem;
  line-height: 1.6;
  color: #111111;
}

.card-footer {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #888888;
}

.site-footer {
  border-top: 1px solid #dddddd;
  background-color: #ffffff;
}

.site-footer-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0.75rem 1rem 1.25rem 1rem;
    font-size: 0.85rem;
    color: #555555;
    text-align: center;  /* CENTER THE LINKS */
}

.site-footer-inner a {
    color: #555555;
    text-decoration: none;
    margin: 0 0.25rem;
}

.site-footer-inner a:hover {
    text-decoration: underline;
}

/* =====================================
   Print View — 4 Cards per Letter Page
   ===================================== */
@media print {

  body {
    background: #ffffff !important;
    margin: 0;
    padding: 0;
  }

  /* Hide site chrome for printing */
  .site-header,
  .site-footer {
    display: none !important;
  }

  /* 4-card layout: 2 columns x 2 rows */
  .cards-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5in !important;   /* spacing between cards */
    margin: 0.5in !important;
    padding: 0 !important;
  }

  /* Card print styling */
  .card {
    background: #ffffff !important;
    box-shadow: none !important;        /* remove shadows */
    border: 1px solid #222222 !important;
    border-radius: 10px !important;     /* keep rounded corners */
    padding: 0.4in !important;
    page-break-inside: avoid !important;
  }

  /* Typography adjustments */
  .card-title {
    font-size: 14pt !important;
    margin-bottom: 0.2in !important;
  }

  .card-text {
    font-size: 11pt !important;
    line-height: 1.45 !important;
  }
}
