/* ---- Fonts ---- */
@font-face {
  font-family: 'Rosemary';
  src: url('../fonts/TAYRosemary.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Wingman';
  src: url('../fonts/TAYWingman.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Page base: Wingman for body copy */
body.issue-page { font-family: 'Wingman', sans-serif; }

/* Titles in Rosemary */
.issue-hero-left h1,
.issue-hero-left h2,
.artist-tile-label { 
  font-family: 'Rosemary', sans-serif; 
}


/* ====== ISSUE PAGE BASE ====== */
body.issue-page {
  background:#fff;
  font-family:'Wingman', sans-serif;
  color:#000;
  margin:0;
  padding-top:48px; /* header space */
}

/* ====== TOP SECTION ====== */
.issue-hero {
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:48px;
  max-width:1200px;
  margin:80px auto 64px;
  padding:0 5%;
  align-items:start;
}

.issue-text h1 {
  font-family:'Rosemary', serif;
  font-size:clamp(2rem,4vw,3.5rem);
  margin:0 0 1rem;
  color:#d77c82;
}
.issue-text h2 {
  font-family:'Rosemary', serif;
  font-size:clamp(1.2rem,2vw,1.6rem);
  font-weight:400;
  margin:0 0 1.5rem;
}
.issue-text p {
  font-family:'Wingman', sans-serif;
  line-height:1.6;
  font-size:1rem;
  max-width:60ch;
}

/* Make the cover smaller on the right column */
.issue-hero-right img,
.issue-cover img {
  width: auto !important;   /* override any lingering width:100% */
  max-width: 420px;         /* pick your size (try 360–420px) */
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

/* keep layout tidy */
.issue-hero { align-items: start; }
.issue-hero-right {
  display: flex;
  justify-content: flex-end;  /* pushes image to the right edge */
  align-items: flex-start;    /* top aligns with the text column */
}


/* ====== ARTIST GRID ====== */
.artist-grid {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap:32px;
  max-width:1200px;
  margin:0 auto 100px;
  padding:0 5%;
}

.artist-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
}

.artist-tile img{
  width: 100%;
  height: 100%;
  object-fit: cover;     /* square crop */
  display: block;
  transition: transform .35s ease;
}
.artist-tile:hover img { transform: scale(1.04); }

/* Visible label */
.artist-tile-label{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: .6rem .8rem;
  text-align: center;
  font-size: 1rem;
  line-height: 1.2;
  color: #fff;
  background: #d77c82; /* #d3709a */
  opacity: 1;                        /* always visible */
  transition: opacity .25s ease;
}
/* If you prefer only-on-hover, set opacity:0 above and use: */
/* .artist-tile:hover .artist-tile-label { opacity: 1; } */


/* ====== RESPONSIVE ====== */
@media (max-width:900px){
  .issue-hero{
    grid-template-columns:1fr;
    gap:32px;
    margin-top:64px;
  }
}

/* ----- v1i1 editor's note mobile guardrails ----- */
.v1i1 .editor-note, 
.v1i1 .editor-intro {
  box-sizing: border-box;
  margin: 0 auto;
  width: 100%;
  max-width: 68ch;          /* comfy text width on desktop */
}

@media (max-width: 768px) {
  .v1i1 .editor-note,
  .v1i1 .editor-intro {
    padding-left: 16px;     /* safe gutters on phones */
    padding-right: 16px;
    max-width: 100%;
  }
}

/* prevent any child from pushing wide */
.v1i1 .editor-note *,
.v1i1 .editor-intro * {
  max-width: 100%;
  overflow-wrap: anywhere;  /* wrap long words/URLs */
  word-break: break-word;
}

/* media won’t overflow */
.v1i1 .editor-note img,
.v1i1 .editor-note video,
.v1i1 .editor-note svg {
  height: auto;
  max-width: 100%;
}

/* if you used any "fullbleed" helper, keep it inside on mobile */
@media (max-width: 768px) {
  .v1i1 .editor-note .fullbleed,
  .v1i1 .editor-intro .fullbleed {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

/* make padding part of the width so it can't exceed the viewport */
.issue-hero { box-sizing: border-box; }

/* mobile: keep the text comfortably inside the viewport */
@media (max-width: 768px) {
  .issue-hero { padding-left: 16px; padding-right: 16px; }

  .issue-text,
  .issue-text * {
    box-sizing: border-box;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* ensure the cover can't push wider on single-column layout */
  .issue-hero-right img,
  .issue-cover img {
    max-width: 100%;
  }
}

/* make grid children allowed to shrink; fixes sneaky horizontal scroll */
.issue-hero > * { min-width: 0; }

/* ensure padding doesn't push the grid wider than the viewport */
.issue-hero { box-sizing: border-box; }

@media (max-width: 768px) {
  .issue-hero { padding-left: 16px; padding-right: 16px; }
  .issue-hero-right img,
  .issue-cover img { max-width: 100%; height: auto; }
}

/* target the actual class in your HTML */
.editors-note,
.editors-note * {
  box-sizing: border-box;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
