/* The homepage below the fold: this week in the House, the top five, the Pit Drill, the Discord band. Tektur headings are the site's; the hero above is Geist. */

/* ---- this week: the latest update card (the Updates card, updates.css) beside the House Firsts ---- */
.hm-week { display: grid; gap: var(--sp-5); margin: var(--sp-4) 0 0; align-items: start; }
.hm-week--both { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.hm-week-u { min-width: 0; }
.hm-firsts { min-width: 0; padding: var(--sp-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.hm-f-h { margin: 0 0 var(--sp-3); font-size: 20px; }
.hm-f-list { list-style: none; margin: 0; padding: 0; }
.hm-f-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--sp-3); padding: var(--sp-3) 0; margin: 0; max-width: none; border-top: 1px solid var(--border); }
.hm-f-feat { grid-column: 1 / -1; font-weight: 600; color: var(--text); }
.hm-f-who { color: var(--text-2); min-width: 0; overflow-wrap: anywhere; }
.hm-f-day { color: var(--text-3); font-size: 14px; font-variant-numeric: tabular-nums; }
.hm-f-more { margin: var(--sp-3) 0 0; font-size: 14px; color: var(--text-3); max-width: none; }
.hm-f-more a { display: inline-block; padding: 10px 0; margin: -10px 0; }

/* ---- the top five: 3:4 skin posters, gold, silver and bronze rims for the first three (the rims are /players') ---- */
.hm-top { list-style: none; margin: var(--sp-3) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-4); }
.hm-pl { --rim: var(--border); margin: 0; max-width: none; min-width: 0; }
.hm-pl--1 { --rim: #F5B841; }
.hm-pl--2 { --rim: #C9CED6; }
.hm-pl--3 { --rim: #D08B52; }
.hm-pl-a { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; color: var(--text); background: var(--surface); border: 1px solid var(--rim); border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04); transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease); }
.hm-pl--1 .hm-pl-a, .hm-pl--2 .hm-pl-a, .hm-pl--3 .hm-pl-a { box-shadow: 0 0 0 1px color-mix(in srgb, var(--rim) 45%, transparent), inset 0 1px 0 rgba(255,255,255,.04); }
.hm-pl-a:hover, .hm-pl-a:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow-lift), 0 0 0 1px color-mix(in srgb, var(--rim) 60%, transparent); text-decoration: none; }
.hm-pl-art { display: grid; place-items: center; aspect-ratio: 3 / 4; background: radial-gradient(120% 120% at 50% 0%, var(--surface-2), var(--surface)); }
.hm-pl-img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hm-pl-initial { font: 800 56px/1 var(--display); color: var(--text-3); }
.hm-pl-b { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--sp-2); padding: var(--sp-3) var(--sp-3) var(--sp-4); align-items: baseline; }
.hm-pl-n { grid-row: 1; font: 600 14px var(--sans); font-variant-numeric: tabular-nums; color: var(--rim); }
.hm-pl-name { font: 600 17px/1.3 var(--display); letter-spacing: .015em; overflow-wrap: anywhere; }
.hm-pl-lv { grid-column: 1 / -1; margin-top: 2px; font-size: 14px; color: var(--text-2); }
.hm-pl-a::after { content: ""; position: absolute; inset: 0; }
.hm-pl--1 .hm-pl-n { color: #F5B841; }
.hm-top ~ .fr-more a { display: inline-block; padding: 10px 0; margin: -10px 0; }

/* ---- the Pit Drill ---- */
.hm-drill { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--sp-6); align-items: center; margin: var(--sp-3) 0 0; }
.hm-drill-art { overflow: hidden; border-radius: var(--radius); background: var(--surface-2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.hm-drill-art picture { display: block; }
.hm-drill-img { display: block; width: 100%; aspect-ratio: 640 / 504; object-fit: cover; height: auto; }
.hm-drill-l { margin: 0 0 var(--sp-4); font-size: 20px; line-height: 1.5; color: var(--text); max-width: 28ch; }
.hm-drill-go { margin: 0; }

/* ---- the Discord band ---- */
.hm-dc { margin-top: var(--sp-7); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); padding: var(--sp-5) var(--sp-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.hm-dc-h { margin: 0; font-size: 24px; }
.hm-dc-l { margin: var(--sp-1) 0 0; color: var(--text-2); max-width: 52ch; }
.hm-dc-n { display: flex; align-items: center; gap: var(--sp-2); margin: var(--sp-2) 0 0; font-size: 14px; color: var(--text-2); }

@media (max-width: 900px) {
  .hm-week--both, .hm-drill { grid-template-columns: minmax(0, 1fr); }
  .hm-dc { flex-direction: column; align-items: flex-start; padding: var(--sp-5); }
}
@media (max-width: 760px) {
  /* the top five is one swipeable row, two across with a hint of the third; each poster snaps to the left edge */
  .hm-top { display: flex; gap: var(--sp-3); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter); padding: 2px var(--gutter) var(--sp-3); margin: var(--sp-3) calc(-1 * var(--gutter)) 0; scrollbar-width: none; }
  .hm-top::-webkit-scrollbar { display: none; }
  .hm-pl { flex: 0 0 calc((100% - 2 * var(--gutter) - var(--sp-3)) * .45); scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) { .hm-pl-a { transition: none; } .hm-pl-a:hover, .hm-pl-a:focus-visible { transform: none; } }

/* the top five on a phone (28 Nov 2026): the place sits over the name, so a long name has the card's whole width and no longer breaks mid word;
   fourth and fifth place show their number as plainly as the medals do */
.hm-pl-n { color: var(--text-3); }
.hm-pl--2 .hm-pl-n { color: #C9CED6; }
.hm-pl--3 .hm-pl-n { color: #D08B52; }
@media (max-width: 760px) {
  .hm-pl-b { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
  .hm-pl-n { grid-row: auto; }
  .hm-pl-name { font-size: 15px; overflow-wrap: break-word; }
}

/* ---- the bold pass (28 Nov 2026): the lower half of the homepage on the ground, with no boxes ---- */
/* this week: the latest update as the Updates page draws a post, a rule, then the House Firsts as a plain list */
.hm-week { margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--border-strong); gap: var(--sp-6) 0; }
@media (min-width: 901px) {
  .hm-week--both { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
  .hm-week--both > .hm-week-u { padding-right: var(--sp-6); }
  .hm-week--both > .hm-firsts { padding-left: var(--sp-6); border-left: 1px solid var(--border); }
  .hm-drill { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); gap: var(--sp-7); }
}
.hm-firsts { padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.hm-week .hm-f-h { margin: 0 0 var(--sp-3); font: 600 12px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.hm-f-list li { grid-template-columns: minmax(0, 1fr) auto; gap: 0 var(--sp-3); padding: 9px 0; align-items: baseline; }
.hm-f-list li:first-child { border-top: 0; padding-top: 0; }
.hm-f-feat { grid-column: 1; font-weight: 500; }
.hm-f-who { grid-column: 1; grid-row: 2; font-size: 14px; }
.hm-f-who a { color: var(--text-2); }
.hm-f-day { grid-column: 2; grid-row: 1; }
/* the top five stand on the page: no card, no rim. The place wears the medal's colour. */
.hm-top { gap: var(--sp-5); margin-top: var(--sp-4); }
.hm-pl-a, .hm-pl--1 .hm-pl-a, .hm-pl--2 .hm-pl-a, .hm-pl--3 .hm-pl-a { background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.hm-pl-a:hover, .hm-pl-a:focus-visible { transform: none; box-shadow: none; }
.hm-pl-art { background: radial-gradient(60% 46% at 50% 92%, rgba(255,255,255,.07), transparent 70%); border-bottom: 1px solid var(--border-strong); transition: transform var(--t-mid) var(--ease); }
.hm-pl-a:hover .hm-pl-img { transform: translateY(-4px); }
.hm-pl-img { transition: transform var(--t-mid) var(--ease); }
.hm-pl-b { padding: var(--sp-3) 0 0; }
.hm-pl-a:hover .hm-pl-name { text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }
.hm-top ~ .fr-more { margin-top: var(--sp-4); }
@media (prefers-reduced-motion: reduce) { .hm-pl-img { transition: none; } .hm-pl-a:hover .hm-pl-img { transform: none; } }
/* the Pit Drill band: the picture, and beside it the heading, its line and its link */
#pit-drill-band { margin-top: var(--sp-8); }
.hm-drill { margin: 0; }
.hm-drill-h { margin: 0 0 var(--sp-3); font-size: 28px; }
.hm-drill-l { margin: 0 0 var(--sp-3); font-size: 18px; color: var(--text-2); max-width: 32ch; }
/* the Discord band: two hairlines, the words and the one button */
.hm-dc { margin-top: var(--sp-8); padding: var(--sp-5) 0; background: none; border: 0; border-top: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong); border-radius: 0; box-shadow: none; }
@media (max-width: 900px) {
  .hm-week--both > .hm-firsts { padding: var(--sp-5) 0 0; border-top: 1px solid var(--border); }
  .hm-drill { gap: var(--sp-5); }
  .hm-drill-l { max-width: none; }
}
