/* ==========================================================================
   index.css · the cover page that links to the three homepage options.
   Uses the tokens in base.css. Nothing here is part of the website design.
   ========================================================================== */

.index { background: var(--paper); color: var(--text); }

/* === Intro ================================================================ */
.ix-intro { padding-top: 40px; padding-bottom: 40px; display: grid; gap: 20px; }
.ix-intro__logo { width: 76px; height: auto; background: var(--charcoal); border-radius: 14px; padding: 8px; }
.ix-intro__title { font-size: clamp(34px, 8vw, 64px); max-width: 16ch; }
.ix-intro__lead { font-size: 19px; max-width: 56ch; }
.ix-intro__meta { font-size: 14px; color: var(--muted); }
@media (min-width: 1100px) {
  .ix-intro { grid-template-columns: 1fr 1fr; align-items: end; column-gap: 64px; padding-top: 72px; padding-bottom: 64px; }
  .ix-intro__logo { grid-column: 1 / -1; }
}

/* === Option rows ========================================================== */
.ix-list { display: grid; gap: 16px; padding-bottom: 56px; }
.ix-option {
  display: grid; gap: 20px; padding: 16px 16px 24px;
  border-radius: var(--radius-l); background: var(--white); border: 1px solid var(--line);
  color: inherit; text-decoration: none;
  transition: transform var(--t-press) var(--ease-out), border-color var(--t-ui) var(--ease-out);
}
.ix-option:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) {
  .ix-option:hover { border-color: var(--ink); }
  .ix-option:hover .ix-shot__desktop { transform: translateY(-4px); }
  .ix-option:hover .ix-option__go span { transform: translateX(4px); }
}
@media (min-width: 900px) {
  .ix-option { grid-template-columns: 7fr 5fr; align-items: center; gap: 48px; padding: 24px 40px 24px 24px; }
}

/* Thumbnail: desktop screen with the phone screen overlapping its corner */
.ix-shot { position: relative; padding: 0 0 12% 0; }
.ix-shot__desktop {
  width: 86%; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(23,23,23,.12), 0 18px 40px -18px rgba(23,23,23,.35);
  transition: transform 300ms var(--ease-out);
}
.ix-shot__phone {
  position: absolute; right: 0; bottom: 0; width: 30%; aspect-ratio: 390 / 844;
  border-radius: 18px; overflow: hidden; border: 4px solid var(--charcoal); background: var(--charcoal);
  box-shadow: 0 18px 40px -16px rgba(23,23,23,.45);
}
.ix-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.ix-option__text { display: flex; flex-direction: column; gap: 12px; padding: 0 4px; }
.ix-option__num { font-family: var(--font-display); font-weight: 500; font-size: 16px; color: var(--orange-ink); }
.ix-option__name { font-size: clamp(30px, 6vw, 44px); }
.ix-option__desc { max-width: 44ch; }
.ix-option__tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.ix-option__tags li { font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: var(--pill); background: var(--cream); color: var(--ink); }
.ix-option__go { margin-top: 8px; font-weight: 700; color: var(--ink); display: inline-flex; gap: 8px; align-items: center; }
.ix-option__go span { color: var(--orange-ink); transition: transform var(--t-ui) var(--ease-out); }

/* === Notes ================================================================ */
.ix-notes { border-top: 1px solid var(--line); padding-top: 48px; padding-bottom: 72px; display: grid; gap: 32px; }
.ix-notes h2 { font-size: clamp(24px, 4.6vw, 32px); margin-bottom: 12px; }
.ix-notes ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.ix-notes code { font-size: 15px; background: var(--cream); padding: 1px 6px; border-radius: 6px; }
@media (min-width: 900px) { .ix-notes { grid-template-columns: 1fr 1fr; gap: 64px; } }
