/*
Theme Name: Fieldnote
Theme URI: https://wordpress.org/themes/
Author: Fieldnote
Description: A notebook-style blogging theme for guest-post sites. Lined paper with a red margin, recent posts on a dated timeline, and a right sidebar of index cards for Categories and Pages plus 10 shuffled posts shown as polaroids (image, title, 100-word preview) that change on every visit. Self-hosted fonts, no theme JavaScript.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 7.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fieldnote
Update URI: false
Tags: blog, news, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, theme-options
*/

/* Fonts (self-hosted, no Google requests) */
@font-face {
	font-family: "Newsreader";
	src: url("assets/fonts/newsreader.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Caveat";
	src: url("assets/fonts/caveat.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}

/* ==========================================================================
   Base (shared structure; the theme section below sets the look)
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--fn-bg);
	color: var(--fn-ink);
	font-family: var(--fn-body);
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, video, svg, iframe { max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	font-family: var(--fn-display);
	line-height: 1.15;
	text-wrap: balance;
}

:focus-visible { outline: 3px solid var(--fn-focus, currentColor); outline-offset: 3px; border-radius: 4px; }

.fn-wrap { width: min(100% - 32px, var(--fn-wrap)); margin-inline: auto; }

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}
.screen-reader-text:focus,
.skip-link:focus {
	clip: auto !important;
	clip-path: none;
	height: auto;
	width: auto;
	left: 12px;
	top: 12px;
	z-index: 1000;
	padding: 12px 18px;
	background: var(--fn-accent);
	color: var(--fn-on-accent);
	border-radius: 8px;
	font-weight: 700;
	text-decoration: none;
}

/* Buttons */
.fn-btn,
.comment-form .submit {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.7em 1.25em;
	background: var(--fn-accent);
	color: var(--fn-on-accent);
	border: 0;
	border-radius: var(--fn-btn-radius, 8px);
	font-family: var(--fn-display);
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.fn-btn:hover,
.comment-form .submit:hover { transform: translateY(-2px); }

/* Mobile menu toggle (pure CSS checkbox) */
.fn-nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.fn-nav-button { display: none; }
.fn-burger { position: relative; width: 18px; height: 12px; }
.fn-burger::before,
.fn-burger::after,
.fn-burger span {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.fn-burger::before { top: 0; }
.fn-burger span { top: 5px; }
.fn-burger::after { top: 10px; }
.fn-nav-toggle:checked + .fn-nav-button .fn-burger::before { transform: translateY(5px) rotate(45deg); }
.fn-nav-toggle:checked + .fn-nav-button .fn-burger span { opacity: 0; }
.fn-nav-toggle:checked + .fn-nav-button .fn-burger::after { transform: translateY(-5px) rotate(-45deg); }
.fn-nav-toggle:focus-visible + .fn-nav-button { outline: 3px solid currentColor; outline-offset: 3px; }

.fn-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.fn-menu li { position: relative; }
.fn-menu a { display: block; text-decoration: none; }
.fn-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 60;
	min-width: 210px;
	margin: 0;
	padding: 8px;
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.fn-menu li:hover > .sub-menu,
.fn-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

/* Thumbnails */
.fn-thumb {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	text-decoration: none;
	background: var(--fn-soft);
}
.fn-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}
a.fn-thumb:hover img { transform: scale(1.04); }
.fn-thumb__fallback {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background: var(--fn-tone, var(--fn-soft));
	font-family: var(--fn-display);
	font-weight: 700;
	font-size: clamp(2.6rem, 7vw, 4.2rem);
	line-height: 1;
	color: var(--fn-tone-ink, var(--fn-ink));
}

/* Chips + meta */
.fn-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.fn-chip { text-decoration: none; }
.fn-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; color: var(--fn-muted); font-size: 0.88rem; }
.fn-meta__item + .fn-meta__item::before { content: "·"; margin: 0 8px; }
.fn-meta a { color: var(--fn-ink); font-weight: 700; text-decoration: none; }
.fn-meta a:hover { text-decoration: underline; }
.fn-meta__avatar { width: 40px; height: 40px; margin-right: 10px; border-radius: 50%; }

/* Lists in boxes */
.fn-catlist,
.fn-pagelist,
.fn-randlist { margin: 0; padding: 0; list-style: none; }
.fn-pagelist .children { display: none; }
.fn-cat,
.fn-pagelist a { text-decoration: none; }
.fn-randlist,
.fn-rand,
.fn-rand__media { position: relative; }
.fn-rand__title { margin: 0 0 6px; }
.fn-rand__title a,
.fn-card__title a,
.fn-full__title a { text-decoration: none; }
.fn-rand__text { margin: 0 0 8px; }
.fn-rand__more { font-weight: 700; }
.widget.fn-box > :not(.fn-box__title) { margin: 16px 18px; }
.widget.fn-box ul { padding-left: 1.1em; }

/* Article content */
.fn-entry { font-size: 1.075rem; line-height: 1.78; overflow-wrap: break-word; }
.fn-entry > * { margin-block: 0 1.15em; }
.fn-entry > *:last-child { margin-bottom: 0; }
.fn-entry h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin-top: 1.6em; }
.fn-entry h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); margin-top: 1.5em; }
.fn-entry h4 { font-size: 1.15rem; margin-top: 1.4em; }
.fn-entry a { color: var(--fn-link, var(--fn-ink)); font-weight: 600; text-decoration: underline; text-decoration-color: var(--fn-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.fn-entry a:hover { text-decoration-thickness: 4px; }
.fn-entry ul,
.fn-entry ol { padding-left: 1.4em; }
.fn-entry li { margin-bottom: 0.4em; }
.fn-entry li::marker { color: var(--fn-accent); }
.fn-entry blockquote { margin-inline: 0; }
.fn-entry blockquote p:last-child { margin-bottom: 0; }
.fn-entry blockquote cite { display: block; margin-top: 10px; font-size: 0.9rem; font-style: normal; color: var(--fn-muted); }
.fn-entry img { border-radius: var(--fn-img-radius, 8px); }
.fn-entry figure { margin-inline: 0; }
.fn-entry figcaption,
.wp-caption-text,
.wp-element-caption { margin-top: 8px; color: var(--fn-muted); font-size: 0.88rem; text-align: center; }
.fn-entry code,
.fn-entry kbd { padding: 0.12em 0.4em; background: var(--fn-soft); border-radius: 6px; font-family: var(--fn-mono); font-size: 0.88em; }
.fn-entry pre { padding: 20px 22px; background: #15131c; color: #f3f0e8; border-radius: 10px; overflow-x: auto; font-family: var(--fn-mono); font-size: 0.9rem; line-height: 1.6; }
.fn-entry pre code { padding: 0; background: none; color: inherit; }
.fn-entry table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.fn-entry th,
.fn-entry td { padding: 10px 12px; border: 1px solid var(--fn-line); text-align: left; }
.fn-entry th { background: var(--fn-soft); }
.fn-entry .wp-block-table { overflow-x: auto; }
.fn-entry hr { border: 0; height: 1px; background: var(--fn-line); margin: 2.4em 0; }
.fn-entry .more-link { display: inline-block; margin-top: 4px; font-family: var(--fn-display); font-weight: 700; }
.fn-pagelinks { margin-top: 22px; font-weight: 700; }
.fn-pagelinks a,
.fn-pagelinks > span:not(:first-child) { margin-left: 6px; }

.fn-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.fn-tags a { padding: 0.3em 0.75em; border-radius: 6px; background: var(--fn-soft); font-size: 0.82rem; font-weight: 600; text-decoration: none; }
.fn-tags a::before { content: "#"; color: var(--fn-accent); margin-right: 1px; }

/* WordPress core classes */
.alignleft { float: left; margin: 0.3em 1.4em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.4em; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide,
.alignfull { width: 100%; }
.wp-caption { max-width: 100%; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.gallery-caption { font-size: 0.85rem; }
.sticky { position: relative; }
.bypostauthor > .comment-body { outline: 2px solid var(--fn-accent); }

/* Single post */
.fn-single__thumb { margin: 0; }
.fn-single__thumb img { display: block; width: 100%; height: auto; }
.fn-single .fn-tags { margin-top: 30px; }
.fn-author { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; margin-top: 32px; padding: 22px; }
.fn-author__avatar { width: 88px; height: 88px; border-radius: 50%; }
.fn-author__label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fn-muted); }
.fn-author__name { margin: 2px 0 6px; font-size: 1.35rem; }
.fn-author__name a { text-decoration: none; }
.fn-author__bio { margin: 0 0 8px; font-size: 0.98rem; color: var(--fn-muted); }
.fn-author__site { font-weight: 700; font-size: 0.92rem; }
@media (max-width: 520px) {
	.fn-author { grid-template-columns: 1fr; }
	.fn-author__avatar { width: 64px; height: 64px; }
}

.fn-postnav { margin-top: 36px; }
.fn-postnav .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fn-postnav .nav-next { grid-column: 2; text-align: right; }
.fn-postnav a { display: block; height: 100%; padding: 18px 20px; text-decoration: none; }
.fn-postnav__label { display: block; margin-bottom: 4px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fn-muted); }
.fn-postnav__title { font-family: var(--fn-display); font-weight: 700; line-height: 1.3; }
@media (max-width: 640px) {
	.fn-postnav .nav-links { grid-template-columns: 1fr; }
	.fn-postnav .nav-next { grid-column: auto; }
}

/* Pagination */
.pagination { margin-top: 44px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 46px;
	height: 46px;
	padding: 0 12px;
	font-family: var(--fn-display);
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.page-numbers.dots { background: transparent !important; border-color: transparent !important; }

/* Archive header */
.fn-archive-head { margin-bottom: 32px; }
.fn-archive-head__title { margin: 10px 0 8px; font-size: clamp(2.1rem, 5vw, 3.2rem); }
.fn-archive-head__desc { color: var(--fn-muted); max-width: 60ch; }
.fn-archive-head .fn-search { margin-top: 18px; max-width: 520px; }

/* Search + comments */
.fn-search { display: flex; gap: 8px; }
.fn-search__input,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 12px 14px;
	background: var(--fn-paper);
	color: var(--fn-ink);
	border: 1px solid var(--fn-line);
	border-radius: var(--fn-input-radius, 8px);
	font: inherit;
	font-size: 1rem;
}
.fn-search__input:focus,
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--fn-accent); box-shadow: 0 0 0 3px var(--fn-ring, rgba(0, 0, 0, 0.12)); }
.fn-search__btn {
	flex: none;
	display: grid;
	place-items: center;
	width: 50px;
	background: var(--fn-accent);
	color: var(--fn-on-accent);
	border: 0;
	border-radius: var(--fn-input-radius, 8px);
	cursor: pointer;
}

.fn-comments { margin-top: 44px; }
.fn-comments__title { font-size: 1.6rem; margin-bottom: 20px; }
.fn-comment-list,
.fn-comment-list .children { margin: 0; padding: 0; list-style: none; }
.fn-comment-list .children { margin-left: clamp(14px, 4vw, 34px); }
.comment-body { margin-bottom: 16px; padding: 18px 20px; background: var(--fn-paper); border: 1px solid var(--fn-line); border-radius: var(--fn-radius); }
.comment-author { display: flex; align-items: center; gap: 10px; font-family: var(--fn-display); font-weight: 700; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { margin: 4px 0 10px; font-size: 0.82rem; }
.comment-metadata a { color: var(--fn-muted); text-decoration: none; }
.comment-content { font-size: 1rem; }
.reply a { font-size: 0.85rem; font-weight: 700; }
.comment-respond { padding: clamp(20px, 4vw, 30px); background: var(--fn-paper); border: 1px solid var(--fn-line); border-radius: var(--fn-radius); }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; margin-bottom: 4px; font-weight: 600; font-size: 0.92rem; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { display: inline; font-weight: 400; }
.comment-reply-title small { margin-left: 10px; font-size: 0.85rem; }

/* 404 + empty */
.fn-404,
.fn-empty { padding: clamp(28px, 5vw, 48px); text-align: center; background: var(--fn-paper); border-radius: var(--fn-radius); }
.fn-404__num { margin: 0; font-family: var(--fn-display); font-weight: 800; font-size: clamp(5rem, 18vw, 9rem); line-height: 1; color: var(--fn-accent); }
.fn-404 .fn-search,
.fn-empty .fn-search { max-width: 460px; margin: 18px auto 22px; }

/* Footer widgets */
.fn-footer__widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; padding-bottom: 32px; margin-bottom: 32px; }
.fn-footer-widget ul { padding-left: 1.1em; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after { transition: none !important; animation: none !important; }
}


/* ==========================================================================
   Fieldnote look
   ========================================================================== */
:root {
	--fn-bg: #ebe3d3;
	--fn-paper: #fffdf6;
	--fn-ink: #1f2a44;
	--fn-muted: #55607a;
	--fn-soft: #f4eddf;
	--fn-line: #d9cfbd;
	--fn-rule: #d6e3ee;
	--fn-margin: #f0a39c;
	--fn-highlight: #fff17a;
	--fn-note: #ffe680;
	--fn-accent: #d94f45;
	--fn-on-accent: #15131c;
	--fn-link: #1f2a44;
	--fn-radius: 4px;
	--fn-btn-radius: 4px;
	--fn-input-radius: 4px;
	--fn-img-radius: 2px;
	--fn-focus: #d94f45;
	--fn-ring: rgba(217, 79, 69, 0.18);
	--fn-shadow: 0 1px 1px rgba(60, 45, 20, 0.08), 0 6px 18px rgba(60, 45, 20, 0.10);
	--fn-display: "Newsreader", Georgia, "Times New Roman", serif;
	--fn-body: "Newsreader", Georgia, "Times New Roman", serif;
	--fn-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
	--fn-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
	--fn-wrap: 1180px;
}

body { font-size: 1.125rem; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -0.01em; }
::selection { background: var(--fn-highlight); }

.fn-t0 { --fn-tone: #ffe680; }
.fn-t1 { --fn-tone: #cfe6f5; }
.fn-t2 { --fn-tone: #ffd0c8; }
.fn-t3 { --fn-tone: #d6efd0; }
.fn-t4 { --fn-tone: #e6dcf5; }
.fn-thumb__fallback { font-family: var(--fn-hand); font-size: 4rem; }

/* Header */
.fn-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; padding-block: 30px 22px; }
.fn-brand__title { margin: 0; font-family: var(--fn-display); font-style: italic; font-weight: 800; font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1; letter-spacing: -0.02em; }
.fn-brand__title a { text-decoration: none; background: linear-gradient(transparent 62%, var(--fn-highlight) 62%, var(--fn-highlight) 90%, transparent 90%); padding-inline: 4px; }
.fn-brand__tagline { margin: 8px 0 0 6px; font-family: var(--fn-hand); font-size: 1.55rem; line-height: 1.1; color: var(--fn-accent); transform: rotate(-1.5deg); transform-origin: left; }
.custom-logo { max-height: 80px; width: auto; }
.fn-header__tools { display: flex; align-items: center; gap: 16px; }
.fn-header__tools .fn-search__input { width: 220px; background: var(--fn-paper); }
.fn-cta {
	background: var(--fn-note);
	color: var(--fn-ink);
	border-radius: 2px;
	padding: 0.75em 1.1em;
	font-family: var(--fn-hand);
	font-size: 1.45rem;
	font-weight: 700;
	line-height: 1;
	box-shadow: 2px 4px 10px rgba(60, 45, 20, 0.2);
	transform: rotate(2deg);
}
.fn-cta:hover { background: #ffdd55; color: var(--fn-ink); transform: rotate(0deg) translateY(-2px); }

/* Folder tabs */
.fn-tabs { border-bottom: 2px solid var(--fn-ink); }
.fn-tabs .fn-menu { flex-wrap: nowrap; align-items: flex-end; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 4px; }
.fn-tabs .fn-menu::-webkit-scrollbar { display: none; }
.fn-menu li { flex: none; }
.fn-menu a {
	padding: 10px 20px 9px;
	background: #dfd5c1;
	border: 2px solid var(--fn-ink);
	border-bottom: 0;
	border-radius: 10px 10px 0 0;
	font-weight: 600;
	font-size: 1rem;
	white-space: nowrap;
	transform: translateY(2px);
	transition: background-color 0.15s ease, padding 0.15s ease;
}
.fn-menu a:hover { background: var(--fn-soft); padding-bottom: 13px; }
.fn-menu .current-menu-item > a,
.fn-menu .current_page_item > a { background: var(--fn-paper); padding-bottom: 13px; }
.fn-menu li:nth-child(5n + 2) a { background: #f6d9cf; }
.fn-menu li:nth-child(5n + 3) a { background: #d8e7f1; }
.fn-menu li:nth-child(5n + 4) a { background: #e1edd7; }
.fn-menu li:nth-child(5n + 5) a { background: #f3e7b8; }
.fn-menu .current-menu-item > a,
.fn-menu .current_page_item > a { background: var(--fn-paper) !important; }
@media (max-width: 720px) {
	.fn-header__tools { width: 100%; flex-wrap: wrap; }
	.fn-header__tools .fn-search { flex: 1 1 220px; }
	.fn-header__tools .fn-search__input { width: 100%; }
	.fn-cta { font-size: 1.25rem; padding: 0.6em 0.9em; }
}

/* Layout: notebook page + index-card sidebar */
.fn-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	gap: 44px;
	align-items: start;
	padding-block: 36px 70px;
}
.fn-main {
	position: relative;
	min-width: 0;
	padding: clamp(24px, 4vw, 44px) clamp(20px, 4vw, 44px) clamp(28px, 4vw, 48px) clamp(56px, 7vw, 92px);
	background-color: var(--fn-paper);
	background-image:
		linear-gradient(90deg, transparent calc(clamp(56px, 7vw, 92px) - 22px), var(--fn-margin) calc(clamp(56px, 7vw, 92px) - 22px), var(--fn-margin) calc(clamp(56px, 7vw, 92px) - 20px), transparent calc(clamp(56px, 7vw, 92px) - 20px)),
		radial-gradient(circle, #d3dbe6 1px, transparent 1.4px);
	background-size: 100% 100%, 24px 24px;
	border-radius: 3px;
	box-shadow: var(--fn-shadow);
}
.fn-main::before {
	content: "";
	position: absolute;
	top: 18px;
	bottom: 18px;
	left: 14px;
	width: 14px;
	background: radial-gradient(circle at 7px 7px, var(--fn-bg) 0 6px, transparent 6.5px) 0 0 / 14px 56px repeat-y;
}
.fn-sidebar { display: flex; flex-direction: column; gap: 34px; min-width: 0; padding-top: 6px; }
@media (max-width: 980px) {
	.fn-layout { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-block: 24px 56px; }
}
@media (max-width: 560px) {
	.fn-main { padding-left: 48px; background-image: linear-gradient(90deg, transparent 34px, var(--fn-margin) 34px, var(--fn-margin) 36px, transparent 36px), radial-gradient(circle, #d3dbe6 1px, transparent 1.4px); }
	.fn-main::before { left: 8px; }
}

.fn-page-label,
.fn-kicker {
	display: inline-block;
	margin-bottom: 24px;
	font-family: var(--fn-hand);
	font-size: 1.9rem;
	line-height: 1;
	color: var(--fn-accent);
	transform: rotate(-2deg);
}

/* Timeline */
.fn-timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.fn-timeline::before { content: ""; position: absolute; top: 10px; bottom: 0; left: 37px; border-left: 2px dashed var(--fn-line); }
.fn-log { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 26px; margin-bottom: 52px; }
.fn-log:last-child { margin-bottom: 0; }
.fn-stamp {
	position: sticky;
	top: 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	border: 2px solid var(--fn-accent);
	border-radius: 50%;
	background: var(--fn-paper);
	color: var(--fn-accent);
	line-height: 1;
	transform: rotate(-8deg);
}
.fn-stamp__day { font-family: var(--fn-display); font-size: 1.7rem; font-weight: 800; }
.fn-stamp__month,
.fn-stamp__year { font-family: var(--fn-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; }
.fn-log__main { min-width: 0; }
@media (max-width: 640px) {
	.fn-timeline::before { left: 25px; }
	.fn-log { grid-template-columns: 52px minmax(0, 1fr); gap: 14px; }
	.fn-stamp { width: 52px; height: 52px; }
	.fn-stamp__day { font-size: 1.2rem; }
	.fn-stamp__year { display: none; }
}

/* Taped photos */
.fn-full__thumb,
.fn-card__thumb,
.fn-single__thumb {
	position: relative;
	overflow: visible;
	padding: 8px 8px 8px;
	background: #ffffff;
	box-shadow: 0 2px 6px rgba(60, 45, 20, 0.18);
}
.fn-full__thumb::before,
.fn-card__thumb::before,
.fn-single__thumb::before {
	content: "";
	position: absolute;
	top: -12px;
	left: 50%;
	z-index: 1;
	width: 96px;
	height: 26px;
	margin-left: -48px;
	background: rgba(255, 236, 140, 0.75);
	box-shadow: 0 1px 2px rgba(60, 45, 20, 0.12);
	transform: rotate(-3deg);
}
a.fn-thumb:hover img { transform: none; }
.fn-full__thumb { margin-bottom: 22px; transform: rotate(-0.6deg); }
.fn-full__thumb img,
.fn-card__thumb img { border-radius: 0; }

/* Chips + meta */
.fn-chip {
	display: inline-block;
	padding: 2px 10px;
	background: var(--fn-tone);
	font-family: var(--fn-hand);
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.3;
	transform: rotate(-1.5deg);
}
.fn-chip:hover { background: var(--fn-highlight); }
.fn-meta { font-family: var(--fn-mono); font-size: 0.74rem; letter-spacing: 0.04em; }
.fn-meta a { color: var(--fn-ink); }

/* Full posts */
.fn-full__title { margin: 4px 0 10px; font-size: clamp(1.8rem, 3.6vw, 2.5rem); line-height: 1.1; }
.fn-full__title a,
.fn-card__title a { background-image: linear-gradient(var(--fn-highlight), var(--fn-highlight)); background-repeat: no-repeat; background-position: 0 88%; background-size: 0 40%; transition: background-size 0.25s ease; }
.fn-full__title a:hover,
.fn-card__title a:hover { background-size: 100% 40%; }
.fn-full .fn-meta { margin-bottom: 18px; }
.fn-full__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--fn-line); }
.fn-btn--ghost { background: transparent; color: var(--fn-ink); border: 1.5px solid var(--fn-ink); font-family: var(--fn-body); font-size: 0.95rem; }
.fn-btn--ghost:hover { background: var(--fn-highlight); color: var(--fn-ink); }

/* Cards (archives, search, excerpt mode) */
.fn-feed--cards { display: flex; flex-direction: column; gap: 40px; }
.fn-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.fn-card__thumb { aspect-ratio: 4 / 3; transform: rotate(-1.2deg); }
.fn-feed--cards .fn-card:nth-child(even) .fn-card__thumb,
.fn-log:nth-child(even) .fn-card__thumb { transform: rotate(1.2deg); }
.fn-card__title { margin: 4px 0 8px; font-size: 1.5rem; line-height: 1.15; }
.fn-card__excerpt { color: var(--fn-muted); font-size: 1.02rem; line-height: 1.6; }
.fn-card__excerpt p { margin: 0 0 8px; }
@media (max-width: 640px) {
	.fn-card { grid-template-columns: minmax(0, 1fr); }
	.fn-card__thumb { aspect-ratio: 16 / 10; }
}

/* Content */
.fn-entry h2,
.fn-entry h3 { font-weight: 700; }
.fn-entry a:hover { background: var(--fn-highlight); }
.fn-entry blockquote,
.fn-entry .wp-block-quote {
	position: relative;
	padding: 22px 24px 20px;
	background: var(--fn-note);
	box-shadow: 2px 4px 12px rgba(60, 45, 20, 0.15);
	font-family: var(--fn-hand);
	font-size: 1.7rem;
	line-height: 1.25;
	transform: rotate(-0.8deg);
}
.fn-entry blockquote cite { font-family: var(--fn-body); font-size: 0.9rem; color: var(--fn-ink); }
.fn-entry hr { height: 0; border-top: 2px dashed var(--fn-line); background: none; }
.fn-entry li::marker { color: var(--fn-accent); }

/* Index-card boxes */
.fn-box {
	position: relative;
	background: #ffffff;
	box-shadow: var(--fn-shadow);
	transform: rotate(-0.8deg);
}
.fn-sidebar > .fn-box:nth-child(even) { transform: rotate(0.8deg); }
.fn-box::before {
	content: "";
	position: absolute;
	top: -12px;
	left: 50%;
	width: 90px;
	height: 24px;
	margin-left: -45px;
	background: rgba(255, 236, 140, 0.75);
	transform: rotate(2deg);
}
.fn-box__title,
.fn-box__heading {
	margin: 0;
	font-family: var(--fn-hand);
	font-size: 1.9rem;
	font-weight: 700;
	line-height: 1;
}
.fn-box > .fn-box__title,
.fn-box--random .fn-box__title { padding: 18px 20px 10px; border-bottom: 2px solid var(--fn-margin); }
.fn-box--cats .fn-box__body,
.fn-box--pages .fn-box__body { padding: 0 20px 14px; background: repeating-linear-gradient(transparent 0 33px, var(--fn-rule) 33px 34px); }
.fn-catlist li,
.fn-pagelist li { height: 34px; line-height: 34px; overflow: hidden; }
.fn-cat { display: flex; align-items: baseline; gap: 10px; font-size: 1.05rem; }
.fn-cat__name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fn-cat:hover .fn-cat__name,
.fn-cat.is-current .fn-cat__name { background: var(--fn-highlight); }
.fn-count { font-family: var(--fn-hand); font-size: 1.35rem; color: var(--fn-accent); }
.fn-pagelist a { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 1.05rem; }
.fn-pagelist a::before { content: "\2192\00a0"; color: var(--fn-accent); }
.fn-pagelist a:hover,
.fn-pagelist .current_page_item > a { background: var(--fn-highlight); }

/* Polaroid random posts */
.fn-box--random { background: transparent; box-shadow: none; transform: none; }
.fn-box--random::before { display: none; }
.fn-box--random .fn-box__title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; padding: 0 2px 10px; border-bottom: 2px dashed var(--fn-line); margin-bottom: 26px; }
.fn-box__hint { font-family: var(--fn-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fn-muted); }
.fn-randlist { display: flex; flex-direction: column; gap: 30px; }
.fn-rand {
	padding: 12px 12px 18px;
	background: #ffffff;
	box-shadow: 0 2px 4px rgba(60, 45, 20, 0.1), 0 10px 22px rgba(60, 45, 20, 0.12);
	transform: rotate(-1.6deg);
	transition: transform 0.2s ease;
}
.fn-rand:nth-child(even) { transform: rotate(1.4deg); }
.fn-rand:nth-child(3n) { transform: rotate(-0.6deg); }
.fn-rand:hover { transform: rotate(0deg) scale(1.01); }
.fn-rand__thumb { aspect-ratio: 1 / 0.82; }
.fn-rand__num { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; background: var(--fn-paper); font-family: var(--fn-mono); font-size: 0.66rem; letter-spacing: 0.08em; }
.fn-rand__body { padding: 12px 4px 0; }
.fn-rand__title { font-family: var(--fn-hand); font-size: 1.6rem; font-weight: 700; line-height: 1.05; }
.fn-rand__text { font-size: 0.92rem; line-height: 1.55; color: var(--fn-muted); }
.fn-rand__more { font-size: 0.95rem; text-decoration: underline; text-decoration-color: var(--fn-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.fn-rand__more:hover { background: var(--fn-highlight); }
.widget.fn-box > :not(.fn-box__title) { margin: 14px 20px; }
@media (max-width: 980px) {
	.fn-sidebar { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px 30px; }
	.fn-box--random { grid-column: 1 / -1; }
	.fn-randlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 30px 26px; }
}

/* Single + page */
.fn-single__head { margin-bottom: 24px; }
.fn-single__title { margin: 6px 0 14px; font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1.05; }
.fn-single__thumb { margin: 0 0 30px; transform: rotate(-0.6deg); }
.fn-author { position: relative; background: var(--fn-note); box-shadow: 2px 4px 12px rgba(60, 45, 20, 0.15); transform: rotate(0.5deg); }
.fn-author__avatar { border: 3px solid #ffffff; }
.fn-author__name { font-family: var(--fn-hand); font-size: 2rem; }
.fn-author__bio { color: var(--fn-ink); }
.fn-postnav a { background: var(--fn-paper); box-shadow: var(--fn-shadow); }
.fn-postnav a:hover { background: var(--fn-highlight); }
.fn-tags a { background: transparent; border: 1px dashed var(--fn-line); font-family: var(--fn-mono); font-size: 0.74rem; }
.fn-tags a:hover { background: var(--fn-highlight); }
.comment-body { background: #ffffff; }

.page-numbers { border: 1.5px solid var(--fn-ink); border-radius: 50%; min-width: 44px; width: 44px; height: 44px; padding: 0; font-family: var(--fn-display); color: var(--fn-ink); }
a.page-numbers:hover { background: var(--fn-highlight); }
.page-numbers.current { background: var(--fn-ink); color: var(--fn-paper); }
.page-numbers.prev,
.page-numbers.next { border-radius: 22px; }

.fn-archive-head__title { font-style: italic; }
.fn-404,
.fn-empty { background: transparent; }
.fn-404__num { font-family: var(--fn-hand); font-size: clamp(6rem, 18vw, 10rem); color: var(--fn-accent); transform: rotate(-4deg); }
.fn-404 .fn-btn { font-family: var(--fn-body); }

/* Footer */
.fn-footer { border-top: 2px solid var(--fn-ink); padding-block: 34px 28px; color: var(--fn-ink); }
.fn-footer a { text-decoration: none; }
.fn-footer a:hover { background: var(--fn-highlight); }
.fn-footer__widgets { border-bottom: 1px dashed var(--fn-line); }
.fn-footer-widget__title { font-family: var(--fn-hand); font-size: 1.7rem; }
.fn-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.fn-footer__sign { margin: 0; font-family: var(--fn-hand); font-size: 2.2rem; font-weight: 700; line-height: 1; transform: rotate(-2deg); }
.fn-footer__menu { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; }
.fn-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--fn-line); font-family: var(--fn-mono); font-size: 0.78rem; color: var(--fn-muted); }
.fn-footer__bottom p { margin: 0; }
