/* /10things: a ranked countdown ending at 0 (the price). Backgrounds cycle through the three brand colours.
   Archivo headings match the overview hero; Unbounded carries the countdown numerals.
   Screenshots lift, turn and fade into place on a CSS view timeline. Reduced motion and browsers without
   view timelines show static screenshots. Contrast: --muted 6.1:1 and --terra-deep 5.0:1 on cream for small text; the terracotta panels use
   --terra-deep so white body copy reads at 5.6:1. */

.ten {
  --cream: #EEECE2; --cream-2: #F5F3EC; --char: #1F1E1D; --terra: #C15F3C; --terra-deep: #A84D2D;
  --ink-2: #4A4740; --muted: #5C5952; --rule: #D6D2C4;
  --display: "Archivo", "Arial Black", sans-serif;
  --numeral: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --body: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --pad: clamp(1.25rem, 5vw, 4rem);
  background: var(--cream); color: var(--char); font-family: var(--body); line-height: 1.5; overflow-x: clip;
}
.ten h1, .ten h2 { font-family: var(--display); font-stretch: 110%; font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; margin: 0 0 0.7em; }
.ten p { margin: 0 0 1rem; }
.ten :where(a) { color: inherit; }
.ten code { font-family: "JetBrains Mono", Consolas, monospace; font-size: 0.88em; padding: 0.05em 0.35em; border-radius: 4px; background: rgba(0, 0, 0, 0.08); }
.ten-item--char code { background: rgba(255, 255, 255, 0.14); }

.ten-download { display: flex; justify-content: center; min-width: 0; }
.ten-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: 100%; max-width: 38rem; min-height: 8rem; padding: clamp(1.5rem, 3vw, 3rem); border-radius: 1.25rem; background: var(--char); color: #fff; font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 2.2vw, 2rem); line-height: 1.15; text-decoration: none; box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.35); transition: background 180ms, transform 180ms, box-shadow 180ms; }
.ten-btn svg { flex: 0 0 1.4em; width: 1.4em; height: 1.4em; }
.ten-btn:hover { background: var(--terra-deep); text-decoration: none; box-shadow: 0 30px 54px -24px rgba(0, 0, 0, 0.4); }
.ten-btn:focus-visible { outline: 3px solid var(--terra-deep); outline-offset: 6px; }
@media (prefers-reduced-motion: no-preference) { .ten-btn:hover { transform: translateY(-4px); } }
.ten-eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--terra-deep); margin: 0 0 1.25rem; }

/* Full-height panels use the small viewport unit where the browser has it, so mobile browser chrome does not push
   the bottom of a panel under the address bar. */
.ten-intro { min-height: calc(100vh - var(--mx-header-h)); min-height: calc(100svh - var(--mx-header-h)); display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem, 6vw, 5rem) var(--pad); max-width: 70rem; margin: 0 auto; scroll-margin-top: var(--mx-header-h); }
.ten-intro h1 { font-size: clamp(2rem, 5vw, 4.4rem); }
.ten-lead { font-size: clamp(1.05rem, 1.6vw, 1.35rem); color: var(--ink-2); }
.ten-scroll { font-family: var(--display); font-weight: 600; font-size: 0.9rem; text-decoration: none; color: var(--terra-deep); margin-top: 1rem; }
/* Jump list: one pill per reason, so a reader can return to a feature without scrolling ten screens. */
.ten-index { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0 1rem; }
.ten-index a { font-family: var(--display); font-weight: 600; font-size: 0.78rem; text-decoration: none; color: var(--char); padding: 0.35rem 0.7rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--cream-2); }
.ten-index a:hover { border-color: var(--char); text-decoration: none; }
.ten-index a:focus-visible { outline: 2px solid var(--terra-deep); outline-offset: 2px; }

/* Items */
.ten-item { min-height: calc(100vh - var(--mx-header-h)); min-height: calc(100svh - var(--mx-header-h)); display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; padding: clamp(3rem, 6vw, 5rem) var(--pad); scroll-margin-top: var(--mx-header-h); }
@media (min-width: 60rem) { .ten-item { grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 5rem); } }
.ten-item--cream { background: var(--cream); color: var(--char); }
.ten-item--char { background: var(--char); color: var(--cream); }
.ten-item--terra { background: var(--terra-deep); color: #fff; }
.ten-item--zero { background: var(--cream-2); color: var(--char); }
.ten-n { font-family: var(--numeral); font-weight: 900; font-size: clamp(6rem, 18vw, 16rem); line-height: 0.8; letter-spacing: -0.06em; margin: 0 0 1rem; opacity: 0.18; }
.ten-item--cream .ten-n, .ten-item--zero .ten-n { color: var(--terra); opacity: 1; }
.ten-item h2 { font-size: clamp(1.7rem, 3.6vw, 3rem); }
.ten-item__text p:not(.ten-n) { font-size: 1.05rem; max-width: 34rem; opacity: 0.92; }
.ten-more { font-size: 0.9rem; }
.ten-more a { font-family: var(--display); font-weight: 600; font-size: 0.82rem; text-decoration: underline; text-underline-offset: 0.2em; }
/* Every .ten-item__art holds one screenshot, converted from its PNG master in doc/screenshots by
   tools/convert-screenshots.ps1 and shown whole at full width. The 12px radius with overflow: hidden also trims
   the sliver of window border and rounded-corner backdrop the masters carry at their edges. The figure is wrapped
   in a link to the full-size file, because a dense desktop capture shrunk to a phone width cannot be read. */
.ten-item__art { margin: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 50px 80px -40px rgba(0, 0, 0, 0.6); border: 1px solid rgba(0, 0, 0, 0.15); background: #fff; }
.ten-item__art img { display: block; width: 100%; height: auto; }
/* Animate the link inside a stable figure so transforms cannot shift the scroll timeline's subject.
   A longer entrance gives each capture a deliberate reveal, then leaves it still for reading.
   Nothing is hidden unless scroll timelines and unrestricted motion are both available. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .ten-item__art { view-timeline-name: --ten-shot; view-timeline-axis: block; overflow: visible; background: transparent; border: 0; box-shadow: none; }
    .ten-item__zoom { border-radius: 12px; overflow: hidden; border: 1px solid rgba(0, 0, 0, 0.15); background: #fff; box-shadow: 0 50px 80px -40px rgba(0, 0, 0, 0.6); transform-origin: 50% 75%; animation: ten-in 1ms linear both; animation-timeline: --ten-shot; animation-range: entry 0% entry 90%; }
    .ten-item__zoom:focus-visible { animation: none; }
  }
}
@keyframes ten-in {
  0% { opacity: 0; transform: perspective(1200px) translateY(5rem) scale(0.88) rotateX(9deg) rotateY(-5deg); }
  35% { opacity: 0.65; }
  70% { opacity: 1; transform: perspective(1200px) translateY(0.8rem) scale(0.98) rotateX(1deg) rotateY(-0.5deg); }
  100% { opacity: 1; transform: none; }
}
@media (max-width: 59.99rem) {
  @keyframes ten-in {
    from { opacity: 0; transform: translateY(3rem) scale(0.94); }
    to { opacity: 1; transform: none; }
  }
}
.ten-item__zoom { display: block; cursor: zoom-in; }
.ten-item__zoom:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; }
