mirror of
https://github.com/hanzoai/site.git
synced 2026-11-20 21:21:13 +00:00
Sign-in is hanzo.ai's own page again: Log in, Sign up and every link to them go to hanzo.ai/login and /signup, which the edge serves from the app. hanzo.ai's /_next is the app's for those pages, so this build's own files move to /assets/_next (assetPrefix, and `build` moves out/_next under out/assets). Claude-Session: https://claude.ai/code/session_015XYKLix9PSyn6Jw2HWKprk
150 lines
14 KiB
CSS
150 lines
14 KiB
CSS
/* ---------- newsletter: one screen (motion map: one-question + stretch-scroll) ---------- */
|
|
.xnl { --xp-accent: #525252; }
|
|
.xnl-hero { position: relative; padding: clamp(40px, 6vw, 96px) 0 clamp(96px, 12vw, 180px); overflow: hidden; }
|
|
.xnl-hero .xp-grid { align-items: center; row-gap: 48px; }
|
|
.xnl-copy { grid-column: 1 / span 7; }
|
|
.xnl-art { grid-column: 8 / span 5; }
|
|
.xnl-lede { margin-top: 32px; }
|
|
/* what each issue carries: Hanzo's checklist, each item rising in after the lede; the pointer on one lights its line on the paper */
|
|
.xnl-list { list-style: none; display: grid; gap: 4px; margin: 24px 0 0; padding: 0; }
|
|
.xnl-list li { display: flex; align-items: flex-start; gap: 12px; margin: 0 -10px; padding: 8px 10px; border-radius: 10px; font-size: 17px; line-height: 1.45; color: #262626; transition: background-color .2s cubic-bezier(0, 0, .2, 1); animation: xnl-in .5s var(--xp-ease) both; animation-delay: calc(.5s + var(--i) * .12s); }
|
|
.xnl-list li svg { flex: none; margin-top: 4px; color: #0a0a0a; }
|
|
@media (hover: hover) { .xnl-list li:hover { background-color: #f5f5f5; } }
|
|
@keyframes xnl-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
|
|
.xnl-bars li span i { transition: background-color .25s cubic-bezier(0, 0, .2, 1); }
|
|
.xnl-bars li.hot span i { background: #0a0a0a; }
|
|
.xnl-bars li.hot span i + i { background: #a3a3a3; }
|
|
|
|
/* one question at a time: three panels on one sliding track */
|
|
.xnl-formwrap { margin-top: 32px; max-width: 600px; }
|
|
.xnl-track { position: relative; height: 66px; overflow: hidden; margin: -4px; padding: 4px; }
|
|
.xnl-q { position: absolute; inset: 4px; transform: translateX(calc(var(--d) * 110%)); opacity: 0; transition: transform .55s cubic-bezier(.16, 1, .3, 1), opacity .3s cubic-bezier(0, 0, .2, 1); }
|
|
.xnl-q.on { transform: none; opacity: 1; }
|
|
.xnl-form { display: flex; align-items: center; gap: 4px; height: 58px; padding: 4px; border-radius: 28px; border: 1px solid rgba(0, 0, 0, .14); background: #fff; transition: border-color .15s, box-shadow .15s; }
|
|
@media (hover: hover) { .xnl-form:hover { border-color: #a3a3a3; } }
|
|
.xnl-form:focus-within { border-color: #0a0a0a; box-shadow: 0 0 0 1px #0a0a0a; }
|
|
.xnl-form input { flex: 1; min-width: 0; height: 48px; padding: 0 20px; border: 0; border-radius: 24px; background: transparent; font: 400 17px/1 var(--sans); color: var(--ink); outline: none; }
|
|
.xnl-form input::placeholder { color: var(--faint); }
|
|
.xnl-form .xp-cta { height: 48px; }
|
|
.xnl-form:has(input[aria-invalid='true']) { border-style: dashed; border-color: #0a0a0a; }
|
|
.xnl-check { background: #f5f5f5; border-color: transparent; }
|
|
.xnl-back { all: unset; box-sizing: border-box; display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; color: #0a0a0a; cursor: pointer; transition: background-color .15s cubic-bezier(0, 0, .2, 1), transform 90ms ease-out; }
|
|
@media (hover: hover) { .xnl-back:hover { background-color: #e9e9e9; } .xnl-back:hover svg { transform: translateX(-2px); } }
|
|
.xnl-back svg { transition: transform .15s cubic-bezier(0, 0, .2, 1); }
|
|
.xnl-back:active { transform: scale(.97); }
|
|
.xnl-back:focus-visible { outline: 2px solid #0a0a0a; outline-offset: 2px; }
|
|
.xnl-answer { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 497 17px/1 var(--sans); letter-spacing: -.01em; color: #0a0a0a; }
|
|
.xnl-sent { display: flex; gap: 14px; align-items: center; height: 58px; margin: 0; padding: 0 20px; border-radius: 28px; background: #f5f5f5; font-size: 15px; line-height: 1.35; outline: none; }
|
|
.xnl-sent .x-tick { flex: none; stroke: var(--xp-accent); }
|
|
.xnl-err { margin: 12px 0 0 22px; font-size: 15px; color: #404040; }
|
|
/* the answer summarised as it builds */
|
|
.xnl-sum { list-style: none; display: flex; gap: 8px; margin: 14px 0 0 22px; padding: 0; }
|
|
.xnl-sum li { position: relative; display: flex; align-items: center; gap: 8px; min-width: 56px; height: 26px; padding-top: 6px; color: #737373; font-size: 13px; }
|
|
.xnl-sum li::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(0, 0, 0, .12); }
|
|
.xnl-sum li::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: #0a0a0a; transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
|
|
.xnl-sum li.on::after, .xnl-sum li.done::after { transform: scaleX(1); }
|
|
.xnl-sum li.on, .xnl-sum li.done { color: #0a0a0a; }
|
|
.xnl-sum b { max-width: 28ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 497; }
|
|
.xnl-sum .x-tick { stroke: #0a0a0a; }
|
|
.xnl-terms { margin: 12px 0 0 22px; max-width: 54ch; font-size: 14px; line-height: 1.55; color: var(--faint); }
|
|
.xnl-link { position: relative; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--xp-accent); }
|
|
.xnl-link::after { content: ''; position: absolute; left: -8px; right: -8px; top: 50%; height: 44px; transform: translateY(-50%); }
|
|
@media (hover: hover) { .xnl-link { transition: text-decoration-color .15s ease-out, text-decoration-thickness .15s ease-out; } .xnl-link:hover { text-decoration-color: #0a0a0a; text-decoration-thickness: 2px; } }
|
|
html:not(.js) .xnl-q:not(.on) { display: none; }
|
|
|
|
/* the paper issue (the summary) and its envelope */
|
|
.xnl-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); place-items: center; height: 640px; perspective: 1400px; }
|
|
.xnl-tilt { width: 100%; height: 100%; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; transition: transform .15s cubic-bezier(0, 0, .2, 1); transform-style: preserve-3d; }
|
|
.xnl-paper { position: relative; width: min(100%, 480px); aspect-ratio: 4 / 5; padding: 32px; border-radius: 8px; background: #fff; border: 1px solid var(--line); transform-origin: 50% 100%; }
|
|
.xnl-mast { position: relative; height: 38%; margin: -32px -32px 28px; border-radius: 6px 6px 0 0; overflow: hidden; background: #0a0a0a; color: rgba(255, 255, 255, .55); }
|
|
.xnl-sigil { position: absolute; inset: 0; width: 100%; height: 100%; }
|
|
.xnl-brand { position: absolute; left: 22px; bottom: 18px; display: flex; align-items: center; gap: 8px; color: #fff; font-size: 22px; font-weight: 560; letter-spacing: -.03em; }
|
|
.xnl-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: l; }
|
|
.xnl-lines li { position: relative; padding-left: 30px; counter-increment: l; }
|
|
.xnl-lines li::before { content: counter(l, decimal-leading-zero); position: absolute; left: 0; top: 2px; font: 500 13px/1.4 var(--mono); color: var(--faint); }
|
|
.xnl-lines li span { position: relative; display: block; }
|
|
/* each item is set like type, once: a white sheet slides off it, then the page rests */
|
|
.xnl-lines li span::after { content: ''; position: absolute; inset: -2px -4px; background: #fff; transform-origin: 100% 50%; animation: xnl-set .5s var(--xp-ease) both; animation-delay: calc(.6s + var(--i) * .4s); }
|
|
@keyframes xnl-set { from { transform: scaleX(1); } to { transform: scaleX(0); } }
|
|
.xnl-bars li span { display: grid; gap: 9px; padding-top: 5px; }
|
|
.xnl-bars li span i { display: block; height: 9px; border-radius: 4px; background: #262626; }
|
|
.xnl-bars li span i + i { background: #d4d4d4; }
|
|
.xnl-paper-to { position: absolute; left: 32px; right: 32px; bottom: 28px; margin: 0; display: flex; gap: 12px; align-items: center; padding-top: 14px; border-top: 1px dashed rgba(0, 0, 0, .14); opacity: 0; transform: translateY(6px); transition: opacity .3s cubic-bezier(0, 0, .2, 1), transform .3s cubic-bezier(.16, 1, .3, 1); }
|
|
.xnl-paper-to.on { opacity: 1; transform: none; }
|
|
.xnl-paper-to > span:first-child { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #737373; }
|
|
.xnl-paper-to b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 497 17px/1.3 var(--sans); letter-spacing: -.01em; color: #0a0a0a; }
|
|
.xnl-paper-stamp { display: grid; place-items: center; width: 30px; height: 36px; border: 1.5px dashed #737373; border-radius: 4px; color: #0a0a0a; transform: scale(0) rotate(-12deg); transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
|
|
.xnl-paper.checked .xnl-paper-stamp { transform: scale(1) rotate(-6deg); }
|
|
.xnl-env { position: relative; width: min(100%, 500px); aspect-ratio: 16 / 10; border-radius: 12px; background: var(--card); border: 1px solid var(--line); transform-style: preserve-3d; }
|
|
.xnl-flap { position: absolute; inset: 0 0 auto; height: 58%; background: #e9e9e9; clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: 50% 0; border-radius: 10px 10px 0 0; }
|
|
.xnl-stamp { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 44px; height: 52px; border: 1.5px dashed rgba(82, 82, 82, .5); border-radius: 4px; background: #fff; color: var(--xp-accent); }
|
|
.xnl-to { position: absolute; left: 28px; bottom: 54px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
|
|
.xnl-addr { position: absolute; left: 28px; right: 28px; bottom: 26px; font-size: 18px; font-weight: 560; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.xnl-lines li span::after { animation: none; transform: scaleX(0); }
|
|
.xnl-list li { animation: none; }
|
|
.xnl-tilt { transform: none !important; }
|
|
.xnl-q { transition: none !important; }
|
|
}
|
|
@media (max-width: 900px) {
|
|
.xnl-hero { padding: 32px 0 56px; }
|
|
.xnl-list li { font-size: 16px; }
|
|
.xnl-hero .xp-grid { row-gap: 8px; }
|
|
.xnl-track { height: 130px; }
|
|
.xnl-form { flex-direction: column; align-items: stretch; height: auto; border-radius: 24px; }
|
|
.xnl-form input { height: 56px; text-align: center; }
|
|
.xnl-form .xp-cta { width: 100%; }
|
|
.xnl-check { flex-direction: row; flex-wrap: wrap; align-items: center; }
|
|
.xnl-check .xp-cta { flex-basis: 100%; }
|
|
.xnl-answer { padding-right: 12px; }
|
|
.xnl-sent { height: auto; min-height: 58px; padding: 16px 18px; border-radius: 20px; }
|
|
.xnl-terms, .xnl-err, .xnl-sum { margin-left: 4px; }
|
|
.xnl-stage { height: 420px; padding-inline: 12px; }
|
|
.xnl-paper { width: min(100% - 28px, 300px); }
|
|
}
|
|
/* phones: the header keeps the site's "Try Hanzo" (the ask swap is desktop-only), so there it is always the outline and
|
|
the page's own "Subscribe" is the only solid ask (shared fix requested in docs/build-notes/requests/newsletter.md) */
|
|
@media (max-width: 899px) {
|
|
html:has(main.xnl) header[data-slot=masthead] a[href='https://hanzo.ai/signup'] { background-color: transparent; color: var(--foreground); box-shadow: inset 0 0 0 1px var(--border, rgba(0, 0, 0, .14)); }
|
|
html:has(main.xnl) header[data-slot=masthead] a[href='https://hanzo.ai/signup']:active { transform: scale(.97); }
|
|
}
|
|
|
|
/* ---------- dark mode (docs/DARK-MODE.md): live hanzo.ai's dark, by role, in Hanzo's own tokens ----------
|
|
page --background; the ask's field on --secondary with a --border ring, as live's sign-up field; the paper issue and the
|
|
envelope on --muted with --border rings; text --foreground, --muted-foreground and --text-tertiary. The paper's black
|
|
masthead (Hanzo's sigil art) stays black in both modes. */
|
|
html:not(.light) .xnl { --xp-accent: var(--muted-foreground); }
|
|
html:not(.light) .xnl-hero { background: radial-gradient(60% 70% at 50% 0%, rgba(229, 229, 229, .09), transparent 70%); }
|
|
html:not(.light) .xnl-list li { color: var(--foreground); }
|
|
html:not(.light) .xnl-list li svg, html:not(.light) :is(.xnl-back, .xnl-answer) { color: var(--foreground); }
|
|
@media (hover: hover) { html:not(.light) .xnl-list li:hover { background-color: var(--muted); } }
|
|
html:not(.light) .xnl-form { background: var(--secondary); border-color: var(--border); }
|
|
@media (hover: hover) { html:not(.light) .xnl-form:hover { border-color: var(--text-tertiary); } }
|
|
html:not(.light) .xnl-form:focus-within { border-color: var(--foreground); box-shadow: 0 0 0 1px var(--foreground); }
|
|
html:not(.light) .xnl-form:has(input[aria-invalid='true']) { border-color: var(--foreground); }
|
|
html:not(.light) .xnl-check { background: var(--muted); border-color: transparent; }
|
|
@media (hover: hover) { html:not(.light) .xnl-back:hover { background-color: var(--secondary); } }
|
|
html:not(.light) .xnl-back:focus-visible { outline-color: var(--foreground); }
|
|
html:not(.light) .xnl-sent { background: var(--muted); }
|
|
html:not(.light) .xnl-err { color: var(--muted-foreground); }
|
|
html:not(.light) .xnl-sum li { color: var(--text-tertiary); }
|
|
html:not(.light) .xnl-sum li::before { background: var(--border-control); }
|
|
html:not(.light) .xnl-sum li::after { background: var(--foreground); }
|
|
html:not(.light) :is(.xnl-sum li.on, .xnl-sum li.done) { color: var(--foreground); }
|
|
html:not(.light) .xnl-sum .x-tick { stroke: var(--foreground); }
|
|
@media (hover: hover) { html:not(.light) .xnl-link:hover { text-decoration-color: var(--foreground); } }
|
|
html:not(.light) .xnl-paper { background: var(--muted); border-color: var(--border); }
|
|
html:not(.light) .xnl-lines li span::after { background: var(--muted); }
|
|
html:not(.light) .xnl-bars li span i { background: var(--muted-foreground); }
|
|
html:not(.light) .xnl-bars li span i + i { background: var(--secondary); }
|
|
html:not(.light) .xnl-bars li.hot span i { background: var(--foreground); }
|
|
html:not(.light) .xnl-bars li.hot span i + i { background: var(--text-tertiary); }
|
|
html:not(.light) .xnl-paper-to { border-top-color: var(--border-control); }
|
|
html:not(.light) .xnl-paper-to > span:first-child { color: var(--text-tertiary); }
|
|
html:not(.light) .xnl-paper-to b { color: var(--foreground); }
|
|
html:not(.light) .xnl-paper-stamp { border-color: var(--text-tertiary); color: var(--foreground); }
|
|
html:not(.light) .xnl-env { background: var(--muted); border-color: var(--border); }
|
|
html:not(.light) .xnl-flap { background: var(--secondary); }
|
|
html:not(.light) .xnl-stamp { background: var(--background); border-color: var(--border-strong); }
|