Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f9a5fe7e7d |
No files matched your search
@@ -0,0 +1,4 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
|
||||||
|
<circle cx="16" cy="16" r="15" fill="#0a0a0a"/>
|
||||||
|
<path d="M16 9v14M9 16h14" fill="none" stroke="#ffffff" stroke-width="1.75"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 198 B |
@@ -1,93 +0,0 @@
|
|||||||
Copyright (c) 2023 Vercel, in collaboration with basement.studio
|
|
||||||
|
|
||||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
||||||
This license is copied below, and is also available with a FAQ at:
|
|
||||||
https://scripts.sil.org/OFL
|
|
||||||
|
|
||||||
|
|
||||||
-----------------------------------------------------------
|
|
||||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
||||||
-----------------------------------------------------------
|
|
||||||
|
|
||||||
PREAMBLE
|
|
||||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
||||||
development of collaborative font projects, to support the font creation
|
|
||||||
efforts of academic and linguistic communities, and to provide a free and
|
|
||||||
open framework in which fonts may be shared and improved in partnership
|
|
||||||
with others.
|
|
||||||
|
|
||||||
The OFL allows the licensed fonts to be used, studied, modified and
|
|
||||||
redistributed freely as long as they are not sold by themselves. The
|
|
||||||
fonts, including any derivative works, can be bundled, embedded,
|
|
||||||
redistributed and/or sold with any software provided that any reserved
|
|
||||||
names are not used by derivative works. The fonts and derivatives,
|
|
||||||
however, cannot be released under any other type of license. The
|
|
||||||
requirement for fonts to remain under this license does not apply
|
|
||||||
to any document created using the fonts or their derivatives.
|
|
||||||
|
|
||||||
DEFINITIONS
|
|
||||||
"Font Software" refers to the set of files released by the Copyright
|
|
||||||
Holder(s) under this license and clearly marked as such. This may
|
|
||||||
include source files, build scripts and documentation.
|
|
||||||
|
|
||||||
"Reserved Font Name" refers to any names specified as such after the
|
|
||||||
copyright statement(s).
|
|
||||||
|
|
||||||
"Original Version" refers to the collection of Font Software components as
|
|
||||||
distributed by the Copyright Holder(s).
|
|
||||||
|
|
||||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
||||||
or substituting -- in part or in whole -- any of the components of the
|
|
||||||
Original Version, by changing formats or by porting the Font Software to a
|
|
||||||
new environment.
|
|
||||||
|
|
||||||
"Author" refers to any designer, engineer, programmer, technical
|
|
||||||
writer or other person who contributed to the Font Software.
|
|
||||||
|
|
||||||
PERMISSION & CONDITIONS
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
|
||||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
||||||
redistribute, and sell modified and unmodified copies of the Font
|
|
||||||
Software, subject to the following conditions:
|
|
||||||
|
|
||||||
1) Neither the Font Software nor any of its individual components,
|
|
||||||
in Original or Modified Versions, may be sold by itself.
|
|
||||||
|
|
||||||
2) Original or Modified Versions of the Font Software may be bundled,
|
|
||||||
redistributed and/or sold with any software, provided that each copy
|
|
||||||
contains the above copyright notice and this license. These can be
|
|
||||||
included either as stand-alone text files, human-readable headers or
|
|
||||||
in the appropriate machine-readable metadata fields within text or
|
|
||||||
binary files as long as those fields can be easily viewed by the user.
|
|
||||||
|
|
||||||
3) No Modified Version of the Font Software may use the Reserved Font
|
|
||||||
Name(s) unless explicit written permission is granted by the corresponding
|
|
||||||
Copyright Holder. This restriction only applies to the primary font name as
|
|
||||||
presented to the users.
|
|
||||||
|
|
||||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
||||||
Software shall not be used to promote, endorse or advertise any
|
|
||||||
Modified Version, except to acknowledge the contribution(s) of the
|
|
||||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
||||||
permission.
|
|
||||||
|
|
||||||
5) The Font Software, modified or unmodified, in part or in whole,
|
|
||||||
must be distributed entirely under this license, and must not be
|
|
||||||
distributed under any other license. The requirement for fonts to
|
|
||||||
remain under this license does not apply to any document created
|
|
||||||
using the Font Software.
|
|
||||||
|
|
||||||
TERMINATION
|
|
||||||
This license becomes null and void if any of the above conditions are
|
|
||||||
not met.
|
|
||||||
|
|
||||||
DISCLAIMER
|
|
||||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
||||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
||||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
||||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
||||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
||||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
||||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
||||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+127
-28
@@ -1,41 +1,140 @@
|
|||||||
<!DOCTYPE html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="de" data-theme="light">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<title>Studio Vitali</title>
|
<meta name="color-scheme" content="light dark">
|
||||||
|
|
||||||
|
<title>Studio Vitali — Kunstwissenschaft & Informatik, Zürich</title>
|
||||||
|
<meta name="description" content="Studio Vitali GmbH — multidisziplinär in der Kunst- und IT-Branche. Provenienzforschung, Kunstberatung und Inventarisierung sowie Webhosting, IT Consulting und Cloud Services in Zürich.">
|
||||||
|
<meta name="theme-color" content="#ffffff" id="theme-color">
|
||||||
|
|
||||||
|
<meta property="og:type" content="website">
|
||||||
|
<meta property="og:title" content="Studio Vitali — Kunstwissenschaft & Informatik">
|
||||||
|
<meta property="og:description" content="Multidisziplinär in der Kunst- und IT-Branche verankert. Zürich, Schweiz.">
|
||||||
|
<meta property="og:locale" content="de_CH">
|
||||||
|
|
||||||
|
<link rel="canonical" href="https://studiovitali.ch/">
|
||||||
|
<link rel="icon" type="image/svg+xml" href="assets/favicon.svg">
|
||||||
|
<link rel="preload" href="assets/fonts/inter-latin.woff2" as="font" type="font/woff2" crossorigin>
|
||||||
<link rel="stylesheet" href="styles.css">
|
<link rel="stylesheet" href="styles.css">
|
||||||
<script src="main.js" defer></script>
|
|
||||||
|
<script>
|
||||||
|
(function () {
|
||||||
|
var dark = false;
|
||||||
|
try {
|
||||||
|
var saved = localStorage.getItem('theme');
|
||||||
|
dark = saved ? saved === 'dark' : window.matchMedia('(prefers-color-scheme: dark)').matches;
|
||||||
|
} catch (error) {
|
||||||
|
dark = window.matchMedia('(prefers-color-scheme: dark)').matches;
|
||||||
|
}
|
||||||
|
document.documentElement.dataset.theme = dark ? 'dark' : 'light';
|
||||||
|
|
||||||
|
var meta = document.getElementById('theme-color');
|
||||||
|
if (meta) {
|
||||||
|
meta.setAttribute('content', dark ? '#0b0b0c' : '#ffffff');
|
||||||
|
}
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<canvas id="canvas" aria-hidden="true"></canvas>
|
<a class="skip-link" href="#main">Zum Inhalt springen</a>
|
||||||
<header class="frame frame-block-start">
|
|
||||||
<h1>Studio Vitali GmbH</h1>
|
<div class="frame">
|
||||||
<a href="https://informatik.studiovitali.ch">Informatik</a>
|
<span class="corner corner-tl" aria-hidden="true"></span>
|
||||||
<a href="https://kunst.studiovitali.ch">Kunstwissenschaft</a>
|
|
||||||
|
<header class="rail rail-top">
|
||||||
|
<p class="brand"><a href="#main">Studio Vitali <span class="brand-suffix">GmbH</span></a></p>
|
||||||
|
<p class="top-note">Kunstwissenschaft & Informatik — Zürich</p>
|
||||||
|
<div class="rail-meta">
|
||||||
|
<span class="clock">
|
||||||
|
<span class="clock-place">Zürich</span>
|
||||||
|
<time id="clock" datetime="">--:--</time>
|
||||||
|
</span>
|
||||||
|
<button class="theme-toggle" type="button" aria-label="Dunkles Design umschalten" aria-pressed="false">
|
||||||
|
<svg viewBox="0 0 16 16" aria-hidden="true" focusable="false">
|
||||||
|
<circle cx="8" cy="8" r="6.25" fill="none" stroke="currentColor" stroke-width="1"/>
|
||||||
|
<path d="M8 1.75a6.25 6.25 0 0 0 0 12.5Z" fill="currentColor"/>
|
||||||
|
</svg>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</header>
|
</header>
|
||||||
<address class="frame frame-inline-end">
|
|
||||||
<a href="mailto:[email protected]" title="E-Mail">[email protected]</a>
|
<span class="corner corner-tr" aria-hidden="true"></span>
|
||||||
<a href="tel:+41445201596" title="Telefon">+41 44 520 15 96</a>
|
|
||||||
</address>
|
<nav class="rail rail-left" aria-label="Kunstwissenschaft">
|
||||||
<footer class="frame frame-block-end">
|
<h2 class="rail-title">Kunstwissenschaft</h2>
|
||||||
|
<p class="rail-list"><a href="mailto:[email protected]?subject=Provenienzforschung">Provenienzforschung</a><span class="sep" aria-hidden="true">·</span><a href="mailto:[email protected]?subject=Kunstberatung">Kunstberatung</a><span class="sep" aria-hidden="true">·</span><a href="mailto:[email protected]?subject=Inventarisierung">Inventarisierung</a></p>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<main class="stage" id="main" tabindex="-1">
|
||||||
|
<div class="stage-inner">
|
||||||
|
<p class="kicker">Zürich, Schweiz</p>
|
||||||
|
<h1 class="wordmark">Studio Vitali</h1>
|
||||||
|
<p class="lede">Multidisziplinär in der Kunst- und IT-Branche verankert.</p>
|
||||||
|
<a class="cta" href="mailto:[email protected]">Projekt anfragen <span class="arrow" aria-hidden="true">→</span></a>
|
||||||
<div class="legal">
|
<div class="legal">
|
||||||
<!-- <a href="https://zefix.ch/de/search/entity/list/firm/1651152" title="Zefix">CHE-215.230.900</a> -->
|
<button class="text-button" type="button" data-dialog="impressum">Impressum</button>
|
||||||
<a href="#impressum" title="Impressum">Impressum</a>
|
<span class="sep" aria-hidden="true">·</span>
|
||||||
<a href="#datenschutz" title="Datenschutz">Datenschutz</a>
|
<button class="text-button" type="button" data-dialog="datenschutz">Datenschutz</button>
|
||||||
|
<span class="sep" aria-hidden="true">·</span>
|
||||||
|
<span>© <span id="year">2026</span> Studio Vitali GmbH</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="controls">
|
|
||||||
<input id="hue" type="range" min="0" max="360" value="220" aria-label="Hue">
|
|
||||||
<input id="lightness" type="range" min="0" max="100" value="50" aria-label="Lightness">
|
|
||||||
<input id="weight" type="range" min="100" max="900" step="1" value="500" aria-label="Font weight">
|
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
|
||||||
<address class="frame frame-inline-start">
|
|
||||||
<a href="https://maps.app.goo.gl/sgo7hm1Xa4DBFRAYA" title="Google Maps">
|
|
||||||
<span>Lindenhofstrasse 17 — CH-8001 Zürich</span>
|
|
||||||
</a>
|
|
||||||
</address>
|
|
||||||
<main>
|
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
|
<nav class="rail rail-right" aria-label="Informatik">
|
||||||
|
<h2 class="rail-title">Informatik</h2>
|
||||||
|
<p class="rail-list"><a href="mailto:[email protected]?subject=Webhosting">Webhosting</a><span class="sep" aria-hidden="true">·</span><a href="mailto:[email protected]?subject=IT%20Consulting">IT Consulting</a><span class="sep" aria-hidden="true">·</span><a href="mailto:[email protected]?subject=Cloud%20Services">Cloud Services</a></p>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<span class="corner corner-bl" aria-hidden="true"></span>
|
||||||
|
|
||||||
|
<footer class="rail rail-bottom">
|
||||||
|
<p class="address"><a href="https://maps.app.goo.gl/sgo7hm1Xa4DBFRAYA" target="_blank" rel="noopener" aria-label="Studio Vitali, Lindenhofstrasse 17, 8001 Zürich — auf Google Maps öffnen"><span class="hide-sm">Lindenhofstrasse 17 · </span>8001 Zürich</a></p>
|
||||||
|
<p class="bottom-note">CHE-215.230.900</p>
|
||||||
|
<p class="contact"><a href="mailto:[email protected]">[email protected]</a><span class="sep hide-sm" aria-hidden="true">·</span><a class="hide-sm" href="tel:+41445201596">+41 44 520 15 96</a></p>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<span class="corner corner-br" aria-hidden="true"></span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<dialog id="impressum" aria-labelledby="impressum-title">
|
||||||
|
<div class="dialog-inner">
|
||||||
|
<div class="dialog-head">
|
||||||
|
<h2 id="impressum-title">Impressum</h2>
|
||||||
|
<button class="dialog-close" type="button" aria-label="Impressum schliessen">
|
||||||
|
<svg viewBox="0 0 16 16" aria-hidden="true" focusable="false"><path d="M2.5 2.5l11 11M13.5 2.5l-11 11" fill="none" stroke="currentColor" stroke-width="1.25"/></svg>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div class="dialog-body">
|
||||||
|
<p>Sämtlicher Inhalt dieser Webseite ist urheberrechtlich geschützt. Die Reproduktion jeglicher Elemente zu anderen Zwecken als dem persönlichen Gebrauch ist ohne unsere vorherige schriftliche Zustimmung untersagt.</p>
|
||||||
|
<p><strong>Verantwortlich für diese Webseite</strong><br>Studio Vitali GmbH<br>Lindenhofstrasse 17<br>8001 Zürich, Schweiz</p>
|
||||||
|
<p><a href="mailto:[email protected]">[email protected]</a><br><a href="tel:+41445201596">+41 44 520 15 96</a><br>CHE-215.230.900</p>
|
||||||
|
<p>Gesellschafter*innen: Alessandro Vitali, Evelyne Vitali</p>
|
||||||
|
<p>Wir können keine Gewähr für die Vollständigkeit, Richtigkeit und Aktualität der Informationen auf dieser Seite übernehmen und behalten uns das Recht vor, nach eigenem Ermessen und ohne Ankündigung Teile der Seite zu verändern oder zu löschen. Verweise und Links auf Webseiten Dritter liegen ausserhalb unseres Verantwortungsbereiches, und wir übernehmen keine Gewähr für deren Inhalt oder Verfügbarkeit. Der Zugriff auf solche Links erfolgt auf eigene Gefahr. Wir übernehmen keine Haftung für Schäden jeglicher Art, die durch den Zugriff oder die Nutzung, den Missbrauch oder Fehler dieser Webseite entstanden sind.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</dialog>
|
||||||
|
|
||||||
|
<dialog id="datenschutz" aria-labelledby="datenschutz-title">
|
||||||
|
<div class="dialog-inner">
|
||||||
|
<div class="dialog-head">
|
||||||
|
<h2 id="datenschutz-title">Datenschutz</h2>
|
||||||
|
<button class="dialog-close" type="button" aria-label="Datenschutz schliessen">
|
||||||
|
<svg viewBox="0 0 16 16" aria-hidden="true" focusable="false"><path d="M2.5 2.5l11 11M13.5 2.5l-11 11" fill="none" stroke="currentColor" stroke-width="1.25"/></svg>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div class="dialog-body">
|
||||||
|
<p>Der Schutz deiner Daten ist uns wichtig. Diese Webseite ist eine statische Informationsseite. Wir setzen keine Analyse- oder Werbetools ein und verwenden keine Tracking-Cookies.</p>
|
||||||
|
<p><strong>Verantwortliche Stelle</strong><br>Studio Vitali GmbH, Lindenhofstrasse 17, 8001 Zürich, <a href="mailto:[email protected]">[email protected]</a>.</p>
|
||||||
|
<p><strong>Hosting</strong><br>Beim Aufruf dieser Seite verarbeitet der Hosting-Anbieter technisch notwendige Server-Logdaten wie IP-Adresse, Zeitpunkt der Anfrage, aufgerufene Datei, Referrer-URL, Browser und Betriebssystem. Diese Daten dienen dem sicheren und stabilen Betrieb der Seite, werden nicht mit anderen Datenquellen zusammengeführt und nach kurzer Zeit gelöscht. Die Übertragung erfolgt verschlüsselt über TLS.</p>
|
||||||
|
<p><strong>Lokale Speicherung</strong><br>Deine Wahl zwischen hellem und dunklem Design wird im <code>localStorage</code> deines Browsers gespeichert. Diese Information bleibt auf deinem Gerät, wird nicht an uns übertragen und kann jederzeit über die Browsereinstellungen gelöscht werden.</p>
|
||||||
|
<p><strong>Deine Rechte</strong><br>Nach dem Schweizer <a href="https://www.fedlex.admin.ch/eli/cc/1993/1945_1945_1945/en" target="_blank" rel="noopener">DSG</a> und der europäischen DSGVO hast du das Recht auf Auskunft, Berichtigung, Löschung und Widerspruch. Wende dich dafür an <a href="mailto:[email protected]">[email protected]</a>.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</dialog>
|
||||||
|
|
||||||
|
<script src="main.js" defer></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
@@ -1,139 +1,117 @@
|
|||||||
const root = document.documentElement;
|
(function () {
|
||||||
const canvas = document.querySelector("#canvas");
|
"use strict";
|
||||||
const context = canvas.getContext("2d");
|
|
||||||
const hue = document.querySelector("#hue");
|
|
||||||
const lightness = document.querySelector("#lightness");
|
|
||||||
const weight = document.querySelector("#weight");
|
|
||||||
|
|
||||||
const updateTokens = () => {
|
var root = document.documentElement;
|
||||||
root.style.setProperty("--color-hue", hue.value);
|
var themeToggle = document.querySelector(".theme-toggle");
|
||||||
root.style.setProperty("--color-lightness", `${lightness.value}%`);
|
var themeColor = document.getElementById("theme-color");
|
||||||
root.style.setProperty("--font-weight", weight.value);
|
var themeColors = { light: "#ffffff", dark: "#0b0b0c" };
|
||||||
};
|
|
||||||
|
|
||||||
hue.addEventListener("input", updateTokens);
|
function setTheme(theme, persist) {
|
||||||
lightness.addEventListener("input", updateTokens);
|
root.dataset.theme = theme;
|
||||||
weight.addEventListener("input", updateTokens);
|
|
||||||
updateTokens();
|
|
||||||
|
|
||||||
let scale = window.devicePixelRatio || 1;
|
if (themeToggle) {
|
||||||
|
themeToggle.setAttribute("aria-pressed", String(theme === "dark"));
|
||||||
function resizeCanvas() {
|
|
||||||
const previousScale = scale;
|
|
||||||
const previous = document.createElement("canvas");
|
|
||||||
const hadSize = canvas.dataset.sized === "true";
|
|
||||||
|
|
||||||
if (hadSize) {
|
|
||||||
previous.width = canvas.width;
|
|
||||||
previous.height = canvas.height;
|
|
||||||
previous.getContext("2d").drawImage(canvas, 0, 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
scale = window.devicePixelRatio || 1;
|
if (themeColor) {
|
||||||
canvas.width = Math.round(window.innerWidth * scale);
|
themeColor.setAttribute("content", themeColors[theme]);
|
||||||
canvas.height = Math.round(window.innerHeight * scale);
|
}
|
||||||
canvas.style.width = `${window.innerWidth}px`;
|
|
||||||
canvas.style.height = `${window.innerHeight}px`;
|
|
||||||
canvas.dataset.sized = "true";
|
|
||||||
|
|
||||||
context.setTransform(scale, 0, 0, scale, 0, 0);
|
if (persist) {
|
||||||
context.lineCap = "round";
|
try {
|
||||||
context.lineJoin = "round";
|
localStorage.setItem("theme", theme);
|
||||||
|
} catch (error) {
|
||||||
if (hadSize) {
|
/* Storage can be unavailable; the choice still applies for this visit. */
|
||||||
context.drawImage(
|
}
|
||||||
previous,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
previous.width / previousScale,
|
|
||||||
previous.height / previousScale,
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const ink = () => getComputedStyle(document.body).color;
|
setTheme(root.dataset.theme === "dark" ? "dark" : "light", false);
|
||||||
const brushSize = () => Number(weight.value) / 100;
|
|
||||||
|
|
||||||
let drawing = false;
|
if (themeToggle) {
|
||||||
let lastPoint = null;
|
themeToggle.addEventListener("click", function () {
|
||||||
|
setTheme(root.dataset.theme === "dark" ? "light" : "dark", true);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
canvas.addEventListener("pointerdown", (event) => {
|
var clock = document.getElementById("clock");
|
||||||
if (event.button !== 0) return;
|
|
||||||
|
|
||||||
drawing = true;
|
if (clock) {
|
||||||
lastPoint = { x: event.clientX, y: event.clientY };
|
try {
|
||||||
canvas.setPointerCapture(event.pointerId);
|
var timeFormat = new Intl.DateTimeFormat("de-CH", {
|
||||||
|
hour: "2-digit",
|
||||||
context.fillStyle = ink();
|
minute: "2-digit",
|
||||||
context.beginPath();
|
timeZone: "Europe/Zurich"
|
||||||
context.arc(
|
|
||||||
lastPoint.x,
|
|
||||||
lastPoint.y,
|
|
||||||
brushSize() / 2,
|
|
||||||
0,
|
|
||||||
Math.PI * 2,
|
|
||||||
);
|
|
||||||
context.fill();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
canvas.addEventListener("pointermove", (event) => {
|
var updateClock = function () {
|
||||||
if (!drawing || !lastPoint) return;
|
var now = new Date();
|
||||||
|
clock.textContent = timeFormat.format(now);
|
||||||
const nextPoint = { x: event.clientX, y: event.clientY };
|
clock.setAttribute("datetime", now.toISOString());
|
||||||
|
|
||||||
context.strokeStyle = ink();
|
|
||||||
context.lineWidth = brushSize();
|
|
||||||
context.beginPath();
|
|
||||||
context.moveTo(lastPoint.x, lastPoint.y);
|
|
||||||
context.lineTo(nextPoint.x, nextPoint.y);
|
|
||||||
context.stroke();
|
|
||||||
|
|
||||||
lastPoint = nextPoint;
|
|
||||||
});
|
|
||||||
|
|
||||||
const STORAGE_KEY = "studio-vitali-canvas";
|
|
||||||
|
|
||||||
const saveDrawing = () => {
|
|
||||||
try {
|
|
||||||
localStorage.setItem(STORAGE_KEY, canvas.toDataURL());
|
|
||||||
} catch {
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const restoreDrawing = () => {
|
updateClock();
|
||||||
let saved = null;
|
window.setInterval(updateClock, 15000);
|
||||||
|
} catch (error) {
|
||||||
|
clock.textContent = "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
var year = document.getElementById("year");
|
||||||
saved = localStorage.getItem(STORAGE_KEY);
|
|
||||||
} catch {
|
if (year) {
|
||||||
|
year.textContent = String(new Date().getFullYear());
|
||||||
|
}
|
||||||
|
|
||||||
|
var dialogs = Array.prototype.slice.call(document.querySelectorAll("dialog"));
|
||||||
|
|
||||||
|
function syncScrollLock() {
|
||||||
|
var hasOpenDialog = dialogs.some(function (dialog) {
|
||||||
|
return dialog.open;
|
||||||
|
});
|
||||||
|
|
||||||
|
document.body.classList.toggle("has-dialog", hasOpenDialog);
|
||||||
|
}
|
||||||
|
|
||||||
|
document.querySelectorAll("[data-dialog]").forEach(function (button) {
|
||||||
|
var dialog = document.getElementById(button.getAttribute("data-dialog"));
|
||||||
|
|
||||||
|
if (!dialog || typeof dialog.showModal !== "function") {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!saved) return;
|
button.addEventListener("click", function () {
|
||||||
|
dialog.showModal();
|
||||||
const image = new Image();
|
syncScrollLock();
|
||||||
image.addEventListener("load", () => {
|
});
|
||||||
context.drawImage(image, 0, 0, window.innerWidth, window.innerHeight);
|
|
||||||
});
|
});
|
||||||
image.src = saved;
|
|
||||||
};
|
|
||||||
|
|
||||||
const stopDrawing = (event) => {
|
dialogs.forEach(function (dialog) {
|
||||||
if (!drawing) return;
|
var closeButton = dialog.querySelector(".dialog-close");
|
||||||
|
|
||||||
drawing = false;
|
if (closeButton) {
|
||||||
lastPoint = null;
|
closeButton.addEventListener("click", function () {
|
||||||
|
dialog.close();
|
||||||
if (canvas.hasPointerCapture(event.pointerId)) {
|
});
|
||||||
canvas.releasePointerCapture(event.pointerId);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
saveDrawing();
|
dialog.addEventListener("click", function (event) {
|
||||||
};
|
if (event.target !== dialog) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
canvas.addEventListener("pointerup", stopDrawing);
|
var rect = dialog.getBoundingClientRect();
|
||||||
canvas.addEventListener("pointercancel", stopDrawing);
|
var inside =
|
||||||
window.addEventListener("resize", resizeCanvas);
|
event.clientX >= rect.left &&
|
||||||
|
event.clientX <= rect.right &&
|
||||||
|
event.clientY >= rect.top &&
|
||||||
|
event.clientY <= rect.bottom;
|
||||||
|
|
||||||
resizeCanvas();
|
if (!inside) {
|
||||||
restoreDrawing();
|
dialog.close();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
dialog.addEventListener("close", syncScrollLock);
|
||||||
|
});
|
||||||
|
})();
|
||||||
+598
-152
@@ -1,31 +1,53 @@
|
|||||||
@font-face {
|
@font-face {
|
||||||
font-family: "Geist";
|
font-family: "Inter";
|
||||||
src: url("assets/fonts/geist-variable.woff2") format("woff2");
|
|
||||||
font-weight: 100 900;
|
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
|
font-weight: 100 900;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
|
src: url("assets/fonts/inter-latin.woff2") format("woff2");
|
||||||
|
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "Geist";
|
font-family: "Inter";
|
||||||
src: url("assets/fonts/geist-italic-variable.woff2") format("woff2");
|
font-style: normal;
|
||||||
font-weight: 100 900;
|
font-weight: 100 900;
|
||||||
font-style: italic;
|
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
|
src: url("assets/fonts/inter-latin-ext.woff2") format("woff2");
|
||||||
|
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||||
}
|
}
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
--font-sans: "Geist", system-ui, sans-serif;
|
--font: "Inter", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
|
||||||
--color-paper: #ffffff;
|
|
||||||
--color-hue: 220;
|
|
||||||
--color-saturation: 85%;
|
|
||||||
--color-lightness: 50%;
|
|
||||||
--color-ink: hsl(var(--color-hue) var(--color-saturation) var(--color-lightness));
|
|
||||||
--font-weight: 500;
|
|
||||||
--gutter: clamp(0.4rem, 1vw, 0.8rem);
|
|
||||||
|
|
||||||
--control-size: 1rem;
|
--pad: clamp(0.5rem, 1.6vw, 1.25rem);
|
||||||
--control-border: solid 0.2rem var(--color-ink);
|
--rail: clamp(1.5rem, 1.05rem + 0.9vw, 2.1rem);
|
||||||
|
--rail-size: clamp(0.68rem, 0.6rem + 0.18vw, 0.8rem);
|
||||||
|
--display-size: clamp(2.1rem, 11.5vw, 9rem);
|
||||||
|
--gap: clamp(0.75rem, 2vw, 1.5rem);
|
||||||
|
--stage-pad-x: clamp(1rem, 4vw, 4rem);
|
||||||
|
--stage-pad-y: clamp(1rem, 3vw, 3rem);
|
||||||
|
|
||||||
|
--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
:root[data-theme="light"] {
|
||||||
|
color-scheme: light;
|
||||||
|
--bg: #ffffff;
|
||||||
|
--fg: #0a0a0a;
|
||||||
|
--muted: #6f6f6f;
|
||||||
|
--line: rgba(10, 10, 10, 0.18);
|
||||||
|
--accent: #0000ee;
|
||||||
|
--scrim: rgba(10, 10, 10, 0.38);
|
||||||
|
}
|
||||||
|
|
||||||
|
:root[data-theme="dark"] {
|
||||||
|
color-scheme: dark;
|
||||||
|
--bg: #0b0b0c;
|
||||||
|
--fg: #f2f2f0;
|
||||||
|
--muted: #9a9a97;
|
||||||
|
--line: rgba(242, 242, 240, 0.2);
|
||||||
|
--accent: #8f8fff;
|
||||||
|
--scrim: rgba(0, 0, 0, 0.66);
|
||||||
}
|
}
|
||||||
|
|
||||||
*,
|
*,
|
||||||
@@ -35,175 +57,599 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
margin: 0;
|
background: var(--bg);
|
||||||
padding: var(--gutter);
|
scrollbar-color: var(--line) transparent;
|
||||||
background-color: var(--color-paper);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
min-height: 100%;
|
|
||||||
color: var(--color-ink);
|
|
||||||
font-family: var(--font-sans);
|
|
||||||
font-size: clamp(1rem, 2vw, 2rem);
|
|
||||||
font-weight: var(--font-weight);
|
|
||||||
line-height: 1.2;
|
|
||||||
}
|
|
||||||
|
|
||||||
h1,
|
|
||||||
h2,
|
|
||||||
p,
|
|
||||||
a {
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
color: var(--color-ink);
|
min-height: 100vh;
|
||||||
font-size: inherit;
|
min-height: 100svh;
|
||||||
font-weight: inherit;
|
background: var(--bg);
|
||||||
text-box: trim-both cap alphabetic;
|
color: var(--fg);
|
||||||
|
font-family: var(--font);
|
||||||
|
font-size: 16px;
|
||||||
|
font-synthesis-weight: none;
|
||||||
|
line-height: 1.2;
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
text-rendering: optimizeLegibility;
|
||||||
|
transition: background-color 0.25s ease, color 0.25s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
a:hover {
|
::selection {
|
||||||
|
background: var(--accent);
|
||||||
|
color: var(--bg);
|
||||||
|
}
|
||||||
|
|
||||||
|
body.has-dialog {
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
:where(a, button, [tabindex]):focus-visible {
|
||||||
|
outline: 2px solid var(--accent);
|
||||||
|
outline-offset: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
button,
|
||||||
|
input,
|
||||||
|
select,
|
||||||
|
textarea {
|
||||||
|
font: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
.skip-link {
|
||||||
|
position: fixed;
|
||||||
|
top: 0.75rem;
|
||||||
|
left: 0.75rem;
|
||||||
|
z-index: 100;
|
||||||
|
padding: 0.6rem 0.85rem;
|
||||||
|
background: var(--fg);
|
||||||
|
color: var(--bg);
|
||||||
|
font-size: 0.78rem;
|
||||||
|
text-decoration: none;
|
||||||
|
transform: translateY(-200%);
|
||||||
|
transition: transform 0.18s var(--ease);
|
||||||
|
}
|
||||||
|
|
||||||
|
.skip-link:focus {
|
||||||
|
transform: translateY(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------- frame ---------- */
|
||||||
|
|
||||||
|
.frame {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: var(--rail) minmax(0, 1fr) var(--rail);
|
||||||
|
grid-template-rows: var(--rail) minmax(min-content, 1fr) var(--rail);
|
||||||
|
grid-template-areas:
|
||||||
|
"c-tl top c-tr"
|
||||||
|
"left stage right"
|
||||||
|
"c-bl bottom c-br";
|
||||||
|
min-height: 100vh;
|
||||||
|
min-height: 100svh;
|
||||||
|
padding: var(--pad);
|
||||||
|
}
|
||||||
|
|
||||||
|
.corner {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.corner-tl { grid-area: c-tl; }
|
||||||
|
.corner-tr { grid-area: c-tr; }
|
||||||
|
.corner-bl { grid-area: c-bl; }
|
||||||
|
.corner-br { grid-area: c-br; }
|
||||||
|
|
||||||
|
.corner::before,
|
||||||
|
.corner::after {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
background: var(--line);
|
||||||
|
}
|
||||||
|
|
||||||
|
.corner::before {
|
||||||
|
width: calc(var(--rail) * 0.62);
|
||||||
|
height: 1px;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.corner::after {
|
||||||
|
width: 1px;
|
||||||
|
height: calc(var(--rail) * 0.62);
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------- rails ---------- */
|
||||||
|
|
||||||
|
.rail {
|
||||||
|
min-width: 0;
|
||||||
|
min-height: 0;
|
||||||
|
font-size: var(--rail-size);
|
||||||
|
line-height: 1;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rail-top,
|
||||||
|
.rail-bottom {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr auto 1fr;
|
||||||
|
align-items: center;
|
||||||
|
gap: var(--gap);
|
||||||
|
}
|
||||||
|
|
||||||
|
.rail-top { grid-area: top; }
|
||||||
|
.rail-bottom { grid-area: bottom; }
|
||||||
|
|
||||||
|
.rail-left,
|
||||||
|
.rail-right {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
gap: clamp(1rem, 4vh, 2.75rem);
|
||||||
|
writing-mode: vertical-rl;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rail-left { grid-area: left; }
|
||||||
|
.rail-right {
|
||||||
|
grid-area: right;
|
||||||
|
transform: rotate(180deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.rail-title {
|
||||||
|
margin: 0;
|
||||||
|
font-size: calc(var(--rail-size) + 0.06rem);
|
||||||
|
font-weight: 600;
|
||||||
|
letter-spacing: 0.17em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rail-list {
|
||||||
|
margin: 0;
|
||||||
|
color: var(--muted);
|
||||||
|
letter-spacing: 0.02em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rail-list a {
|
||||||
|
padding-block: 0.3em;
|
||||||
|
color: inherit;
|
||||||
|
text-decoration: none;
|
||||||
|
transition: color 0.18s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rail-list a:hover {
|
||||||
|
color: var(--accent);
|
||||||
|
text-decoration: underline;
|
||||||
|
text-underline-offset: 0.18em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sep {
|
||||||
|
padding-inline: 0.34em;
|
||||||
|
color: var(--line);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------- top rail ---------- */
|
||||||
|
|
||||||
|
.brand {
|
||||||
|
margin: 0;
|
||||||
|
font-size: calc(var(--rail-size) + 0.02rem);
|
||||||
|
font-weight: 600;
|
||||||
|
letter-spacing: -0.01em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.brand a {
|
||||||
|
padding-block: 0.35rem;
|
||||||
|
color: var(--fg);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
address {
|
.brand-suffix {
|
||||||
font-style: normal;
|
color: var(--muted);
|
||||||
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
#canvas {
|
.top-note {
|
||||||
position: fixed;
|
justify-self: center;
|
||||||
inset: 0;
|
margin: 0;
|
||||||
z-index: 0;
|
color: var(--muted);
|
||||||
width: 100%;
|
font-size: calc(var(--rail-size) - 0.05rem);
|
||||||
height: 100%;
|
letter-spacing: 0.12em;
|
||||||
cursor: crosshair;
|
text-transform: uppercase;
|
||||||
touch-action: none;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.frame {
|
.rail-meta {
|
||||||
position: fixed;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 1.2rem;
|
align-items: center;
|
||||||
z-index: 1;
|
justify-self: end;
|
||||||
|
gap: clamp(0.5rem, 1.2vw, 0.9rem);
|
||||||
|
}
|
||||||
|
|
||||||
|
.clock {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: baseline;
|
||||||
|
gap: 0.45em;
|
||||||
|
font-variant-numeric: tabular-nums;
|
||||||
|
letter-spacing: 0.04em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.clock-place {
|
||||||
|
color: var(--muted);
|
||||||
|
font-size: 0.92em;
|
||||||
|
letter-spacing: 0.12em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
|
||||||
|
#clock {
|
||||||
|
font-weight: 550;
|
||||||
|
}
|
||||||
|
|
||||||
|
.theme-toggle {
|
||||||
|
position: relative;
|
||||||
|
display: grid;
|
||||||
|
place-items: center;
|
||||||
|
width: 1.5rem;
|
||||||
|
height: 1.5rem;
|
||||||
|
padding: 0;
|
||||||
|
border: 1px solid var(--line);
|
||||||
|
border-radius: 50%;
|
||||||
|
background: none;
|
||||||
|
color: var(--fg);
|
||||||
|
cursor: pointer;
|
||||||
|
transition: border-color 0.18s ease, color 0.18s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.theme-toggle::before {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
inset: -0.6rem;
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.theme-toggle:hover {
|
||||||
|
border-color: var(--fg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.theme-toggle svg {
|
||||||
|
display: block;
|
||||||
|
width: 0.78rem;
|
||||||
|
height: 0.78rem;
|
||||||
|
transition: transform 0.35s var(--ease);
|
||||||
|
}
|
||||||
|
|
||||||
|
:root[data-theme="dark"] .theme-toggle svg {
|
||||||
|
transform: rotate(180deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------- bottom rail ---------- */
|
||||||
|
|
||||||
|
.address,
|
||||||
|
.bottom-note,
|
||||||
|
.contact {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.address a,
|
||||||
|
.contact a {
|
||||||
|
padding-block: 0.35rem;
|
||||||
|
text-decoration: underline;
|
||||||
|
text-decoration-color: var(--line);
|
||||||
|
text-decoration-thickness: 1px;
|
||||||
|
text-underline-offset: 0.22em;
|
||||||
|
transition: color 0.18s ease, text-decoration-color 0.18s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.address a:hover,
|
||||||
|
.contact a:hover {
|
||||||
|
color: var(--accent);
|
||||||
|
text-decoration-color: currentColor;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bottom-note {
|
||||||
|
justify-self: center;
|
||||||
|
color: var(--muted);
|
||||||
|
letter-spacing: 0.06em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contact {
|
||||||
|
display: flex;
|
||||||
|
align-items: baseline;
|
||||||
|
justify-self: end;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------- stage ---------- */
|
||||||
|
|
||||||
|
.stage {
|
||||||
|
grid-area: stage;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
min-width: 0;
|
||||||
|
min-height: 0;
|
||||||
|
padding: var(--stage-pad-y) var(--stage-pad-x);
|
||||||
|
}
|
||||||
|
|
||||||
|
.stage-inner {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
width: 100%;
|
||||||
|
max-width: 64rem;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.kicker {
|
||||||
|
margin: 0;
|
||||||
|
color: var(--muted);
|
||||||
|
font-size: calc(var(--rail-size) - 0.02rem);
|
||||||
|
font-weight: 500;
|
||||||
|
letter-spacing: 0.16em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wordmark {
|
||||||
|
margin: clamp(0.55rem, 1.6vh, 0.9rem) 0 0;
|
||||||
|
font-size: var(--display-size);
|
||||||
|
font-weight: 600;
|
||||||
|
letter-spacing: -0.05em;
|
||||||
|
line-height: 0.86;
|
||||||
|
text-wrap: balance;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lede {
|
||||||
|
max-width: 34ch;
|
||||||
|
margin: clamp(1rem, 2.6vh, 1.7rem) 0 0;
|
||||||
|
color: var(--muted);
|
||||||
|
font-size: clamp(0.95rem, 0.85rem + 0.35vw, 1.15rem);
|
||||||
|
letter-spacing: -0.005em;
|
||||||
|
line-height: 1.45;
|
||||||
|
text-wrap: pretty;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cta {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: baseline;
|
||||||
|
gap: 0.35em;
|
||||||
|
margin-top: clamp(1.4rem, 4vh, 2.5rem);
|
||||||
|
padding-bottom: 0.16em;
|
||||||
|
border-bottom: 1px solid var(--fg);
|
||||||
|
color: var(--fg);
|
||||||
|
font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.4rem);
|
||||||
|
font-weight: 520;
|
||||||
|
letter-spacing: -0.015em;
|
||||||
|
text-decoration: none;
|
||||||
|
transition: color 0.18s ease, border-color 0.18s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cta .arrow {
|
||||||
|
transition: transform 0.25s var(--ease);
|
||||||
|
}
|
||||||
|
|
||||||
|
.cta:hover,
|
||||||
|
.cta:focus-visible {
|
||||||
|
border-color: var(--accent);
|
||||||
|
color: var(--accent);
|
||||||
|
}
|
||||||
|
|
||||||
|
.cta:hover .arrow {
|
||||||
|
transform: translateX(0.2em);
|
||||||
}
|
}
|
||||||
|
|
||||||
.legal {
|
.legal {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
flex-wrap: wrap;
|
||||||
gap: 1.2rem;
|
align-items: baseline;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 0.15rem 0.1rem;
|
||||||
|
margin-top: clamp(1.5rem, 4.5vh, 2.75rem);
|
||||||
|
color: var(--muted);
|
||||||
|
font-size: var(--rail-size);
|
||||||
|
line-height: 1.6;
|
||||||
}
|
}
|
||||||
|
|
||||||
.controls {
|
.text-button {
|
||||||
display: flex;
|
padding: 0.35rem 0.15rem;
|
||||||
align-self: center;
|
margin: -0.35rem -0.15rem;
|
||||||
align-items: center;
|
|
||||||
gap: 1rem;
|
|
||||||
rotate: 180deg;
|
|
||||||
}
|
|
||||||
|
|
||||||
.controls input[type="range"] {
|
|
||||||
appearance: none;
|
|
||||||
width: clamp(5rem, 12vw, 8rem);
|
|
||||||
height: var(--control-size);
|
|
||||||
padding: 0;
|
|
||||||
border: 0;
|
border: 0;
|
||||||
|
background: none;
|
||||||
|
color: inherit;
|
||||||
|
font: inherit;
|
||||||
|
text-decoration: underline;
|
||||||
|
text-decoration-color: var(--line);
|
||||||
|
text-underline-offset: 0.2em;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
transition: color 0.18s ease, text-decoration-color 0.18s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
#hue {
|
.text-button:hover {
|
||||||
--hue-preview: 50%;
|
color: var(--fg);
|
||||||
--range-track: linear-gradient(
|
text-decoration-color: currentColor;
|
||||||
to right,
|
|
||||||
hsl(0 var(--color-saturation) var(--hue-preview)),
|
|
||||||
hsl(60 var(--color-saturation) var(--hue-preview)),
|
|
||||||
hsl(120 var(--color-saturation) var(--hue-preview)),
|
|
||||||
hsl(180 var(--color-saturation) var(--hue-preview)),
|
|
||||||
hsl(240 var(--color-saturation) var(--hue-preview)),
|
|
||||||
hsl(300 var(--color-saturation) var(--hue-preview)),
|
|
||||||
hsl(360 var(--color-saturation) var(--hue-preview))
|
|
||||||
);
|
|
||||||
--range-thumb: hsl(
|
|
||||||
var(--color-hue) var(--color-saturation) var(--hue-preview)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#lightness {
|
/* ---------- dialogs ---------- */
|
||||||
--lightness-preview: calc(10% + var(--color-lightness) * 0.8);
|
|
||||||
--range-track: linear-gradient(
|
dialog {
|
||||||
to right,
|
width: min(44rem, calc(100vw - 2rem));
|
||||||
hsl(var(--color-hue) var(--color-saturation) 10%) 0%,
|
max-height: calc(100dvh - 2rem);
|
||||||
hsl(var(--color-hue) var(--color-saturation) var(--lightness-preview))
|
margin: auto;
|
||||||
var(--color-lightness),
|
padding: 0;
|
||||||
hsl(var(--color-hue) var(--color-saturation) 90%) 100%
|
border: 1px solid var(--line);
|
||||||
);
|
background: var(--bg);
|
||||||
--range-thumb: hsl(
|
color: var(--fg);
|
||||||
var(--color-hue) var(--color-saturation) var(--lightness-preview)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#weight {
|
dialog::backdrop {
|
||||||
--range-track: linear-gradient(to right in oklab, #d9d9d9, #111111);
|
background: var(--scrim);
|
||||||
--range-thumb: color-mix(
|
backdrop-filter: blur(3px);
|
||||||
in oklab,
|
|
||||||
#d9d9d9 calc((900 - var(--font-weight)) / 8 * 1%),
|
|
||||||
#111111
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.controls input[type="range"]::-webkit-slider-runnable-track {
|
.dialog-inner {
|
||||||
height: 0.6rem;
|
display: grid;
|
||||||
border-radius: 0.2rem;
|
grid-template-rows: auto minmax(0, 1fr);
|
||||||
background: var(--range-track, #888888);
|
max-height: calc(100dvh - 2.5rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
.controls input[type="range"]::-webkit-slider-thumb {
|
.dialog-head {
|
||||||
appearance: none;
|
display: flex;
|
||||||
width: var(--control-size);
|
align-items: flex-start;
|
||||||
height: var(--control-size);
|
|
||||||
margin-top: -0.2rem;
|
|
||||||
border: var(--control-border);
|
|
||||||
border-color: var(--range-thumb, var(--color-ink));
|
|
||||||
border-radius: 0.2rem;
|
|
||||||
background: var(--color-paper);
|
|
||||||
}
|
|
||||||
|
|
||||||
.controls input[type="range"]::-moz-range-track {
|
|
||||||
height: 0.6rem;
|
|
||||||
border-radius: 0.2rem;
|
|
||||||
background: var(--range-track, #888888);
|
|
||||||
}
|
|
||||||
|
|
||||||
.controls input[type="range"]::-moz-range-thumb {
|
|
||||||
width: var(--control-size);
|
|
||||||
height: var(--control-size);
|
|
||||||
border: var(--control-border);
|
|
||||||
border-color: var(--range-thumb, var(--color-ink));
|
|
||||||
border-radius: 0.2rem;
|
|
||||||
background: var(--color-paper);
|
|
||||||
}
|
|
||||||
|
|
||||||
.controls input[type="range"]:focus-visible {
|
|
||||||
outline: 0.1rem solid var(--color-ink);
|
|
||||||
outline-offset: 0.1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.frame-block-start {
|
|
||||||
inset: var(--gutter) auto auto var(--gutter);
|
|
||||||
}
|
|
||||||
|
|
||||||
.frame-inline-end {
|
|
||||||
inset: var(--gutter) var(--gutter) auto auto;
|
|
||||||
writing-mode: vertical-rl;
|
|
||||||
}
|
|
||||||
|
|
||||||
.frame-block-end {
|
|
||||||
inset: auto var(--gutter) var(--gutter) var(--gutter);
|
|
||||||
align-items: center;
|
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding-inline-end: 2.5rem;
|
gap: 2rem;
|
||||||
rotate: 180deg;
|
padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem) 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.frame-inline-start {
|
dialog h2 {
|
||||||
inset: auto auto var(--gutter) var(--gutter);
|
margin: 0;
|
||||||
writing-mode: sideways-lr;
|
font-size: clamp(1.5rem, 3vw, 2.1rem);
|
||||||
white-space: nowrap;
|
font-weight: 600;
|
||||||
|
letter-spacing: -0.035em;
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dialog-close {
|
||||||
|
position: relative;
|
||||||
|
display: grid;
|
||||||
|
flex: none;
|
||||||
|
place-items: center;
|
||||||
|
width: 2rem;
|
||||||
|
height: 2rem;
|
||||||
|
padding: 0;
|
||||||
|
border: 1px solid var(--line);
|
||||||
|
background: none;
|
||||||
|
color: var(--fg);
|
||||||
|
cursor: pointer;
|
||||||
|
transition: border-color 0.18s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dialog-close::before {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
inset: -0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dialog-close:hover {
|
||||||
|
border-color: var(--fg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.dialog-close svg {
|
||||||
|
width: 0.7rem;
|
||||||
|
height: 0.7rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dialog-body {
|
||||||
|
overflow-y: auto;
|
||||||
|
padding: 1rem clamp(1.25rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.25rem);
|
||||||
|
scrollbar-width: thin;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dialog-body p {
|
||||||
|
max-width: 62ch;
|
||||||
|
margin: 0 0 1em;
|
||||||
|
color: var(--muted);
|
||||||
|
font-size: 0.92rem;
|
||||||
|
line-height: 1.55;
|
||||||
|
text-wrap: pretty;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dialog-body p:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dialog-body strong {
|
||||||
|
color: var(--fg);
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dialog-body a {
|
||||||
|
color: var(--accent);
|
||||||
|
text-underline-offset: 0.15em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dialog-body code {
|
||||||
|
font-size: 0.92em;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (prefers-reduced-motion: no-preference) {
|
||||||
|
dialog[open] {
|
||||||
|
animation: dialog-in 0.22s var(--ease);
|
||||||
|
}
|
||||||
|
|
||||||
|
dialog[open]::backdrop {
|
||||||
|
animation: fade-in 0.22s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes dialog-in {
|
||||||
|
from {
|
||||||
|
opacity: 0;
|
||||||
|
transform: translateY(0.5rem);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes fade-in {
|
||||||
|
from {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------- responsive ---------- */
|
||||||
|
|
||||||
|
@media (max-width: 48rem) {
|
||||||
|
.top-note,
|
||||||
|
.bottom-note {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rail-top,
|
||||||
|
.rail-bottom {
|
||||||
|
grid-template-columns: 1fr auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rail-meta,
|
||||||
|
.contact {
|
||||||
|
justify-self: end;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 40rem) {
|
||||||
|
.hide-sm {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lede {
|
||||||
|
max-width: 28ch;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stage {
|
||||||
|
padding: 1.25rem 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.legal {
|
||||||
|
gap: 0.2rem 0.1rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 30rem) {
|
||||||
|
.clock-place {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 26rem) {
|
||||||
|
.brand-suffix {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (prefers-reduced-motion: reduce) {
|
||||||
|
*,
|
||||||
|
*::before,
|
||||||
|
*::after {
|
||||||
|
animation-duration: 0.01ms !important;
|
||||||
|
animation-iteration-count: 1 !important;
|
||||||
|
transition-duration: 0.01ms !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user