/* =====================================================================
   Entry page only (index.html): two halves, data (blue) and software (red).
   Builds on pixel.css; each half gets its colours from .theme-data / .theme-soft.
   ===================================================================== */
.home { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; background: var(--ink); }

/* title card that sits across the seam */
.home-head { position: absolute; left: 0; right: 0; top: 24px; z-index: 5; display: flex; justify-content: center; pointer-events: none; padding: 0 16px; }
.home-card { pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 26px 16px; border-image-source: var(--frame-plain); text-align: center; }
.home-name { font-size: 18px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.home-q { font-size: clamp(24px, 3.4vw, 36px); color: var(--ink); }
.home .lang { margin-top: 6px; border-color: var(--ink); background: #e6e6de; }
.home .lang button { color: var(--ink); }
.home .lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* the two halves */
.split { grid-row: 1 / 3; display: flex; min-height: 100vh; }
.half {
  position: relative; flex: 1 1 50%; display: flex; align-items: center; justify-content: center;
  padding: 170px 28px 120px; overflow: hidden; text-decoration: none; color: var(--text);
  background: var(--tile) repeat; background-size: 24px 24px;
  transition: flex-grow .25s steps(5);
}
.half + .half { border-left: 6px solid var(--ink); }
.half-scene { position: absolute; left: 0; right: 0; bottom: 0; height: var(--scene-h); background: var(--scene) repeat-x left bottom; background-size: var(--scene-w) var(--scene-h); }
.js .half-scene { animation: drift 30s linear infinite; }
.theme-data .half-scene { animation-duration: 14s; }

.half-win { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: min(420px, 100%); padding: 14px 20px 18px; transition: transform .2s steps(3); }
.half-ic { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 4px; border: 3px solid var(--ink); background: var(--c1l); }
.half-ic .px-ic { width: 44px; height: 44px; }
.half-kicker { font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c1d); }
.half-name { font-size: clamp(30px, 3.6vw, 42px); font-weight: 700; line-height: 1.05; color: var(--c1); text-shadow: 3px 3px 0 var(--ink); }
.half-role { font-size: 18px; color: var(--ink); }
.half-list { font-size: 16px; color: var(--muted); }
.half-go { margin-top: 10px; }

.half:hover, .half:focus-visible { flex-grow: 1.25; }
.half:hover .half-win, .half:focus-visible .half-win { transform: translateY(-6px); }
.half:hover .half-go .cur, .half:focus-visible .half-go .cur { animation: nudge .6s steps(2) infinite; }
.half:focus-visible { outline: 4px dashed var(--ink); outline-offset: -10px; }

.home-foot { grid-row: 3; position: relative; z-index: 2; padding: 12px 16px; background: var(--ink); color: #e8e8e0; text-align: center; font-size: 16px; }
.home-foot a { color: #fff; }

@media (max-width: 760px) {
  .home-head { position: static; padding: 16px; background: var(--ink); }
  .split { flex-direction: column; min-height: 0; grid-row: 2; }
  .half { padding: 28px 16px 64px; }
  .half + .half { border-left: 0; border-top: 6px solid var(--ink); }
  .half:hover, .half:focus-visible { flex-grow: 1; }
  .half-ic { width: 60px; height: 60px; }
  .half-ic .px-ic { width: 44px; height: 44px; }
}

/* ---------- patch notes: GitHub activity across the seam ---------- */
.split { position: relative; }
.home .half { padding-top: 150px; padding-bottom: 290px; }   /* room for the title card above and the panel below */
.notes {
  position: absolute; left: 50%; bottom: 46px; z-index: 4; transform: translateX(-50%);
  width: min(860px, calc(100% - 32px)); padding: 6px 14px 8px; border-image-source: var(--frame-plain);
}
.notes-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; }
.notes-head h2 { font-size: 20px; color: var(--ink); text-transform: uppercase; letter-spacing: .06em; }
.notes-lv { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.notes-lv b { padding: 1px 7px; background: var(--ink); color: #fff; text-shadow: none; }
.xp { width: 120px; height: 12px; padding: 2px; background: var(--ink); }
.xp i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, #58c870 0 6px, #8fe0a0 6px 8px); }
.xp-txt { color: var(--muted); }
.notes-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; margin-top: 6px; }
.cal { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 10px); grid-auto-columns: 10px; gap: 2px; padding: 4px; background: #e6e6de; border: 3px solid var(--ink); width: max-content; }
.cal i { background: #d2d2c8; }
.cal .l1 { background: #a8e4b4; } .cal .l2 { background: #58c870; } .cal .l3 { background: #2f9a4c; } .cal .l4 { background: #1d6634; }
.notes-stats { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 14px; color: var(--muted); max-width: 330px; }
.notes-stats b { color: var(--ink); font-size: 16px; }
.notes-list { margin: 0; padding: 0; list-style: none; min-width: 0; }
.notes-list li + li { border-top: 2px dotted #d2d2c8; }
.notes-list a { display: flex; align-items: baseline; gap: 8px; padding: 3px 2px; text-decoration: none; font-size: 15px; white-space: nowrap; }
.notes-list a:hover b { text-decoration: underline; }
.ver { flex: none; padding: 0 5px; font-size: 12px; background: var(--ink); color: #fff; text-shadow: none; }
.notes-list b { flex: none; color: var(--ink); }
.msg { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.notes-foot { margin-top: 4px; font-size: 13px; color: var(--muted); }

@media (max-width: 760px) {
  .home .half { padding: 28px 16px 64px; }
  .notes { position: static; transform: none; width: auto; margin: 0; border-top: 6px solid var(--ink); }
  .notes-body { grid-template-columns: 1fr; }
  .cal { grid-template-rows: repeat(7, 8px); grid-auto-columns: 8px; }
  .notes-list a { flex-wrap: wrap; white-space: normal; }
}
