/* Bradford LL */
@font-face {
  font-family: 'Bradford LL';
  src: url('/fonts/BradfordLLWeb-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bradford LL';
  src: url('/fonts/BradfordLLWeb-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Bradford LL';
  src: url('/fonts/BradfordLLWeb-Regular.woff2') format('woff2');
  font-weight: 450;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bradford LL';
  src: url('/fonts/BradfordLLWeb-Italic.woff2') format('woff2');
  font-weight: 450;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Bradford LL';
  src: url('/fonts/BradfordLLWeb-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bradford LL';
  src: url('/fonts/BradfordLLWeb-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* Red Hat Mono */
@font-face {
  font-family: 'Red Hat Mono';
  src: url('/fonts/RedHatMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Red Hat Mono';
  src: url('/fonts/RedHatMono-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

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

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  background-color: #FAF7EF;
  color: #251D19;
  font-family: Georgia, serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

/* ─── Mobile Responsive Utilities ─────────────────────────── */

/* Hide on mobile, show on desktop */
@media (max-width: 768px) {
  .r-desktop-only { display: none !important; }
}

/* Show on mobile, hide on desktop */
.r-mobile-only { display: none !important; }
@media (max-width: 768px) {
  .r-mobile-only { display: block !important; }
}

@media (max-width: 768px) {
  /* Flex row → column stack */
  .r-col { flex-direction: column !important; }

  /* 2-column grid → single column */
  .r-2col { grid-template-columns: 1fr !important; }

  /* 3-column grid → single column */
  .r-3col { grid-template-columns: 1fr !important; }

  /* 3-col belief rows (auto 1fr 1.5fr) → flex column */
  .r-belief { display: flex !important; flex-direction: column !important; gap: 10px !important; }

  /* Remove sticky positioning on mobile */
  .r-unstick { position: static !important; }

  /* Horizontal scroll for blog card rows */
  .r-news-scroll {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    flex-wrap: nowrap !important;
    padding-bottom: 12px !important;
  }

  /* Add side padding to the news section on mobile */
  .r-news-section {
    padding-left: 16px !important;
    padding-right: 16px !important;
    flex-direction: column !important;
    gap: 28px !important;
  }

  /* Full width for any constrained child */
  .r-full { width: 100% !important; min-width: 0 !important; max-width: 100% !important; }
}

