WeKnora/website-docs/homepage/app/home.module.css

270 lines
20 KiB
CSS

.site {
--ink: var(--wk-ink);
--soft: var(--wk-ink-soft);
--mute: var(--wk-ink-mute);
--gold: var(--wk-gold);
--paper: var(--wk-paper);
--paper2: var(--wk-paper-2);
--rule: var(--wk-rule);
--serif: var(--wk-font-serif);
color: var(--ink);
background: var(--paper);
font-size: 16px;
line-height: 1.75;
}
.site svg { flex-shrink: 0; }
.site section[id], .videoFigure { scroll-margin-top: 105px; }
.shell { width: calc(100% - 112px); max-width: 1600px; margin-inline: auto; }
.skipLink { position: fixed; left: 20px; top: -100px; z-index: 30; padding: 12px 20px; background: var(--ink); color: var(--paper); }
.skipLink:focus { top: 12px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); flex-shrink: 0; }
.hero { padding-top: 51px; }
.releaseLink { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 13px; color: var(--soft); font-size: 14px; }
.releaseLink > span { border: 1px solid var(--wk-accent-border); padding: 3px 10px; color: var(--wk-accent-text); font-family: ui-monospace, monospace; font-size: 12px; }
.releaseLink svg { width: 17px; height: 17px; transition: transform .2s; }
.releaseLink:hover svg { transform: translateX(4px); }
.heroGrid { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 6vw; margin: 28px 0 50px; }
.hero h1 { font-family: var(--serif); font-size: clamp(42px, 4.5vw, 80px); font-weight: 500; line-height: 1.17; letter-spacing: -.045em; margin: 0; }
.hero h1 em { font-style: normal; color: var(--gold); }
.heroAside { padding-bottom: 6px; }
.eyebrow { font-family: ui-monospace, "SF Mono", monospace; color: var(--gold); font-size: 12px; letter-spacing: .14em; font-weight: 500; margin: 0 0 20px; }
.heroDescription { font-size: clamp(16px, 1.32vw, 21px); line-height: 1.85; color: var(--soft); margin: 0; max-width: 550px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: 28px; font-size: 15px; font-weight: 550; min-height: 49px; padding: 12px 23px; border: 1px solid var(--ink); border-radius: 3px; transition: background .2s, color .2s, transform .2s; }
.primary { color: var(--paper); background: var(--ink); }
.primary:hover { background: var(--wk-button-hover); transform: translateY(-2px); }
.secondary { color: var(--ink); background: transparent; border-color: var(--rule); gap: 11px; }
.secondary:hover { border-color: var(--gold); background: var(--paper2); }
.primary svg, .secondary svg { width: 18px; height: 18px; }
.heroNote { color: var(--mute); font-size: 13px; margin: 19px 0 0; letter-spacing: .02em; }
.videoFigure { margin: 0; border: 1px solid var(--rule); border-radius: 7px; overflow: hidden; box-shadow: 0 22px 55px -35px rgba(16, 31, 56, .28); background: var(--wk-surface); }
.videoTop { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 22px; color: var(--soft); background: var(--paper2); font-family: ui-monospace, monospace; font-size: 12px; letter-spacing: .1em; }
.videoTop > span { display: inline-flex; align-items: center; gap: 10px; }
.videoDot { margin-inline: 5px; color: var(--gold); }
.videoStage { position: relative; aspect-ratio: 16 / 8.5; background: #14191e; }
.videoStage video { width: 100%; height: 100%; display: block; object-fit: contain; }
.videoCover { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; color: white; background: linear-gradient(180deg, rgba(18,22,26,.24), rgba(18,22,26,.6)); transition: background .2s; }
.playCircle { width: 82px; height: 82px; display: flex; align-items: center; justify-content: center; background: #fdfcfa; color: #101f38; border-radius: 50%; box-shadow: 0 4px 24px #0002; transition: transform .2s; }
.playCircle svg { width: 29px; height: 29px; transform: translateX(-2px); fill: #101f38; stroke-width: 0; }
.videoCover:hover .playCircle { transform: scale(1.08); }
.videoCoverTitle { font-size: clamp(18px, 2vw, 30px); font-weight: 500; letter-spacing: .07em; margin-top: 24px; }
.videoCoverHint { font-size: 14px; margin-top: 8px; color: #eee8dc; }
.videoError { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; background: var(--paper2); color: var(--ink); gap: 18px; }
.videoError a { display: inline-flex; gap: 8px; align-items: center; text-decoration: underline; }
.videoError svg { width: 18px; height: 18px; }
.videoCaption { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 14px 22px; font-size: 13px; color: var(--soft); }
.videoCaption a { color: var(--mute); display: inline-flex; align-items: center; gap: 9px; }
.videoCaption svg { height: 14px; width: 14px; }
.trustBar { display: flex; justify-content: center; align-items: center; gap: 7vw; padding: 30px 0; font-size: 13px; color: var(--soft); border-bottom: 1px solid var(--rule); }
.trustBar span { display: flex; align-items: center; gap: 10px; }
.trustBar svg { width: 18px; height: 18px; color: var(--mute); }
.section { padding-block: 104px; }
.sectionHeading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 45px; }
.sectionHeading h2, .closing h2 { font-family: var(--serif); font-size: clamp(32px, 3.1vw, 50px); font-weight: 500; line-height: 1.35; letter-spacing: -.03em; margin: 0; }
.sectionHeading > p { font-size: 16px; color: var(--soft); line-height: 1.9; margin: 0 0 3px; }
.modeGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--rule); }
.mode { padding: 35px 35px 32px; display: flex; flex-direction: column; }
.mode:first-child { padding-left: 0; }
.mode:last-child { padding-right: 0; }
.mode + .mode { border-left: 1px solid var(--rule); }
.modeTop { display: flex; justify-content: space-between; align-items: center; margin-bottom: 31px; }
.modeTop > svg { width: 33px; height: 33px; stroke-width: 1.1; }
.modeTop > span { font-family: ui-monospace, monospace; font-size: 12px; letter-spacing: .11em; color: var(--gold); }
.mode h3 { font-size: clamp(20px, 1.7vw, 26px); font-weight: 550; line-height: 1.5; margin: 0 0 15px; }
.mode > p { font-size: 16px; line-height: 1.85; color: var(--soft); margin: 0 0 23px; }
.tags { display: flex; gap: 9px; flex-wrap: wrap; padding: 0; list-style: none; margin: auto 0 31px; }
.tags li { color: var(--soft); background: var(--paper2); padding: 3px 9px; font-size: 12px; border-radius: 2px; }
.textLink { display: inline-flex; gap: 10px; align-items: center; color: var(--ink); font-size: 14px; min-height: 32px; width: fit-content; }
.textLink svg { width: 17px; height: 17px; transition: transform .2s; }
.textLink:hover { color: var(--wk-accent-text); }
.textLink:hover svg { transform: translateX(3px); }
.release { padding-block: 93px 44px; background: var(--paper2); border-block: 1px solid var(--rule); }
.releaseGrid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 58px; align-items: center; }
.artifactFigure { margin: 0; min-width: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: 5px; box-shadow: 0 18px 45px -35px #101f3844; overflow: hidden; }
.artifactHeading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 20px; font-size: 13px; border-bottom: 1px solid var(--rule); }
.artifactHeading > span { display: inline-flex; align-items: center; gap: 8px; }
.artifactHeading > span:last-child { font-family: ui-monospace, monospace; letter-spacing: .07em; font-size: 12px; color: var(--mute); }
.artifactHeading svg { width: 17px; height: 17px; color: var(--gold); }
.artifactImage img { display: block; width: 100%; height: auto; }
.artifactFigure figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 14px 20px; font-size: 12px; color: var(--soft); border-top: 1px solid var(--rule); }
.artifactFigure figcaption > span:last-child { color: var(--mute); }
.releaseFeatures article { display: grid; grid-template-columns: 27px 1fr; gap: 18px; padding-block: 25px; border-bottom: 1px solid var(--rule); }
.releaseFeatures article:first-child { padding-top: 0; }
.releaseFeatures article:last-child { border: 0; padding-bottom: 0; }
.releaseFeatures article > svg { margin-top: 4px; width: 26px; height: 26px; stroke-width: 1.3; }
.featureLabel { color: var(--wk-accent-text); font-size: 12px; letter-spacing: .08em; }
.releaseFeatures h3 { font-size: 20px; font-weight: 550; line-height: 1.5; margin: 5px 0 10px; }
.releaseFeatures p { font-size: 15px; line-height: 1.85; color: var(--soft); margin: 0 0 7px; }
.releaseFeatures .textLink { font-size: 13px; }
.releaseExtras { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-top: 29px; margin-top: 48px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--soft); }
.releaseExtras > span { color: var(--mute); }
.releaseExtras p { margin: 0; }
.site .wiki { border-bottom: 1px solid var(--rule); padding-block: 48px; scroll-margin-top: 64px; }
.site section.wiki[id] { scroll-margin-top: 64px; }
.wiki .sectionHeading { margin-bottom: 24px; }
.wiki .eyebrow { margin-bottom: 12px; }
.wikiGallery { min-width: 0; }
.wikiGalleryToolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px; }
.wikiGalleryTabs { display: flex; gap: 8px; flex-wrap: wrap; }
.wikiGalleryTabs button { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; min-height: 44px; border: 1px solid transparent; border-radius: 3px; color: var(--soft); background: transparent; font-size: 14px; }
.wikiGalleryTabs button[aria-pressed="true"] { color: var(--ink); border-color: var(--rule); background: var(--paper2); }
.wikiGalleryTabs button:hover { color: var(--wk-accent-text); }
.wikiGalleryTabs svg { width: 19px; height: 19px; }
.wikiGalleryTrack { --wiki-slide-width: min(84%, 720px); --wiki-slide-gap: 24px; display: flex; gap: var(--wiki-slide-gap); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--rule) transparent; padding-bottom: 16px; }
.wikiSlide { flex: 0 0 var(--wiki-slide-width); scroll-snap-align: center; box-shadow: none; }
.wikiSlide .artifactHeading { padding-block: 10px; }
.wikiSlide .artifactHeading .textLink { font-size: 12px; min-height: 24px; color: var(--soft); }
.wikiSlide .wikiSlideCaption { display: block; padding: 18px 24px; }
.wikiSlideCaption h3 { margin: 0 0 8px; color: var(--ink); font-size: 22px; font-weight: 550; line-height: 1.5; }
.wikiSlideCaption p { margin: 0; max-width: 780px; color: var(--soft); font-size: 15px; line-height: 1.85; }
.wikiGalleryControls { margin-left: auto; color: var(--mute); font-size: 13px; }
.wikiGalleryControls > div { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.wikiGalleryControls > div > span { font-family: ui-monospace, monospace; color: var(--soft); }
.wikiGalleryControls button { display: grid; place-items: center; height: 44px; width: 44px; border: 1px solid var(--rule); border-radius: 50%; color: var(--ink); background: var(--paper); }
.wikiGalleryControls button:first-child svg { transform: rotate(180deg); }
.wikiGalleryControls button:disabled { opacity: .3; cursor: default; }
.wikiGalleryControls button:hover:not(:disabled) { color: var(--wk-accent-text); border-color: var(--gold); }
@media (min-width: 1100px) {
.wikiGalleryToolbar { display: none; }
.wikiGalleryTrack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; scroll-snap-type: none; padding-bottom: 0; }
.wikiSlideCaption h3 { font-size: 20px; }
.wikiSlide .wikiSlideCaption { padding: 20px; }
.wikiSlide .artifactHeading { padding-inline: 16px; }
}
.ecosystem { display: grid; grid-template-columns: 1fr .85fr 1fr; gap: 48px; padding: 38px 0 46px; border-block: 1px solid var(--rule); }
.ecosystemColumn > svg { width: 29px; height: 29px; color: var(--gold); }
.ecosystemColumn h3 { font-size: 23px; font-weight: 550; margin: 18px 0 7px; }
.ecosystemColumn > p { color: var(--soft); font-size: 15px; margin: 0 0 20px; }
.integrations { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 22px; }
.integrations span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid var(--rule); font-size: 13px; background: var(--wk-surface); border-radius: 3px; }
.integrations img, .integrations svg { display: block; width: 20px; height: 20px; flex-shrink: 0; object-fit: contain; }
.ecosystemCore { position: relative; display: flex; justify-content: center; align-items: center; flex-direction: column; border-inline: 1px solid var(--rule); gap: 5px; text-align: center; }
.ecosystemCore > strong { font-size: 28px; margin-top: 10px; font-weight: 550; letter-spacing: -.03em; }
.ecosystemCore > span:not(:global(.wk-logo)) { font-size: 14px; color: var(--soft); }
.ecosystemCore > div { font-size: 12px; color: var(--gold); margin-top: 18px; }
.models { display: flex; align-items: center; justify-content: space-between; gap: 16px 25px; flex-wrap: wrap; padding-top: 28px; }
.models > span { color: var(--mute); font-size: 13px; }
.models > p { display: inline-flex; align-items: center; gap: 9px; font-size: 16px; color: var(--soft); font-weight: 550; margin: 0; }
.models img { display: block; width: 24px; height: 24px; flex-shrink: 0; object-fit: contain; }
.models a { display: flex; align-items: center; min-height: 40px; min-width: 40px; color: var(--soft); }
.enterprise { background: var(--paper2); border-block: 1px solid var(--rule); padding-block: 87px; }
.enterpriseGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 50px; border-top: 1px solid var(--rule); padding-top: 37px; }
.enterpriseGrid article > svg { color: var(--gold); width: 29px; height: 29px; }
.enterpriseGrid h3 { margin: 22px 0 12px; font-size: 22px; font-weight: 550; }
.enterpriseGrid p { margin: 0; color: var(--soft); font-size: 16px; line-height: 1.9; }
.closing { padding-block: 80px; scroll-margin-top: 88px; }
.closing h2 { font-size: clamp(30px, 2.8vw, 43px); }
.startGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.startCard { display: flex; flex-direction: column; align-items: flex-start; padding: 30px; border: 1px solid var(--rule); border-radius: 5px; background: var(--paper); }
.startLabel { display: flex; align-items: center; gap: 14px; min-height: 34px; color: var(--soft); font-size: 13px; }
.startBrand { display: block; width: 32px; height: 32px; object-fit: contain; flex-shrink: 0; }
.startLabel :global(.wk-logo) { width: 128px; }
.startCard h3 { margin: 24px 0 12px; font-size: clamp(19px, 1.6vw, 24px); font-weight: 600; }
.startCard p { margin: 0 0 28px; color: var(--soft); font-size: 15px; line-height: 1.9; }
.startCard > a { margin-top: auto; }
.footer { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding-block: 28px; border-top: 1px solid var(--rule); }
.footer > p { color: var(--mute); font-size: 12px; margin: 0; }
.footer nav { margin-left: auto; display: flex; gap: 28px; }
.footer nav a { display: flex; align-items: center; gap: 4px; min-height: 44px; color: var(--soft); font-size: 13px; }
@media (min-width: 1800px) { .heroGrid { margin-bottom: 62px; } .hero { padding-top: 70px; } }
@media (max-width: 1100px) {
.shell { width: calc(100% - 64px); }
.heroGrid { gap: 32px; grid-template-columns: 1.1fr 1fr; }
.hero h1 { font-size: clamp(36px, 4.2vw, 48px); }
.heroDescription { font-size: 16px; }
.section { padding-block: 78px; }
.sectionHeading { gap: 30px; }
.sectionHeading > p { max-width: 370px; font-size: 15px; }
.mode { padding-inline: 23px; }
.mode h3 { font-size: 20px; }
.releaseGrid { gap: 32px; grid-template-columns: 1.15fr 1fr; }
.releaseFeatures h3 { font-size: 18px; }
.ecosystem { gap: 28px; grid-template-columns: 1fr .7fr 1fr; }
}
@media (max-width: 800px) {
.wikiGalleryTrack { --wiki-slide-width: 92%; --wiki-slide-gap: 14px; }
.wikiSlide .wikiSlideCaption { padding: 18px; }
.wikiSlideCaption h3 { font-size: 20px; }
.navigationOpen { display: flex; position: absolute; left: 0; top: 72px; right: 0; padding: 20px 32px 26px; background: var(--paper); border-bottom: 1px solid var(--rule); flex-direction: column; align-items: stretch; gap: 4px; box-shadow: 0 15px 20px #101f380a; }
.navigationOpen a { font-size: 16px; }
.hero { padding-top: 34px; }
.heroGrid { align-items: start; grid-template-columns: 1fr; gap: 28px; margin-top: 26px; margin-bottom: 35px; }
.hero h1 { font-size: clamp(38px, 6.2vw, 68px); }
.heroAside > .eyebrow { display: none; }
.heroDescription { max-width: 100%; }
.heroNote { margin-top: 17px; }
.videoTop { padding: 11px 15px; font-size: 12px; }
.videoCaption { align-items: start; flex-direction: column; padding: 13px 15px; gap: 3px; }
.videoCaption a { font-size: 12px; }
.trustBar { gap: 16px 24px; flex-wrap: wrap; justify-content: flex-start; padding: 24px 0; }
.sectionHeading { flex-direction: column; align-items: start; gap: 20px; margin-bottom: 34px; }
.sectionHeading > p { max-width: none; }
.modeGrid { grid-template-columns: 1fr; }
.mode, .mode:first-child, .mode:last-child { padding: 29px 0; }
.mode + .mode { border-left: 0; border-top: 1px solid var(--rule); }
.modeTop { margin-bottom: 18px; }
.mode h3 { font-size: 24px; }
.mode > p { margin-bottom: 18px; }
.tags { margin-bottom: 17px; }
.release { padding-block: 65px 35px; }
.releaseGrid { grid-template-columns: 1fr; gap: 35px; }
.releaseFeatures h3 { font-size: 22px; }
.releaseFeatures p { font-size: 16px; }
.releaseExtras { justify-content: flex-start; margin-top: 28px; padding-top: 23px; }
.releaseExtras > span { flex-basis: 100%; }
.ecosystem { grid-template-columns: 1fr 1fr; gap: 32px; }
.ecosystemCore { grid-row: 1; grid-column: 1 / -1; border-inline: 0; border-bottom: 1px solid var(--rule); padding-bottom: 30px; }
.ecosystemColumn h3 { font-size: 22px; }
.enterprise { padding-block: 65px; }
.enterpriseGrid { grid-template-columns: 1fr; gap: 32px; }
.enterpriseGrid h3 { margin-top: 14px; }
.closing { padding-block: 68px; }
.startGrid { grid-template-columns: 1fr; gap: 16px; }
.startCard { padding: 24px; }
.footer { gap: 14px 25px; }
.footer nav { margin-left: 0; width: 100%; gap: 26px; }
}
@media (max-width: 480px) {
.site .wiki { padding-block: 28px; }
.wiki .sectionHeading { gap: 12px; margin-bottom: 18px; }
.wiki .sectionHeading h2 { font-size: 28px; }
.wikiGalleryTabs { gap: 2px; }
.wikiGalleryTabs button { padding-inline: 9px; gap: 6px; font-size: 13px; }
.wikiGalleryTabs svg { width: 16px; height: 16px; }
.wikiSlide .wikiSlideCaption { padding: 18px 14px; }
.shell { width: calc(100% - 40px); }
.hero h1 { font-size: clamp(28px, 7.9vw, 38px); }
.releaseLink { font-size: 12px; gap: 8px; }
.heroDescription br { display: none; }
.videoTop { letter-spacing: 0; padding-inline: 10px; }
.videoTop > span { gap: 6px; }
.videoTop > span:last-child { display: none; }
.videoDot { margin: 0; }
.playCircle { height: 52px; width: 52px; }
.playCircle svg { width: 22px; height: 22px; }
.videoCoverTitle { font-size: 17px; margin-top: 13px; }
.videoCoverHint { font-size: 12px; margin-top: 4px; }
.trustBar { font-size: 12px; gap: 13px; }
.trustBar span { gap: 7px; }
.section { padding-block: 60px; }
.sectionHeading h2 { font-size: 32px; }
.eyebrow { font-size: 12px; letter-spacing: .09em; margin-bottom: 15px; }
.ecosystem { grid-template-columns: 1fr; padding-top: 28px; }
.ecosystemCore { grid-column: 1; }
.ecosystemColumn + .ecosystemColumn { border-top: 1px solid var(--rule); padding-top: 26px; }
.models { justify-content: flex-start; gap: 15px 22px; }
.models > span { flex-basis: 100%; }
.models > p { font-size: 15px; }
.releaseFeatures article { grid-template-columns: 24px 1fr; gap: 14px; }
.releaseFeatures h3 { font-size: 20px; }
.artifactHeading { padding-inline: 12px; }
.artifactHeading > span:last-child { font-size: 12px; }
.artifactFigure figcaption { padding-inline: 12px; }
.closing h2 { font-size: 30px; }
.footer > p { font-size: 12px; }
}
:global(.dark) .integrations img, :global(.dark) .models img { background: var(--wk-logo-ground); padding: 2px; border-radius: 3px; }
.ecosystemCore > :global(.wk-logo) { margin-bottom: 18px; }