Files

197 lines
15 KiB
CSS

/* ---------- /legal index (lgi-): ink and greys, calm; one paper language; deck tokens only ---------- */
/* the page's tokens, all from the deck (globals.css / system.css), named once here */
.lgi {
--lgi-paper: var(--bg, #fff);
--lgi-ink: var(--ink, #0a0a0a);
--lgi-quiet: var(--hz-50, #f5f5f7);
--lgi-soft: var(--soft);
--lgi-faint: var(--faint);
--lgi-line: var(--line);
--lgi-line-strong: var(--room-line-strong, rgba(0, 0, 0, .16));
--lgi-raise: var(--shadow-2, 0 24px 48px -28px rgba(0, 0, 0, .28));
--lgi-on-ink: var(--hz-300, #a1a1a6);
--lgi-r: var(--x-radius-sm, 12px);
--lgi-gap: clamp(56px, 6vw, 88px); /* the air between two rooms: the next one always peeks */
--acc: var(--lgi-ink); --acc-ink: var(--lgi-paper);
}
.lgi-kick { margin: -8px 0 0; font-size: 12px; font-weight: 606; letter-spacing: .14em; text-transform: uppercase; color: var(--lgi-soft); }
.lgi-anchor { position: relative; top: -120px; }
/* section rhythm: no dead white; each room peeks into the next (overrides Rhythm's golden padding for this page) */
.lgi .lgi-intro.w2-sec { padding: 40px 0 var(--lgi-gap) !important; }
.lgi .lgi-cat.w2-sec { padding: 0 0 var(--lgi-gap) !important; }
.lgi .lgi-how.w2-sec { padding: var(--lgi-gap) 0 !important; }
.lgi .lgi-other.w2-sec { padding: var(--lgi-gap) 0 0 !important; }
.lgi .lgi-contact.w2-sec { padding: var(--lgi-gap) 0 clamp(72px, 8vw, 116px) !important; }
/* hero: the h1 baseline near 38% of the screen; the pile close to the copy */
.lgi-hero { padding: 84px 0 var(--lgi-gap); overflow: hidden; }
.lgi-hero-g { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(24px, 3vw, 48px); align-items: start; }
.lgi-hero-copy { display: flex; flex-direction: column; gap: 24px; padding-top: clamp(40px, 6vh, 72px); }
.lgi-lede { color: var(--lgi-ink); max-width: 30ch; }
/* the stack of paper (raised by shadow only, no outline) */
.lgi-stack { position: relative; height: clamp(380px, 34vw, 480px); }
.lgi-pile { position: absolute; inset: 0; }
.lgi-sheet { position: absolute; left: 12%; top: 14%; width: 52%; aspect-ratio: 8.5 / 10; display: flex; flex-direction: column; gap: 14px; padding: 7% 8%; border-radius: var(--lgi-r); background: var(--lgi-paper); box-shadow: var(--lgi-raise); transform-origin: 50% 100%; overflow: hidden; }
.lgi-sheet-u { font-size: 13px; color: var(--lgi-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lgi-sheet b { font-size: clamp(22px, 2vw, 30px); font-weight: 497; letter-spacing: -.03em; line-height: 1.08; text-wrap: balance; }
.lgi-sheet-p { font-size: clamp(14px, 1.05vw, 16px); line-height: 1.5; color: var(--lgi-soft); text-wrap: pretty; }
/* the stamp: Hanzo's own status words, set like an ink stamp */
.lgi-stamp { align-self: flex-start; margin-top: auto; max-width: 100%; padding: 6px 10px; border: 1.5px solid var(--lgi-ink); border-radius: 6px; font: 606 12px/1.3 var(--mono); letter-spacing: .02em; color: var(--lgi-ink); transform: rotate(-3deg); }
.lgi-pause { position: absolute; right: 0; top: -12px; display: grid; place-items: center; width: 44px; height: 44px; z-index: 50; }
.lgi-pause .w2-pause { background: var(--lgi-quiet); color: var(--lgi-ink); box-shadow: none; }
/* intro: a 21px statement beside the status, which is a sheet on the desk with its stamp */
.lgi-intro-g { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(32px, 5vw, 96px); align-items: center; }
.lgi-big p { margin: 0; max-width: 34ch; font-size: 21px; font-weight: 400; line-height: 1.45; letter-spacing: -.01em; color: var(--lgi-ink); text-wrap: pretty; }
.lgi-big code, .lgi-prose code { padding: 2px 7px; border-radius: 6px; background: var(--lgi-quiet); font: 400 .86em var(--mono); color: var(--lgi-ink); }
.lgi-big a, .lgi-prose a { color: var(--lgi-ink); text-underline-offset: 3px; }
.lgi-status { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 28px 28px 32px; border-radius: var(--lgi-r); background: var(--lgi-paper); box-shadow: var(--lgi-raise); transform: rotate(1.2deg); transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
@media (hover: hover) and (pointer: fine) { .lgi-status:hover { transform: rotate(-1deg); } }
.lgi-status blockquote, .lgi-prose blockquote { margin: 0; padding: 0; border: 0; }
.lgi-status p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--lgi-soft); }
.lgi-status p > strong:first-child { display: table; margin: 0 0 14px; padding: 6px 10px; border: 1.5px solid var(--lgi-ink); border-radius: 6px; font: 606 13px/1.3 var(--mono); color: var(--lgi-ink); transform: rotate(-3deg); }
.lgi-prose p { margin: 0 0 14px; font-size: 16px; line-height: 1.6; color: var(--lgi-soft); }
.lgi-prose p:last-child { margin-bottom: 0; }
.lgi-prose strong { color: var(--lgi-ink); font-weight: 606; }
/* catalogue: chips over a ruled index; every row opens its document */
.lgi-pin { display: block; height: 0; }
.lgi-chips { position: sticky; top: 60px; z-index: 5; display: flex; align-items: center; gap: 8px; margin: 0 -8px 16px; padding: 10px 8px; background: var(--lgi-paper); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease); }
.lgi-chips[data-stuck] { border-bottom-color: var(--lgi-line); }
.lgi-chips-r { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.lgi-chips-r button { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--lgi-line-strong); border-radius: 999px; background: var(--lgi-paper); color: var(--lgi-ink); font: 500 16px/1 var(--sans); letter-spacing: -.01em; cursor: pointer; transition: background .2s cubic-bezier(0, 0, .2, 1), border-color .2s, box-shadow .2s, transform .09s; }
.lgi-chips-r button .x-mono { font-size: 13px; font-weight: 500; color: var(--lgi-faint); }
@media (hover: hover) { .lgi-chips-r button:hover { background: var(--lgi-quiet); border-color: var(--lgi-ink); } }
.lgi-chips-r button:active { transform: scale(.98); }
.lgi-chips-r button[aria-pressed='true'] { background: var(--lgi-paper); border-color: var(--lgi-ink); box-shadow: inset 0 0 0 1px var(--lgi-ink); }
.lgi-chips-r button[aria-pressed='true'] .x-mono { color: var(--lgi-ink); }
.lgi-chips-p { display: grid; place-items: center; margin-left: auto; flex: none; }
.lgi-chips-p .w2-pause { background: var(--lgi-quiet); color: var(--lgi-ink); box-shadow: none; }
.lgi-group[hidden] { display: none; }
.lgi-cards { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--lgi-line); }
.lgi-cards > li { display: block; }
.lgi-dash { color: var(--lgi-faint); }
.lgi-card-k { font-size: 12px; letter-spacing: .04em; color: var(--lgi-soft); }
.lgi-card-t { font-size: 21px; font-weight: 497; line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
.lgi-card-d { margin: 0; max-width: 56ch; font-size: 15px; line-height: 1.55; color: var(--lgi-soft); text-wrap: pretty; }
.lgi-card-d code { padding: 1px 6px; border-radius: 6px; background: var(--lgi-paper); font: 400 .9em var(--mono); color: var(--lgi-ink); }
/* the index: kind, title (the link) with Hanzo's line under it, and an arrow; the whole row answers the title's link */
.lgi-list { position: relative; }
.lgi-row { position: relative; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 8fr) 44px; align-items: start; gap: 24px; padding: 20px 12px; border-bottom: 1px solid var(--lgi-line); transition: background .3s cubic-bezier(0, 0, .2, 1); }
.lgi-row .lgi-card-k { padding-top: 6px; }
.lgi-row-m { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lgi-row .lgi-card-t { color: var(--lgi-ink); text-decoration: none; justify-self: start; }
.lgi-row .lgi-card-t::after { content: ''; position: absolute; inset: 0; }
.lgi-row .lgi-card-d a { position: relative; z-index: 1; }
.lgi-row .lgi-card-t:focus-visible { outline: none; }
.lgi-row:has(.lgi-card-t:focus-visible) { outline: 2px solid var(--lgi-ink); outline-offset: -2px; border-radius: 4px; }
.lgi-row:active { transform: translateY(1px); }
.lgi-card-go { align-self: center; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--lgi-quiet); color: var(--lgi-ink); transition: background .3s, color .3s, transform .45s var(--ease); }
@media (hover: hover) {
.lgi-row:hover { background: var(--lgi-quiet); }
.lgi-row:hover .lgi-card-go { background: var(--lgi-ink); color: var(--lgi-paper); transform: translateX(3px); }
}
/* how these fit together */
.lgi-how { background: var(--lgi-quiet); }
.lgi-how-g { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 24px clamp(32px, 5vw, 96px); align-items: end; }
.lgi-how-p { margin-top: 24px; }
.lgi-ladder { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: end; height: clamp(300px, 26vw, 380px); }
.lgi-ladder li { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; height: calc(40% + var(--k) * 20%); padding: 18px; border-radius: 16px; background: var(--lgi-paper); }
.lgi-ladder li:first-child { background: var(--lgi-ink); color: var(--lgi-paper); }
.lgi-ladder li:first-child .lgi-step-n, .lgi-ladder li:first-child em { color: var(--lgi-on-ink); }
.lgi-step-n { font-size: 13px; color: var(--lgi-soft); margin-bottom: auto; }
.lgi-ladder b { font-size: 17px; font-weight: 497; letter-spacing: -.01em; line-height: 1.15; hyphens: auto; overflow-wrap: break-word; }
.lgi-ladder em { font-style: normal; font-size: 14px; color: var(--lgi-soft); }
/* contact: four addresses beside one last sheet from the pile, which shows the address you point at */
.lgi-contact-g { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 5vw, 96px); align-items: start; }
.lgi-contact-l { display: flex; flex-direction: column; gap: 32px; }
.lgi-env { position: relative; left: auto; top: auto; width: min(100%, 320px); aspect-ratio: 8.5 / 7; transform: rotate(-2deg); }
.lgi-env .lgi-sheet-u { color: var(--lgi-ink); animation: lgi-type .3s cubic-bezier(0, 0, .2, 1) both; }
@keyframes lgi-type { from { opacity: 0; transform: translateY(6px); } }
.lgi-env b { font-size: 21px; }
.lgi-env .lgi-stamp { white-space: nowrap; font-size: 11px; }
.lgi-mail { list-style: none; margin: 0; padding: 0; }
.lgi-mail li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: baseline; gap: 16px; padding: 22px 0; border-top: 1px solid var(--lgi-line); }
.lgi-mail li:last-child { border-bottom: 1px solid var(--lgi-line); }
.lgi-mail li > span { font-size: 16px; color: var(--lgi-soft); }
.lgi-mail a { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; font-size: clamp(21px, 1.8vw, 26px); font-weight: 497; letter-spacing: -.02em; color: var(--lgi-ink); text-decoration: none; background: linear-gradient(var(--lgi-ink), var(--lgi-ink)) 0 100% / 0 2px no-repeat; transition: background-size .45s var(--ease), translate .3s var(--ease); }
@media (hover: hover) { .lgi-mail a:hover { background-size: 100% 2px; translate: 4px 0; } }
.lgi-mail a:focus-visible { background-size: 100% 2px; }
.lgi-mail a:active { transform: translateY(1px); }
/* dark (docs/DARK-MODE.md): live hanzo.ai/legal in dark, by role, in Hanzo's own tokens. The page is Hanzo's
background; quiet fills and the sheets are Hanzo's muted surface with its hairline (a ring, so nothing moves); body
greys are Hanzo's (Scale.css's .w2 keeps its light greys, so they are restated here); the hero carries live's top glow */
html:not(.light) .lgi.w2 {
--soft: var(--muted-foreground); --faint: var(--text-tertiary);
--lgi-quiet: var(--x-fill);
--lgi-on-ink: var(--neutral-600);
--lgi-raise: 0 0 0 1px var(--border), 0 24px 48px -28px rgb(0 0 0 / .6);
}
html:not(.light) .lgi-hero { background: radial-gradient(60% 70% at 50% 0%, rgb(229 229 229 / .09), transparent 70%); }
html:not(.light) .lgi-sheet, html:not(.light) .lgi-status { background: var(--x-fill); }
html:not(.light) .lgi-card-d code { background: var(--x-fill); }
@media (max-width: 899px) {
.lgi-hero { padding: 84px 0 48px; }
.lgi-hero-g, .lgi-intro-g, .lgi-how-g, .lgi-contact-g { grid-template-columns: minmax(0, 1fr); }
.lgi-hero-copy { padding-top: 64px; gap: 20px; }
.lgi-stack { height: 360px; margin-top: 56px; }
.lgi-sheet { width: 70%; left: 2%; top: 12%; }
.lgi-sheet b { font-size: 22px; }
.lgi-sheet-u, .lgi-step-n, .lgi-chips-r button .x-mono { font-size: 14px; }
/* the stamp lives on the status sheet on phones, so the pile's own line is never cut */
.lgi-pile .lgi-stamp { display: none; }
/* the pause sits above the pile's right corner, clear of every sheet and inside the first screen */
.lgi-pause { right: 0; top: -64px; }
.lgi-intro-g { gap: 40px; }
.lgi-big p { font-size: 20px; }
.lgi-status { transform: none; }
.lgi-status p { font-size: 16px; }
/* chips: one row of 44px chips that scrolls sideways, so the stuck bar stays 64px tall */
.lgi-chips { top: 56px; margin: 0 -16px 12px; padding: 8px 16px; gap: 8px; }
.lgi-chips-r { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.lgi-chips-r::-webkit-scrollbar { display: none; }
.lgi-chips-r button { scroll-snap-align: start; padding: 0 14px; font-size: 15px; }
/* rows: kind over title over Hanzo's line, the arrow at the end */
.lgi-row { grid-template-columns: minmax(0, 1fr) 44px; gap: 6px 12px; padding: 16px 4px; }
.lgi-row .lgi-card-k { grid-column: 1; padding-top: 0; }
.lgi-row-m { grid-column: 1; }
.lgi-card-go { grid-column: 2; grid-row: 1 / span 2; }
.lgi-card-t { font-size: 19px; }
.lgi-ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); height: auto; }
.lgi-ladder li { height: auto; min-height: 132px; }
.lgi-contact-l { gap: 24px; }
.lgi-env { width: min(100%, 300px); }
.lgi-mail li { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 18px 0; }
.lgi-mail a { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
/* settled at first paint: the rows and the ladder sit in their final place */
.lgi-env .lgi-sheet-u { animation: none !important; }
.lgi-status, .lgi-chips-r button, .lgi-mail a, .lgi-row, .lgi-card-go, .lgi-card-t { transition: none !important; }
}
@media print {
.lgi-pin, .lgi-stack, .lgi-chips, .w2-pause, .lgi-card-go, .lgi-env { display: none !important; }
body:has(.lgi) .x-skip, body:has(.lgi) a[href="#main"], body:has(.lgi) header:not(main header), body:has(.lgi) footer:not(main footer), body:has(.lgi) .x-cookie { display: none !important; }
.lgi-group[hidden] { display: block !important; }
.lgi-row { break-inside: avoid; background: none !important; }
.lgi-row { padding: 8px 0; }
.lgi-hero-g, .lgi-intro-g, .lgi-how-g, .lgi-contact-g { display: block !important; }
.lgi-hero, .lgi-hero-copy { padding: 0 0 12pt; }
.lgi-h1 { font-size: 30pt; }
.lgi-big p { font-size: 13pt; }
.lgi-status { box-shadow: none; transform: none; padding: 0; margin-top: 12pt; }
.lgi-card-t { font-size: 13pt; }
.lgi-card-d, .lgi-prose p { font-size: 10.5pt; }
.lgi .w2-sec { padding: 12pt 0 !important; }
.lgi-how { background: none; }
.lgi-mail a { font-size: 13pt; }
}