Files
personal-site/source/42.html
T
2026-08-28 01:36:11 +02:00

153 lines
3.4 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>42</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;1,400&family=DM+Mono:wght@300&display=swap" rel="stylesheet">
<style>
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
--ink: #1a1a18;
--ink-light: #9a9890;
--paper: #fafaf7;
--accent: #1a1a18;
}
html, body {
height: 100%;
background: var(--paper);
color: var(--ink);
}
body {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
padding: 2rem;
}
.container {
max-width: 480px;
width: 100%;
text-align: center;
}
.number {
font-family: 'DM Mono', monospace;
font-weight: 300;
font-size: clamp(5rem, 20vw, 9rem);
letter-spacing: -0.04em;
color: var(--ink);
line-height: 1;
opacity: 0;
transform: translateY(12px);
animation: rise 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
user-select: none;
}
.divider {
width: 1px;
height: 48px;
background: var(--ink-light);
margin: 2.5rem auto;
opacity: 0;
transform: scaleY(0);
transform-origin: top;
animation: grow 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}
.quote {
font-family: 'EB Garamond', Georgia, serif;
font-size: clamp(1.15rem, 3.5vw, 1.4rem);
font-style: italic;
line-height: 1.6;
color: var(--ink);
letter-spacing: 0.01em;
opacity: 0;
animation: rise 1s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}
.attribution {
font-family: 'DM Mono', monospace;
font-weight: 300;
font-size: 0.7rem;
letter-spacing: 0.12em;
color: var(--ink-light);
margin-top: 1.25rem;
text-transform: uppercase;
opacity: 0;
animation: rise 1s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards;
}
.secret-hint {
margin-top: 4rem;
opacity: 0;
animation: rise 1s cubic-bezier(0.16, 1, 0.3, 1) 2s forwards;
}
.secret-hint p {
font-family: 'DM Mono', monospace;
font-weight: 300;
font-size: 0.68rem;
letter-spacing: 0.08em;
color: var(--ink-light);
cursor: default;
transition: color 0.4s;
user-select: none;
}
.secret-hint p:hover {
color: var(--ink);
}
.secret-hint a {
font-family: 'DM Mono', monospace;
font-weight: 300;
font-size: 0.68rem;
letter-spacing: 0.08em;
color: transparent;
text-decoration: none;
transition: color 0.6s, letter-spacing 0.4s;
cursor: pointer;
}
.secret-hint:hover a {
color: var(--ink-light);
letter-spacing: 0.14em;
}
.secret-hint a:hover {
color: var(--ink) !important;
text-decoration: underline;
text-underline-offset: 3px;
}
@keyframes rise {
to { opacity: 1; transform: translateY(0) scaleY(1); }
}
@keyframes grow {
to { opacity: 1; transform: scaleY(1); }
}
</style>
</head>
<body>
<div class="container">
<div class="number">42</div>
<div class="divider"></div>
<p class="quote">So long, and thanks for all the fish.</p>
<p class="attribution">Douglas Adams &nbsp;·&nbsp; The Hitchhiker's Guide to the Galaxy</p>
<div class="secret-hint">
<p>shhh. i have a secret to share &mdash; <a href="/secret">follow me</a></p>
</div>
</div>
</body>
</html>