/* Mr&Mrs Xu — /media (brand partnerships page).
   Loads after style.css and reuses its tokens (--paper, --ink, --accent …).
   Same rules as the link page: no external requests, no inline styles
   (the CSP forbids them), light + dark via prefers-color-scheme. */

.kit {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 20px calc(56px + env(safe-area-inset-bottom));
}

.kit a { color: var(--accent); }

/* ---------- top bar ---------- */

.kit-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
  font-size: 13px;
  color: var(--muted);
}

.kit-top__home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.kit-top__home img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.kit-top__tag {
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: center;
}

.hero__kicker,
.sec__kicker {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(40px, 7vw, 68px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.02em;
}

.hero__lede {
  margin: 18px 0 0;
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.5;
  max-width: 34em;
  text-wrap: pretty;
}

.hero__handles {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.hero__photo {
  display: block;
  margin: 0;
}

.hero__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 744 / 1296;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow);
  background: var(--paper-2);
}

/* ---------- stat strips ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.stat {
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.stat__n {
  display: block;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
}

.stat__l {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat__s {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

/* ---------- sections ---------- */

.sec {
  margin: 64px 0 0;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.sec__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.015em;
  max-width: 20em;
}

.sec__p {
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.6;
  max-width: 38em;
  text-wrap: pretty;
}

.sec__note {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  margin-top: 28px;
  align-items: start;
}

.who {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.who__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 900 / 1199;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow);
  background: var(--paper-2);
}

/* ---------- platform cards ---------- */

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.card__h {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.card__h small {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.card__glyph {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
}

.card__glyph svg {
  width: 100%;
  height: 100%;
  border-radius: 9px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12);
}

.card__big {
  display: block;
  margin: 18px 0 2px;
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 60px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
}

.card__big-l {
  display: block;
  font-size: 14px;
  color: var(--muted);
}

.card__list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  line-height: 1.5;
}

.card__list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
}

.card__list li span:last-child { font-weight: 600; white-space: nowrap; }

.card__foot {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--paper-2);
  font-size: 14px;
  line-height: 1.45;
}

.card__foot b { color: var(--accent); }

/* ---------- tables ---------- */

.tbl-wrap { overflow-x: auto; margin-top: 24px; }

.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.4;
}

.tbl th,
.tbl td {
  padding: 12px 14px;
  text-align: left;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.tbl thead th {
  border-top: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.tbl td.num,
.tbl th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

.tbl td.price { text-align: right; white-space: nowrap; font-weight: 700; font-size: 17px; }

.tbl tbody tr:last-child td { border-bottom: 1px solid var(--line); }

/* ---------- big-number row ---------- */

.bigs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.big__n {
  display: block;
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--accent);
}

.big__l {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 600;
}

.big__s {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

/* ---------- what's coming ---------- */

.coming {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 40px;
  align-items: start;
}

.coming__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 1026;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow);
  background: var(--paper-2);
}

.timeline {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.timeline li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  font-size: 15px;
  line-height: 1.45;
}

.timeline li b { color: var(--accent); }

.callout {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  background: var(--paper-2);
  border-radius: 0 12px 12px 0;
  font-size: 15px;
  line-height: 1.5;
}

/* ---------- formats ---------- */

.formats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.formats li {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  font-size: 15px;
  line-height: 1.5;
}

.formats li b {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

/* ---------- rates ---------- */

.rates {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-top: 8px;
}

.incl {
  padding: 22px 24px;
  border: 1px dashed var(--line);
  border-radius: 16px;
}

.incl h3 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.incl ul {
  margin: 0;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.7;
}

/* ---------- contact ---------- */

.contact {
  margin: 64px 0 0;
  padding: 36px 28px;
  border-radius: 20px;
  background: var(--accent);
  color: var(--on-accent);
  text-align: center;
}

.contact h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 700;
  line-height: 1.1;
}

.contact p {
  margin: 12px auto 0;
  max-width: 32em;
  font-size: 16px;
  line-height: 1.55;
  opacity: .9;
}

.contact__mail {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--on-accent);
  color: var(--accent);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.contact__mail:focus-visible { outline: 2px solid var(--on-accent); outline-offset: 3px; }

.contact__handles {
  margin: 16px 0 0;
  font-size: 14px;
  opacity: .9;
}

.contact__handles a { color: inherit; }

/* ---------- responsive ---------- */

@media (max-width: 820px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero__photo { max-width: 300px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .who { grid-template-columns: minmax(0, 1fr); }
  .who__photo { max-width: 360px; }
  .two { grid-template-columns: minmax(0, 1fr); }
  .bigs { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .coming { grid-template-columns: minmax(0, 1fr); }
  .coming__photo { max-width: 260px; }
  .rates { grid-template-columns: minmax(0, 1fr); }
  .formats { grid-template-columns: minmax(0, 1fr); }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .sec { margin-top: 48px; padding-top: 32px; }
}

@media (max-width: 480px) {
  .tbl { font-size: 14px; }
  .tbl th, .tbl td { padding: 10px 8px; }
  .tbl td.num, .tbl th.num { white-space: normal; }
  .tbl td.price { font-size: 15px; }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
}
