/* Men's section (2026-11-16): landing and nine category pages built by tools/build-mens.py.
   Even grid: 2:3 frames (round 1 framing), three to a row on a computer, two on a phone. */
.page-mens main { padding-bottom: clamp(3rem, 2rem + 3vw, 6rem); }
.m-head .j-head__standfirst { max-width: 62ch; }
.m-chips {
  display: flex; flex-wrap: wrap; gap: 0.55rem 0.6rem;
  padding: clamp(1.6rem, 1rem + 1.5vw, 2.4rem) var(--gutter, 6vw) 0;
}
.m-chips a {
  border: 1px solid rgba(199, 167, 118, 0.35); border-radius: 999px; padding: 0.55rem 1rem;
  color: #e9e6e1; text-decoration: none; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.62rem;
  transition: color .25s ease, border-color .25s ease;
}
.m-chips a:hover, .m-chips a:focus-visible { color: var(--oro); border-color: var(--oro); }
.m-chips a[aria-current="page"] { background: var(--oro); border-color: var(--oro); color: var(--negro); }
.m-grid, .m-tiles {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.5rem); padding: clamp(1.6rem, 1rem + 2vw, 3rem) var(--gutter, 6vw) 0;
}
@media (min-width: 900px) { .m-grid, .m-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .m-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.m-card { margin: 0; }
.m-card img, .m-tile img {
  display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; background: #f4f2ee;
}
/* Round 1 (Marco, 2026-11-16): model photos are cut to his framing per category as 2:3 frames; a product shot is shown whole. */
.m-card:not(.m-card--model) img { object-fit: contain; }
.m-card figcaption {
  margin-top: 0.55rem; font-size: 0.66rem; letter-spacing: 0.12em; color: color-mix(in srgb, #e9e6e1 78%, transparent);
  overflow-wrap: anywhere;
}
.m-tile { position: relative; display: block; color: #e9e6e1; text-decoration: none; }
.m-tile__name {
  display: block; margin-top: 0.8rem; font-family: var(--font-headline); font-size: clamp(1.15rem, 1rem + 0.8vw, 1.7rem);
}
.m-tile__count { display: block; margin-top: 0.25rem; font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: .7; }
.m-tile:hover .m-tile__name, .m-tile:focus-visible .m-tile__name { color: var(--oro); }
.m-cta { padding: clamp(2.5rem, 2rem + 2vw, 4rem) var(--gutter, 6vw) 0; text-align: center; }
.m-cta__btn {
  display: inline-block; border: 1px solid var(--oro); color: var(--oro); text-decoration: none;
  text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.7rem; padding: 1rem 1.8rem;
}
.m-cta__btn:hover, .m-cta__btn:focus-visible { background: var(--oro); color: var(--negro); }
@media (max-width: 599px) { .m-card figcaption { letter-spacing: 0.04em; font-size: 0.6rem; } }
/* Women landing in the Men's format (2026-11-17): the page keeps the journal post body for Emily's shoot below,
   so its crumb, head spacing and standfirst width are brought back to the Men's landing values. */
.page-womens .w-collection > .m-head:first-child { padding-top: clamp(1.6rem, 1rem + 1.6vw, 2.6rem); }
.page-womens .m-head .j-head__standfirst { max-width: 62ch; }
/* Desktop and wide screens (Bryan 2026-11-17 21:11 DR, "too optimized for phone"): the Men's and Women's pages get a
   centred measure like the home page shell, a little wider (100rem) because they are catalog grids, so a 2560 screen
   adds margin instead of giant photos. Product grids: 4 to a row from 1280, 5 from 1920; category tiles stay at 4. */
@media (min-width: 900px) {
  .page-mens { --shell-wide: 100rem; }
  .page-mens .j-crumb, .page-mens .j-head, .page-mens .m-chips, .page-mens .m-grid, .page-mens .m-tiles, .page-mens .m-cta,
  .page-womens.page-journal--post .j-crumb {
    padding-inline: max(var(--gutter, 6vw), calc((100% - var(--shell-wide)) / 2));
  }
}
@media (min-width: 1280px) { .m-grid, .m-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1920px) { .m-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
