/* The home page, on top of site.css — REDESIGN_GUIDE §8 (Home).
 *
 * One screen, so its pieces live here rather than in the stylesheet all 8,793
 * pages parse. Nothing here defines a colour.
 */

/* The returning-learner strip: a dark ink band with saffron *text*, not a
   saffron button — §8 is explicit, and the page's one primary button is
   "Start with the first lesson". */
.resume {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2) var(--s3);
  background: var(--ink); color: var(--paper);
  border-radius: var(--r-card); padding: var(--s3) var(--s4);
  margin: 0 0 var(--s5); text-decoration: none;
}
.resume .rs-t { font-family: var(--serif); font-size: 18px; }
.resume .rs-n { font-size: 15px; opacity: .85; }
.resume .rs-go { margin-inline-start: auto; color: var(--saffron); font-weight: 600; }
.resume:hover .rs-go { text-decoration: underline; }
/* --ink is the page's text colour, so a band painted with it disappears in
   the dark theme — there it becomes a tonal surface instead. Written as the
   same three states site.css uses: the un-stamped document following the
   system, and the explicit stamp. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .resume {
    background: var(--surface); color: var(--ink);
  }
}
:root[data-theme="dark"] .resume {
  background: var(--surface); color: var(--ink);
}

.home-hero { margin: 0 0 var(--s6); }
.home-hero h1 { font-size: clamp(34px, 7vw, 56px); line-height: 1.12;
                margin: 0 0 var(--s4); max-width: 18ch; }
.home-hero .lede { font-size: clamp(19px, 2.4vw, 22px); max-width: 54ch;
                   margin: 0 0 var(--s5); }
.cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin: 0; }

/* ---- the live specimen ------------------------------------------------- */
.spec-wrap { background: var(--surface); border-top: 1px solid var(--ornament);
             padding: var(--s4); margin: 0 0 var(--s6); }
.spec {
  display: flex; flex-wrap: wrap; direction: rtl;
  gap: 20px 16px; margin: var(--s3) 0;
}
.spec .w {
  display: flex; flex-direction: column; align-items: center;
  min-width: 64px; max-width: 120px; text-decoration: none; color: inherit;
}
.spec .w b { font-family: var(--arabic); font-weight: 400;
             font-size: 32px; line-height: 56px; color: var(--ink); }
.spec .w i {
  direction: ltr; font-style: normal; margin-top: 8px;
  font-size: 13px; line-height: 16px; color: var(--muted); text-align: center;
}
/* the one word the page is pointing at */
.spec .hl b { color: var(--indigo); }
.spec .hl i { color: var(--indigo); }
.spec .hl { border-bottom: 2px solid var(--ornament); }
.spec-wrap .note { margin: 0; font-size: 15px; }

/* ---- how it works ------------------------------------------------------ */
.how { list-style: none; padding: 0; margin: 0 0 var(--s6);
       display: grid; gap: var(--s4); counter-reset: step; }
@media (min-width: 720px) { .how { grid-template-columns: repeat(3, 1fr);
                                   gap: var(--s5); } }
.how li { margin: 0; padding-top: var(--s3); border-top: 1px solid var(--line);
          counter-increment: step; }
.how li::before {
  content: counter(step); display: block;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--indigo);
  margin-bottom: var(--s2);
}
.how b { display: block; font-family: var(--serif); font-weight: 500;
         font-size: 21px; margin-bottom: var(--s1); }
.how span { font-family: var(--serif); font-size: 17px; line-height: 1.55;
            color: var(--ink-2); }

/* ---- three ways in ----------------------------------------------------- */
.ways { display: grid; gap: var(--s3); margin: 0 0 var(--s6); }
@media (min-width: 720px) { .ways { grid-template-columns: repeat(3, 1fr); } }
.way {
  display: block; text-decoration: none; color: inherit;
  background: var(--surface); border-radius: var(--r-card); padding: var(--s4);
}
.way:hover { box-shadow: inset 0 0 0 1.5px var(--indigo); }
.way b { display: block; font-family: var(--serif); font-weight: 500;
         font-size: 21px; margin-bottom: var(--s1); }
.way .k { display: block; margin-bottom: var(--s2); }
.way .s { font-family: var(--serif); font-size: 16px; line-height: 1.55;
          color: var(--ink-2); }

/* ---- start anywhere ---------------------------------------------------- */
.start { list-style: none; padding: 0; margin: 0 0 var(--s6); }
.start li {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--s3); margin: 0;
  padding: var(--s3) 0; border-bottom: 1px solid var(--line);
}
.start a { font-family: var(--serif); font-size: 19px; text-decoration: none; }
.start a:hover { text-decoration: underline; }
.start .k { font-variant-numeric: tabular-nums; }
