/* Articles (owner, 19 Nov 2026): the approved design, frozen in docs/ux/guides/article-1-design/.
   On top of site.css. One animation per article, in .hero-art; without .run it shows its last frame. */

.ahead { background:var(--primary); color:#fff; padding:36px 0 120px; }
.crumb { margin:0 0 28px; font-size:15px; color:var(--ice); }
.crumb a { color:var(--ice); text-decoration:none; }
.crumb a:hover { color:#fff; text-decoration:underline; }
.ahead-grid { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); gap:56px; align-items:center; }
.ahead .eyebrow { margin:0 0 16px; font-size:14px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--sky); }
.ahead h1 { font:500 clamp(40px,5vw,64px)/1.04 var(--display); letter-spacing:-.02em; text-wrap:balance; }
.ahead h1.long { font-size:clamp(38px,4.6vw,60px); }
.ahead .meta { margin:22px 0 0; font-size:16px; color:var(--ice); }
.ahead figure { margin:0; }
.hero-art { background:var(--deep); border-radius:14px; padding:18px 18px 8px; }
.hero-art svg { display:block; width:100%; height:auto; }
.ahead figcaption { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:12px; font-size:16px; color:#E6ECF8; }
.hero-replay { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0 14px; border:1px solid rgba(255,255,255,.4); border-radius:6px; background:transparent; color:#fff; font:600 15px var(--body); cursor:pointer; }
.hero-replay:hover { background:rgba(255,255,255,.12); }
.hero-replay[hidden] { display:none; }

.hero-art .v1 { opacity:0; }
.hero-art.run .v1 { animation:a-v1out .6s var(--ease) 2.1s both; }
.hero-art.run .v2 { animation:a-v2in .8s cubic-bezier(.2,.7,.2,1) 2.2s both; }
.hero-art.run .ink { animation:a-write 1.1s var(--ease) .3s both; }
.hero-art.run .ink2 { animation:a-write 1s var(--ease) 1s both; }
.hero-art.run .mark { animation:a-markin .5s var(--ease) 3.1s both; }
@keyframes a-v1out { from { opacity:1; transform:translateY(0); } to { opacity:0; transform:translateY(10px); } }
@keyframes a-v2in { from { opacity:0; transform:translateY(22px); } to { opacity:1; transform:translateY(0); } }
@keyframes a-write { from { clip-path:inset(-20% 100% -20% 0); } to { clip-path:inset(-20% -2% -20% 0); } }
@keyframes a-markin { from { opacity:0; } to { opacity:1; } }
/* Article 2 (docs/ux/guides/article-2-design/): two pages drop in after page 2, and the pages after them
   move along with their notes and are renumbered. */
.hero-art .a2-was { opacity:0; }
.hero-art.run .a2-drop { animation:a-drop 2.4s cubic-bezier(.2,.7,.2,1) .2s both; }
.hero-art.run .a2-ghost { animation:a-markin .5s var(--ease) 1.8s both; }
.hero-art.run .a2-shift { animation:a-shift .8s cubic-bezier(.3,.7,.2,1) .9s both; }
.hero-art.run .a2-was { animation:a-fadeout .3s var(--ease) 2.6s both; }
.hero-art.run .a2-now, .hero-art.run .a2-tag { animation:a-markin .4s var(--ease) 2.7s both; }
@keyframes a-drop { 0% { opacity:0; transform:translateY(-128px); } 15%, 60% { opacity:1; transform:translateY(-128px); } 100% { opacity:1; transform:none; } }
@keyframes a-shift { from { transform:translateX(-176px); } to { transform:none; } }
@keyframes a-fadeout { from { opacity:1; } to { opacity:0; } }
/* Article 3 (docs/ux/guides/article-3-design/): a picture of a signature lands on its line, under the
   handwritten notes, and its see-through background goes. */
.hero-art .a3-sig { transform-box:fill-box; transform-origin:50% 50%; }
.hero-art .a3-box { opacity:0; }
.hero-art.run .a3-sig { animation:a3-place 2s cubic-bezier(.3,.7,.2,1) .2s both; }
.hero-art.run .a3-box { animation:a-fadeout .45s var(--ease) 2.3s both; }
@keyframes a3-place { 0% { opacity:0; transform:translate(150px,-190px) scale(1.6); } 15%, 40% { opacity:1; transform:translate(150px,-190px) scale(1.6); } 100% { opacity:1; transform:none; } }
/* Article 4 (docs/ux/guides/article-4-design/): the same eraser sweeps two copies of a page. On the ink
   copy half the note goes; on the flattened copy it stays. */
.hero-art .a4-wipe { clip-path:inset(-40% -2% -40% 50%); }
.hero-art.run .a4-er { animation:a4-er 2.4s cubic-bezier(.45,0,.3,1) .3s both; }
.hero-art.run .a4-wipe { animation:a4-wipe 2.4s cubic-bezier(.45,0,.3,1) .3s both; }
.hero-art.run .a4-verdict { animation:a-markin .4s var(--ease) 2.8s both; }
@keyframes a4-er { 0% { opacity:0; transform:translateX(-92px); } 25% { opacity:1; transform:translateX(-92px); } 100% { opacity:1; transform:none; } }
@keyframes a4-wipe { 0%, 25% { clip-path:inset(-40% -2% -40% 0%); } 100% { clip-path:inset(-40% -2% -40% 50%); } }
/* Article 5 (docs/ux/guides/article-5-design/): copies of two Lecture 2 pages rise, notes and all, into
   Lecture 3 after page 2; the pages after them move along and are renumbered. */
.hero-art .a5-was { opacity:0; }
.hero-art.run .a5-copy { animation:a5-lift 2.2s cubic-bezier(.3,.7,.2,1) .2s both; }
.hero-art.run .a5-shift { animation:a5-room .8s cubic-bezier(.4,0,.2,1) .7s both; }
.hero-art.run .a5-was { animation:a-fadeout .25s var(--ease) 1.4s both; }
.hero-art.run .a5-now { animation:a-markin .3s var(--ease) 1.55s both; }
.hero-art.run .a5-tag { animation:a-markin .4s var(--ease) 2.5s both; }
@keyframes a5-lift { 0% { opacity:0; transform:translateY(168px); } 15%, 38% { opacity:1; transform:translateY(154px); } 100% { opacity:1; transform:none; } }
@keyframes a5-room { from { transform:translateX(-176px); } to { transform:none; } }

/* Article 6 (the layout of articles 1 to 5): one page of Habit tracker.pdf drops into Weekly Planner 2026
   after page 9, tagged Added; the pages after it make room and are renumbered. */
.hero-art .a6-was { opacity:0; }
.hero-art.run .a6-drop { animation:a-drop 2.4s cubic-bezier(.2,.7,.2,1) .2s both; }
.hero-art.run .a6-ghost { animation:a-markin .5s var(--ease) 1.8s both; }
.hero-art.run .a6-shift { animation:a6-room .8s cubic-bezier(.3,.7,.2,1) .9s both; }
.hero-art.run .a6-was { animation:a-fadeout .3s var(--ease) 2.6s both; }
.hero-art.run .a6-now, .hero-art.run .a6-tag { animation:a-markin .4s var(--ease) 2.7s both; }
@keyframes a6-room { from { transform:translateX(-88px); } to { transform:none; } }
@media (prefers-reduced-motion: reduce) { .hero-art.run * { animation:none !important; } }

.short-wrap { margin-top:-84px; position:relative; }
.short { max-width:820px; background:#fff; border-radius:12px; border-top:4px solid var(--sky); box-shadow:0 1px 2px rgba(20,30,50,.08),0 12px 32px rgba(20,30,50,.12); padding:28px 32px; }
.short .label { margin:0 0 8px; font-size:14px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--quiet); }
.short p:last-child { margin:0; font-size:20px; line-height:1.55; color:var(--text); }

.abody { padding:56px 0 96px; }
.abody-grid { display:grid; grid-template-columns:220px minmax(0,1fr); gap:72px; align-items:start; }
.atoc .label { margin:0 0 8px; font-size:13px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--quiet); }
.atoc a { display:block; padding:10px 0; border-bottom:1px solid var(--line); color:var(--text); text-decoration:none; font-size:16px; }
.atoc a:hover { color:var(--select); }
.art { min-width:0; line-height:1.6; }
.art h2 { margin:72px 0 16px; font:500 clamp(30px,3.2vw,40px)/1.1 var(--display); letter-spacing:-.01em; color:var(--text); scroll-margin-top:96px; }
.art h2:first-child { margin-top:0; }
/* Who the article is for, before the first heading (article 6). */
.art .who { max-width:none; margin:0; padding:18px 22px; background:var(--bg); border-radius:10px; }
.art .who + h2 { margin-top:48px; }
.art p { margin:0 0 16px; max-width:38em; }
.art figure { margin:28px 0; }
.layers { background:var(--bg); border-radius:12px; padding:24px 24px 16px; }
.layers svg { display:block; width:100%; height:auto; }

.opts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:24px 0; }
.opt { display:flex; flex-direction:column; gap:8px; padding:22px 22px 20px; border:1px solid var(--line); border-radius:10px; background:#fff; }
.opt.ours { border:2px solid var(--primary); background:#F6F8FD; }
.opts .opt:last-child:nth-child(odd) { grid-column:1 / -1; }
.opt h3 { margin:0; font:500 24px/1.2 var(--display); }
.opt .cost { margin:0; font-size:16px; color:var(--quiet); }
.opt p { margin:0; font-size:17px; }
.meter { display:flex; align-items:center; gap:4px; margin-top:auto !important; padding-top:8px; font-size:15px; color:var(--quiet) !important; }
.meter i { display:inline-block; width:22px; height:6px; border-radius:3px; background:var(--line); }
.meter i.on { background:var(--primary); }

.atable { width:100%; border-collapse:collapse; font-size:16px; line-height:1.4; }
.atable caption { text-align:left; padding:0 0 10px; font-size:15px; color:var(--quiet); }
.atable th, .atable td { text-align:left; padding:12px 14px; border-bottom:1px solid var(--line); vertical-align:top; }
.atable thead th { font-size:14px; font-weight:600; color:var(--quiet); letter-spacing:.02em; border-bottom:2px solid var(--text); }
.atable tbody th { font-weight:600; }
.atable tr.ours { background:#F6F8FD; }
.atable.vs td:nth-child(2) { background:#F6F8FD; }
.yn { display:inline-flex; gap:7px; align-items:flex-start; }
.yn svg { flex:none; margin-top:3px; }

.asteps { list-style:none; margin:24px 0; padding:0; display:flex; flex-direction:column; gap:18px; }
.asteps li { display:grid; grid-template-columns:40px minmax(0,1fr); gap:16px; align-items:start; }
.asteps .n { width:36px; height:36px; border:1.5px solid var(--primary); border-radius:99px; display:flex; align-items:center; justify-content:center; font:500 18px/1 var(--display); color:var(--primary); }
.ashot { border:1px solid var(--line); border-radius:10px; overflow:hidden; background:var(--bg); }
/* "With Inklatch" plays the User Guide's clip once (clip.css, js/clip.js; owner, 19 Nov 2026). */
.art .clip { max-width:none; margin:28px 0; }
.ashot img { display:block; width:100%; height:auto; }
.ashot figcaption { padding:12px 16px; font-size:15px; color:var(--quiet); }

.asum { width:100%; border-collapse:collapse; margin:20px 0; font-size:16px; line-height:1.45; border:1px solid var(--line); }
.asum th, .asum td { text-align:left; padding:14px 18px; border-bottom:1px solid var(--line); vertical-align:top; }
.asum thead th { background:var(--bg); font-size:14px; color:var(--quiet); }
.asum tbody th { font-weight:600; width:44%; }

.watch { list-style:none; margin:20px 0; padding:0; display:flex; flex-direction:column; gap:14px; }
.watch li { display:grid; grid-template-columns:28px minmax(0,1fr); gap:12px; align-items:start; }

.afaq details { border-bottom:1px solid var(--line); }
.afaq summary { display:flex; justify-content:space-between; gap:16px; padding:18px 0; min-height:44px; font-weight:600; font-size:18px; cursor:pointer; list-style:none; }
.afaq summary::-webkit-details-marker { display:none; }
.afaq summary::after { content:"+"; font:400 26px/1 var(--display); color:var(--primary); }
.afaq details[open] summary::after { content:"\2212"; }
.afaq details p { margin:0 0 18px; }

.arel { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-top:20px; }
.arel a { display:flex; flex-direction:column; gap:6px; min-height:112px; padding:18px; border:1px solid var(--line); border-radius:10px; color:var(--text); text-decoration:none; }
.arel a:hover { border-color:var(--select); color:var(--text); }
.arel small { font-size:13px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--quiet); }
.arel span { font:500 21px/1.25 var(--display); }

.acta { background:var(--primary); color:#fff; padding:64px 0; }
.acta .wrap { display:flex; align-items:center; justify-content:space-between; gap:32px; }
.acta h2 { margin:0; font:500 clamp(32px,3.4vw,44px)/1.05 var(--display); }
.acta p { margin:14px 0 0; font-size:17px; color:#E6ECF8; }
.acta .go { display:flex; flex-wrap:wrap; align-items:center; gap:14px 22px; }
.acta .go a:not(.btn) { color:#fff; font-size:17px; }
.acta .go a:not(.btn):hover { color:var(--ice); }

/* The Articles index */
.alist { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.alist a { display:flex; flex-direction:column; gap:8px; height:100%; padding:24px; border:1px solid var(--line); border-radius:12px; color:var(--text); text-decoration:none; }
.alist a:hover { border-color:var(--select); color:var(--text); }
.alist small { font-size:13px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--quiet); }
.alist strong { font:500 26px/1.2 var(--display); }
.alist span { font-size:17px; color:var(--quiet); }

@media (max-width:999px) {
  .ahead-grid, .abody-grid { grid-template-columns:minmax(0,1fr); gap:28px; }
  .atoc { display:none; }
}
@media (max-width:700px) {
  .ahead { padding-bottom:104px; }
  .short { padding:22px 20px; }
  .short p:last-child { font-size:18px; }
  .opts, .arel, .alist { grid-template-columns:minmax(0,1fr); }
  .atable thead { display:none; }
  .atable tr { display:block; padding:10px 0; border-bottom:1px solid var(--line); }
  .atable th, .atable td { display:block; border:0; padding:4px 0; }
  .atable td::before { content:attr(data-l); display:block; font-size:13px; font-weight:600; color:var(--quiet); }
  .atable.vs td:nth-child(2) { background:none; }
  .asum tbody th { width:auto; }
  .acta .wrap { flex-direction:column; align-items:flex-start; }
  .ahead figcaption { flex-wrap:wrap; }
}
