84 lines
5.2 KiB
Text
84 lines
5.2 KiB
Text
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>{{ title | default("Le Daily Squirrel") }}</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=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Old+Standard+TT:ital,wght@0,400;0,700;1,400&family=Oswald:wght@400;500;600;700&display=swap" rel="stylesheet">
|
|
<style>
|
|
/* Paste ALL your CSS from fp.html inside this style block exactly as you wrote it */
|
|
:root {
|
|
--ink: #1a1a1a;
|
|
--paper: #f3ecdb;
|
|
--paper-shade: #e8dfca;
|
|
--faded: #4a4640;
|
|
}
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
html { -webkit-text-size-adjust: 100%; }
|
|
body {
|
|
background: #d9d2bf;
|
|
color: var(--ink);
|
|
font-family: 'Old Standard TT', Georgia, serif;
|
|
line-height: 1.3;
|
|
padding: 24px 12px;
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
.newspaper {
|
|
width: 100%;
|
|
max-width: 960px;
|
|
background: var(--paper);
|
|
background-image:
|
|
radial-gradient(ellipse at 50% 0%, rgba(0,0,0,0) 60%, rgba(60,50,30,0.10) 100%),
|
|
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
|
|
padding: 26px 30px 40px;
|
|
box-shadow: 0 8px 40px rgba(0,0,0,0.4);
|
|
position: relative;
|
|
}
|
|
hr.rule { border: none; border-top: 2px solid var(--ink); margin: 0; }
|
|
hr.thin { border: none; border-top: 1px solid var(--ink); margin: 0; }
|
|
hr.hair { border: none; border-top: 1px solid var(--faded); margin: 0; }
|
|
.ears { display: flex; justify-content: space-between; align-items: flex-start; font-family: 'Oswald', sans-serif; font-size: 11px; line-height: 1.35; text-transform: uppercase; letter-spacing: 0.3px; font-weight: 600; padding-bottom: 4px; }
|
|
.ears .left { text-align: left; }
|
|
.ears .right { text-align: right; }
|
|
.masthead { padding: 6px 0 10px; display: flex; justify-content: center; }
|
|
.nameplate-svg { width: 100%; max-width: 700px; height: auto; display: block; }
|
|
.nameplate.left { text-align: right; padding-right: 6px; }
|
|
.nameplate.right { text-align: left; padding-left: 6px; }
|
|
.emblem { width: clamp(64px, 12vw, 104px); height: auto; display: block; }
|
|
.dateline { display: flex; justify-content: space-between; align-items: baseline; font-family: 'Old Standard TT', serif; font-size: 13px; padding: 5px 2px; }
|
|
.dateline .vol { font-weight: 700; }
|
|
.dateline .place { font-style: italic; }
|
|
.dateline .price { font-weight: 700; }
|
|
.banner { font-family: 'Oswald', sans-serif; font-weight: 700; text-transform: uppercase; font-size: clamp(40px, 10.5vw, 96px); line-height: 0.92; letter-spacing: -1px; text-align: center; padding: 14px 0 12px; transform: scaleY(1.08); }
|
|
.columns { display: grid; grid-template-columns: 1.05fr 0.95fr 1fr; gap: 0; }
|
|
.col { padding: 12px 16px; }
|
|
.col + .col { border-left: 1px solid var(--ink); }
|
|
.col p { text-align: justify; hyphens: auto; font-size: 13px; line-height: 1.42; margin-bottom: 9px; color: var(--faded); }
|
|
.hed-xl { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 30px; line-height: 0.98; text-transform: none; margin-bottom: 8px; }
|
|
.hed-lg { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 23px; line-height: 1.0; margin-bottom: 6px; }
|
|
.hed-md { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 19px; line-height: 1.02; margin: 4px 0 6px; }
|
|
.kicker { font-family: 'Old Standard TT', serif; font-weight: 700; font-size: 13px; text-align: center; margin: 6px 0; }
|
|
.byline { font-family: 'Old Standard TT', serif; font-style: italic; font-size: 11px; text-align: center; color: var(--faded); margin-bottom: 8px; }
|
|
.center { text-align: center; }
|
|
.photo { width: 100%; display: block; filter: grayscale(1) contrast(1.05) sepia(0.12); border: 1px solid var(--ink); }
|
|
.caption { font-size: 10.5px; line-height: 1.3; text-align: justify; color: var(--faded); margin-top: 5px; }
|
|
.boxed { border: 1px solid var(--ink); padding: 8px 10px; margin: 10px 0; text-align: center; }
|
|
.boxed .hed-lg { font-size: 26px; }
|
|
.col .hed-section { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 26px; line-height: 0.95; margin: 8px 0 6px; }
|
|
.weather { font-family: 'Old Standard TT', serif; text-align: center; margin-top: 8px; }
|
|
.weather .label { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: 0.5px; }
|
|
.weather p { text-align: center; font-style: italic; }
|
|
.jump { font-style: italic; font-size: 11px; text-align: right; color: var(--faded); }
|
|
.spacer-rule { margin: 8px 0; }
|
|
@media (max-width: 760px) { .newspaper { padding: 20px 16px 30px; } .columns { grid-template-columns: 1fr; } .col + .col { border-left: none; border-top: 1px solid var(--ink); } .ears { font-size: 9px; } }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="newspaper">
|
|
{{ content | safe }}
|
|
</div>
|
|
</body>
|
|
</html>
|