/* ============================================================
   Sub-Etha Press — press.html page styles.
   Loaded after styles.css; layout only, tokens come from :root.
   ============================================================ */

/* ---------- Header ---------- */
.press-header { width: 100%; max-width: var(--maxw-wide); padding: clamp(36px, 8vh, 72px) 0 0; }
.press-header .rule { margin: 36px 0; }
.press-header .cta-row { margin: 32px 0 0; }

.title-row { display: flex; align-items: flex-end; gap: 28px; flex-wrap: wrap; margin: 44px 0 0; }

/* .title-row__mark, .doc-title, .doc-kicker, .doc-lede: shared, see styles.css */

/* ---------- Sections ---------- */
.doc-section--facts { padding-top: clamp(48px, 7vh, 72px); }
/* .doc-section, .doc-h2, .tile: shared, see styles.css */
.section-lede {
  font-size: var(--text-body);
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted);
  margin: 14px 0 0;
  max-width: var(--measure);
  text-wrap: pretty;
}

/* ---------- Tile grids (1px gridline strips) ---------- */
.tile-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin: 32px 0 0;
}
.tile-grid--facts  { grid-template-columns: repeat(2, 1fr); margin: 0; }
.tile-grid--covers { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.tile-grid--marks  { grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); }
.tile-grid--pairs  { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 14px 0 0; }
.tile-grid--triple { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile-grid--social { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
@media (min-width: 720px) { .tile-grid--facts { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .tile-grid--pairs, .tile-grid--triple { grid-template-columns: 1fr; } }

/* ---------- Quick facts ---------- */
.fact { padding: 18px 20px; }
.fact__label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--dim);
  margin: 0;
}
.fact__value { font-size: 14px; color: var(--text); margin: 8px 0 0; }

/* ---------- Asset cards ---------- */
.asset-card { padding: 28px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.asset-card--marks { padding: 26px; gap: 18px; }
.asset-card__meta { text-align: center; }
.asset-card__name { font-size: var(--text-sm); font-weight: 600; color: var(--text); margin: 0; }
.asset-card__sub  { font-size: var(--text-sm); font-weight: 300; color: var(--dim); margin: var(--space-1) 0 var(--space-2); }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 6px 10px;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
}
.pill--lg { padding: 7px 14px; }

/* ---------- Book imagery ---------- */
.img-cover-flat {
  width: 150px;
  height: auto;
  aspect-ratio: 570 / 856;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.6);
}
.img-cover-3d { width: 170px; height: auto; object-fit: contain; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5)); }
/* Equal-height image wells so all three cover captions share one baseline;
   match the spine-row's fixed 228px, contain + center, no distortion */
.tile-grid--covers .asset-card { justify-content: flex-start; }
.tile-grid--covers .img-cover-flat { width: auto; height: 228px; object-fit: contain; }
.tile-grid--covers .img-cover-3d   { width: auto; height: 228px; }
.spine-row { display: flex; gap: 16px; align-items: center; height: 228px; max-width: 100%; }
.img-spine {
  height: 220px;
  width: auto;
  border-radius: 2px;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.6);
}
.img-spread {
  height: 150px;
  width: auto;
  min-width: 0;
  max-width: 100%;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.6);
}

/* ---------- Panels ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: clamp(28px, 4vw, 44px);
  margin: 14px 0 0;
}
.panel--section { margin: 32px 0 0; }
.panel__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--dim);
  margin: 0;
}
.panel__quote {
  font-family: var(--serif);
  font-size: clamp(19px, 2.6vw, 24px);
  line-height: 1.4;
  color: var(--text);
  margin: 20px 0 0;
  max-width: 640px;
  text-wrap: pretty;
}
.panel__body {
  font-size: var(--text-body);
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted);
  margin: 20px 0 0;
  max-width: var(--measure);
  text-wrap: pretty;
}
.panel__body + .panel__body { margin-top: var(--space-2); }
.panel__body em { font-family: var(--serif); font-style: italic; color: var(--text); }
.panel > .pill--lg { margin: 22px 0 0; }

/* ---------- Brand mark tiles ---------- */
.mark-frame {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: 4px;
}
.mark-frame--light { background: #F4F7F1; }
.mark-frame img { height: 78px; width: auto; }
/* Bottom-anchor the pill row so all four mark tiles' pills align on one line,
   even when "Mono (reversed)" has a single pill vs three on the others */
.asset-card--marks .asset-card__meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.asset-card--marks .pill-row { margin-top: auto; }

/* ---------- Media tiles (wordmark / palette / lockups / social) ---------- */
.media-tile { display: flex; flex-direction: column; }
.media-tile__preview {
  flex: 1;
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--bg);
}
.media-tile__preview--light { background: #F4F7F1; }
.media-tile__preview--short { min-height: 120px; }
/* Palette + type-specimen: equal-height framed thumbnails on the tile surface,
   image centered + contained (the letterbox is a deliberate frame, not a mask) */
.tile-grid--pair-frames .media-tile__preview {
  flex: none;        /* override base flex:1 (basis 0%) so the fixed height applies */
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  padding: 24px;
}
.tile-grid--pair-frames .media-tile__preview img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.media-tile__img { width: 100%; height: auto; display: block; }
.media-tile__bar {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.media-tile__bar--sm { padding: 14px 18px; }
.media-tile__caption { font-size: var(--text-sm); color: var(--muted); }
.media-tile__name { font-size: var(--text-sm); font-weight: 600; color: var(--text); margin: 0; }
.media-tile__desc { font-size: var(--text-sm); font-weight: 300; color: var(--dim); margin: 4px 0 0; }
.media-tile__links { display: flex; gap: 7px; }
.media-tile__bar .pill { flex: 0 0 auto; padding: 5px 9px; }

.icon-row { display: flex; align-items: center; justify-content: center; gap: 18px; }
.img-wordmark { width: 82%; max-width: 300px; height: auto; }
.img-lockup   { width: 88%; max-width: 320px; height: auto; }
.img-avatar   { width: 78px; height: 78px; border-radius: 8px; }
.img-appicon  { width: 46px; height: 46px; border-radius: 6px; }
.img-favicon  { width: 32px; height: 32px; border-radius: 4px; }
/* Social previews — true aspect ratio, no distortion (height:auto/object-fit
   override the intrinsic width/height attrs; attrs still give CLS-safe ratio) */
.img-banner    { width: 100%; height: auto; border-radius: 2px; }               /* wide banners: full-width, true ratio */
.img-ig-square { width: auto; height: 200px; aspect-ratio: 1 / 1;  object-fit: contain; border-radius: 2px; }
.img-ig-story  { width: auto; height: 240px; aspect-ratio: 9 / 16; object-fit: contain; border-radius: 2px; }

.footnote { font-size: var(--text-sm); font-weight: 300; color: var(--dim); margin: var(--space-2) 0 0; text-wrap: pretty; }

/* ---------- Author ---------- */
.author-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin: 32px 0 0;
}
.author-photo {
  flex: 1 1 260px;
  min-width: 0;
  background: var(--surface);
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.img-author {
  width: 100%;
  max-width: 260px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  filter: grayscale(1);
}
.author-bios {
  flex: 2 1 360px;
  min-width: 0;
  background: var(--surface);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.author-bios > .pill--lg { align-self: flex-start; }
.bio { border-bottom: 1px solid var(--border); padding-bottom: 20px; }
.bio__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.bio__label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--dim);
}
.bio__text { font-size: var(--text-body); font-weight: 300; line-height: 1.7; color: var(--muted); margin: 0; text-wrap: pretty; }

/* ---------- Fact sheet ---------- */
.panel--split {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
}
.factsheet__text { flex: 1 1 300px; min-width: 0; }
.factsheet__body { font-size: var(--text-body); font-weight: 300; line-height: 1.7; color: var(--muted); margin: 0; max-width: var(--measure); text-wrap: pretty; }
.isbn-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: var(--space-3) 0 0; }
.isbn { font-size: var(--text-sm); color: var(--dim); }
.isbn span { color: var(--text); }
.factsheet__ctas { flex: 0 1 auto; min-width: 0; display: flex; gap: 12px; flex-wrap: wrap; }
.btn--dim {
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  padding: 0 22px;
}

/* ---------- Hover states ---------- */
@media (hover: hover) and (pointer: fine) {
  .pill:hover { border-color: var(--gold); }
  .btn--dim:hover { color: var(--gold); border-color: var(--gold); }
}
