summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimanshu Sardana <himanshusardana2005@gmail.com>2026-03-25 00:34:32 +0000
committerHimanshu Sardana <himanshusardana2005@gmail.com>2026-03-25 00:34:32 +0000
commit6eb342c0d30eebe50e127a54038b2df6dc64b4e5 (patch)
treed26a2e14213c3cf5c6d312c633eac2cd4dd430d6
parentc9828dfeb6379301691b0990dc7b426a145aae61 (diff)
feat: add new theme structure
-rw-r--r--themes/modern-dark.css523
-rw-r--r--themes/modern-dark/home.html450
-rw-r--r--themes/modern-dark/layout.html523
-rw-r--r--themes/modern-light/home.html362
-rw-r--r--themes/modern-light/layout.html242
-rw-r--r--themes/modern-light/style.css (renamed from themes/modern-light.css)0
6 files changed, 1577 insertions, 523 deletions
diff --git a/themes/modern-dark.css b/themes/modern-dark.css
deleted file mode 100644
index 645652d..0000000
--- a/themes/modern-dark.css
+++ /dev/null
@@ -1,523 +0,0 @@
-@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Mono:wght@300;400;500&family=Syne:wght@400;600;700;800&display=swap");
-
-/* ─── Design Tokens ─────────────────────────────────────── */
-:root {
- --bg: #0a0a0b;
- --surface: #111113;
- --surface-2: #18181c;
- --border: #232328;
- --border-soft: rgba(255, 255, 255, 0.06);
- --text: #e8e8e4;
- --text-dim: #7a7a80;
- --text-muted: #3e3e46;
- --accent: #c8f23a; /* electric lime – sharp single accent */
- --accent-dim: rgba(200, 242, 58, 0.12);
- --accent-glow: rgba(200, 242, 58, 0.08);
- --serif: "Instrument Serif", Georgia, serif;
- --sans: "Syne", system-ui, sans-serif;
- --mono: "DM Mono", ui-monospace, monospace;
- --radius: 4px;
- --max-w: 720px;
- --transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
-}
-
-/* ─── Reset & Base ──────────────────────────────────────── */
-*,
-*::before,
-*::after {
- box-sizing: border-box;
-}
-
-html {
- scroll-behavior: smooth;
-}
-
-body {
- margin: 0;
- padding: 4rem 2rem 6rem;
- background-color: var(--bg);
- background-image:
- radial-gradient(
- ellipse 80% 50% at 50% -20%,
- rgba(200, 242, 58, 0.05) 0%,
- transparent 60%
- ),
- url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/g%3E%3C/svg%3E");
- color: var(--text);
- font-family: var(--serif);
- line-height: 1.8;
- font-size: 19px;
- -webkit-font-smoothing: antialiased;
- text-rendering: optimizeLegibility;
-}
-
-body > * {
- max-width: var(--max-w);
- margin-left: auto;
- margin-right: auto;
-}
-
-/* ─── Headings ──────────────────────────────────────────── */
-h1,
-h2,
-h3,
-h4 {
- font-family: var(--sans);
- font-weight: 700;
- line-height: 1.15;
- letter-spacing: -0.02em;
- scroll-margin-top: 1.5rem;
- color: #f0f0ec;
-}
-
-h1 {
- font-size: clamp(2.2rem, 5vw, 3rem);
- font-weight: 800;
- margin-bottom: 1.2rem;
- /* Subtle accent underline on the first line */
- background: linear-gradient(135deg, #f0f0ec 60%, var(--accent) 100%);
- -webkit-background-clip: text;
- -webkit-text-fill-color: transparent;
- background-clip: text;
-}
-
-h2 {
- font-size: 1.5rem;
- margin-top: 3.5rem;
- padding-top: 2rem;
- border-top: 1px solid var(--border);
- color: var(--text);
-}
-
-h3 {
- font-size: 1.15rem;
- font-weight: 600;
- margin-top: 2.2rem;
- color: var(--text);
-}
-
-/* ─── Paragraphs ────────────────────────────────────────── */
-p {
- margin: 1.4rem 0;
- color: #c8c8c4;
- font-size: 1.2rem;
-}
-
-/* Drop cap for first paragraph after h1 */
-h1 + p::first-letter {
- font-family: var(--serif);
- font-size: 3.6rem;
- font-style: italic;
- float: left;
- line-height: 0.82;
- margin: 0.08em 0.1em 0 0;
- color: var(--accent);
-}
-
-/* ─── Article Meta / Byline ─────────────────────────────── */
-.meta,
-time,
-.byline {
- display: block;
- font-family: var(--mono);
- font-size: 0.75rem;
- letter-spacing: 0.08em;
- text-transform: uppercase;
- color: var(--text-dim);
- margin-bottom: 2.5rem;
-}
-
-/* ─── Links ─────────────────────────────────────────────── */
-a {
- color: var(--text);
- text-decoration: none;
- border-bottom: 1px solid var(--border);
- transition:
- color var(--transition),
- border-color var(--transition);
-}
-
-a:hover {
- color: var(--accent);
- border-bottom-color: var(--accent);
-}
-
-/* ─── Lists ─────────────────────────────────────────────── */
-ul,
-ol {
- margin: 1.4rem 0 1.4rem 0;
- padding-left: 0;
- list-style: none;
-}
-
-ul li,
-ol li {
- position: relative;
- padding-left: 1.5rem;
- margin: 0.55rem 0;
- color: #c8c8c4;
-}
-
-ul li::before {
- content: "–";
- position: absolute;
- left: 0;
- color: var(--accent);
- font-family: var(--mono);
-}
-
-ol {
- counter-reset: ol-counter;
-}
-
-ol li {
- counter-increment: ol-counter;
-}
-
-ol li::before {
- content: counter(ol-counter, decimal-leading-zero);
- position: absolute;
- left: 0;
- font-family: var(--mono);
- font-size: 0.72rem;
- color: var(--text-dim);
- top: 0.22em;
-}
-
-/* ─── Horizontal Rule ───────────────────────────────────── */
-hr {
- border: none;
- margin: 3.5rem auto;
- height: 1px;
- background: linear-gradient(
- 90deg,
- transparent,
- var(--border) 20%,
- var(--border) 80%,
- transparent
- );
- position: relative;
-}
-
-hr::after {
- content: "✦";
- position: absolute;
- left: 50%;
- top: 50%;
- transform: translate(-50%, -50%);
- font-size: 0.65rem;
- color: var(--text-muted);
- background: var(--bg);
- padding: 0 0.5rem;
-}
-
-/* ─── Blockquote ────────────────────────────────────────── */
-blockquote {
- margin: 2.5rem 0;
- padding: 1.5rem 1.8rem;
- background: var(--surface);
- border-left: 2px solid var(--accent);
- border-radius: 0 var(--radius) var(--radius) 0;
- position: relative;
-}
-
-blockquote p {
- margin: 0;
- font-style: italic;
- font-size: 1.1rem;
- color: #d8d8d4;
-}
-
-blockquote cite {
- display: block;
- margin-top: 0.8rem;
- font-family: var(--mono);
- font-size: 0.72rem;
- letter-spacing: 0.06em;
- color: var(--text-dim);
- font-style: normal;
-}
-
-/* ─── Tables ────────────────────────────────────────────── */
-table {
- width: 100%;
- border-collapse: collapse;
- margin: 2rem 0;
- font-size: 0.9rem;
- font-family: var(--mono);
- background: var(--surface);
- border-radius: var(--radius);
- overflow: hidden;
- border: 1px solid var(--border);
-}
-
-thead {
- background: var(--surface-2);
-}
-
-th {
- text-align: left;
- padding: 0.75rem 1rem;
- font-size: 0.7rem;
- letter-spacing: 0.1em;
- text-transform: uppercase;
- color: var(--text-dim);
- border-bottom: 1px solid var(--border);
- font-weight: 500;
-}
-
-td {
- padding: 0.65rem 1rem;
- border-bottom: 1px solid var(--border-soft);
- color: #c0c0bc;
-}
-
-tr:last-child td {
- border-bottom: none;
-}
-
-tr:hover td {
- background: var(--border-soft);
-}
-
-/* ─── Inline Code ───────────────────────────────────────── */
-code {
- font-family: var(--mono);
- font-size: 0.83rem;
- background: var(--surface-2);
- color: var(--accent);
- padding: 0.18rem 0.4rem;
- border-radius: var(--radius);
- border: 1px solid var(--border);
- word-break: break-word;
-}
-
-/* ─── Code Blocks ───────────────────────────────────────── */
-pre {
- background: var(--surface);
- border: 1px solid var(--border);
- border-left: 2px solid var(--accent);
- padding: 1.4rem 1.6rem;
- overflow-x: auto;
- border-radius: var(--radius);
- margin: 2rem 0;
- position: relative;
-}
-
-pre::before {
- content: attr(data-lang);
- position: absolute;
- top: 0.6rem;
- right: 0.8rem;
- font-family: var(--mono);
- font-size: 0.65rem;
- letter-spacing: 0.1em;
- text-transform: uppercase;
- color: var(--text-muted);
-}
-
-pre code {
- background: none;
- border: none;
- padding: 0;
- color: #d0d0cc;
- font-size: 0.87rem;
- line-height: 1.65;
-}
-
-/* ─── Images ────────────────────────────────────────────── */
-img {
- max-width: 100%;
- height: auto;
- display: block;
- border-radius: var(--radius);
- border: 1px solid var(--border);
- margin: 2rem auto;
-}
-
-figure {
- margin: 2.5rem 0;
-}
-
-figcaption {
- font-family: var(--mono);
- font-size: 0.72rem;
- color: var(--text-dim);
- text-align: center;
- margin-top: 0.75rem;
- letter-spacing: 0.04em;
-}
-
-/* ─── Footnotes / Aside ─────────────────────────────────── */
-aside,
-.note,
-.callout {
- background: var(--accent-dim);
- border: 1px solid rgba(200, 242, 58, 0.2);
- border-radius: var(--radius);
- padding: 1rem 1.2rem;
- margin: 2rem 0;
- font-size: 0.88rem;
- color: #c0c0bc;
-}
-
-aside strong,
-.callout strong {
- color: var(--accent);
- font-family: var(--mono);
- font-size: 0.7rem;
- letter-spacing: 0.1em;
- text-transform: uppercase;
- display: block;
- margin-left: 3px;
- margin-bottom: 0.4rem;
-}
-
-/* ─── Navigation ───────────────────────────────────────── */
-nav {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 1.2rem 0 3rem;
- border-bottom: 1px solid var(--border);
- margin-bottom: 3.5rem;
-}
-
-nav .logo {
- font-family: var(--sans);
- font-weight: 800;
- font-size: 1.1rem;
- letter-spacing: -0.02em;
- color: var(--text);
- border-bottom: none;
-}
-
-nav .logo span {
- color: var(--accent);
-}
-
-nav ul {
- display: flex;
- gap: 2rem;
- margin: 0;
- padding: 0;
- list-style: none;
-}
-
-nav ul li {
- padding: 0;
- margin: 0;
-}
-
-nav ul li::before {
- display: none;
-}
-
-nav a {
- font-family: var(--mono);
- font-size: 0.72rem;
- letter-spacing: 0.08em;
- text-transform: uppercase;
- color: var(--text-dim);
- border-bottom: none;
- transition: color var(--transition);
-}
-
-nav a:hover {
- color: var(--accent);
- border-bottom: none;
-}
-
-/* ─── Footer ───────────────────────────────────────────── */
-footer {
- margin-top: 5rem;
- padding-top: 2rem;
- border-top: 1px solid var(--border);
- font-family: var(--mono);
- font-size: 0.72rem;
- letter-spacing: 0.05em;
- color: var(--text-muted);
- display: flex;
- justify-content: space-between;
- align-items: center;
- flex-wrap: wrap;
- gap: 1rem;
-}
-
-/* ─── Reading Progress Bar ─────────────────────────────── */
-.progress-bar {
- position: fixed;
- top: 0;
- left: 0;
- height: 2px;
- background: var(--accent);
- z-index: 999;
- transform-origin: left;
- width: 0%;
- box-shadow: 0 0 8px var(--accent-glow);
- transition: width 0.1s linear;
-}
-
-/* ─── Selection ────────────────────────────────────────── */
-::selection {
- background: rgba(200, 242, 58, 0.2);
- color: var(--text);
-}
-
-/* ─── Scrollbar ────────────────────────────────────────── */
-::-webkit-scrollbar {
- width: 6px;
- height: 6px;
-}
-
-::-webkit-scrollbar-track {
- background: var(--bg);
-}
-::-webkit-scrollbar-thumb {
- background: var(--border);
- border-radius: 3px;
-}
-::-webkit-scrollbar-thumb:hover {
- background: var(--text-muted);
-}
-
-/* ─── Abbr ─────────────────────────────────────────────── */
-abbr[title] {
- border-bottom: 1px dotted var(--text-dim);
- cursor: help;
- text-decoration: none;
-}
-
-/* ─── Responsive ───────────────────────────────────────── */
-@media (max-width: 700px) {
- body {
- padding: 2rem 1.2rem 4rem;
- font-size: 17px;
- }
-
- h1 {
- font-size: 2rem;
- }
- h2 {
- font-size: 1.35rem;
- }
-
- nav ul {
- gap: 1.2rem;
- }
- nav {
- flex-wrap: wrap;
- gap: 1rem;
- }
- footer {
- flex-direction: column;
- text-align: center;
- }
-}
-
-/* ─── Focus Accessibility ──────────────────────────────── */
-:focus-visible {
- outline: 2px solid var(--accent);
- outline-offset: 3px;
- border-radius: var(--radius);
-}
diff --git a/themes/modern-dark/home.html b/themes/modern-dark/home.html
new file mode 100644
index 0000000..2ff565a
--- /dev/null
+++ b/themes/modern-dark/home.html
@@ -0,0 +1,450 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="UTF-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <title>{{ .SiteTitle }}</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:ital,wght@0,300;0,400;1,300;1,400&family=DM+Mono:wght@300;400&display=swap"
+ rel="stylesheet"
+ />
+ <style>
+ :root {
+ --bg: #0c0c0b;
+ --surface: #111110;
+ --border: #1e1e1c;
+ --border-2: #2a2a27;
+ --text: #e8e6e1;
+ --text-2: #8a8880;
+ --text-3: #3e3d3a;
+ --gold: #c9a96e;
+ --gold-dim: #7a6441;
+ --serif: "Cormorant", Georgia, serif;
+ --mono: "DM Mono", ui-monospace, monospace;
+ --ease: cubic-bezier(0.16, 1, 0.3, 1);
+ }
+
+ *,
+ *::before,
+ *::after {
+ box-sizing: border-box;
+ }
+ html {
+ scroll-behavior: smooth;
+ }
+
+ body {
+ margin: 0;
+ background: var(--bg);
+ color: var(--text);
+ font-family: var(--mono);
+ -webkit-font-smoothing: antialiased;
+ min-height: 100vh;
+ }
+
+ /* subtle grain overlay */
+ body::before {
+ content: "";
+ position: fixed;
+ inset: 0;
+ background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
+ pointer-events: none;
+ z-index: 9999;
+ opacity: 0.6;
+ }
+
+ /* ── Layout ── */
+ .page {
+ max-width: 600px;
+ margin: 0 auto;
+ padding: 0 2rem;
+ }
+
+ /* ── Nav ── */
+ nav {
+ display: flex;
+ justify-content: flex-end;
+ align-items: center;
+ padding: 2.4rem 0 0;
+ gap: 2rem;
+ }
+
+ nav a {
+ font-family: var(--mono);
+ font-size: 0.6rem;
+ letter-spacing: 0.14em;
+ text-transform: uppercase;
+ color: var(--text-3);
+ text-decoration: none;
+ transition: color 180ms ease;
+ position: relative;
+ }
+
+ nav a::after {
+ content: "";
+ position: absolute;
+ bottom: -2px;
+ left: 0;
+ width: 0;
+ height: 1px;
+ background: var(--gold);
+ transition: width 200ms var(--ease);
+ }
+
+ nav a:hover {
+ color: var(--gold);
+ }
+
+ nav a:hover::after {
+ width: 100%;
+ }
+
+ /* ── Hero ── */
+ .hero {
+ padding: 5.5rem 0 4.5rem;
+ border-bottom: 1px solid var(--border);
+ position: relative;
+ }
+
+ /* decorative vertical line */
+ .hero::before {
+ content: "";
+ position: absolute;
+ left: -2rem;
+ top: 5.5rem;
+ bottom: 4.5rem;
+ width: 1px;
+ background: linear-gradient(
+ to bottom,
+ transparent,
+ var(--gold-dim),
+ transparent
+ );
+ opacity: 0.5;
+ }
+
+ .hero-name {
+ font-family: var(--serif);
+ font-size: clamp(3rem, 9vw, 5rem);
+ font-weight: 300;
+ line-height: 1;
+ letter-spacing: 0.01em;
+ margin: 0 0 1.4rem;
+ color: var(--text);
+ animation: fadeUp 0.9s var(--ease) both;
+ }
+
+ .hero-name em {
+ font-style: italic;
+ color: var(--gold);
+ font-weight: 300;
+ }
+
+ .hero-role {
+ font-family: var(--mono);
+ font-size: 0.6rem;
+ letter-spacing: 0.18em;
+ text-transform: uppercase;
+ color: var(--text-3);
+ margin: 0 0 1.8rem;
+ animation: fadeUp 0.9s 0.1s var(--ease) both;
+ display: flex;
+ align-items: center;
+ gap: 0.8rem;
+ }
+
+ .hero-role::before {
+ content: "";
+ display: inline-block;
+ width: 20px;
+ height: 1px;
+ background: var(--gold-dim);
+ }
+
+ .hero-bio {
+ font-size: 0.8rem;
+ line-height: 1.9;
+ color: var(--text-2);
+ margin: 0;
+ max-width: 380px;
+ animation: fadeUp 0.9s 0.18s var(--ease) both;
+ font-weight: 300;
+ letter-spacing: 0.02em;
+ }
+
+ /* ── Writing section ── */
+ .writing-header {
+ display: flex;
+ align-items: center;
+ gap: 1.2rem;
+ padding: 3rem 0 1.8rem;
+ }
+
+ .writing-label {
+ font-family: var(--mono);
+ font-size: 0.58rem;
+ letter-spacing: 0.18em;
+ text-transform: uppercase;
+ color: var(--gold-dim);
+ white-space: nowrap;
+ }
+
+ .writing-rule {
+ flex: 1;
+ height: 1px;
+ background: var(--border);
+ }
+
+ /* ── Post list ── */
+ .post-list {
+ margin: 0;
+ padding: 0;
+ list-style: none;
+ }
+
+ .post-list li {
+ padding: 0;
+ margin: 0;
+ }
+
+ .post-item {
+ display: flex;
+ align-items: baseline;
+ gap: 1.8rem;
+ padding: 1.2rem 0;
+ text-decoration: none;
+ color: inherit;
+ border-bottom: 1px solid var(--border);
+ transition: border-color 200ms ease;
+ animation: fadeUp 0.6s var(--ease) both;
+ position: relative;
+ }
+
+ .post-item::before {
+ content: "";
+ position: absolute;
+ left: -2rem;
+ top: 0;
+ bottom: 0;
+ width: 1px;
+ background: var(--gold);
+ transform: scaleY(0);
+ transition: transform 240ms var(--ease);
+ transform-origin: top;
+ }
+
+ .post-item:hover::before {
+ transform: scaleY(1);
+ }
+
+ .post-item:hover .post-title {
+ color: var(--gold);
+ }
+
+ .post-item:hover .post-date {
+ color: var(--text-2);
+ }
+
+ .post-date {
+ font-family: var(--mono);
+ font-size: 0.57rem;
+ letter-spacing: 0.08em;
+ color: var(--text-3);
+ white-space: nowrap;
+ flex-shrink: 0;
+ padding-top: 0.15em;
+ min-width: 5.5rem;
+ transition: color 200ms ease;
+ }
+
+ .post-right {
+ flex: 1;
+ min-width: 0;
+ }
+
+ .post-title {
+ font-family: var(--serif);
+ font-size: 1.1rem;
+ font-weight: 300;
+ color: var(--text);
+ line-height: 1.4;
+ display: block;
+ letter-spacing: 0.01em;
+ transition: color 200ms ease;
+ }
+
+ .post-tags {
+ display: flex;
+ gap: 0.3rem;
+ margin-top: 0.45rem;
+ flex-wrap: wrap;
+ }
+
+ .pill {
+ display: inline-block;
+ font-family: var(--mono);
+ font-size: 0.54rem;
+ letter-spacing: 0.1em;
+ text-transform: uppercase;
+ padding: 0.18rem 0.5rem;
+ background: transparent;
+ border: 1px solid var(--border-2);
+ border-radius: 2px;
+ color: var(--text-3);
+ }
+
+ /* ── Empty state ── */
+ .empty {
+ font-family: var(--mono);
+ font-size: 0.65rem;
+ color: var(--text-3);
+ letter-spacing: 0.1em;
+ padding: 3rem 0;
+ }
+
+ /* ── Footer ── */
+ footer {
+ padding: 2.5rem 0 3.5rem;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ flex-wrap: wrap;
+ gap: 0.8rem;
+ font-family: var(--mono);
+ font-size: 0.58rem;
+ letter-spacing: 0.08em;
+ color: var(--text-3);
+ }
+
+ footer a {
+ color: inherit;
+ text-decoration: none;
+ border-bottom: 1px solid var(--border-2);
+ padding-bottom: 1px;
+ transition:
+ color 150ms ease,
+ border-color 150ms ease;
+ }
+
+ footer a:hover {
+ color: var(--gold);
+ border-color: var(--gold-dim);
+ }
+
+ /* ── Animations ── */
+ @keyframes fadeUp {
+ from {
+ opacity: 0;
+ transform: translateY(12px);
+ }
+ to {
+ opacity: 1;
+ transform: translateY(0);
+ }
+ }
+
+ .post-item:nth-child(1) {
+ animation-delay: 0.22s;
+ }
+ .post-item:nth-child(2) {
+ animation-delay: 0.3s;
+ }
+ .post-item:nth-child(3) {
+ animation-delay: 0.38s;
+ }
+ .post-item:nth-child(4) {
+ animation-delay: 0.46s;
+ }
+ .post-item:nth-child(5) {
+ animation-delay: 0.54s;
+ }
+ .post-item:nth-child(6) {
+ animation-delay: 0.62s;
+ }
+
+ /* ── Mobile ── */
+ @media (max-width: 500px) {
+ .page {
+ padding: 0 1.4rem;
+ }
+ .hero {
+ padding: 3.5rem 0 3rem;
+ }
+ .hero::before {
+ left: -1.4rem;
+ }
+ .post-item {
+ flex-direction: column;
+ gap: 0.25rem;
+ }
+ .post-item::before {
+ left: -1.4rem;
+ }
+ .post-date {
+ min-width: unset;
+ }
+ footer {
+ flex-direction: column;
+ }
+ }
+
+ :focus-visible {
+ outline: 1px solid var(--gold);
+ outline-offset: 3px;
+ border-radius: 1px;
+ }
+ </style>
+ </head>
+ <body>
+ <div class="page">
+ <nav>
+ <a href="/about">About</a>
+ <a href="/feed.xml">RSS</a>
+ </nav>
+
+ <header class="hero">
+ <h1 class="hero-name">{{ .AuthorName }}</h1>
+ <p class="hero-role">{{ .AuthorRole }}</p>
+ <p class="hero-bio">{{ .AuthorBio }}</p>
+ </header>
+
+ <main>
+ <div class="writing-header">
+ <span class="writing-label">Writing</span>
+ <span class="writing-rule"></span>
+ </div>
+
+ {{ if .Posts }}
+ <ul class="post-list">
+ {{ range .Posts }}
+ <li>
+ <a class="post-item" href="/{{ .Slug }}/">
+ <span class="post-right">
+ <span class="post-title">{{ .Title }}</span>
+ {{ if .Tags }}
+ <span class="post-tags">
+ {{ range .Tags }}
+ <span class="pill">{{ . }}</span>
+ {{ end }}
+ </span>
+ {{ end }}
+ </span>
+ <span class="post-date">{{ .Date }}</span>
+ </a>
+ </li>
+ {{ end }}
+ </ul>
+ {{ else }}
+ <p class="empty">No posts yet.</p>
+ {{ end }}
+ </main>
+
+ <footer>
+ <span>© {{ .Year }} {{ .AuthorName }}</span>
+ <span>Built with <a href="#">kite</a></span>
+ </footer>
+ </div>
+ </body>
+</html>
diff --git a/themes/modern-dark/layout.html b/themes/modern-dark/layout.html
new file mode 100644
index 0000000..c3f351c
--- /dev/null
+++ b/themes/modern-dark/layout.html
@@ -0,0 +1,523 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="UTF-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <meta name="description" content="{{ .Title }}" />
+ <title>{{ .Title }}</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:ital,wght@0,300;0,400;1,300;1,400&family=DM+Mono:wght@300;400&display=swap"
+ rel="stylesheet"
+ />
+ <link
+ href="https://cdn.jsdelivr.net/npm/prismjs/themes/prism-okaidia.css"
+ rel="stylesheet"
+ />
+ <script src="https://cdn.jsdelivr.net/npm/prismjs/prism.js"></script>
+ <script src="https://cdn.jsdelivr.net/npm/prismjs/plugins/autoloader/prism-autoloader.min.js"></script>
+ <style>
+ :root {
+ --bg: #0c0c0b;
+ --surface: #111110;
+ --border: #1e1e1c;
+ --border-2: #2a2a27;
+ --text: #e8e6e1;
+ --text-2: #8a8880;
+ --text-3: #3e3d3a;
+ --gold: #c9a96e;
+ --gold-dim: #7a6441;
+ --serif: "Cormorant", Georgia, serif;
+ --mono: "DM Mono", ui-monospace, monospace;
+ --ease: cubic-bezier(0.16, 1, 0.3, 1);
+ }
+
+ *,
+ *::before,
+ *::after {
+ box-sizing: border-box;
+ }
+ html {
+ scroll-behavior: smooth;
+ }
+
+ body {
+ margin: 0;
+ background: var(--bg);
+ color: var(--text);
+ font-family: var(--mono);
+ -webkit-font-smoothing: antialiased;
+ min-height: 100vh;
+ }
+
+ /* grain overlay */
+ body::before {
+ content: "";
+ position: fixed;
+ inset: 0;
+ background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
+ pointer-events: none;
+ z-index: 9999;
+ opacity: 0.6;
+ }
+
+ /* ── Article layout ── */
+ .article {
+ max-width: 600px;
+ margin: 0 auto;
+ padding: 5rem 2rem 6rem;
+ animation: fadeUp 0.8s var(--ease) both;
+ }
+
+ @keyframes fadeUp {
+ from {
+ opacity: 0;
+ transform: translateY(14px);
+ }
+ to {
+ opacity: 1;
+ transform: translateY(0);
+ }
+ }
+
+ /* ── Article heading ── */
+ .article > h1 {
+ font-family: var(--serif);
+ font-size: clamp(2.2rem, 7vw, 3.4rem);
+ font-weight: 300;
+ line-height: 1.1;
+ letter-spacing: 0.01em;
+ color: var(--text);
+ margin: 0 0 3.5rem;
+ padding-bottom: 2.5rem;
+ border-bottom: 1px solid var(--border);
+ position: relative;
+ }
+
+ .article > h1::after {
+ content: "";
+ position: absolute;
+ bottom: -1px;
+ left: 0;
+ width: 40px;
+ height: 1px;
+ background: var(--gold);
+ }
+
+ /* ── Body prose ── */
+ .article p {
+ font-family: var(--serif);
+ font-size: 1.05rem;
+ font-weight: 300;
+ line-height: 1.85;
+ color: var(--text-2);
+ margin: 0 0 1.6rem;
+ letter-spacing: 0.01em;
+ }
+
+ .article h2 {
+ font-family: var(--serif);
+ font-size: 1.5rem;
+ font-weight: 400;
+ color: var(--text);
+ letter-spacing: 0.01em;
+ margin: 3rem 0 1rem;
+ padding-bottom: 0.6rem;
+ border-bottom: 1px solid var(--border);
+ scroll-margin-top: 2rem;
+ }
+
+ .article h3 {
+ font-family: var(--mono);
+ font-size: 0.68rem;
+ font-weight: 400;
+ color: var(--gold);
+ letter-spacing: 0.16em;
+ text-transform: uppercase;
+ margin: 2.5rem 0 0.8rem;
+ scroll-margin-top: 2rem;
+ }
+
+ .article h4 {
+ font-family: var(--mono);
+ font-size: 0.62rem;
+ color: var(--text-2);
+ letter-spacing: 0.12em;
+ text-transform: uppercase;
+ margin: 1.8rem 0 0.6rem;
+ scroll-margin-top: 2rem;
+ }
+
+ .article a {
+ color: var(--gold);
+ text-decoration: none;
+ border-bottom: 1px solid var(--gold-dim);
+ padding-bottom: 1px;
+ transition:
+ border-color 150ms ease,
+ opacity 150ms ease;
+ }
+
+ .article a:hover {
+ opacity: 0.75;
+ border-color: var(--gold);
+ }
+
+ .article strong {
+ color: var(--text);
+ font-weight: 400;
+ }
+
+ .article em {
+ font-style: italic;
+ color: var(--text);
+ }
+
+ .article blockquote {
+ margin: 2rem 0;
+ padding: 1.2rem 0 1.2rem 1.6rem;
+ border-left: 1px solid var(--gold-dim);
+ color: var(--text-2);
+ font-family: var(--serif);
+ font-style: italic;
+ font-size: 1.05rem;
+ }
+
+ .article blockquote p {
+ margin: 0;
+ }
+
+ .article code {
+ font-family: var(--mono);
+ font-size: 0.78rem;
+ color: var(--gold);
+ background: var(--surface);
+ border: 1px solid var(--border-2);
+ padding: 0.1em 0.38em;
+ border-radius: 2px;
+ }
+
+ .article pre {
+ background: var(--surface) !important;
+ border: 1px solid var(--border) !important;
+ border-radius: 3px;
+ padding: 1.4rem 1.6rem !important;
+ overflow-x: auto;
+ margin: 1.6rem 0 2rem;
+ }
+
+ .article pre code {
+ background: none;
+ border: none;
+ padding: 0;
+ color: inherit;
+ font-size: 0.78rem;
+ letter-spacing: 0.02em;
+ }
+
+ .article hr {
+ border: none;
+ border-top: 1px solid var(--border);
+ margin: 3rem 0;
+ position: relative;
+ }
+
+ .article hr::after {
+ content: "◆";
+ position: absolute;
+ left: 50%;
+ top: 50%;
+ transform: translate(-50%, -50%);
+ font-size: 0.4rem;
+ color: var(--gold-dim);
+ background: var(--bg);
+ padding: 0 0.6rem;
+ }
+
+ .article ul,
+ .article ol {
+ padding-left: 1.6rem;
+ margin: 0 0 1.6rem;
+ }
+
+ .article li {
+ font-family: var(--serif);
+ font-size: 1.05rem;
+ font-weight: 300;
+ line-height: 1.8;
+ color: var(--text-2);
+ padding-left: 0.3rem;
+ margin-bottom: 0.3rem;
+ }
+
+ .article li::marker {
+ color: var(--gold-dim);
+ font-size: 0.7em;
+ }
+
+ /* ── TOC ── */
+ .toc {
+ position: static !important;
+ width: auto !important;
+ right: auto !important;
+ top: auto !important;
+ background: var(--surface) !important;
+ border: 1px solid var(--border) !important;
+ border-left: 2px solid var(--gold-dim) !important;
+ padding: 1.2rem 1.6rem !important;
+ margin: 0 0 3.5rem !important;
+ border-radius: 2px;
+ }
+
+ .toc-title {
+ margin: 0 0 0.9rem !important;
+ font-size: 0.55rem !important;
+ letter-spacing: 0.18em;
+ text-transform: uppercase;
+ color: var(--gold-dim) !important;
+ line-height: 1 !important;
+ display: block;
+ font-family: var(--mono);
+ }
+
+ .toc ul {
+ display: block;
+ margin: 0;
+ padding: 0;
+ list-style: none;
+ }
+
+ .toc li {
+ display: block;
+ padding-left: 0 !important;
+ margin: 0.22rem 0 !important;
+ list-style: none;
+ }
+
+ .toc li::before {
+ display: none !important;
+ }
+
+ .toc a {
+ font-family: var(--mono);
+ font-size: 0.68rem;
+ letter-spacing: 0.04em;
+ color: var(--text-3) !important;
+ text-decoration: none !important;
+ border: none !important;
+ padding: 0 !important;
+ transition: color 150ms ease;
+ }
+
+ .toc a:hover {
+ color: var(--text-2) !important;
+ }
+
+ .toc a.active {
+ color: var(--gold) !important;
+ font-weight: 400;
+ }
+
+ .toc-toggle {
+ display: flex;
+ align-items: center;
+ gap: 0.6rem;
+ cursor: pointer;
+ background: none;
+ border: none;
+ padding: 0;
+ font-family: var(--mono);
+ font-size: 0.58rem;
+ letter-spacing: 0.14em;
+ text-transform: uppercase;
+ color: var(--text-3);
+ margin-bottom: 0.9rem;
+ width: 100%;
+ text-align: left;
+ transition: color 150ms ease;
+ }
+
+ .toc-toggle:hover {
+ color: var(--text-2);
+ }
+
+ .toc-toggle svg {
+ transition: transform 160ms ease;
+ flex-shrink: 0;
+ }
+
+ .toc-toggle[aria-expanded="false"] svg {
+ transform: rotate(-90deg);
+ }
+
+ .toc-body {
+ overflow: hidden;
+ transition:
+ max-height 260ms ease,
+ opacity 220ms ease;
+ max-height: 800px;
+ opacity: 1;
+ }
+
+ .toc-body.collapsed {
+ max-height: 0;
+ opacity: 0;
+ }
+
+ @media (max-width: 699px) {
+ .toc-title {
+ display: none;
+ }
+ .toc-toggle {
+ display: flex;
+ }
+ }
+
+ @media (min-width: 700px) {
+ .toc-toggle {
+ display: none;
+ }
+ .toc-title {
+ display: block;
+ }
+ .toc-body {
+ max-height: none !important;
+ opacity: 1 !important;
+ }
+ }
+
+ @media (min-width: 1100px) {
+ .toc {
+ position: fixed !important;
+ top: 5.5rem !important;
+ left: max(2rem, calc((100vw - 600px) / 2 - 220px)) !important;
+ width: 190px !important;
+ background: transparent !important;
+ border: none !important;
+ border-left: 1px solid var(--border) !important;
+ padding: 0 0 0 1.2rem !important;
+ margin: 0 !important;
+ }
+
+ .toc-toggle {
+ display: none;
+ }
+ .toc-title {
+ display: block;
+ }
+ .toc-body {
+ max-height: none !important;
+ opacity: 1 !important;
+ }
+
+ .toc-level-2 {
+ margin-left: 0.7rem !important;
+ }
+ .toc-level-3 {
+ margin-left: 1.3rem !important;
+ }
+ .toc-level-4 {
+ margin-left: 1.9rem !important;
+ }
+ }
+
+ /* ── Mobile ── */
+ @media (max-width: 500px) {
+ .article {
+ padding: 3rem 1.4rem 4rem;
+ }
+ }
+
+ :focus-visible {
+ outline: 1px solid var(--gold);
+ outline-offset: 3px;
+ border-radius: 1px;
+ }
+ </style>
+ </head>
+ <body>
+ <main class="article">
+ <nav class="toc" aria-label="Table of contents">
+ <button
+ class="toc-toggle"
+ aria-expanded="false"
+ aria-controls="toc-body"
+ >
+ <svg
+ width="10"
+ height="10"
+ viewBox="0 0 10 10"
+ fill="none"
+ aria-hidden="true"
+ >
+ <path
+ d="M2 3.5L5 6.5L8 3.5"
+ stroke="currentColor"
+ stroke-width="1.4"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ />
+ </svg>
+ Contents
+ </button>
+
+ <span class="toc-title">Contents</span>
+
+ <div class="toc-body collapsed" id="toc-body">
+ <ul>
+ {{ range .TOC }}
+ <li class="toc-level-{{ .Level }}">
+ <a href="#{{ .ID }}">{{ .Text }}</a>
+ </li>
+ {{ end }}
+ </ul>
+ </div>
+ </nav>
+
+ <h1>{{ .Title }}</h1>
+ {{ .Content }}
+ </main>
+
+ <script>
+ const toggle = document.querySelector(".toc-toggle");
+ const body = document.getElementById("toc-body");
+
+ if (toggle && body) {
+ toggle.addEventListener("click", () => {
+ const expanded = toggle.getAttribute("aria-expanded") === "true";
+ toggle.setAttribute("aria-expanded", String(!expanded));
+ body.classList.toggle("collapsed", expanded);
+ });
+ }
+
+ const tocLinks = document.querySelectorAll(".toc a");
+
+ if (tocLinks.length > 0) {
+ const headingIDs = Array.from(tocLinks).map((a) =>
+ decodeURIComponent(a.getAttribute("href").slice(1)),
+ );
+ const headings = headingIDs
+ .map((id) => document.getElementById(id))
+ .filter(Boolean);
+
+ let current = null;
+
+ const observer = new IntersectionObserver(
+ (entries) => {
+ entries.forEach((entry) => {
+ if (entry.isIntersecting) current = entry.target.id;
+ });
+ tocLinks.forEach((a) => {
+ const id = decodeURIComponent(a.getAttribute("href").slice(1));
+ a.classList.toggle("active", id === current);
+ });
+ },
+ { rootMargin: "0px 0px -70% 0px", threshold: 0 },
+ );
+
+ headings.forEach((h) => observer.observe(h));
+ }
+ </script>
+ </body>
+</html>
diff --git a/themes/modern-light/home.html b/themes/modern-light/home.html
new file mode 100644
index 0000000..0e963fe
--- /dev/null
+++ b/themes/modern-light/home.html
@@ -0,0 +1,362 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="UTF-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <title>{{ .SiteTitle }}</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=Instrument+Serif:ital@0;1&family=Geist:wght@300;400;500&family=Geist+Mono:wght@400;500&display=swap"
+ rel="stylesheet"
+ />
+ <style>
+ :root {
+ --bg: #f9f8f6;
+ --surface: #ffffff;
+ --border: #e4e3df;
+ --text: #111110;
+ --text-2: #5c5b57;
+ --text-3: #a8a7a2;
+ --warm: #b85c38;
+ --serif: "Instrument Serif", Georgia, serif;
+ --sans: "Geist", system-ui, sans-serif;
+ --mono: "Geist Mono", ui-monospace, monospace;
+ --ease: cubic-bezier(0.16, 1, 0.3, 1);
+ }
+
+ *,
+ *::before,
+ *::after {
+ box-sizing: border-box;
+ }
+
+ html {
+ scroll-behavior: smooth;
+ }
+
+ body {
+ margin: 0;
+ background: var(--bg);
+ color: var(--text);
+ font-family: var(--sans);
+ -webkit-font-smoothing: antialiased;
+ min-height: 100vh;
+ }
+
+ /* ── Layout ── */
+ .page {
+ max-width: 640px;
+ margin: 0 auto;
+ padding: 0 2rem;
+ }
+
+ /* ── Nav ── */
+ nav {
+ display: flex;
+ justify-content: flex-end;
+ align-items: center;
+ padding: 2rem 0 0;
+ gap: 2rem;
+ }
+
+ nav a {
+ font-family: var(--mono);
+ font-size: 0.68rem;
+ letter-spacing: 0.08em;
+ text-transform: uppercase;
+ color: var(--text-3);
+ text-decoration: none;
+ transition: color 120ms ease;
+ }
+
+ nav a:hover {
+ color: var(--text);
+ }
+
+ /* ── Hero ── */
+ .hero {
+ padding: 5rem 0 4rem;
+ border-bottom: 1px solid var(--border);
+ }
+
+ .hero-name {
+ font-family: var(--serif);
+ font-size: clamp(2.8rem, 8vw, 4.5rem);
+ font-weight: 400;
+ line-height: 1.05;
+ letter-spacing: -0.01em;
+ margin: 0 0 1.2rem;
+ color: var(--text);
+ animation: fadeUp 0.7s var(--ease) both;
+ }
+
+ .hero-name em {
+ font-style: italic;
+ color: var(--text-2);
+ }
+
+ .hero-role {
+ font-family: var(--mono);
+ font-size: 0.7rem;
+ letter-spacing: 0.1em;
+ text-transform: uppercase;
+ color: var(--text-3);
+ margin: 0 0 1.4rem;
+ animation: fadeUp 0.7s 0.08s var(--ease) both;
+ }
+
+ .hero-bio {
+ font-size: 0.975rem;
+ line-height: 1.8;
+ color: var(--text-2);
+ margin: 0;
+ max-width: 420px;
+ animation: fadeUp 0.7s 0.15s var(--ease) both;
+ }
+
+ /* ── Writing section ── */
+ .writing-header {
+ display: flex;
+ align-items: center;
+ gap: 1rem;
+ padding: 2.8rem 0 1.6rem;
+ }
+
+ .writing-label {
+ font-family: var(--mono);
+ font-size: 0.64rem;
+ letter-spacing: 0.12em;
+ text-transform: uppercase;
+ color: var(--text-3);
+ white-space: nowrap;
+ }
+
+ .writing-rule {
+ flex: 1;
+ height: 1px;
+ background: var(--border);
+ }
+
+ /* ── Post list ── */
+ .post-list {
+ margin: 0;
+ padding: 0;
+ list-style: none;
+ }
+
+ .post-list li {
+ padding: 0;
+ margin: 0;
+ }
+
+ .post-list li::before {
+ display: none;
+ }
+
+ .post-item {
+ display: flex;
+ align-items: baseline;
+ gap: 1.5rem;
+ padding: 1rem 0;
+ text-decoration: none;
+ color: inherit;
+ border-bottom: 1px solid var(--border);
+ transition: opacity 140ms ease;
+ animation: fadeUp 0.5s var(--ease) both;
+ }
+
+ .post-item:hover {
+ opacity: 0.55;
+ }
+
+ .post-date {
+ font-family: var(--mono);
+ font-size: 0.63rem;
+ letter-spacing: 0.05em;
+ color: var(--text-3);
+ white-space: nowrap;
+ flex-shrink: 0;
+ padding-top: 0.1em;
+ min-width: 5.5rem;
+ }
+
+ .post-right {
+ flex: 1;
+ min-width: 0;
+ }
+
+ .post-title {
+ font-family: var(--serif);
+ font-size: 1.05rem;
+ font-weight: 400;
+ color: var(--text);
+ line-height: 1.45;
+ display: block;
+ }
+
+ .post-tags {
+ display: flex;
+ gap: 0.3rem;
+ margin-top: 0.4rem;
+ flex-wrap: wrap;
+ }
+
+ .pill {
+ display: inline-block;
+ font-family: var(--mono);
+ font-size: 0.58rem;
+ letter-spacing: 0.06em;
+ text-transform: uppercase;
+ padding: 0.15rem 0.45rem;
+ background: transparent;
+ border: 1px solid var(--border);
+ border-radius: 100px;
+ color: var(--text-3);
+ }
+
+ /* ── Empty state ── */
+ .empty {
+ font-family: var(--mono);
+ font-size: 0.72rem;
+ color: var(--text-3);
+ letter-spacing: 0.06em;
+ padding: 2.5rem 0;
+ }
+
+ /* ── Footer ── */
+ footer {
+ padding: 2.5rem 0 3rem;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ flex-wrap: wrap;
+ gap: 0.8rem;
+ font-family: var(--mono);
+ font-size: 0.65rem;
+ letter-spacing: 0.05em;
+ color: var(--text-3);
+ }
+
+ footer a {
+ color: inherit;
+ text-decoration: underline;
+ text-underline-offset: 3px;
+ text-decoration-color: var(--border);
+ transition: color 120ms ease;
+ }
+
+ footer a:hover {
+ color: var(--text);
+ }
+
+ /* ── Animations ── */
+ @keyframes fadeUp {
+ from {
+ opacity: 0;
+ transform: translateY(10px);
+ }
+ to {
+ opacity: 1;
+ transform: translateY(0);
+ }
+ }
+
+ /* stagger post items */
+ .post-item:nth-child(1) {
+ animation-delay: 0.2s;
+ }
+ .post-item:nth-child(2) {
+ animation-delay: 0.27s;
+ }
+ .post-item:nth-child(3) {
+ animation-delay: 0.34s;
+ }
+ .post-item:nth-child(4) {
+ animation-delay: 0.41s;
+ }
+ .post-item:nth-child(5) {
+ animation-delay: 0.48s;
+ }
+ .post-item:nth-child(6) {
+ animation-delay: 0.55s;
+ }
+
+ /* ── Mobile ── */
+ @media (max-width: 500px) {
+ .page {
+ padding: 0 1.4rem;
+ }
+ .hero {
+ padding: 3.5rem 0 3rem;
+ }
+ .post-item {
+ flex-direction: column;
+ gap: 0.2rem;
+ }
+ .post-date {
+ min-width: unset;
+ }
+ footer {
+ flex-direction: column;
+ }
+ }
+
+ :focus-visible {
+ outline: 2px solid var(--text);
+ outline-offset: 3px;
+ border-radius: 2px;
+ }
+ </style>
+ </head>
+ <body>
+ <div class="page">
+ <nav>
+ <a href="/about">About</a>
+ <a href="/feed.xml">RSS</a>
+ </nav>
+
+ <header class="hero">
+ <h1 class="hero-name">{{ .AuthorName }}</h1>
+ <p class="hero-role">{{ .AuthorRole }}</p>
+ <p class="hero-bio">{{ .AuthorBio }}</p>
+ </header>
+
+ <main>
+ <div class="writing-header">
+ <span class="writing-label">Writing</span>
+ <span class="writing-rule"></span>
+ </div>
+
+ {{ if .Posts }}
+ <ul class="post-list">
+ {{ range .Posts }}
+ <li>
+ <a class="post-item" href="/{{ .Slug }}/">
+ <span class="post-right">
+ <span class="post-title">{{ .Title }}</span>
+ {{ if .Tags }}
+ <span class="post-tags">
+ {{ range .Tags }}
+ <span class="pill">{{ . }}</span>
+ {{ end }}
+ </span>
+ {{ end }}
+ </span>
+ <span class="post-date">{{ .Date }}</span>
+ </a>
+ </li>
+ {{ end }}
+ </ul>
+ {{ else }}
+ <p class="empty">No posts yet.</p>
+ {{ end }}
+ </main>
+
+ <footer>
+ <span>© {{ .Year }} {{ .AuthorName }}</span>
+ <span>Built with <a href="#">kite</a></span>
+ </footer>
+ </div>
+ </body>
+</html>
diff --git a/themes/modern-light/layout.html b/themes/modern-light/layout.html
new file mode 100644
index 0000000..97bdb4b
--- /dev/null
+++ b/themes/modern-light/layout.html
@@ -0,0 +1,242 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="UTF-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <meta name="description" content="{{ .Title }}" />
+ <title>{{ .Title }}</title>
+ <link rel="preconnect" href="https://fonts.googleapis.com" />
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
+ <link
+ href="https://cdn.jsdelivr.net/npm/prismjs/themes/prism.css"
+ rel="stylesheet"
+ />
+ <script src="https://cdn.jsdelivr.net/npm/prismjs/prism.js"></script>
+ <script src="https://cdn.jsdelivr.net/npm/prismjs/plugins/autoloader/prism-autoloader.min.js"></script>
+ <link rel="stylesheet" href="../style.css" />
+ <style>
+ .toc {
+ position: static !important;
+ width: auto !important;
+ right: auto !important;
+ top: auto !important;
+ background: var(--bg-subtle) !important;
+ border: 1px solid var(--border) !important;
+ padding: 1.2rem 1.4rem !important;
+ margin: 0 0 3rem !important;
+ }
+
+ .toc-title {
+ margin: 0 0 0.8rem !important;
+ font-size: 0.65rem !important;
+ line-height: 1 !important;
+ display: block;
+ }
+
+ .toc ul {
+ display: block;
+ margin: 0;
+ padding: 0;
+ }
+
+ .toc li {
+ display: block;
+ padding-left: 0 !important;
+ margin: 0.25rem 0 !important;
+ }
+
+ .toc li::before {
+ display: none !important;
+ }
+
+ .toc a.active {
+ color: var(--text);
+ font-weight: 500;
+ }
+
+ .toc-toggle {
+ display: flex;
+ align-items: center;
+ gap: 0.5rem;
+ cursor: pointer;
+ background: none;
+ border: none;
+ padding: 0;
+ font-family: var(--mono);
+ font-size: 0.65rem;
+ letter-spacing: 0.1em;
+ text-transform: uppercase;
+ color: var(--text-muted);
+ margin-bottom: 0.8rem;
+ width: 100%;
+ text-align: left;
+ }
+
+ .toc-toggle svg {
+ transition: transform 140ms ease;
+ flex-shrink: 0;
+ }
+
+ .toc-toggle[aria-expanded="false"] svg {
+ transform: rotate(-90deg);
+ }
+
+ .toc-body {
+ overflow: hidden;
+ transition:
+ max-height 240ms ease,
+ opacity 200ms ease;
+ max-height: 800px;
+ opacity: 1;
+ }
+
+ .toc-body.collapsed {
+ max-height: 0;
+ opacity: 0;
+ }
+
+ @media (max-width: 699px) {
+ .toc-title {
+ display: none;
+ }
+ .toc-toggle {
+ display: flex;
+ }
+ .toc-body {
+ }
+ }
+
+ @media (min-width: 700px) {
+ .toc-toggle {
+ display: none;
+ }
+ .toc-title {
+ display: block;
+ }
+ .toc-body {
+ max-height: none !important;
+ opacity: 1 !important;
+ }
+ }
+
+ @media (min-width: 1100px) {
+ .toc {
+ position: fixed !important;
+ top: 6rem !important;
+ left: max(2rem, calc((100vw - 680px) / 2 - 220px)) !important;
+ width: 200px !important;
+ background: transparent !important;
+ border: none !important;
+ padding: 0 !important;
+ margin: 0 !important;
+ }
+
+ .toc-toggle {
+ display: none;
+ }
+ .toc-title {
+ display: block;
+ }
+ .toc-body {
+ max-height: none !important;
+ opacity: 1 !important;
+ }
+
+ .toc-level-2 {
+ margin-left: 0.8rem !important;
+ }
+ .toc-level-3 {
+ margin-left: 1.4rem !important;
+ }
+ .toc-level-4 {
+ margin-left: 2rem !important;
+ }
+ }
+ </style>
+ </head>
+ <body>
+ <main class="article">
+ <nav class="toc" aria-label="Table of contents">
+ <button
+ class="toc-toggle"
+ aria-expanded="false"
+ aria-controls="toc-body"
+ >
+ <svg
+ width="10"
+ height="10"
+ viewBox="0 0 10 10"
+ fill="none"
+ aria-hidden="true"
+ >
+ <path
+ d="M2 3.5L5 6.5L8 3.5"
+ stroke="currentColor"
+ stroke-width="1.4"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ />
+ </svg>
+ Contents
+ </button>
+
+ <div class="toc-body collapsed" id="toc-body">
+ <ul>
+ {{ range .TOC }}
+ <li class="toc-level-{{ .Level }}">
+ <a href="#{{ .ID }}">{{ .Text }}</a>
+ </li>
+ {{ end }}
+ </ul>
+ </div>
+ </nav>
+
+ <h1>{{ .Title }}</h1>
+ {{ .Content }}
+ </main>
+
+ <script>
+ const toggle = document.querySelector(".toc-toggle");
+ const body = document.getElementById("toc-body");
+
+ if (toggle && body) {
+ toggle.addEventListener("click", () => {
+ const expanded = toggle.getAttribute("aria-expanded") === "true";
+ toggle.setAttribute("aria-expanded", String(!expanded));
+ body.classList.toggle("collapsed", expanded);
+ });
+ }
+
+ const tocLinks = document.querySelectorAll(".toc a");
+
+ if (tocLinks.length > 0) {
+ const headingIDs = Array.from(tocLinks).map((a) =>
+ decodeURIComponent(a.getAttribute("href").slice(1)),
+ );
+ const headings = headingIDs
+ .map((id) => document.getElementById(id))
+ .filter(Boolean);
+
+ let current = null;
+
+ const observer = new IntersectionObserver(
+ (entries) => {
+ entries.forEach((entry) => {
+ if (entry.isIntersecting) {
+ current = entry.target.id;
+ }
+ });
+
+ tocLinks.forEach((a) => {
+ const id = decodeURIComponent(a.getAttribute("href").slice(1));
+ a.classList.toggle("active", id === current);
+ });
+ },
+ { rootMargin: "0px 0px -70% 0px", threshold: 0 },
+ );
+
+ headings.forEach((h) => observer.observe(h));
+ }
+ </script>
+ </body>
+</html>
diff --git a/themes/modern-light.css b/themes/modern-light/style.css
index 73e6d44..73e6d44 100644
--- a/themes/modern-light.css
+++ b/themes/modern-light/style.css