/* Archaic Realms TCG - Home: the blocks below the sign-up and countdown. Uses the colour and font tokens set in index.html. */
.hm { position: relative; }
.hm-wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }
.hm h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 4.2vw, 46px); line-height: 1.15; color: var(--off-white); }
.hm .hm-sub { font-size: 21px; line-height: 1.5; color: var(--light-grey); max-width: 34em; margin-top: 12px; }
.hm-credit { font-size: 15px; font-style: italic; color: var(--light-grey); margin-top: 26px; }
.hm-btn { display: inline-block; font-family: var(--font-heading); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; padding: 15px 30px; border-radius: 2px; transition: background 0.2s, border-color 0.2s; }
.hm-btn-gold { color: var(--ink); background: linear-gradient(135deg, #FFB96A, #F5A85A); box-shadow: 0 4px 20px rgba(245,168,90,0.3); }
.hm-btn-gold:hover { background: var(--amber-bright); }
.hm-btn-line { color: var(--cyan); border: 1px solid rgba(0,229,255,0.4); background: rgba(13,13,15,0.45); }
.hm-btn-line:hover { background: rgba(0,229,255,0.1); border-color: rgba(0,229,255,0.75); }
.hm-btn:focus-visible, .hm a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.hm-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* what the game is */
.hm-game { background: #0D0D0F url('/images/painting-world-splash.webp') center 30% / cover no-repeat; padding: 110px 0 84px; }
.hm-game::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ink) 0%, rgba(13,13,15,0.55) 22%, rgba(13,13,15,0.72) 60%, var(--ink) 100%); }
.hm-game h2 { max-width: 15em; text-shadow: 0 2px 24px rgba(0,0,0,0.8); }
.hm-game .hm-sub { color: var(--off-white); text-shadow: 0 1px 12px rgba(0,0,0,0.9); }
.hm-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 38px; }
.hm-three div { background: rgba(19,19,24,0.86); border-top: 2px solid var(--gold); padding: 22px 24px 24px; border-radius: 0 0 4px 4px; }
.hm-three h3 { font-family: var(--font-heading); font-weight: 600; font-size: 21px; color: var(--off-white); }
.hm-three p { font-size: 18px; line-height: 1.5; color: var(--light-grey); margin-top: 8px; }

/* the two factions you can play now */
.hm-factions { background: var(--ink); padding: 84px 0; }
.hm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 32px; }
.hm-fac { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 420px; padding: 28px; border-radius: 4px; overflow: hidden; text-decoration: none; background-size: cover; background-position: center; border-bottom: 3px solid var(--acc); }
.hm-fac::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,13,15,0.05) 30%, rgba(13,13,15,0.92) 86%); transition: background 0.25s; }
.hm-fac:hover::before { background: linear-gradient(180deg, rgba(13,13,15,0) 20%, rgba(13,13,15,0.88) 90%); }
.hm-fac > * { position: relative; }
.hm-fac small { font-family: var(--font-heading); font-size: 15px; letter-spacing: 0.04em; color: var(--acc); }
.hm-fac b { font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 5vw, 54px); line-height: 1.05; color: #fff; }
.hm-fac span { font-size: 19px; line-height: 1.45; color: var(--off-white); margin-top: 8px; max-width: 24em; }
.hm-fac em { font-style: normal; font-family: var(--font-heading); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--acc); margin-top: 16px; }
.hm-shadow { --acc: #B98CF5; background-image: url('/images/art-the-crypt-gate-band.webp'); }
.hm-divine { --acc: #5FDDF0; background-image: url('/images/art-the-storm-terrace-band.webp'); }
.hm-later { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin-top: 30px; color: var(--light-grey); font-size: 18px; }
.hm-later a { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-heading); font-size: 16px; color: var(--off-white); text-decoration: none; }
.hm-later a:hover { color: var(--amber); }
.hm-later img { width: 34px; height: 34px; }

/* cards and art */
.hm-art { background: var(--deep); padding: 84px 0; border-top: 1px solid rgba(201,168,76,0.18); }
.hm-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-top: 34px; }
.hm-cards figure { margin: 0; }
.hm-cards img { width: 100%; height: auto; display: block; border-radius: 4.5% / 3.3%; box-shadow: 0 10px 30px rgba(0,0,0,0.6); }
.hm-cards figcaption { font-size: 15px; line-height: 1.35; color: var(--light-grey); margin-top: 10px; }
.hm-cards b { display: block; font-family: var(--font-heading); font-weight: 600; font-size: 14px; color: var(--off-white); }

/* closing call to action */
.hm-close { background: var(--ink); border-top: 1px solid rgba(201,168,76,0.25); padding: 76px 0 84px; text-align: center; }
.hm-close h2 { font-size: clamp(24px, 4vw, 36px); }
.hm-close p { color: var(--light-grey); font-size: 19px; max-width: 30em; margin: 12px auto 0; }
.hm-close .hm-row { justify-content: center; }

@media (max-width: 980px) {
  .hm-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .hm-wrap { padding: 0 20px; }
  .hm .hm-sub { font-size: 19px; }
  .hm-game { padding: 76px 0 60px; background-position: 28% 30%; }
  .hm-three, .hm-two { grid-template-columns: 1fr; }
  .hm-three { gap: 14px; }
  .hm-fac { min-height: 320px; padding: 22px; }
  .hm-factions, .hm-art { padding: 60px 0; }
  .hm-cards { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
  .hm-btn { padding: 14px 22px; }
}
