Files

564 lines
12 KiB
CSS

/* hanzo.works
*
* Palette, type ramp and radii are @hanzo/design tokens. Nothing here invents
* a value, so this page moves with every other Hanzo surface.
*
* Dark at :root, light on `.light`. applyTheme() from @hanzo/iam/react is the
* one control; components/Chrome.tsx mirrors its answer onto that class.
*/
@import '@hanzo/design/styles.css';
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
-webkit-text-size-adjust: 100%;
}
body {
margin: 0;
background: var(--background);
color: var(--foreground);
font-family: var(--font-sans);
font-size: var(--text-base);
line-height: 1.65;
-webkit-font-smoothing: antialiased;
}
/* The measure. One rail, so nav, hero and every section align on one edge. */
.wrap {
max-width: 62rem;
margin: 0 auto;
padding: 0 1.75rem;
}
/* ── The dot field ──────────────────────────────────────────────────────
One repeating radial-gradient, masked out along the diagonal so it reads
as a wave rather than wallpaper. It is the family resemblance to
hanzoskills.com, drawn here in design-system tokens. */
.hero {
position: relative;
overflow: hidden;
border-bottom: 1px solid var(--border);
}
.hero::before {
content: '';
position: absolute;
inset: 0;
background-image: radial-gradient(var(--border-strong) 1px, transparent 1px);
background-size: 7px 7px;
-webkit-mask-image: linear-gradient(115deg, #000 0%, rgb(0 0 0 / 0.55) 38%, transparent 72%);
mask-image: linear-gradient(115deg, #000 0%, rgb(0 0 0 / 0.55) 38%, transparent 72%);
pointer-events: none;
}
.hero .wrap {
position: relative;
padding-top: 6rem;
padding-bottom: 4.5rem;
}
/* ── Nav ─────────────────────────────────────────────────────────────── */
nav {
border-bottom: 1px solid var(--border);
}
nav .in {
max-width: 62rem;
margin: 0 auto;
padding: 1.1rem 1.75rem;
display: flex;
justify-content: space-between;
align-items: center;
gap: 1rem;
}
.brand {
display: inline-flex;
align-items: center;
gap: 0.6rem;
font-family: var(--font-mono);
font-size: 0.85rem;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--foreground);
text-decoration: none;
}
.brand i {
font-style: normal;
color: var(--muted-foreground);
}
.navlinks {
display: flex;
align-items: center;
gap: 1.1rem;
}
.navlink {
font-family: var(--font-mono);
font-size: 0.72rem;
letter-spacing: 0.14em;
text-transform: uppercase;
white-space: nowrap;
color: var(--muted-foreground);
text-decoration: none;
background: none;
border: 0;
padding: 0;
cursor: pointer;
}
.navlink:hover {
color: var(--foreground);
}
/* The nav is one row of mono set in wide tracking, so it runs out of phone
before anything else does. Tighten it rather than drop a destination. */
@media (max-width: 30rem) {
nav .in {
padding: 1rem 1.1rem;
}
.brand {
font-size: 0.75rem;
gap: 0.45rem;
}
.navlinks {
gap: 0.7rem;
}
.navlink {
font-size: 0.62rem;
letter-spacing: 0.08em;
}
.wrap {
padding: 0 1.1rem;
}
}
/* ── Type ────────────────────────────────────────────────────────────── */
h1 {
font-family: var(--font-mono);
font-size: clamp(2rem, 5.4vw, 3.4rem);
line-height: 1.12;
letter-spacing: -0.02em;
margin: 0 0 1.15rem;
font-weight: 500;
text-wrap: balance;
}
h1 em {
font-style: normal;
color: var(--muted-foreground);
}
.lede {
color: var(--muted-foreground);
font-size: 1.05rem;
max-width: 54ch;
margin: 0 0 2.25rem;
}
h2 {
font-family: var(--font-mono);
font-size: 1.1rem;
letter-spacing: -0.01em;
margin: 0 0 0.4rem;
font-weight: 500;
}
p {
margin: 0 0 1rem;
max-width: 70ch;
}
a {
color: var(--foreground);
text-decoration: underline;
text-underline-offset: 3px;
text-decoration-color: var(--border-strong);
}
a:hover {
text-decoration-color: var(--foreground);
}
a:focus-visible,
button:focus-visible {
outline: 1px solid var(--ring);
outline-offset: 3px;
}
code {
font-family: var(--font-mono);
font-size: 0.85em;
}
/* ── Buttons ─────────────────────────────────────────────────────────── */
.btns {
display: flex;
flex-wrap: wrap;
gap: 0.7rem;
}
/* Pills, the same shape hanzo.ai sets its calls to action in. */
.btn {
display: inline-flex;
align-items: center;
border-radius: var(--radius-full);
font-family: var(--font-mono);
font-size: 0.72rem;
letter-spacing: 0.14em;
text-transform: uppercase;
padding: 0.8rem 1.6rem;
border: 1px solid var(--border-strong);
color: var(--foreground);
text-decoration: none;
background: transparent;
cursor: pointer;
}
.btn:hover {
background: var(--card);
border-color: var(--border-selected);
text-decoration: none;
}
.btn.solid {
background: var(--primary);
color: var(--primary-foreground);
border-color: var(--primary);
}
.btn.solid:hover {
background: var(--primary-hover);
}
/* ── Works with ──────────────────────────────────────────────────────── */
.connects {
border-bottom: 1px solid var(--border);
background: var(--card);
padding: 2.25rem 0 1.75rem;
overflow: hidden;
}
.connects h2 {
font-size: 0.7rem;
letter-spacing: 0.16em;
text-transform: uppercase;
color: var(--muted-foreground);
margin: 0 0 1.4rem;
}
/* Two copies of the track, translated by half the pair's width, so the seam
lands where the first copy ends and the loop reads as continuous. */
.marquee {
overflow-x: auto;
scrollbar-width: none;
-webkit-mask-image: linear-gradient(90deg, transparent, #000 4rem, #000 calc(100% - 4rem), transparent);
mask-image: linear-gradient(90deg, transparent, #000 4rem, #000 calc(100% - 4rem), transparent);
}
.marquee::-webkit-scrollbar {
display: none;
}
.track {
display: flex;
width: max-content;
animation: slide 48s linear infinite;
}
.track:hover {
animation-play-state: paused;
}
@keyframes slide {
to {
transform: translateX(-50%);
}
}
.track ul {
display: flex;
align-items: center;
gap: 0.75rem;
margin: 0;
padding: 0 0.375rem;
list-style: none;
}
.track li {
display: inline-flex;
align-items: center;
gap: 0.55rem;
white-space: nowrap;
padding: 0.6rem 1.1rem;
border: 1px solid var(--border);
border-radius: var(--radius-full);
background: var(--background);
font-family: var(--font-mono);
font-size: 0.75rem;
color: var(--muted-foreground);
}
.track li svg {
flex: none;
opacity: 0.9;
}
.alsoruns {
margin: 1.5rem 0 0;
font-size: 0.85rem;
color: var(--muted-foreground);
max-width: 72ch;
}
/* A reader who asked for stillness gets a row they scroll themselves. */
@media (prefers-reduced-motion: reduce) {
.track {
animation: none;
}
}
/* ── Capability groups ───────────────────────────────────────────────── */
.group {
margin: 4rem 0 0;
}
.grouphead {
border-bottom: 1px solid var(--border);
padding-bottom: 0.7rem;
margin-bottom: 1.5rem;
}
.grouphead h2 {
font-size: 0.7rem;
letter-spacing: 0.16em;
text-transform: uppercase;
color: var(--muted-foreground);
}
.grouphead p {
margin: 0.55rem 0 0;
color: var(--muted-foreground);
font-size: 0.95rem;
max-width: 64ch;
}
.cards {
display: grid;
gap: 0.85rem;
grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}
.card {
background: var(--background);
border: 1px solid var(--border);
border-radius: var(--radius-2xl);
padding: 1.5rem 1.5rem 1.35rem;
display: flex;
flex-direction: column;
gap: 0.55rem;
}
.card:hover {
background: var(--card);
border-color: var(--border-strong);
}
.card h3 {
font-family: var(--font-mono);
font-size: 0.95rem;
font-weight: 500;
margin: 0;
letter-spacing: -0.01em;
}
.card .addr {
font-family: var(--font-mono);
font-size: 0.7rem;
letter-spacing: 0.06em;
color: var(--muted-foreground);
}
.card p {
margin: 0;
font-size: 0.92rem;
color: var(--foreground);
opacity: 0.86;
}
.cardgo {
margin-top: auto;
padding-top: 0.9rem;
font-family: var(--font-mono);
font-size: 0.68rem;
letter-spacing: 0.16em;
text-transform: uppercase;
color: var(--muted-foreground);
text-decoration: none;
}
.cardgo::after {
content: ' →';
}
.card:hover .cardgo {
color: var(--foreground);
}
/* ── The business apps ───────────────────────────────────────────────── */
.rows {
display: grid;
gap: 2.25rem 1.75rem;
grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.row b {
display: block;
font-family: var(--font-mono);
font-size: 0.68rem;
letter-spacing: 0.16em;
text-transform: uppercase;
color: var(--muted-foreground);
font-weight: 400;
margin: 0 0 0.7rem;
border-bottom: 1px solid var(--border);
padding-bottom: 0.45rem;
}
.row ul {
margin: 0;
padding: 0;
list-style: none;
display: flex;
flex-direction: column;
gap: 0.9rem;
}
.row li {
display: flex;
flex-direction: column;
gap: 0.12rem;
}
.row li a {
font-family: var(--font-mono);
font-size: 0.9rem;
text-decoration: none;
width: fit-content;
}
.row li a:hover {
text-decoration: underline;
text-underline-offset: 3px;
}
.row li span {
font-size: 0.86rem;
color: var(--foreground);
opacity: 0.78;
}
.row li i {
font-style: normal;
font-family: var(--font-mono);
font-size: 0.68rem;
letter-spacing: 0.05em;
color: var(--muted-foreground);
}
/* ── Workspaces ──────────────────────────────────────────────────────── */
.workspaces {
margin: 5rem 0 0;
border-top: 1px solid var(--border);
padding-top: 3rem;
}
.steps {
display: grid;
gap: 1.75rem;
grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
margin-top: 2rem;
}
.step b {
display: block;
font-family: var(--font-mono);
font-size: 0.68rem;
letter-spacing: 0.16em;
text-transform: uppercase;
color: var(--muted-foreground);
font-weight: 400;
margin: 0 0 0.6rem;
border-bottom: 1px solid var(--border);
padding-bottom: 0.4rem;
}
.step p {
font-size: 0.93rem;
margin: 0;
color: var(--foreground);
opacity: 0.86;
}
/* ── Footer ──────────────────────────────────────────────────────────── */
footer {
margin-top: 5rem;
padding: 2rem 0 4rem;
border-top: 1px solid var(--border);
color: var(--muted-foreground);
font-size: 0.85rem;
}
footer a {
color: var(--muted-foreground);
}
.fmap {
display: grid;
gap: 1.75rem;
grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
margin: 0 0 2rem;
font-size: 0.85rem;
}
.fmap b {
display: block;
font-family: var(--font-mono);
font-size: 0.68rem;
letter-spacing: 0.16em;
text-transform: uppercase;
color: var(--muted-foreground);
font-weight: 400;
margin: 0 0 0.6rem;
border-bottom: 1px solid var(--border);
padding-bottom: 0.4rem;
}
.fmap a {
display: block;
color: var(--foreground);
text-decoration: none;
margin: 0.3rem 0 0;
}
.fmap a:hover {
text-decoration: underline;
}
.fend {
border-top: 1px solid var(--border);
padding-top: 1.25rem;
font-size: 0.82rem;
}