/* Editorial companion to the approved Re-Buy Hard handout. */
html.rebuy-hard-page,
body.rebuy-hard-page{
  background:#0a0d12;
}

.rebuy-hard-page .rebuy-page{
  max-width:1240px;
  padding-top:26px;
  padding-bottom:35px;
  color:var(--gold);
}

.rebuy-page-hero{
  --site-page-hero-accent-rgb:255,184,28;
  --site-page-hero-secondary-rgb:34,197,94;
  margin-bottom:26px;
}

.rebuy-audio{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(260px,420px);
  align-items:center;
  gap:18px 28px;
  margin-bottom:26px;
  padding:22px 26px;
  border:1px solid rgba(255,184,28,.3);
  border-radius:16px;
  background:linear-gradient(110deg,rgba(255,184,28,.07),transparent 65%),#10151c;
}

.rebuy-audio-heading{
  display:flex;
  align-items:center;
  gap:18px;
  min-width:0;
}

.rebuy-audio-avatar{
  width:112px;
  height:112px;
  flex:0 0 112px;
  border:2px solid var(--gold);
  border-radius:50%;
  object-fit:cover;
  background:#17130d;
}

.rebuy-audio h2{
  margin:0 0 6px;
  color:var(--gold);
  font-size:21px;
  line-height:1.3;
}

.rebuy-audio p{
  margin:0;
  color:#d8c9aa;
  font-size:14px;
  line-height:1.5;
}

.rebuy-audio audio{
  display:block;
  width:100%;
  min-width:0;
  color-scheme:dark;
  accent-color:var(--gold);
}

.rebuy-kicker{
  margin:0 0 22px;
  font-size:12px;
  font-weight:800;
  line-height:1.6;
  letter-spacing:.2em;
  text-transform:uppercase;
}

.rebuy-download{
  justify-content:center;
  min-height:48px;
  text-align:center;
}

.rebuy-page a:focus-visible{
  outline:3px solid #fff;
  outline-offset:6px;
}

.rebuy-deck{
  position:relative;
  width:100%;
  max-width:470px;
  height:410px;
  margin:0 auto;
  isolation:isolate;
}

.rebuy-deck::before{
  content:"";
  position:absolute;
  inset:6% -3% 2%;
  border:1px solid #5d4215;
  border-radius:50%;
  transform:rotate(-24deg);
  z-index:-1;
}

.rebuy-deck::after{
  content:"✦";
  position:absolute;
  top:5%;
  right:5%;
  font-size:28px;
}

.rebuy-photo-card{
  position:absolute;
  display:flex;
  flex-direction:column;
  width:47%;
  height:285px;
  padding:12px;
  border:1px solid var(--gold);
  border-radius:12px;
  background:#10100c;
  box-shadow:0 16px 30px #000c;
  transition:transform .25s ease,box-shadow .25s ease;
}

.rebuy-photo-card--room{
  top:35px;
  left:0;
  transform:rotate(-15deg);
}

.rebuy-photo-card--felt{
  top:20px;
  right:0;
  transform:rotate(13deg);
}

.rebuy-photo-card--bounties{
  top:110px;
  left:27%;
  z-index:1;
  transform:rotate(-3deg);
}

.rebuy-card-index{
  display:flex;
  align-items:center;
  gap:5px;
  height:25px;
  margin-bottom:8px;
  color:var(--gold);
  font:700 23px/1 Georgia,serif;
}

.rebuy-card-index span{
  font-size:18px;
}

.rebuy-photo-card img{
  width:100%;
  min-height:0;
  flex:1;
  border-radius:3px;
  object-fit:cover;
}

.rebuy-photo-card--room img{
  object-position:44% 55%;
}

.rebuy-photo-card--felt img{
  object-position:50% 50%;
}

.rebuy-photo-card--bounties img{
  object-position:56% 58%;
}

.rebuy-card-label{
  display:flex;
  justify-content:space-between;
  gap:5px;
  padding-top:12px;
  color:var(--gold);
  font-size:10px;
  font-weight:800;
  line-height:1.2;
  letter-spacing:.12em;
  text-transform:uppercase;
}

@media (hover:hover){
  .rebuy-photo-card:hover{
    z-index:3;
    transform:translateY(-14px) rotate(0);
    box-shadow:0 22px 45px #000;
  }
}

.rebuy-poem{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:55px;
  padding:36px;
  border:1px solid rgba(255,184,28,.25);
  border-radius:22px;
  background:
    radial-gradient(ellipse at top left,rgba(255,184,28,.025),transparent 55%),
    linear-gradient(rgba(0,0,0,.15),rgba(0,0,0,.28)),
    url("images/rebuy-hard/poem-suit-pattern.svg?v=20261023-2") repeat,
    #000;
  background-size:auto,auto,192px 192px;
  scroll-margin-top:115px;
}

.rebuy-poem-column{
  min-width:0;
}

.rebuy-stanza{
  margin:0 0 25px;
  color:var(--gold);
  font-family:inherit;
  font-size:clamp(17px,1.4vw,18px);
  font-weight:500;
  line-height:1.9;
}

.rebuy-stanza:last-child{
  margin-bottom:0;
}

.rebuy-line{
  display:block;
  padding-left:15px;
  text-indent:-15px;
}

.rebuy-media{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);
  align-items:center;
  gap:38px;
  margin:42px 0;
}

.rebuy-chip-scene{
  position:relative;
  min-width:0;
  margin:0;
  padding-bottom:14px;
}

.rebuy-chip-photo{
  position:relative;
  display:block;
  overflow:hidden;
  height:350px;
  clip-path:polygon(3% 0,100% 0,97% 100%,0 100%);
  background:#0c0d08;
}

.rebuy-chip-photo::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,#000 0%,#000d 17%,#0004 46%,transparent 72%),linear-gradient(0deg,#0008,transparent 50%);
  pointer-events:none;
}

.rebuy-chip-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:60% 40%;
  transform:scale(1.22) rotate(-3deg);
  transform-origin:65% 32%;
}

.rebuy-chip-scene figcaption{
  position:absolute;
  top:50%;
  left:30px;
  display:grid;
  max-width:310px;
  gap:16px;
  color:var(--gold);
  transform:translateY(-50%);
  pointer-events:none;
}

.rebuy-chip-scene figcaption .rebuy-kicker{
  margin:0;
}

.rebuy-chip-scene figcaption>span:last-child{
  font-family:inherit;
  font-size:clamp(28px,3.1vw,42px);
  font-weight:800;
  line-height:1.15;
  letter-spacing:-.025em;
}

.rebuy-print{
  display:grid;
  grid-template-columns:190px minmax(0,1fr);
  align-items:center;
  gap:48px;
  padding:42px;
  border:1px solid rgba(255,184,28,.25);
  border-radius:22px;
  background:#0c1015;
}

.rebuy-print-preview{
  display:block;
  border:1px solid #6b4b12;
}

.rebuy-print-preview img{
  width:100%;
}

.rebuy-print h2{
  margin:0 0 16px;
  font-family:inherit;
  font-size:clamp(28px,4vw,42px);
  font-weight:800;
  line-height:1.2;
}

.rebuy-print p:not(.rebuy-kicker){
  max-width:470px;
  margin:0 0 23px;
  color:#d8c9aa;
  font-size:15px;
  line-height:1.7;
}

@media (max-width:850px){
  .rebuy-media{grid-template-columns:1fr;gap:25px;}
  .rebuy-deck{max-width:420px;height:410px;}
  .rebuy-poem{grid-template-columns:1fr;gap:25px;padding:28px;}
  .rebuy-stanza{font-size:18px;}
  .rebuy-chip-photo{height:300px;}
}

@media (max-width:560px){
  .rebuy-audio{grid-template-columns:1fr;padding:20px 18px;gap:15px;}
  .rebuy-audio-heading{gap:14px;}
  .rebuy-audio-avatar{width:96px;height:96px;flex-basis:96px;}
  .rebuy-hard-page .rebuy-page{padding-top:25px;}
  .rebuy-kicker{font-size:10px;letter-spacing:.16em;}
  .rebuy-deck{width:90%;max-width:340px;height:340px;margin-top:8px;}
  .rebuy-photo-card{height:235px;padding:9px;}
  .rebuy-photo-card--room{top:24px;}
  .rebuy-photo-card--felt{top:14px;}
  .rebuy-photo-card--bounties{top:90px;left:25%;}
  .rebuy-card-label{font-size:8px;letter-spacing:.06em;}
  .rebuy-download{padding:12px 15px;}
  .rebuy-poem{padding:24px 18px;border-radius:17px;scroll-margin-top:90px;}
  .rebuy-stanza{font-size:17px;line-height:1.85;margin-bottom:26px;}
  .rebuy-media{margin:30px 0;}
  .rebuy-chip-photo{height:250px;}
  .rebuy-chip-photo::after{background:linear-gradient(0deg,#000e,transparent 85%);}
  .rebuy-chip-scene figcaption{top:auto;bottom:35px;left:20px;max-width:230px;gap:10px;transform:none;}
  .rebuy-chip-scene figcaption>span:last-child{font-size:30px;}
  .rebuy-print{grid-template-columns:1fr;gap:26px;padding:24px;}
  .rebuy-print-preview{max-width:170px;}
}

@media (prefers-reduced-motion:reduce){
  .rebuy-photo-card{transition:none;}
}
