/* Homepage — live teasers + Should polish */

/* —— Hero —— */
.home-hero{position:relative}

/* —— Hubs —— */
.home-hubs{gap:14px;padding-top:14px;padding-bottom:6px}
.home-hubs .hub-card{
  min-height:196px;border-radius:14px;padding:20px 18px;
  border:1px solid rgba(255,255,255,.06);
  transition:transform .25s ease,box-shadow .25s ease;
}
.home-hubs .hub-card:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 36px rgba(0,0,0,.28);
}
.home-hubs .hub-card .smallcaps{color:var(--lime);letter-spacing:.16em}
.home-hubs .hub-card h2{
  font-family:var(--serif);font-size:clamp(1.2rem,1.8vw,1.45rem);
  margin:10px 0 8px;letter-spacing:-.03em;
}
.home-hubs .hub-card p{font-size:13px;max-width:22ch;line-height:1.45;opacity:.9}
.home-hubs .hub-arrow{
  width:36px;height:36px;border-color:rgba(255,255,255,.55);
  transition:background .2s ease,border-color .2s ease,color .2s ease;
}
.home-hubs .hub-card:hover .hub-arrow{
  background:var(--lime);border-color:var(--lime);color:var(--forest-3,#001d16);
}

/* —— More of the archive rail —— */
.home-rail{
  display:flex;flex-wrap:wrap;gap:8px;align-items:center;
  padding-top:4px;padding-bottom:14px;
}
.home-rail a{
  display:inline-flex;align-items:center;gap:8px;
  padding:9px 14px;border-radius:999px;
  border:1px solid #d2d3c9;background:#fff;color:var(--forest);
  font-size:12px;font-weight:750;text-decoration:none;
  transition:background .15s ease,border-color .15s ease,color .15s ease;
}
.home-rail a [data-icon]{font-size:15px;opacity:.7}
.home-rail a:hover{border-color:#a8b9a6;background:#f3f6f2}

/* —— Featured shirt spotlight —— */
.home-spotlight{padding-top:10px;padding-bottom:8px}
.home-spot{
  display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.95fr);
  gap:0;overflow:hidden;isolation:isolate;
  border-radius:20px;border:1px solid #dfe4dc;
  background:
    radial-gradient(70% 80% at 18% 30%,rgba(177,238,120,.16),transparent 55%),
    linear-gradient(135deg,#fbfaf5 0%,#f3f6f1 48%,#eef3ee 100%);
  box-shadow:0 18px 40px rgba(7,27,21,.08);
}
.home-spot-stage{
  position:relative;display:grid;place-items:center;
  min-height:520px;padding:12px 8px 16px;
  background:
    linear-gradient(180deg,rgba(4,31,23,.04),rgba(4,31,23,.1)),
    #e8eee8;
}
.home-spot-media{
  position:relative;display:block;
  width:min(94%,620px);
  aspect-ratio:4/5;perspective:900px;
}
.home-spot-front,
.home-spot-back{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:contain;object-position:center;
  filter:drop-shadow(0 22px 34px rgba(7,27,21,.22));
  transition:opacity .35s ease,transform .45s cubic-bezier(.22,1,.36,1);
  backface-visibility:hidden;
}
.home-spot-back{
  opacity:0;transform:rotateY(180deg);pointer-events:none;
}
.home-spot.is-flipped .home-spot-front{
  opacity:0;transform:rotateY(-180deg);pointer-events:none;
}
.home-spot.is-flipped .home-spot-back{
  opacity:1;transform:rotateY(0deg);pointer-events:auto;
}
.home-spot-media:hover .home-spot-front,
.home-spot:not(.is-flipped) .home-spot-media:hover .home-spot-front{
  transform:translateY(-6px) scale(1.02);
}
.home-spot-badge{
  position:absolute;top:16px;left:16px;z-index:2;
  padding:6px 12px;border-radius:999px;
  background:var(--lime);color:var(--forest-3,#001d16);
  font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;
}
.home-spot-flip{
  position:absolute;right:16px;bottom:16px;z-index:3;
  display:inline-flex;align-items:center;gap:7px;
  padding:9px 14px;border-radius:999px;cursor:pointer;
  border:1px solid rgba(7,27,21,.14);background:rgba(255,255,255,.92);
  color:var(--forest);font:inherit;font-size:12px;font-weight:700;
  box-shadow:0 8px 18px rgba(7,27,21,.1);
  transition:background .15s ease,transform .15s ease;
}
.home-spot-flip:hover{background:#fff;transform:translateY(-1px)}
.home-spot-flip [data-icon]{font-size:15px}

.home-spot-copy{
  display:flex;flex-direction:column;align-items:flex-start;gap:10px;
  padding:clamp(26px,4vw,44px);
}
.home-spot-copy h2{
  margin:4px 0 0;font-family:var(--serif);
  font-size:clamp(1.85rem,3.2vw,2.55rem);letter-spacing:-.035em;line-height:1.05;
  color:var(--forest);
}
.home-spot-season{
  margin:0;font-family:var(--serif);font-size:clamp(1.25rem,2vw,1.55rem);
  color:#3d5246;letter-spacing:-.02em;
}
.home-spot-meta{
  display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:4px 0 0;padding:0;
}
.home-spot-meta li{
  display:inline-flex;align-items:center;gap:6px;
  padding:7px 12px;border-radius:999px;
  background:rgba(255,255,255,.75);border:1px solid #d5ddd4;
  font-size:12px;font-weight:700;color:#31463a;
}
.home-spot-meta [data-icon]{font-size:14px;opacity:.7}
.home-spot-lead{
  margin:4px 0 0;max-width:42ch;font-size:14px;line-height:1.55;color:#536058;
}
.home-spot-actions{
  display:flex;flex-wrap:wrap;align-items:center;gap:14px 18px;
  margin-top:auto;padding-top:12px;
}
.home-spot-actions .button{min-height:44px;padding:0 20px}

/* —— Contribute (full-bleed band; overrides legacy 2-col .home-lower) —— */
.home-lower{
  display:block!important;
  grid-template-columns:none!important;
  padding-top:8px;padding-bottom:28px;
}
.join-home{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,340px);
  align-items:center;gap:clamp(18px,3vw,36px);
  width:100%;
  border-radius:20px;border:1px solid #e1e0d5;
  padding:clamp(28px,4vw,44px) clamp(26px,4vw,48px);
  min-height:280px;
  background:
    radial-gradient(55% 80% at 88% 40%,rgba(177,238,120,.14),transparent 60%),
    #faf9f3;
  box-shadow:0 14px 34px rgba(7,27,21,.06);
  position:relative;overflow:hidden;
}
.join-home-copy{position:relative;z-index:2;max-width:58ch}
.join-home h2{
  font-size:clamp(1.75rem,2.9vw,2.35rem);letter-spacing:-.03em;
  line-height:1.08;margin:10px 0 12px;
}
.join-home p{font-size:15px;max-width:50ch;line-height:1.55;color:#536058;margin:0 0 18px}
.join-home .button{min-height:48px;padding:0 22px}
.join-polaroids{
  position:relative;justify-self:end;width:min(100%,320px);height:230px;
  pointer-events:none;
}
.home-lower .polaroid{
  position:absolute;width:142px;margin:0;padding:0;right:auto;bottom:auto;
  background:#fff;border:7px solid #f3f2e9;
  box-shadow:0 12px 26px rgba(80,100,70,.24);
}
.home-lower .polaroid img{width:100%;height:112px;object-fit:cover;display:block}
.home-lower .polaroid figcaption,
.home-lower .polaroid span{
  font-family:var(--serif);font-style:italic;font-size:12px;
  text-align:center;padding:5px 2px 3px;color:var(--forest);margin:0;display:block;
}
.polaroid--a{right:88px;bottom:68px;transform:rotate(-8deg);z-index:1}
.polaroid--b{right:10px;bottom:32px;transform:rotate(7deg);z-index:2}
.polaroid--c{right:56px;bottom:0;transform:rotate(-2deg);z-index:3;width:128px}
.home-lower .polaroid--c img{height:98px}

/* —— Editorial blog —— */
.home-editorial{
  padding-top:36px;padding-bottom:40px;background:var(--cream,#f7f4ec);
}
.home-editorial .section-head{
  display:flex;justify-content:space-between;align-items:end;gap:16px;
  margin:0 0 22px;padding:0;
}
.home-editorial .section-head h2{
  margin:8px 0 0;font-size:clamp(1.6rem,2.8vw,2.2rem);letter-spacing:-.03em;
}

.home-ed-featured{
  display:grid;grid-template-columns:1.15fr .95fr;gap:0;overflow:hidden;
  margin:0 0 16px;border-radius:16px;border:1px solid #e1e0d5;background:#fff;
  box-shadow:0 12px 28px rgba(7,27,21,.05);
}
.home-ed-featured-media{
  display:block;min-height:260px;background:#0a2a20;overflow:hidden;
}
.home-ed-featured-media img{
  width:100%;height:100%;min-height:260px;object-fit:cover;display:block;
  transition:transform .5s cubic-bezier(.22,1,.36,1);
}
.home-ed-featured:hover .home-ed-featured-media img{transform:scale(1.03)}
.home-ed-featured-copy{
  display:flex;flex-direction:column;align-items:flex-start;gap:8px;
  padding:clamp(20px,3vw,32px);
}
.home-ed-featured-copy h3{
  margin:4px 0 0;font-family:var(--serif);
  font-size:clamp(1.4rem,2.4vw,1.9rem);letter-spacing:-.03em;line-height:1.15;
}
.home-ed-featured-copy h3 a{color:var(--forest);text-decoration:none}
.home-ed-featured-copy h3 a:hover{color:var(--evergreen,#0a3d2c)}
.home-ed-featured-copy > p{
  margin:0;font-size:14px;line-height:1.5;color:var(--muted,#5a6a60);
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;
}
.home-ed-featured-copy .button{margin-top:auto}

.home-ed-pill{
  display:inline-flex;align-items:center;
  padding:4px 10px;border-radius:999px;
  background:rgba(177,238,120,.22);border:1px solid rgba(177,238,120,.35);
  color:var(--forest);font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;
}
.home-ed-meta{
  font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted,#617065);
}

.home-ed-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;
}
.home-ed-card{
  display:flex;flex-direction:column;overflow:hidden;
  border:1px solid #e4e1d6;border-radius:14px;background:#fff;
  text-decoration:none;color:inherit;
  transition:transform .25s ease,box-shadow .25s ease;
}
.home-ed-card:hover{
  transform:translateY(-3px);box-shadow:0 14px 28px rgba(7,27,21,.1);
}
.home-ed-card-media{
  position:relative;display:block;height:150px;overflow:hidden;background:#0b3024;
}
.home-ed-card-media img{
  width:100%;height:100%;object-fit:cover;display:block;
  transition:transform .4s ease;
}
.home-ed-card:hover .home-ed-card-media img{transform:scale(1.04)}
.home-ed-card-media .home-ed-pill{position:absolute;top:10px;left:10px;z-index:1}
.home-ed-card-copy{
  display:flex;flex-direction:column;gap:6px;padding:14px 16px 16px;
}
.home-ed-card-copy strong{
  font-family:var(--serif);font-size:clamp(1.05rem,1.5vw,1.2rem);
  letter-spacing:-.02em;line-height:1.2;color:var(--forest);
}
.home-ed-card-copy p{
  margin:0;font-size:13px;line-height:1.45;color:var(--muted,#617065);
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;
}

/* —— Closing ribbon —— */
.home-ribbon{
  min-height:180px;
  background-image:linear-gradient(90deg,rgba(0,29,22,.55),rgba(0,29,22,.15) 44%,#00271edd),url('../img/proto/hero-home.webp');
  background-size:cover;background-position:center;
  display:flex;align-items:center;justify-content:flex-end;
  padding:28px clamp(24px,6vw,95px);
}
.home-ribbon>div{
  font-size:13px;letter-spacing:.2em;line-height:2;color:#eaf1eb;max-width:340px;
}

@media(max-width:1000px){
  .home-ed-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:1100px){
  .home-spot-media{width:min(92%,480px)}
  .home-spot-stage{min-height:420px}
}
@media(max-width:980px){
  .home-spot{grid-template-columns:1fr}
  .home-spot-stage{min-height:340px;order:-1;padding:20px 14px}
  .home-spot-media{width:min(100%,320px)}
}
@media(max-width:900px){
  .home-ed-featured{grid-template-columns:1fr}
  .home-ed-featured-media,.home-ed-featured-media img{min-height:200px}
  .join-home{grid-template-columns:1fr;min-height:0}
  .join-polaroids{justify-self:start;opacity:.9}
}
@media(max-width:700px){
  .join-polaroids{display:none}
  .join-home{min-height:0;padding:24px 20px}
  .join-home p{max-width:none}
  .home-spot-stage{min-height:300px}
  .home-spot-media{width:min(100%,280px)}
}
@media(max-width:560px){
  .home-ed-grid{grid-template-columns:1fr}
  .home-rail a{flex:1 1 calc(50% - 8px);justify-content:center}
  .home-spot-copy{padding:22px 18px 24px}
  .home-spot-actions{width:100%}
  .home-spot-actions .button{flex:1;justify-content:center}
}
@media(prefers-reduced-motion:reduce){
  .home-hubs .hub-card,.home-ed-card,.home-ed-featured-media img,
  .home-spot-front,.home-spot-back,.home-spot-flip{transition:none}
}
