/* =========================================================
   THE MARK A. BRADFORD COLLECTION — EDITION ONE
   BUILD 001B.5 — RESPONSIVE BREAKPOINTS & UTILITIES
   ========================================================= */

/* ---------- Utility Classes ---------- */
.u-reading {
  width: 100%;
  max-width: var(--reading-max);
}

.u-center {
  margin-inline: auto;
}

.u-text-center {
  text-align: center;
}

.u-text-left {
  text-align: left;
}

.u-muted {
  color: var(--color-muted);
}

.u-accent {
  color: var(--color-accent);
}

.u-light {
  color: var(--color-white);
}

.u-full {
  width: 100%;
}

.u-stack-sm > * + * {
  margin-top: 0.75rem;
}

.u-stack-md > * + * {
  margin-top: 1.5rem;
}

.u-stack-lg > * + * {
  margin-top: 2.5rem;
}

.u-gap-sm {
  gap: 0.75rem !important;
}

.u-gap-md {
  gap: 1.5rem !important;
}

.u-gap-lg {
  gap: 3rem !important;
}

.u-no-margin {
  margin: 0 !important;
}

.u-no-padding {
  padding: 0 !important;
}

/* ---------- Image Utilities ---------- */
.image-frame {
  overflow: hidden;
  background: #ded8ce;
}

.image-frame--square {
  aspect-ratio: 1 / 1;
}

.image-frame--landscape {
  aspect-ratio: 4 / 3;
}

.image-frame--wide {
  aspect-ratio: 16 / 9;
}

.image-frame--portrait {
  aspect-ratio: 4 / 5;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Visibility Utilities ---------- */
.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

/* ---------- Safe Text Wrapping ---------- */
h1,
h2,
h3,
h4,
p,
li,
dd,
blockquote,
a {
  overflow-wrap: break-word;
  word-break: normal;
}

.site-nav,
.header-inner,
.site-header__inner,
.grid,
.split,
.home-feature__grid,
.home-selected__grid,
.home-editorial,
.home-pathways,
.home-closing__grid,
.footer__grid {
  min-width: 0;
}

.site-nav > *,
.grid > *,
.split > *,
.home-feature__grid > *,
.home-selected__grid > *,
.home-editorial > *,
.home-pathways > *,
.home-closing__grid > *,
.footer__grid > * {
  min-width: 0;
}

/* ---------- Large Desktop ---------- */
@media (min-width: 1440px) {
  :root {
    --page-max: 1360px;
    --gutter: clamp(72px, 7vw, 112px);
  }

  .site-header__inner {
    min-height: 96px;
  }

  .hero__content {
    width: min(100%, 820px);
  }

  .home-feature__grid,
  .home-closing__grid {
    gap: clamp(72px, 8vw, 128px);
  }
}

/* ---------- Standard Desktop ---------- */
@media (max-width: 1280px) {
  :root {
    --gutter: clamp(36px, 5vw, 72px);
  }

  .site-nav {
    gap: 18px;
  }

  .home-selected__grid {
    gap: 32px 22px;
  }
}

/* ---------- Tablet Landscape ---------- */
@media (max-width: 1100px) {
  :root {
    --reading-max: 660px;
  }

  .site-shell {
    width: min(var(--page-max), calc(100% - (var(--gutter) * 2)));
  }

  .split,
  .home-feature__grid,
  .home-closing__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-editorial {
    grid-template-columns: 1fr;
  }

  .home-editorial__image {
    min-height: 560px;
  }

  .home-pathways {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

/* ---------- Tablet Portrait ---------- */
@media (max-width: 900px) {
  :root {
    --gutter: 32px;
  }

  body {
    font-size: 15.5px;
  }

  .section {
    padding-block: 84px;
  }

  .section--compact {
    padding-block: 60px;
  }

  .home-selected__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-selected__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-feature__copy,
  .home-editorial__copy,
  .home-closing__grid > div:last-child {
    max-width: 100%;
  }

  .page-hero,
  .about-hero {
    padding-top: 86px;
    padding-bottom: 70px;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 700px) {
  :root {
    --gutter: 22px;
    --reading-max: 100%;
  }

  body {
    font-size: 15px;
  }

  h1 {
    font-size: clamp(3.35rem, 16vw, 5.5rem);
    line-height: 0.86;
  }

  h2 {
    font-size: clamp(2.65rem, 12vw, 4.2rem);
    line-height: 0.96;
  }

  h3 {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
  }

  .site-shell {
    width: calc(100% - 44px);
  }

  .section {
    padding-block: 72px;
  }

  .section--compact {
    padding-block: 52px;
  }

  .grid--2,
  .grid--3,
  .grid--4,
  .home-selected__grid,
  .collection-grid {
    grid-template-columns: 1fr;
  }

  .home-editorial__image {
    min-height: 430px;
  }

  .home-editorial__copy {
    padding: 44px 24px 52px;
  }

  .home-pathway {
    min-height: 520px;
  }

  .home-pathway__copy {
    left: 24px;
    right: 24px;
    bottom: 30px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__brand {
    grid-column: auto;
  }

  .footer__bottom {
    display: grid;
    justify-content: start;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }
}

/* ---------- Small Mobile ---------- */
@media (max-width: 420px) {
  :root {
    --gutter: 18px;
  }

  .site-shell {
    width: calc(100% - 36px);
  }

  .brand strong {
    font-size: 0.74rem;
    letter-spacing: 0.14em;
  }

  .brand span {
    font-size: 0.49rem;
  }

  .btn {
    width: 100%;
  }

  .hero__actions {
    width: 100%;
  }

  .hero__actions .text-link {
    width: auto;
  }

  .home-editorial__copy,
  .home-pathway__copy {
    padding-left: 0;
    padding-right: 0;
  }
}

/* ---------- Print ---------- */
@media print {
  .site-header,
  .footer,
  .menu-toggle,
  .hero__scroll,
  .btn,
  .text-link {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .site-shell {
    width: 100%;
    max-width: none;
  }

  .section {
    padding-block: 24px;
  }

  a {
    text-decoration: none;
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
