hex/site/src/styles.css

793 lines
15 KiB
CSS

@font-face {
font-family: "Inter Variable";
font-style: normal;
font-display: swap;
font-weight: 100 900;
src: url("@fontsource-variable/inter/files/inter-latin-wght-normal.woff2") format("woff2-variations");
}
:root {
color: #f2f2ef;
background: #070707;
font-family: "Inter Variable", Inter, ui-sans-serif, system-ui, sans-serif;
font-synthesis: none;
font-feature-settings: "cv02", "cv03", "cv04", "cv11", "ss01";
text-rendering: optimizeLegibility;
color-scheme: only dark;
}
* {
box-sizing: border-box;
}
html {
min-height: 100%;
background: #070707;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
body {
min-height: 100vh;
min-height: 100dvh;
margin: 0;
}
a {
font: inherit;
color: inherit;
text-decoration: none;
}
.page {
isolation: isolate;
position: relative;
display: grid;
min-height: 100vh;
min-height: 100dvh;
grid-template-rows: auto minmax(17rem, 1fr) auto;
grid-template-columns: minmax(0, 1fr);
overflow-x: clip;
background: #070707;
}
/* The show: messages, words and the head are drawn on one canvas behind the page. */
.stage {
position: absolute;
z-index: 0;
inset: 0;
width: 100%;
height: 100%;
pointer-events: none;
}
.screen-glass {
position: fixed;
z-index: 25;
inset: 0;
width: 100%;
height: 100%;
pointer-events: none;
}
.page[data-screen-shattered] .header,
.page[data-screen-shattered] .topbar,
.page[data-screen-shattered] .hero__copy,
.page[data-screen-shattered] .foot,
.page[data-screen-shattered] .hero__action {
opacity: 0;
transition: opacity 40ms linear;
}
.show {
position: relative;
z-index: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
container-type: size;
pointer-events: none;
}
.show > * {
/* Head box: 3.2 head radii (head, hair and halo); the canvas reads it to place the head. */
--box: clamp(9.5rem, min(32vw, 32vh, 62cqh), 20rem);
}
.show__head {
width: var(--box);
height: var(--box);
flex: none;
}
.show__head img {
display: block;
width: 100%;
height: 100%;
transition: opacity 240ms ease-out;
}
.page[data-live] .show__head img {
opacity: 0;
}
.keycap {
position: relative;
width: 7.75rem;
height: 6.375rem;
flex: none;
margin-top: calc(var(--box) * -0.11);
padding: 0;
border: 0;
border-radius: 1.25rem;
background: none;
color: rgba(246, 247, 250, 0.92);
font: inherit;
cursor: pointer;
pointer-events: auto;
user-select: none;
-webkit-tap-highlight-color: transparent;
transition:
opacity 320ms ease,
transform 420ms cubic-bezier(0.2, 0.9, 0.2, 1),
visibility 0s linear 0s;
}
.keycap:focus-visible {
outline: 2px solid #a9b9ff;
outline-offset: 6px;
}
.keycap__glow {
position: absolute;
inset: 0.625rem 0.75rem -0.25rem;
border-radius: 1.125rem;
background: radial-gradient(ellipse at 50% 85%, rgba(255, 164, 56, 0.52), rgba(255, 110, 32, 0.16) 58%, transparent 78%);
filter: blur(8px);
opacity: 0.78;
transition: opacity 220ms ease;
animation: keycap-glow 2.8s ease-in-out infinite;
}
@keyframes keycap-glow {
0%,
100% {
opacity: 0.62;
transform: scale(0.98);
}
50% {
opacity: 0.96;
transform: scale(1.04);
}
}
.keycap__well {
position: absolute;
inset: 0.25rem 0.25rem 0;
border-radius: 1.125rem;
background: #040406;
box-shadow:
0 22px 48px rgba(0, 0, 0, 0.82),
0 6px 16px rgba(0, 0, 0, 0.75),
inset 0 2px 5px rgba(0, 0, 0, 0.95),
0 0 0 1px rgba(255, 255, 255, 0.07);
}
.keycap__cap {
position: absolute;
inset: 0 0.375rem 0.375rem;
border-radius: 1rem;
background: linear-gradient(180deg, #2a2d35 0%, #17191f 38%, #0e1014 82%, #08090c 100%);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.28),
inset 1px 0 0 rgba(255, 255, 255, 0.1),
inset -1px 0 0 rgba(255, 255, 255, 0.08),
inset 0 -3px 6px rgba(0, 0, 0, 0.88),
0 8px 18px rgba(0, 0, 0, 0.65);
transform: translateY(var(--key-y, 0px));
transition:
transform 110ms cubic-bezier(0.22, 1.35, 0.36, 1),
box-shadow 120ms ease;
}
.keycap__dish {
position: absolute;
inset: 0.25rem 0.4375rem 0.75rem;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: flex-end;
padding: 0.625rem 0.75rem 0.5625rem;
border-radius: 0.75rem;
background:
radial-gradient(120% 95% at 28% 18%, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.03) 42%, rgba(0, 0, 0, 0.28) 100%),
linear-gradient(165deg, #1b1d24 0%, #121419 52%, #181a21 100%);
box-shadow:
inset 0 1.5px 1px rgba(255, 255, 255, 0.26),
inset 0 -1.5px 2px rgba(0, 0, 0, 0.65),
inset 2px 0 3px rgba(0, 0, 0, 0.35),
inset -2px 0 3px rgba(0, 0, 0, 0.35),
0 1px 0 rgba(255, 255, 255, 0.06);
text-shadow: 0 0 10px rgba(255, 210, 145, 0.28);
}
.keycap__glyph {
width: 1.375rem;
height: 1.125rem;
fill: none;
stroke: currentColor;
stroke-width: 2.1;
stroke-linecap: round;
stroke-linejoin: round;
filter: drop-shadow(0 0 6px rgba(255, 200, 120, 0.25));
}
.keycap__label {
align-self: flex-start;
font-size: 0.9rem;
font-weight: 540;
line-height: 1;
letter-spacing: -0.01em;
}
.keycap__hint {
position: absolute;
bottom: -1.5rem;
left: 50%;
color: rgba(244, 244, 246, 0.48);
font-size: 0.72rem;
font-weight: 500;
line-height: 1;
white-space: nowrap;
transform: translateX(-50%);
transition: color 200ms ease;
}
.keycap__hint-touch {
display: none;
}
@media (pointer: coarse) {
.keycap__hint-fine {
display: none;
}
.keycap__hint-touch {
display: inline;
}
}
@media (hover: hover) {
.keycap:hover {
--key-y: 1.5px;
}
.keycap:hover .keycap__glow {
opacity: 1;
}
.keycap:hover .keycap__hint {
color: rgba(244, 244, 246, 0.82);
}
}
.keycap:active,
.keycap[data-pressed] {
--key-y: 7px;
}
.keycap:active .keycap__glow,
.keycap[data-pressed] .keycap__glow {
opacity: 1;
filter: blur(11px);
transform: scale(1.22);
animation: none;
}
.keycap:active .keycap__cap,
.keycap[data-pressed] .keycap__cap {
transform: translateY(var(--key-y, 0px)) scaleX(1.035) scaleY(0.935);
transition:
transform 45ms cubic-bezier(0.12, 0.9, 0.25, 1),
box-shadow 55ms ease;
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.22),
inset 0 -1px 3px rgba(0, 0, 0, 0.95),
0 2px 5px rgba(0, 0, 0, 0.82),
0 0 18px rgba(255, 152, 44, 0.35);
}
.keycap:active .keycap__dish,
.keycap[data-pressed] .keycap__dish {
box-shadow:
inset 0 1.5px 1px rgba(255, 255, 255, 0.24),
inset 0 -1.5px 3px rgba(255, 148, 42, 0.28),
inset 2px 0 3px rgba(0, 0, 0, 0.4),
inset -2px 0 3px rgba(0, 0, 0, 0.4),
0 1px 0 rgba(255, 255, 255, 0.08);
text-shadow: 0 0 14px rgba(255, 200, 110, 0.58);
}
.keycap[data-gone] {
--key-y: 6px;
visibility: hidden;
opacity: 0;
transform: translateY(4px) scale(0.95);
pointer-events: none;
transition:
opacity 320ms ease,
transform 420ms cubic-bezier(0.2, 0.9, 0.2, 1),
visibility 0s linear 420ms;
}
.page[data-key-exploded] .keycap {
visibility: hidden;
opacity: 0;
pointer-events: none;
transition: none;
}
.header__tools {
display: flex;
align-items: center;
gap: 1rem;
}
.sound {
display: grid;
width: 2rem;
height: 2rem;
margin: -0.5rem 0;
place-items: center;
padding: 0;
border: 0;
border-radius: 999px;
color: #9b9da3;
background: none;
cursor: pointer;
transition: color 160ms ease;
}
.sound:hover {
color: #f3f3f0;
}
.sound:focus-visible {
outline: 2px solid #a9b9ff;
outline-offset: 2px;
}
.sound svg {
width: 1.1rem;
height: 1.1rem;
fill: currentColor;
stroke: currentColor;
stroke-width: 1.4;
stroke-linecap: round;
}
.header {
position: relative;
z-index: 1;
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
max-width: 88rem;
margin: 0 auto;
padding-top: clamp(1.5rem, 4vh, 2.75rem);
padding-right: clamp(1.25rem, 4vw, 4rem);
padding-left: clamp(1.25rem, 4vw, 4rem);
}
.wordmark {
display: inline-flex;
align-items: center;
gap: 0.7rem;
border-radius: 0.35rem;
font-size: 0.8rem;
font-weight: 620;
letter-spacing: 0.15em;
}
.wordmark:focus-visible,
.header__github:focus-visible,
.download:focus-visible,
.command__copy:focus-visible,
.platforms summary:focus-visible,
.platforms a:focus-visible {
outline: 2px solid #a9b9ff;
outline-offset: 4px;
}
.wordmark__icon {
width: 1.35rem;
height: 1.35rem;
fill: none;
stroke: currentColor;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 4.5;
}
.wordmark__core {
fill: currentColor;
stroke: none;
}
.requirements {
color: #777b82;
font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
font-size: 0.75rem;
letter-spacing: 0.02em;
}
.download-note {
max-width: 40ch;
color: #777b82;
font-size: 0.8rem;
line-height: 1.5;
text-wrap: pretty;
}
.header__github {
display: inline-flex;
align-items: center;
gap: 0.5rem;
border-radius: 0.35rem;
color: #9b9da3;
font-size: 0.8rem;
transition: color 160ms ease;
}
.header__github:hover {
color: #f3f3f0;
}
.header__github-icon {
width: 1rem;
height: 1rem;
fill: currentColor;
}
.hero {
position: relative;
z-index: 1;
display: flex;
flex-direction: column;
align-items: center;
gap: clamp(1.4rem, 3vh, 2.2rem);
width: 100%;
padding: 1.5rem 1.25rem clamp(2rem, 7vh, 4.5rem);
text-align: center;
pointer-events: none;
}
.hero > * {
pointer-events: auto;
}
.hero__copy {
display: flex;
width: fit-content;
max-width: 100%;
flex-direction: column;
align-items: center;
gap: 1rem;
pointer-events: none;
}
.hero__word {
display: inline-block;
pointer-events: none;
will-change: transform;
transform-origin: 50% 58%;
}
h1,
p {
margin: 0;
}
h1 {
max-width: 16ch;
color: #f3f3f0;
font-size: clamp(2.65rem, 6.5vw, 5.5rem);
font-weight: 540;
letter-spacing: -0.055em;
text-wrap: balance;
}
.hero__copy p {
max-width: 47ch;
color: #9b9da3;
font-size: clamp(1rem, 1.45vw, 1.12rem);
line-height: 1.65;
text-wrap: pretty;
}
.hero__action {
display: flex;
width: min(100%, 41rem);
flex-direction: column;
align-items: center;
gap: 0.8rem;
}
.download {
display: grid;
min-width: 13.8rem;
min-height: 3.25rem;
grid-template-columns: 1.15rem 1fr 1.15rem;
align-items: center;
gap: 0.7rem;
padding: 0.75rem 1rem;
border: 1px solid #f2f2ef;
border-radius: 0.8rem;
color: #0c0d0f;
background: #f2f2ef;
font-size: 0.92rem;
font-weight: 590;
transition: background-color 160ms ease, border-color 160ms ease;
}
button.download {
font-family: inherit;
cursor: pointer;
}
a.download:hover,
button.download:hover {
border-color: #fff;
background: #fff;
}
.download--disabled {
border-color: rgba(242, 242, 239, 0.14);
color: #777b82;
background: transparent;
cursor: not-allowed;
}
.command {
display: flex;
align-items: center;
width: min(100%, 41rem);
min-width: 0;
border: 1px solid rgba(242, 242, 239, 0.14);
border-radius: 0.8rem;
background: rgba(242, 242, 239, 0.04);
}
.command code {
flex: 1;
min-width: 0;
overflow-x: auto;
padding: 0.85rem 0 0.85rem 1rem;
color: #f2f2ef;
font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
font-size: 0.8rem;
white-space: pre;
scrollbar-width: none;
}
.command__copy {
flex: none;
min-width: 4.75rem;
margin: 0.35rem;
padding: 0.5rem 0.8rem;
border: 0;
border-radius: 0.5rem;
color: #0c0d0f;
background: #f2f2ef;
font: inherit;
font-size: 0.8rem;
font-weight: 590;
cursor: pointer;
transition: background-color 160ms ease;
}
.command__copy:hover {
background: #fff;
}
.platforms {
width: min(100%, 41rem);
margin-top: 0.4rem;
color: #9b9da3;
font-size: 0.8rem;
}
.platforms summary {
width: fit-content;
margin: 0 auto;
border-radius: 0.35rem;
cursor: pointer;
list-style: none;
text-decoration: underline;
text-decoration-color: rgba(155, 157, 163, 0.4);
text-underline-offset: 0.2em;
}
.platforms summary::-webkit-details-marker {
display: none;
}
.platforms summary:hover {
color: #f3f3f0;
}
.platforms ul {
display: grid;
grid-template-columns: minmax(0, 1fr);
margin: 1rem 0 0;
padding: 0.25rem 0;
border: 1px solid rgba(242, 242, 239, 0.1);
border-radius: 0.8rem;
list-style: none;
text-align: left;
}
.platform {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.35rem 0.6rem;
padding: 0.6rem 1rem;
}
.platform + .platform {
border-top: 1px solid rgba(242, 242, 239, 0.06);
}
.platform .mark {
width: 0.9rem;
height: 0.9rem;
color: #9b9da3;
}
.platform__name {
color: #f2f2ef;
}
.platform__detail {
flex: 1;
color: #777b82;
}
.platform__link,
.platform--github a {
color: #f2f2ef;
text-decoration: underline;
text-decoration-color: rgba(242, 242, 239, 0.35);
text-underline-offset: 0.2em;
}
.platform__link:hover,
.platform--github a:hover {
text-decoration-color: currentColor;
}
.platform .command {
width: 100%;
max-width: none;
}
.platform .command code {
padding-top: 0.55rem;
padding-bottom: 0.55rem;
font-size: 0.75rem;
}
.platform .command__copy {
min-width: 4rem;
padding: 0.35rem 0.6rem;
font-size: 0.75rem;
}
.mark {
width: 1.05rem;
height: 1.05rem;
flex: none;
fill: currentColor;
}
.mark--stroke {
fill: none;
stroke: currentColor;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 1.7;
}
.download__arrow {
color: #686a6e;
font-size: 1rem;
}
/* The Anomaly copyright, as on opentunnel.xyz and the OpenCode console: the signature sits faintly behind the line. */
.site-footer {
display: flex;
justify-content: center;
padding: 2.5rem 1.25rem 4rem;
background: #070707;
}
.copyright {
position: relative;
color: #909090;
font-size: 0.8125rem;
line-height: 1.5rem;
}
.copyright img {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
pointer-events: none;
}
.copyright p {
position: relative;
margin: 0;
}
.copyright a {
color: inherit;
text-decoration: underline rgba(255, 255, 255, 0.2);
text-underline-offset: 2px;
}
.copyright a:hover {
color: #f2f2ef;
}
@media (max-width: 39rem) {
.hero {
gap: 1.4rem;
padding-top: 1rem;
padding-bottom: 2rem;
}
.hero__copy p {
max-width: 32ch;
font-size: 1rem;
line-height: 1.55;
}
.download {
min-height: 3.5rem;
}
}
@media (max-height: 46rem) and (min-width: 40rem) {
.hero {
gap: 1.2rem;
padding-top: 0.5rem;
padding-bottom: 1.5rem;
}
h1 {
font-size: 3.4rem;
}
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
scroll-behavior: auto !important;
}
.keycap__glow {
animation: none;
}
.keycap,
.keycap[data-gone] {
transform: none;
}
}