/* =========================================================
   FILE: /css/fgh.utilities.css
   SYSTEM: FGH v3
   PURPOSE: Static utility layer — replaces Tailwind runtime
   ---------------------------------------------------------
   Generated from a full class audit of FGH 2.75 Production
   (index.html, flyout.html, all posts/articles, all JS-emitted
   markup). Contains ONLY the utilities actually in use, plus
   a minimal preflight subset that preserves the resets the
   Tailwind browser build was silently providing.

   LOAD ORDER: link this FIRST among stylesheets, so the
   fgh.* feature files retain override authority.

   CANONICAL BREAKPOINTS (single source of truth):
     md  = 640px   (FGH desktop breakpoint)
     lg  = 1024px
========================================================= */

/* =========================================================
   PREFLIGHT SUBSET
   ---------------------------------------------------------
   The Tailwind browser build shipped a global reset the site
   currently renders against. These rules preserve the pieces
   FGH actually depends on. Do not remove without re-testing:
     • header h1 sizing/margins
     • intro <p> spacing (mt-* assumes zeroed base margins)
     • grandpa portrait centering (img as block + mx-auto)
     • archive/post links (inherited color, no underline)
     • comment form fonts (inputs inherit Alegreya)
========================================================= */

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

*,
::before,
::after {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
figure,
hr {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

a {
  color: inherit;
  text-decoration: inherit;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}

button,
select {
  text-transform: none;
}

/* =========================================================
   DISPLAY
========================================================= */

.block {
  display: block;
}

.hidden {
  display: none;
}

/* =========================================================
   TYPOGRAPHY
========================================================= */

.italic {
  font-style: italic;
}

.font-semibold {
  font-weight: 600;
}

.leading-tight {
  line-height: 1.25;
}

.no-underline {
  text-decoration-line: none;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-red-600 {
  color: #dc2626;
}

/* =========================================================
   SPACING — MARGIN
========================================================= */

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.ml-5 {
  margin-left: 1.25rem;
}

.ml-8 {
  margin-left: 2rem;
}

.mr-5 {
  margin-right: 1.25rem;
}

.my-4 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   SPACING — PADDING
========================================================= */

.pt-4 {
  padding-top: 1rem;
}

.pt-6 {
  padding-top: 1.5rem;
}

/* =========================================================
   SIZING
========================================================= */

.min-w-0 {
  min-width: 0;
}

.w-60 {
  width: 15rem;
}

.w-full {
  width: 100%;
}

.h-auto {
  height: auto;
}

/* =========================================================
   OPACITY
========================================================= */

.opacity-80 {
  opacity: 0.8;
}

.opacity-90 {
  opacity: 0.9;
}

.opacity-95 {
  opacity: 0.95;
}

/* =========================================================
   RESPONSIVE — md (640px, FGH desktop breakpoint)
   ---------------------------------------------------------
   Placed after base utilities so variants win at equal
   specificity (e.g. "block md:hidden" hides at md+).
========================================================= */

@media (min-width: 640px) {
  .md\:block {
    display: block;
  }

  .md\:hidden {
    display: none;
  }

  .md\:text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }

  .md\:text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }

  .md\:text-5xl {
    font-size: 3rem;
    line-height: 1;
  }
}

/* =========================================================
   RESPONSIVE — lg (1024px)
========================================================= */

@media (min-width: 1024px) {
  .lg\:text-base {
    font-size: 1rem;
    line-height: 1.5rem;
  }
}
