/* =============================================================================
   Quick tips (tips.html, generated by scripts/build-quick-tips.js).

   A grid of 9:16 cards: David's take with the faceplate over it, played in
   place, and the written tip beside each one. Tokens come from css/store.css;
   the hero lead is pages.css's .pg-lead; the two closing cards are
   getting-started.css's .gs-os__card. Nothing here introduces a colour.
   ========================================================================== */

.tp-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px 40px; align-items: end; padding: 20px 0 10px; }
.tp-hero h1 { font-size: clamp(38px, 5.6vw, 68px); }
.tp-hero .st-ctas { margin-top: 18px; }
.tp-hero-note { font-size: 10px; letter-spacing: 0.8px; line-height: 1.8; color: var(--inkDim); text-transform: lowercase; max-width: 34ch; justify-self: end; margin: 0 0 6px; }
.tp-hero-note a { color: var(--inkDim); }
@media (max-width: 760px) {
  .tp-hero { grid-template-columns: 1fr; align-items: start; }
  .tp-hero-note { justify-self: start; max-width: none; }
}

/* the grid: four across, three, two; a card is the video over its words */
.tp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 20px; margin-top: 30px; }
@media (max-width: 1040px) { .tp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px)  { .tp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; } }
@media (max-width: 380px)  { .tp-grid { grid-template-columns: 1fr; } }

.tp-card { display: flex; flex-direction: column; min-width: 0; scroll-margin-top: 80px; }
.tp-frame {
  position: relative; aspect-ratio: 9 / 16; overflow: hidden;
  border: 1.5px solid var(--ink); background: var(--surface2);
  box-shadow: 4px 4px 0 var(--hairline2);
}
.tp-play { position: absolute; inset: 0; display: block; outline: none; }
.tp-play img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tp-frame video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: var(--ink); }
.tp-card.is-playing .tp-play { visibility: hidden; }
/* the play mark: the oxblood disc the homepage reel uses, centred */
.tp-disc {
  position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px;
  border-radius: 50%; background: var(--oxblood); box-shadow: 0 0 0 1.5px var(--ink);
  transition: transform 0.15s ease;
}
.tp-disc::after { content: ""; position: absolute; left: 18px; top: 14px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--bg); }
.tp-play:hover .tp-disc, .tp-play:focus-visible .tp-disc { transform: scale(1.1); }
.tp-play:focus-visible .tp-disc { box-shadow: 0 0 0 3px var(--ink); }
.tp-len { position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; background: var(--ink); color: var(--bg); font-size: 9.5px; letter-spacing: 0.8px; }

.tp-copy { padding: 12px 2px 0; display: flex; flex-direction: column; gap: 4px; }
.tp-name { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; text-transform: lowercase; color: var(--ink); text-decoration: none; }
.tp-name:hover { text-decoration: underline; }
.tp-fx { font-size: 9px; letter-spacing: 1px; color: var(--inkDim); text-transform: lowercase; }
.tp-what { font-size: 14px; color: var(--ink); margin: 6px 0 4px; text-wrap: pretty; }
.tp-lines { display: flex; flex-direction: column; gap: 7px; margin: 2px 0 0; }
.tp-lines > div { border-left: 2px solid var(--hairline2); padding-left: 10px; }
.tp-lines dt { font-family: 'JetBrains Mono', 'JetBrains Mono Fallback', ui-monospace, monospace; font-size: 9px; font-weight: 700; letter-spacing: 0.8px; color: var(--oxblood); text-transform: lowercase; }
.tp-lines dd { margin: 1px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--inkMuted); }

.tp-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 46px; }
.tp-foot .gs-os__card p a { color: var(--oxblood); border-bottom: 1px solid var(--hairline); }
@media (max-width: 640px) { .tp-foot { grid-template-columns: 1fr; } }
