Files
felixfoertsch.de/templates/meditation.html

328 lines
6.8 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
<title>{{ title }} — {{ config.site.name }}</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.css">
<style>
html { background: #faf7f2; }
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
:root {
--cream: #faf7f2;
--warm-white: #f5f0e8;
--text: #2c2825;
--text-light: #7a6e65;
--text-lighter: #b0a499;
--accent: #8b7355;
--circle: #c4b89a;
}
html {
font-size: 27px;
}
body {
background: var(--cream);
color: var(--text);
font-family: "Cormorant Garamond", Georgia, serif;
font-weight: 400;
line-height: 1.85;
min-height: 100vh;
}
.page {
max-width: 580px;
margin: 0 auto;
padding: 80px 32px 120px;
}
/* Circle motif */
.circle-motif {
display: flex;
justify-content: center;
margin-bottom: 64px;
}
.circle {
width: 48px;
height: 48px;
border-radius: 50%;
border: 1px solid var(--circle);
position: relative;
display: flex;
align-items: center;
justify-content: center;
}
.circle::before {
content: "";
width: 36px;
height: 36px;
border-radius: 50%;
border: 1px solid var(--circle);
opacity: 0.6;
}
/* Title area */
.post-header {
text-align: center;
margin-bottom: 64px;
}
.post-title {
font-size: 2.97rem;
font-weight: 300;
letter-spacing: 0.02em;
line-height: 1.25;
color: var(--text);
margin-bottom: 0;
}
/* Content */
.post-content {
font-size: 1.42rem;
line-height: 1.9;
}
.post-content h1 {
font-size: 2.29rem;
font-weight: 400;
letter-spacing: 0.01em;
margin-top: 64px;
margin-bottom: 24px;
color: var(--text);
text-align: center;
}
.post-content h2 {
font-size: 1.82rem;
font-weight: 400;
font-style: italic;
margin-top: 52px;
margin-bottom: 20px;
color: var(--accent);
text-align: center;
}
.post-content h3 {
font-size: 1.49rem;
font-weight: 500;
margin-top: 40px;
margin-bottom: 16px;
color: var(--text);
letter-spacing: 0.05em;
text-transform: uppercase;
font-size: 1.15rem;
}
.post-content p {
margin-bottom: 28px;
}
.post-content p:first-child::first-letter {
font-size: 4.73rem;
font-weight: 300;
line-height: 0.8;
float: left;
margin-right: 6px;
margin-top: 6px;
color: var(--accent);
}
.post-content a {
color: var(--accent);
text-decoration: none;
border-bottom: 1px solid var(--circle);
}
.post-content a:hover {
border-bottom-color: var(--accent);
}
.post-content em {
font-style: italic;
}
.post-content strong {
font-weight: 600;
color: var(--text);
}
.post-content code {
font-family: "Courier New", monospace;
font-size: 1.15em;
background: var(--warm-white);
padding: 1px 6px;
border-radius: 2px;
color: var(--accent);
}
.post-content pre {
background: var(--warm-white);
padding: 24px 28px;
margin: 32px 0;
overflow-x: auto;
font-family: "Courier New", monospace;
font-size: 1.11em;
line-height: 1.7;
border-left: 2px solid var(--circle);
}
.post-content pre code {
background: none;
padding: 0;
color: var(--text);
}
.post-content blockquote {
text-align: center;
padding: 32px 0;
margin: 40px 0;
border-top: 1px solid var(--circle);
border-bottom: 1px solid var(--circle);
font-size: 1.62rem;
font-style: italic;
color: var(--text-light);
font-weight: 300;
}
.post-content ul,
.post-content ol {
margin: 20px 0 28px 0;
padding-left: 0;
list-style: none;
}
.post-content ul li {
padding-left: 20px;
position: relative;
margin-bottom: 10px;
}
.post-content ul li::before {
content: "·";
position: absolute;
left: 6px;
color: var(--circle);
font-size: 1.62em;
}
.post-content ol {
counter-reset: item;
}
.post-content ol li {
counter-increment: item;
padding-left: 28px;
position: relative;
margin-bottom: 10px;
}
.post-content ol li::before {
content: counter(item) ".";
position: absolute;
left: 0;
color: var(--text-light);
font-variant-numeric: oldstyle-nums;
}
.post-content table {
width: 100%;
border-collapse: collapse;
margin: 32px 0;
font-size: 1.28rem;
}
.post-content th {
border-bottom: 1px solid var(--circle);
padding: 8px 12px;
text-align: left;
font-weight: 500;
letter-spacing: 0.05em;
color: var(--text-light);
font-size: 1.08rem;
text-transform: uppercase;
}
.post-content td {
border-bottom: 1px solid var(--warm-white);
padding: 10px 12px;
}
.post-content img {
max-width: 100%;
display: block;
margin: 40px auto;
}
.post-content hr {
border: none;
text-align: center;
margin: 48px 0;
color: var(--text-lighter);
font-size: 1.62rem;
letter-spacing: 0.5em;
}
.post-content hr::after {
content: "· · ·";
}
/* Footer */
.post-footer {
margin-top: 80px;
padding-top: 32px;
border-top: 1px solid var(--warm-white);
text-align: center;
font-size: 1.08rem;
color: var(--text-lighter);
letter-spacing: 0.08em;
line-height: 2;
}
.post-footer .site-name {
color: var(--text-light);
}
</style>
</head>
<body>
<a href="/{{ preview_query }}" style="position:fixed;top:calc(1rem + env(safe-area-inset-top, 0px));left:calc(1rem + env(safe-area-inset-left, 0px));z-index:9999;font-family:system-ui,-apple-system,sans-serif;font-size: 1.08rem;padding:0.5rem 0.9rem;background:rgba(255,255,255,0.95);color:#000;text-decoration:none;border-radius:999px;box-shadow:0 2px 8px rgba(0,0,0,0.15);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border:1px solid rgba(0,0,0,0.1);transition:transform 0.2s">&larr; back</a>
<div class="page">
<div class="circle-motif">
<div class="circle"></div>
</div>
<header class="post-header">
<h1 class="post-title">{{ title }}</h1>
</header>
<main class="post-content">
{{ content | safe }}
</main>
<footer class="post-footer">
<div class="site-name">{{ config.site.name }}</div>
<div>{{ config.site.author }}</div>
<div>{{ published_date }}{% if updated_date %} · revised {{ updated_date }}{% endif %}</div>
<div>{{ reading_time }}</div>
{% if taxonomy.tags %}
<div>
{% for tag in taxonomy.tags %}{{ tag }}{% if not loop.last %} · {% endif %}{% endfor %}
</div>
{% endif %}
</footer>
</div>
</body>
</html>