/* disein.app — "Ink & Lime", same tokens as the app chrome (ui/src/App.css, test/dis-ui.dis › Web › Site). */
/* subset: only the glyphs of the "dis" wordmark (same face as the app's welcome mark) */
@font-face {
  font-family: "Dis Newsreader Italic";
  src: url("/fonts/Newsreader-italic-dis.woff2") format("woff2");
  font-style: italic;
  font-weight: 500;
  font-display: block;
}
@font-face {
  font-family: "Dis Inter";
  src: url("/fonts/Inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --canvas: #0e0e10;
  --hairline: #ffffff17;
  --text: #ecebe6;
  --text-muted: #a3a29c;
  --accent-subtle: #cdf26b1f;
  --accent-ink: #cdf26b;
  --selection: #cdf26b;
  --font: "Dis Inter", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --pad: 120px;
  --chrome: #1a1a1ee0;
  --shadow: #00000059;
  --dot: #ffffff17;
  --glow-lime: #cdf26b2b;
  --glow-violet: #a99bff2b;
  --enter: cubic-bezier(0.2, 0, 0, 1);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --canvas: #efeee9;
    --hairline: #00000014;
    --text: #17171a;
    --text-muted: #64635e;
    --accent-subtle: #cdf26b4d;
    --accent-ink: #3d5700;
    --selection: #4c7000;
    --chrome: #fdfcf9e6;
    --shadow: #2a26201a;
    --dot: #0000001c;
    --glow-lime: #cdf26b55;
    --glow-violet: #6a57f01c;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 40px var(--pad);
  background: var(--canvas);
  color: var(--text-muted);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color 120ms ease-out; }
a:hover { color: var(--text); }
a:focus-visible { outline: 2px solid var(--selection); outline-offset: 3px; border-radius: 2px; }
.ink { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ink:hover { color: var(--accent-ink); text-decoration-thickness: 2px; }
.small { font-size: 14px; line-height: 1.4; }

/* header / footer */
.top { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 24px; font-size: 14px; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 24px; }
/* floating header: pinned pill, translucent app chrome + blur (all pages) */
.top { position: sticky; top: 12px; z-index: 50; width: min(1200px, 100%); margin: 0 auto; padding: 10px 12px 10px 24px; min-height: 56px; border-radius: 999px;
  background: var(--chrome); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  outline: 1px solid var(--hairline); box-shadow: 0 8px 24px -8px var(--shadow); transition: box-shadow 200ms ease-out; }
.scrolled .top { box-shadow: 0 12px 32px -8px var(--shadow), 0 1px 2px var(--shadow); }
/* compact CTA grows into the pill once the hero's own button has scrolled away (one primary action in view) */
.head-cta { display: inline-flex; align-items: center; overflow: hidden; max-width: 0; min-height: 36px; padding: 0; margin-left: -24px; border-radius: 999px; background: #cdf26b; color: #121214; font-size: 14px; font-weight: 600; white-space: nowrap;
  opacity: 0; visibility: hidden; transform: scale(0.96); transition: max-width 240ms cubic-bezier(0.2, 0, 0, 1), padding 240ms cubic-bezier(0.2, 0, 0, 1), margin 240ms cubic-bezier(0.2, 0, 0, 1), opacity 120ms ease-in, transform 240ms cubic-bezier(0.2, 0, 0, 1), visibility 0s 240ms; }
.head-cta:hover { color: #121214; background: #d9f78a; }
.past-hero .head-cta { max-width: 200px; padding: 0 16px; margin-left: 0; opacity: 1; visibility: visible; transform: none; transition: max-width 240ms cubic-bezier(0.2, 0, 0, 1), padding 240ms cubic-bezier(0.2, 0, 0, 1), margin 240ms cubic-bezier(0.2, 0, 0, 1), opacity 160ms 80ms ease-out, transform 240ms cubic-bezier(0.2, 0, 0, 1), visibility 0s; }
.wordmark { font: italic 500 26px/1 "Dis Newsreader Italic", Georgia, serif; letter-spacing: -0.3px; color: var(--accent-ink); transition: opacity 120ms ease-out; }
.wordmark:hover { color: var(--accent-ink); opacity: 0.8; }
.foot { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; line-height: 1.4; }

/* home — the page is a canvas (test/dis-ui.dis › Web › Site, S1) */
/* the page is a canvas: Dis-style dot grid + two soft glows (lime at the hero, violet where the agent works) */
body.home {
  padding: 0;
  background:
    radial-gradient(1100px 620px at 50% -8%, var(--glow-lime), transparent 70%),
    radial-gradient(900px 700px at 88% 1500px, var(--glow-violet), transparent 70%),
    radial-gradient(800px 600px at 8% 2500px, var(--glow-lime), transparent 70%),
    radial-gradient(circle at 1px 1px, var(--dot) 1px, transparent 1.6px) 0 0 / 24px 24px,
    var(--canvas);
}
.home .top { margin-top: 12px; width: min(1200px, calc(100% - 24px)); }
h1, h2, h3 { margin: 0; color: var(--text); font-weight: 700; }
.hero { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 64px 24px 40px; text-align: center; }
.display { max-width: 920px; font-size: clamp(44px, 5.6vw + 4px, 80px); line-height: 1; letter-spacing: -0.0375em; text-wrap: balance; animation: dis-rise 160ms 40ms ease-out both; }
.soon { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 12px; border-radius: 999px; background: var(--accent-subtle); color: var(--text); font-size: 14px; line-height: 1.4; animation: dis-fade 160ms ease-out both; }
.soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-ink); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 24px; margin: 8px 0 0; animation: dis-rise 160ms 80ms ease-out both; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 24px; border-radius: 999px; background: #cdf26b; color: #121214; font-size: 16px; font-weight: 600; line-height: 1.5; transition: background-color 120ms ease-out, transform 120ms ease-out; }
.btn:hover { color: #121214; background: #d9f78a; }
.btn:active { transform: scale(0.98); }
.link { color: var(--text); font-size: 16px; }
.link:hover { color: var(--accent-ink); }

/* canvas band: examples made in Dis. No JS: static, centered, Nocturne selected.
   JS (site.js): endless carousel (pauses on hover / off-screen), Claude selects cards as they pass, You wanders. */
.band { --k: 1; position: relative; display: flex; justify-content: center; overflow: hidden; padding: 40px 0 72px; animation: dis-fade 160ms 80ms ease-out both; }
.track { flex: none; display: flex; align-items: center; gap: 40px; will-change: transform; }
.js .band { justify-content: flex-start; }
.frame { flex: none; display: flex; flex-direction: column; gap: 8px; margin: 0; }
.frame figcaption { font-size: 12px; font-weight: 500; line-height: 1.3; color: var(--text-muted); white-space: nowrap; transition: color 120ms ease-out; }
.frame.selected figcaption { color: var(--accent-ink); }
.art { position: relative; }
.art img { display: block; width: auto; height: calc(var(--h) * var(--k)); border-radius: 4px; box-shadow: 0 12px 32px -8px #0000004d; }
.f-field { --h: 400px; } .f-tempo { --h: 450px; } .f-noct { --h: 460px; } .f-harbor { --h: 450px; } .f-koya { --h: 360px; }
/* selection: border + handles + size pill, faded/scaled in when a card is selected (160ms in, 120ms out) */
.art::after, .edit::after { content: ""; position: absolute; inset: -1px; border: 2px solid var(--selection); pointer-events: none; opacity: 0; transition: opacity 120ms ease-in; }
.art > .h, .edit > .h { position: absolute; z-index: 1; width: 10px; height: 10px; border-radius: 2px; background: var(--selection); opacity: 0; transform: scale(0.4); transition: opacity 120ms ease-in, transform 120ms ease-in; }
.h:nth-of-type(1) { left: -5px; top: -5px; } .h:nth-of-type(2) { right: -5px; top: -5px; }
.h:nth-of-type(3) { left: -5px; bottom: -5px; } .h:nth-of-type(4) { right: -5px; bottom: -5px; }
.dim { position: absolute; left: 50%; bottom: -34px; padding: 2px 8px; border-radius: 4px; background: var(--selection); color: var(--canvas); font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap; opacity: 0; transform: translate(-50%, -4px); transition: opacity 120ms ease-in, transform 120ms ease-in; }
.selected .art::after, .edit.on::after { opacity: 1; transition: opacity 160ms ease-out; }
.selected .art > .h, .edit.on > .h { opacity: 1; transform: none; transition: opacity 160ms ease-out, transform 160ms ease-out; }
.selected .dim { opacity: 1; transform: translate(-50%, 0); transition: opacity 160ms 60ms ease-out, transform 160ms 60ms ease-out; }
.cursor { position: absolute; left: 0; top: 0; z-index: 3; display: block; pointer-events: none; will-change: transform; }
.cursor svg { display: block; }
.cursor b { position: absolute; left: 12px; top: 18px; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.c-claude, .c-agent { color: #a99bff; } .c-claude b, .c-agent b { background: #a99bff; color: #121214; }
.c-you { color: #cdf26b; } .c-you b { background: #cdf26b; color: #121214; }
html:not(.js) .band .cursor { display: none; }

/* the real app — a live comment round-trip over the screenshot (positions in 1440×900 shot units) */
.app { display: flex; flex-direction: column; align-items: center; gap: 40px; padding: 96px 24px 0; text-align: center; }
.h-section { font-size: clamp(30px, 2.4vw + 12px, 44px); line-height: 1.1; letter-spacing: -0.03em; }
.stage { --u: calc(100cqw / 1440); position: relative; width: 100%; max-width: 1200px; container-type: inline-size; text-align: left; border-radius: 14px; outline: 1px solid var(--hairline); box-shadow: 0 24px 64px -16px #00000066; }
.shot { display: block; width: 100%; height: auto; border-radius: 14px; }
.shot.after { position: absolute; inset: 0; transition: opacity 400ms ease-out; }
.edit { position: absolute; left: calc(var(--u) * 622); top: calc(var(--u) * 166); width: calc(var(--u) * 280); height: calc(var(--u) * 318); pointer-events: none; }
.pin { position: absolute; left: calc(var(--u) * 894); top: calc(var(--u) * 196); display: grid; place-items: center; width: calc(var(--u) * 24); height: calc(var(--u) * 24); border-radius: 50%; background: #ecebe6; color: #121214; outline: calc(var(--u) * 2) solid #0e0e10; font: 600 calc(var(--u) * 11) / 1 var(--font); transition: background-color 120ms ease-out, outline-color 120ms ease-out, opacity 160ms ease-out, transform 160ms ease-out; }
.pin i { position: absolute; right: calc(var(--u) * -4); bottom: calc(var(--u) * -4); width: calc(var(--u) * 11); height: calc(var(--u) * 11); border-radius: 50%; background: #cdf26b; opacity: 0; transform: scale(0.6); transition: opacity 160ms ease-out, transform 160ms ease-out; }
.pin.addressed { background: #a99bff; outline-color: #cdf26b; }
.pin.addressed i { opacity: 1; transform: none; }
.thread { position: absolute; left: calc(var(--u) * 934); top: calc(var(--u) * 196); width: calc(var(--u) * 320); display: flex; flex-direction: column; padding: calc(var(--u) * 12); border-radius: calc(var(--u) * 12); background: #2a2a30; outline: 1px solid #ffffff17; box-shadow: 0 8px 24px -4px #00000059; color: #ecebe6; font: 400 calc(var(--u) * 12) / 1.4 var(--font); transform-origin: calc(var(--u) * -28) calc(var(--u) * 12); transition: opacity 240ms cubic-bezier(0.2, 0, 0, 1), transform 240ms cubic-bezier(0.2, 0, 0, 1); }
.thread .bar { color: #a3a29c; font-size: calc(var(--u) * 11); } .thread .bar b { color: #ecebe6; font-weight: 600; }
.thread .head { display: flex; align-items: center; gap: calc(var(--u) * 6); margin-bottom: calc(var(--u) * 4); }
.thread .head b { font-weight: 600; } .thread time { color: #7c7b76; font-size: calc(var(--u) * 11); }
.thread p { margin: 0; font-size: calc(var(--u) * 12.5); line-height: 1.5; min-height: 1.5em; }
.av { display: inline-grid; place-items: center; width: calc(var(--u) * 18); height: calc(var(--u) * 18); border-radius: 50%; background: #ecebe6; color: #121214; font-size: calc(var(--u) * 10); font-weight: 700; flex: none; }
.av.c { background: #a99bff; }
.chip { padding: calc(var(--u) * 1) calc(var(--u) * 6); border-radius: calc(var(--u) * 6); background: #a99bff33; color: #c9c0ff; font-size: calc(var(--u) * 10.5); transition: opacity 160ms ease-out, transform 160ms ease-out; }
.working { display: flex; align-items: center; gap: calc(var(--u) * 6); color: #a3a29c; overflow: hidden; transition: opacity 160ms ease-out, max-height 200ms ease-out, margin-top 200ms ease-out; max-height: calc(var(--u) * 30); }
.dots { display: inline-flex; gap: 3px; } .dots i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; animation: dis-dot 900ms ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: 150ms; } .dots i:nth-child(3) { animation-delay: 300ms; }
.review { display: flex; gap: calc(var(--u) * 8); align-items: center; }
.reply { flex: 1; padding: calc(var(--u) * 7) calc(var(--u) * 10); border-radius: calc(var(--u) * 8); outline: 1px solid #ffffff17; color: #7c7b76; }
.accept { padding: calc(var(--u) * 7) calc(var(--u) * 12); border-radius: calc(var(--u) * 8); background: #cdf26b; color: #121214; font-weight: 600; transition: box-shadow 240ms ease-out; }
.accept.pulse { box-shadow: 0 0 0 calc(var(--u) * 5) #cdf26b40; }
.thread > * + * { margin-top: calc(var(--u) * 10); }
.msg, .review { overflow: hidden; max-height: calc(var(--u) * 240); transition: opacity 160ms ease-out, transform 160ms ease-out, max-height 200ms ease-out, margin-top 200ms ease-out; }
.stage .msg.gone, .stage .review.gone, .stage .working.gone { max-height: 0; margin-top: 0; }
/* hidden states used by the sequence (JS adds them; without JS the final state shows) */
.stage .gone { opacity: 0; transform: translateY(4px); }
.stage .pin.gone { transform: scale(0.6); }
.stage .thread.gone { transform: scale(0.92); }
.stage .shot.after.gone { transform: none; }
.c-agent { opacity: 0; transition: opacity 160ms ease-out, transform 900ms cubic-bezier(0.2, 0, 0, 1); }
.instant, .instant * { transition: none !important; }
.c-agent.on { opacity: 1; }
.caret::after { content: ""; display: inline-block; width: 1px; height: 1em; margin-left: 1px; vertical-align: -0.15em; background: currentColor; animation: dis-blink 1s steps(1) infinite; }

/* scroll reveals (JS only): fade + 8px rise, 160ms, tiles staggered */
.js [data-reveal], .js [data-reveal-children] > * { opacity: 0; transform: translateY(8px); transition: opacity 160ms ease-out, transform 160ms ease-out; }
.js [data-reveal].in, .js [data-reveal-children] > .in { opacity: 1; transform: none; }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; width: 100%; max-width: 1248px; margin: 0 auto; padding: 64px 24px 0; }
.tile { display: flex; flex-direction: column; gap: 12px; }
/* hover: the card is "selected" like a frame on the Dis canvas — selection + handles + live size pill morph in,
   a spotlight follows the pointer 1:1, the UI inside lifts, the title turns lime */
.tile-frame { position: relative; }
.tile-frame::after { content: ""; position: absolute; inset: -3px; border: 2px solid var(--selection); border-radius: 17px; pointer-events: none; opacity: 0; transform: scale(1.015); transition: opacity 120ms ease-in, transform 120ms ease-in; }
.tile-frame > .dim { bottom: -12px; z-index: 2; }
.tile-shot { position: relative; }
.tile-shot::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 160ms ease-out;
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), #ffffff1c, transparent 70%); mix-blend-mode: screen; }
.tile-shot img { transition: transform 240ms cubic-bezier(0.2, 0, 0, 1); }
.tile h3 { transition: color 120ms ease-out; }
@media (hover: hover) {
  .tile:hover .tile-frame::after { opacity: 1; transform: none; transition: opacity 160ms ease-out, transform 240ms cubic-bezier(0.2, 0, 0, 1); }
  .tile:hover .tile-frame > .dim { opacity: 1; transform: translate(-50%, 0); transition: opacity 160ms 80ms ease-out, transform 160ms 80ms ease-out; }
  .tile:hover .tile-shot::before { opacity: 1; }
  .tile:hover .tile-shot img { transform: scale(1.035); }
  .tile:hover h3 { color: var(--accent-ink); }
}
.tile-shot { height: 300px; padding: 24px; border-radius: 14px; background: #0e0e10; outline: 1px solid var(--hairline); overflow: hidden; }
.tile-shot img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tile-shot.crop-top img { object-fit: cover; object-position: top; }
.tile-shot.full { padding: 0; }
.tile-shot.full img { object-fit: cover; }
.tile h3 { font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -0.2px; }
.tile p { margin: 0; font-size: 14px; line-height: 1.5; }
.home .foot { padding: 96px 40px 40px; max-width: 1248px; width: 100%; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* reading pages */
.article { width: 100%; max-width: 680px; margin: 64px auto; animation: dis-rise 160ms ease-out both; }
.article h1 { font-size: clamp(34px, 2.4vw + 14px, 44px); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 16px; }
.article h2 { font-size: 22px; font-weight: 600; line-height: 1.3; letter-spacing: -0.014em; margin: 48px 0 16px; }
.article p, .article ul { margin: 0 0 16px; }
.article h1 + p { color: var(--text); }
.article ul { padding: 0; list-style: none; }
.article li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.article li::before { content: "—"; position: absolute; left: 0; }
.article strong { color: var(--text); font-weight: 600; }
.article code { font: 15px/1 ui-monospace, Menlo, monospace; color: var(--text); }
.article a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.article a:hover { text-decoration-thickness: 2px; }
.page .foot { padding-top: 24px; border-top: 1px solid var(--hairline); }

/* 404 */
.missing { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.missing .code { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 1px; color: var(--accent-ink); }
.missing h1 { font-size: clamp(34px, 2.4vw + 14px, 44px); line-height: 1.1; letter-spacing: -0.03em; }
.missing p { margin: 0; }

@keyframes dis-fade { from { opacity: 0; } }
@keyframes dis-rise { from { opacity: 0; transform: translateY(6px); } }
@keyframes dis-dot { 50% { opacity: 0.25; } }
@keyframes dis-blink { 50% { opacity: 0; } }

@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  :root { --pad: 24px; }
  body { padding-top: 24px; padding-bottom: 24px; }
  .top { padding: 8px 8px 8px 18px; min-height: 48px; gap: 12px; }
  .top nav { gap: 16px; }
  .home .top nav a[href="mailto:hello@disein.app"] { display: none; }
  .hero { padding-top: 40px; }
  .band { --k: 0.62; padding-bottom: 56px; }
  .track { gap: 24px; }
  .app { padding-top: 64px; }
  .tiles { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .tile-shot { height: 260px; }
  .home .foot { padding-top: 64px; }
  .article { margin: 40px auto; }
  .article h2 { margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .display, .soon, .actions, .band, .article { animation: dis-fade 100ms ease-out both; }
  .js [data-reveal], .js [data-reveal-children] > * { transform: none; transition: opacity 100ms ease-out; }
  .thread, .msg, .review, .pin, .pin i, .dim, .art > .h, .edit > .h, .chip { transform: none !important; }
  .dots i, .caret::after { animation: none; }
  .tile:hover .tile-shot img { transform: none; }
  .tile-shot::before { display: none; }
}
