405 lines
9.0 KiB
HTML
405 lines
9.0 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=Special+Elite&family=Courier+Prime:ital,wght@0,400;0,700;1,400&display=swap" rel="stylesheet">
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.css">
|
|
<style>
|
|
html { background: #c8b99a; }
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
:root {
|
|
--paper: #f5f0e8;
|
|
--paper-dark: #ede5d0;
|
|
--ink: #1a1209;
|
|
--ink-faint: #3d2e0f;
|
|
--ink-dim: #7a6545;
|
|
--red-stamp: #8b1a1a;
|
|
}
|
|
|
|
body {
|
|
background: #c8b99a;
|
|
color: var(--ink);
|
|
font-family: "Courier Prime", "Courier New", monospace;
|
|
font-size: 22px;
|
|
line-height: 1.7;
|
|
min-height: 100vh;
|
|
padding: 40px 20px;
|
|
}
|
|
|
|
.page-wrapper {
|
|
max-width: 720px;
|
|
margin: 0 auto;
|
|
position: relative;
|
|
}
|
|
|
|
/* Paper texture */
|
|
.paper {
|
|
background: var(--paper);
|
|
background-image:
|
|
repeating-linear-gradient(
|
|
0deg,
|
|
transparent,
|
|
transparent 27px,
|
|
rgba(100,80,40,0.08) 27px,
|
|
rgba(100,80,40,0.08) 28px
|
|
);
|
|
padding: 60px 72px 80px;
|
|
position: relative;
|
|
box-shadow:
|
|
0 2px 4px rgba(0,0,0,0.15),
|
|
0 8px 32px rgba(0,0,0,0.2),
|
|
inset 0 0 60px rgba(100,80,40,0.05);
|
|
}
|
|
|
|
/* Paper edge curl */
|
|
.paper::after {
|
|
content: "";
|
|
position: absolute;
|
|
bottom: 0;
|
|
right: 0;
|
|
width: 40px;
|
|
height: 40px;
|
|
background: linear-gradient(135deg, var(--paper) 50%, #a89070 50%);
|
|
box-shadow: -2px -2px 4px rgba(0,0,0,0.15);
|
|
}
|
|
|
|
/* Left red margin line */
|
|
.paper::before {
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
left: 60px;
|
|
bottom: 0;
|
|
width: 1px;
|
|
background: rgba(180,40,40,0.25);
|
|
}
|
|
|
|
/* Memo header */
|
|
.memo-header {
|
|
font-family: "Special Elite", monospace;
|
|
margin-bottom: 40px;
|
|
padding-bottom: 20px;
|
|
border-bottom: 2px solid var(--ink);
|
|
}
|
|
|
|
.memo-top-line {
|
|
font-size: 33px;
|
|
font-weight: 400;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.18em;
|
|
text-align: center;
|
|
color: var(--ink);
|
|
margin-bottom: 20px;
|
|
/* Slight type misalignment */
|
|
transform: rotate(-0.3deg);
|
|
text-shadow: 1px 1px 0 rgba(0,0,0,0.15);
|
|
}
|
|
|
|
.memo-fields {
|
|
display: grid;
|
|
grid-template-columns: max-content 1fr;
|
|
gap: 6px 12px;
|
|
font-size: 21px;
|
|
}
|
|
|
|
.memo-field-label {
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
color: var(--ink-faint);
|
|
}
|
|
|
|
.memo-field-value {
|
|
border-bottom: 1px solid var(--ink-dim);
|
|
padding-bottom: 1px;
|
|
/* Simulate typewritten uneven characters */
|
|
letter-spacing: 0.02em;
|
|
}
|
|
|
|
/* Title typed on a line */
|
|
.memo-title {
|
|
font-family: "Special Elite", monospace;
|
|
font-size: 42px;
|
|
text-align: center;
|
|
color: var(--ink);
|
|
margin: 32px 0 8px;
|
|
transform: rotate(-0.2deg);
|
|
letter-spacing: 0.04em;
|
|
line-height: 1.2;
|
|
/* ink smudge */
|
|
text-shadow:
|
|
0.5px 0.5px 1px rgba(0,0,0,0.3),
|
|
-0.3px 0 0 rgba(0,0,0,0.1);
|
|
}
|
|
|
|
/* Red CONFIDENTIAL stamp (for fun) */
|
|
.stamp {
|
|
position: absolute;
|
|
top: 52px;
|
|
right: 64px;
|
|
border: 3px solid var(--red-stamp);
|
|
color: var(--red-stamp);
|
|
font-family: "Special Elite", monospace;
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.14em;
|
|
padding: 4px 8px;
|
|
transform: rotate(12deg);
|
|
opacity: 0.55;
|
|
}
|
|
|
|
/* Content */
|
|
.content-area {
|
|
margin-top: 24px;
|
|
}
|
|
|
|
.content-area h1 {
|
|
font-family: "Special Elite", monospace;
|
|
font-size: 30px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.1em;
|
|
color: var(--ink);
|
|
margin-top: 32px;
|
|
margin-bottom: 10px;
|
|
text-align: center;
|
|
transform: rotate(-0.15deg);
|
|
}
|
|
|
|
.content-area h2 {
|
|
font-family: "Special Elite", monospace;
|
|
font-size: 24px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
color: var(--ink);
|
|
margin-top: 28px;
|
|
margin-bottom: 8px;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.content-area h3 {
|
|
font-size: 22px;
|
|
font-weight: 700;
|
|
color: var(--ink-faint);
|
|
margin-top: 20px;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.content-area h4, .content-area h5, .content-area h6 {
|
|
font-size: 21px;
|
|
font-weight: 700;
|
|
color: var(--ink-dim);
|
|
margin-top: 16px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.content-area p {
|
|
margin-bottom: 16px;
|
|
text-align: justify;
|
|
hyphens: auto;
|
|
/* Subtle uneven ink */
|
|
text-shadow: 0.3px 0.3px 0 rgba(0,0,0,0.12);
|
|
}
|
|
|
|
/* Alternating slight rotation on paragraphs */
|
|
.content-area p:nth-child(odd) {
|
|
transform: rotate(0.05deg);
|
|
}
|
|
|
|
.content-area p:nth-child(even) {
|
|
transform: rotate(-0.05deg);
|
|
}
|
|
|
|
.content-area a {
|
|
color: var(--ink);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.content-area code {
|
|
font-family: "Courier Prime", monospace;
|
|
font-size: 20px;
|
|
background: rgba(0,0,0,0.06);
|
|
padding: 1px 4px;
|
|
border-bottom: 1px solid var(--ink-dim);
|
|
}
|
|
|
|
.content-area pre {
|
|
background: rgba(0,0,0,0.04);
|
|
border-left: 3px solid var(--ink-dim);
|
|
padding: 12px 16px;
|
|
margin: 16px 0;
|
|
overflow-x: auto;
|
|
font-size: 20px;
|
|
}
|
|
|
|
.content-area pre code {
|
|
background: none;
|
|
border: none;
|
|
padding: 0;
|
|
}
|
|
|
|
.content-area blockquote {
|
|
border-left: 3px solid var(--ink-dim);
|
|
padding: 8px 16px;
|
|
margin: 16px 0;
|
|
font-style: italic;
|
|
color: var(--ink-faint);
|
|
transform: rotate(-0.1deg);
|
|
}
|
|
|
|
.content-area ul {
|
|
margin: 10px 0 16px 24px;
|
|
list-style: none;
|
|
padding: 0;
|
|
}
|
|
|
|
.content-area ul li {
|
|
margin-bottom: 6px;
|
|
padding-left: 20px;
|
|
position: relative;
|
|
}
|
|
|
|
.content-area ul li::before {
|
|
content: "x";
|
|
position: absolute;
|
|
left: 0;
|
|
color: var(--ink-dim);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.content-area ol {
|
|
margin: 10px 0 16px 0;
|
|
list-style: none;
|
|
padding: 0;
|
|
counter-reset: typed-list;
|
|
}
|
|
|
|
.content-area ol li {
|
|
counter-increment: typed-list;
|
|
padding-left: 28px;
|
|
margin-bottom: 6px;
|
|
position: relative;
|
|
}
|
|
|
|
.content-area ol li::before {
|
|
content: counter(typed-list) ".";
|
|
position: absolute;
|
|
left: 0;
|
|
color: var(--ink-dim);
|
|
}
|
|
|
|
.content-area table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin: 16px 0;
|
|
font-size: 20px;
|
|
}
|
|
|
|
.content-area th {
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
padding: 6px 12px;
|
|
border: 1px solid var(--ink);
|
|
text-align: left;
|
|
font-size: 18px;
|
|
letter-spacing: 0.06em;
|
|
}
|
|
|
|
.content-area td {
|
|
padding: 6px 12px;
|
|
border: 1px solid var(--ink-dim);
|
|
}
|
|
|
|
.content-area img {
|
|
max-width: 100%;
|
|
filter: sepia(30%) contrast(90%);
|
|
margin: 12px 0;
|
|
}
|
|
|
|
.content-area hr {
|
|
border: none;
|
|
text-align: center;
|
|
color: var(--ink-dim);
|
|
margin: 24px 0;
|
|
font-size: 27px;
|
|
letter-spacing: 0.5em;
|
|
}
|
|
|
|
.content-area hr::before {
|
|
content: "- - - - - - -";
|
|
}
|
|
|
|
.footer {
|
|
margin-top: 40px;
|
|
padding-top: 16px;
|
|
border-top: 1px solid var(--ink-dim);
|
|
font-size: 18px;
|
|
color: var(--ink-dim);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
.paper {
|
|
padding: 40px 28px 60px;
|
|
}
|
|
.paper::before {
|
|
left: 20px;
|
|
}
|
|
}
|
|
</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">← back</a>
|
|
|
|
<div class="page-wrapper">
|
|
<div class="paper">
|
|
|
|
<div class="stamp">DRAFT</div>
|
|
|
|
<div class="memo-header">
|
|
<div class="memo-top-line">MEMORANDUM</div>
|
|
<div class="memo-fields">
|
|
<span class="memo-field-label">TO:</span>
|
|
<span class="memo-field-value">Reader</span>
|
|
<span class="memo-field-label">FROM:</span>
|
|
<span class="memo-field-value">{{ config.site.author }}</span>
|
|
<span class="memo-field-label">DATE:</span>
|
|
<span class="memo-field-value">{{ published_date }}</span>
|
|
<span class="memo-field-label">RE:</span>
|
|
<span class="memo-field-value">{{ title }}</span>
|
|
<span class="memo-field-label">READ:</span>
|
|
<span class="memo-field-value">{{ reading_time }}</span>
|
|
</div>
|
|
</div>
|
|
|
|
{% if taxonomy.tags %}
|
|
<div style="font-size: 18px; color: var(--ink-dim); margin-bottom: 8px; text-align: center; letter-spacing: 0.08em; text-transform: uppercase;">
|
|
[ {% for tag in taxonomy.tags %}{{ tag }}{% if not loop.last %} / {% endif %}{% endfor %} ]
|
|
</div>
|
|
{% endif %}
|
|
|
|
<div class="content-area">
|
|
{{ content | safe }}
|
|
</div>
|
|
|
|
<div class="footer">
|
|
<span>{{ config.site.name }}</span>
|
|
{% if updated_date %}<span>Updated: {{ updated_date }}</span>{% endif %}
|
|
<span>- 1 -</span>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|