/*
Theme Name: Almanac
Theme URI: https://wordpress.org/themes/
Author: Almanac
Description: A scholarly index-style blogging theme for guest-post sites. Posts are listed like a library catalogue table, beside a tabbed sidebar box (Random, Categories, Pages) with 10 shuffled posts (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: almanac
Update URI: false
Tags: blog, news, two-columns, left-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, theme-options
*/

/* Fonts (self-hosted, no Google requests) */
@font-face {
	font-family: "EB Garamond";
	src: url("assets/fonts/eb-garamond.woff2") format("woff2");
	font-weight: 400 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "EB Garamond";
	src: url("assets/fonts/eb-garamond-italic.woff2") format("woff2");
	font-weight: 400 800;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Source Sans 3";
	src: url("assets/fonts/source-sans-3.woff2") format("woff2");
	font-weight: 200 900;
	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(--al-bg);
	color: var(--al-ink);
	font-family: var(--al-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(--al-display);
	line-height: 1.15;
	text-wrap: balance;
}

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

.al-wrap { width: min(100% - 32px, var(--al-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(--al-accent);
	color: var(--al-on-accent);
	border-radius: 8px;
	font-weight: 700;
	text-decoration: none;
}

/* Buttons */
.al-btn,
.comment-form .submit {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.7em 1.25em;
	background: var(--al-accent);
	color: var(--al-on-accent);
	border: 0;
	border-radius: var(--al-btn-radius, 8px);
	font-family: var(--al-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;
}
.al-btn:hover,
.comment-form .submit:hover { transform: translateY(-2px); }

/* Mobile menu toggle (pure CSS checkbox) */
.al-nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.al-nav-button { display: none; }
.al-burger { position: relative; width: 18px; height: 12px; }
.al-burger::before,
.al-burger::after,
.al-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;
}
.al-burger::before { top: 0; }
.al-burger span { top: 5px; }
.al-burger::after { top: 10px; }
.al-nav-toggle:checked + .al-nav-button .al-burger::before { transform: translateY(5px) rotate(45deg); }
.al-nav-toggle:checked + .al-nav-button .al-burger span { opacity: 0; }
.al-nav-toggle:checked + .al-nav-button .al-burger::after { transform: translateY(-5px) rotate(-45deg); }
.al-nav-toggle:focus-visible + .al-nav-button { outline: 3px solid currentColor; outline-offset: 3px; }

.al-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.al-menu li { position: relative; }
.al-menu a { display: block; text-decoration: none; }
.al-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;
}
.al-menu li:hover > .sub-menu,
.al-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

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

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

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

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

.al-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.al-tags a { padding: 0.3em 0.75em; border-radius: 6px; background: var(--al-soft); font-size: 0.82rem; font-weight: 600; text-decoration: none; }
.al-tags a::before { content: "#"; color: var(--al-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(--al-accent); }

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

.al-postnav { margin-top: 36px; }
.al-postnav .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.al-postnav .nav-next { grid-column: 2; text-align: right; }
.al-postnav a { display: block; height: 100%; padding: 18px 20px; text-decoration: none; }
.al-postnav__label { display: block; margin-bottom: 4px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--al-muted); }
.al-postnav__title { font-family: var(--al-display); font-weight: 700; line-height: 1.3; }
@media (max-width: 640px) {
	.al-postnav .nav-links { grid-template-columns: 1fr; }
	.al-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(--al-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 */
.al-archive-head { margin-bottom: 32px; }
.al-archive-head__title { margin: 10px 0 8px; font-size: clamp(2.1rem, 5vw, 3.2rem); }
.al-archive-head__desc { color: var(--al-muted); max-width: 60ch; }
.al-archive-head .al-search { margin-top: 18px; max-width: 520px; }

/* Search + comments */
.al-search { display: flex; gap: 8px; }
.al-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(--al-paper);
	color: var(--al-ink);
	border: 1px solid var(--al-line);
	border-radius: var(--al-input-radius, 8px);
	font: inherit;
	font-size: 1rem;
}
.al-search__input:focus,
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--al-accent); box-shadow: 0 0 0 3px var(--al-ring, rgba(0, 0, 0, 0.12)); }
.al-search__btn {
	flex: none;
	display: grid;
	place-items: center;
	width: 50px;
	background: var(--al-accent);
	color: var(--al-on-accent);
	border: 0;
	border-radius: var(--al-input-radius, 8px);
	cursor: pointer;
}

.al-comments { margin-top: 44px; }
.al-comments__title { font-size: 1.6rem; margin-bottom: 20px; }
.al-comment-list,
.al-comment-list .children { margin: 0; padding: 0; list-style: none; }
.al-comment-list .children { margin-left: clamp(14px, 4vw, 34px); }
.comment-body { margin-bottom: 16px; padding: 18px 20px; background: var(--al-paper); border: 1px solid var(--al-line); border-radius: var(--al-radius); }
.comment-author { display: flex; align-items: center; gap: 10px; font-family: var(--al-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(--al-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(--al-paper); border: 1px solid var(--al-line); border-radius: var(--al-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 */
.al-404,
.al-empty { padding: clamp(28px, 5vw, 48px); text-align: center; background: var(--al-paper); border-radius: var(--al-radius); }
.al-404__num { margin: 0; font-family: var(--al-display); font-weight: 800; font-size: clamp(5rem, 18vw, 9rem); line-height: 1; color: var(--al-accent); }
.al-404 .al-search,
.al-empty .al-search { max-width: 460px; margin: 18px auto 22px; }

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

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


/* ==========================================================================
   Almanac look
   ========================================================================== */
:root {
	--al-bg: #f4efe4;
	--al-paper: #fbf8f1;
	--al-ink: #231d18;
	--al-muted: #5f564c;
	--al-soft: #ebe3d3;
	--al-line: #d6cab5;
	--al-rule: #231d18;
	--al-green: #2f4a3a;
	--al-accent: #7a1f2b;
	--al-on-accent: #ffffff;
	--al-link: #7a1f2b;
	--al-radius: 2px;
	--al-btn-radius: 2px;
	--al-input-radius: 2px;
	--al-img-radius: 2px;
	--al-focus: #7a1f2b;
	--al-ring: rgba(122, 31, 43, 0.18);
	--al-display: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
	--al-body: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--al-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
	--al-wrap: 1320px;
}

body { font-size: 1.02rem; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; letter-spacing: 0; }
.al-t0 { --al-tone: #7a1f2b; }
.al-t1 { --al-tone: #2f4a3a; }
.al-t2 { --al-tone: #8a5a14; }
.al-t3 { --al-tone: #2e4a6b; }
.al-t4 { --al-tone: #5b3a6b; }
.al-thumb { background: var(--al-soft); }
.al-thumb img { filter: sepia(0.18) saturate(0.9); }
a.al-thumb:hover img { transform: none; filter: none; }
.al-thumb__fallback { background: var(--al-soft); color: var(--al-tone, var(--al-accent)); font-family: var(--al-display); font-style: italic; font-weight: 500; }
.al-btn { font-family: var(--al-body); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
.al-btn:hover { background: var(--al-ink); color: #ffffff; transform: none; }

/* Header */
.al-header__inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 30px; padding-block: 34px 20px; }
.al-brand__title { margin: 0; font-family: var(--al-display); font-size: clamp(2.4rem, 5.4vw, 3.8rem); font-weight: 600; line-height: 1; letter-spacing: -0.01em; }
.al-brand__title a { text-decoration: none; }
.al-brand__title a:hover { color: var(--al-accent); }
.al-brand__tagline { margin: 8px 0 0; font-family: var(--al-display); font-style: italic; font-size: 1.2rem; color: var(--al-muted); }
.custom-logo { max-height: 90px; width: auto; }
.al-header__tools { display: flex; align-items: center; gap: 12px; }
.al-header .al-search__input { width: 240px; background: var(--al-paper); border-color: var(--al-line); }
.al-header .al-search__btn { width: 44px; background: var(--al-ink); }
.al-cta { white-space: nowrap; }
.al-navbar { border-top: 3px double var(--al-rule); border-bottom: 1px solid var(--al-rule); background: var(--al-paper); }
.al-menu { gap: 0; }
.al-menu > li + li { border-left: 1px solid var(--al-line); }
.al-menu a { padding: 11px 18px; font-family: var(--al-display); font-size: 1.1rem; }
.al-menu > li:first-child > a { padding-left: 0; }
.al-menu a:hover,
.al-menu .current-menu-item > a,
.al-menu .current_page_item > a { color: var(--al-accent); }
.al-menu .current-menu-item > a,
.al-menu .current_page_item > a { font-style: italic; }
.al-menu .sub-menu { background: var(--al-paper); border: 1px solid var(--al-rule); }
.al-menu .sub-menu li { border: 0; }
.al-menu .sub-menu a { padding: 6px 12px; font-size: 1rem; }
@media (max-width: 860px) {
	.al-header__tools { width: 100%; flex-wrap: wrap; }
	.al-header__tools .al-search { flex: 1 1 220px; }
	.al-header .al-search__input { width: 100%; }
	.al-nav-button { display: inline-flex; align-items: center; gap: 10px; padding: 12px 0; font-family: var(--al-display); font-size: 1.1rem; cursor: pointer; }
	.al-nav { display: none; padding-bottom: 10px; }
	.al-nav-toggle:checked ~ .al-nav { display: block; }
	.al-menu { flex-direction: column; align-items: stretch; }
	.al-menu > li + li { border-left: 0; border-top: 1px solid var(--al-line); }
	.al-menu a,
	.al-menu > li:first-child > a { padding: 8px 0; }
	.al-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; padding-left: 16px; }
}

/* Layout: tabbed sidebar on the left */
.al-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); grid-template-areas: "side main"; gap: 46px; align-items: start; padding-block: 40px 70px; }
.al-main { grid-area: main; min-width: 0; }
.al-sidebar { grid-area: side; display: flex; flex-direction: column; gap: 26px; min-width: 0; }
@media (max-width: 1180px) {
	.al-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "side"; gap: 50px; }
	.al-sidebar { max-width: 640px; }
}

.al-main-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 20px; padding-bottom: 14px; border-bottom: 1px solid var(--al-rule); }
.al-main-head__kicker { grid-column: 1 / -1; margin: 0; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--al-accent); }
.al-main-head__title { margin: 0; font-family: var(--al-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 500; font-style: italic; line-height: 1.05; }
.al-main-head__count { margin: 0; font-family: var(--al-display); font-size: 1.05rem; color: var(--al-muted); }

/* Index table */
.al-index { width: 100%; border-collapse: collapse; margin-top: 4px; }
.al-index th { padding: 12px 10px; border-bottom: 2px solid var(--al-rule); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-align: left; text-transform: uppercase; color: var(--al-muted); }
.al-index th:first-child { padding-left: 0; }
.al-row td { padding: 20px 10px; border-bottom: 1px solid var(--al-line); vertical-align: top; }
.al-row td:first-child { padding-left: 0; }
.al-row:hover td { background: rgba(122, 31, 43, 0.035); }
.al-row__no { width: 64px; font-family: var(--al-display); font-size: 1.6rem; font-style: italic; line-height: 1.1; color: var(--al-accent); }
.al-row__wrap { display: flex; align-items: flex-start; gap: 18px; }
.al-row__thumb { flex: none; width: 130px; aspect-ratio: 4 / 3; border: 1px solid var(--al-line); padding: 3px; background: var(--al-paper); }
.al-row__thumb img { height: 100%; aspect-ratio: 4 / 3; }
.al-row__thumb .al-thumb__fallback { font-size: 2.2rem; }
.al-row__text { min-width: 0; }
.al-row__title { margin: 0 0 6px; font-family: var(--al-display); font-size: 1.45rem; font-weight: 600; line-height: 1.15; }
.al-row__title a { text-decoration: none; }
.al-row__title a:hover { color: var(--al-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.al-row__excerpt { margin: 0 0 6px; font-size: 0.93rem; line-height: 1.55; color: var(--al-muted); }
.al-row__by { font-size: 0.82rem; color: var(--al-muted); }
.al-row__by a { color: var(--al-ink); font-weight: 600; text-decoration: none; }
.al-row__subject { width: 150px; }
.al-subject { display: inline-block; padding: 2px 0; border-bottom: 2px solid var(--al-tone); color: var(--al-tone); font-family: var(--al-display); font-size: 1.02rem; font-style: italic; text-decoration: none; }
.al-subject:hover { color: var(--al-ink); }
.al-row__filed { width: 110px; font-size: 0.85rem; color: var(--al-muted); white-space: nowrap; }
.al-row__filed time { display: block; color: var(--al-ink); font-weight: 600; }
@media (max-width: 760px) {
	.al-index thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
	.al-index,
	.al-index tbody,
	.al-row,
	.al-row td { display: block; width: 100%; }
	.al-row { position: relative; padding: 18px 0 18px 50px; border-bottom: 1px solid var(--al-line); }
	.al-row td { padding: 0; border: 0; }
	.al-row:hover td { background: none; }
	.al-row__no { position: absolute; left: 0; top: 18px; width: auto; font-size: 1.3rem; }
	.al-row__wrap { flex-direction: column; gap: 10px; }
	.al-row__thumb { width: 100%; aspect-ratio: 16 / 9; }
	.al-row__subject,
	.al-row__filed { display: inline-block !important; width: auto !important; margin: 8px 14px 0 0; }
	.al-row__filed time { display: inline; margin-right: 6px; }
}

/* Full posts (Customizer option) */
.al-feed--full { display: flex; flex-direction: column; gap: 40px; margin-top: 26px; }
.al-full { padding-bottom: 36px; border-bottom: 1px solid var(--al-line); }
.al-full__thumb { margin-bottom: 18px; border: 1px solid var(--al-line); padding: 4px; background: var(--al-paper); }
.al-full__title { margin: 0 0 8px; font-family: var(--al-display); font-size: clamp(1.8rem, 3.4vw, 2.4rem); line-height: 1.1; }
.al-full__title a:hover { color: var(--al-link); }
.al-full .al-meta { margin-bottom: 16px; }
.al-full__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 20px; }
.al-btn--ghost { background: transparent; color: var(--al-ink); border: 1px solid var(--al-ink); }
.al-chip { font-family: var(--al-display); font-style: italic; color: var(--al-tone); }
.al-chip:hover { text-decoration: underline; }
.al-meta a { color: var(--al-ink); }

/* Tabbed sidebar */
.al-tabs { background: var(--al-paper); border: 1px solid var(--al-rule); box-shadow: 6px 6px 0 var(--al-soft); }
.al-tabs__input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.al-tabs__bar { display: flex; border-bottom: 1px solid var(--al-rule); }
.al-tabs__tab { flex: 1; padding: 12px 8px 10px; border-right: 1px solid var(--al-rule); background: var(--al-soft); font-family: var(--al-display); font-size: 1.08rem; text-align: center; cursor: pointer; transition: background-color 0.15s ease; }
.al-tabs__tab:last-child { border-right: 0; }
.al-tabs__tab:hover { background: #e2d8c4; }
.al-tabs__panel { display: none; padding: 20px; }
.al-tabs__input--random:checked ~ .al-tabs__bar .al-tabs__tab--random,
.al-tabs__input--categories:checked ~ .al-tabs__bar .al-tabs__tab--categories,
.al-tabs__input--pages:checked ~ .al-tabs__bar .al-tabs__tab--pages { position: relative; background: var(--al-paper); font-style: italic; color: var(--al-accent); }
.al-tabs__input--random:checked ~ .al-tabs__bar .al-tabs__tab--random::after,
.al-tabs__input--categories:checked ~ .al-tabs__bar .al-tabs__tab--categories::after,
.al-tabs__input--pages:checked ~ .al-tabs__bar .al-tabs__tab--pages::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--al-paper); }
.al-tabs__input--random:focus-visible ~ .al-tabs__bar .al-tabs__tab--random,
.al-tabs__input--categories:focus-visible ~ .al-tabs__bar .al-tabs__tab--categories,
.al-tabs__input--pages:focus-visible ~ .al-tabs__bar .al-tabs__tab--pages { outline: 3px solid var(--al-focus); outline-offset: -4px; }
.al-tabs__input--random:checked ~ .al-tabs__panel--random,
.al-tabs__input--categories:checked ~ .al-tabs__panel--categories,
.al-tabs__input--pages:checked ~ .al-tabs__panel--pages { display: block; }

.al-box__title,
.al-box__heading { margin: 0 0 12px; font-family: var(--al-display); font-size: 1.4rem; font-weight: 500; font-style: italic; }
.al-box--random .al-box__title { margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--al-line); }
.al-box--random .al-box__heading { margin: 0; }
.al-box__hint { display: block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--al-muted); }
.al-rand { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px dotted var(--al-line); }
.al-rand:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.al-rand__thumb { aspect-ratio: 16 / 9; margin-bottom: 10px; border: 1px solid var(--al-line); padding: 3px; background: var(--al-paper); }
.al-rand__num { position: absolute; top: 8px; left: 8px; padding: 0 7px; background: var(--al-accent); color: #ffffff; font-family: var(--al-display); font-size: 0.85rem; font-style: italic; }
.al-rand__title { font-family: var(--al-display); font-size: 1.2rem; font-weight: 600; line-height: 1.2; }
.al-rand__title a:hover { color: var(--al-link); }
.al-rand__text { font-size: 0.86rem; line-height: 1.55; color: var(--al-muted); }
.al-rand__more { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--al-link); text-decoration: none; }
.al-rand__more:hover { text-decoration: underline; }
.al-catlist li,
.al-pagelist li { border-bottom: 1px dotted var(--al-line); }
.al-cat { display: flex; align-items: baseline; gap: 8px; padding: 9px 0; font-family: var(--al-display); font-size: 1.15rem; }
.al-cat__name { flex: 1; }
.al-cat::after { content: none; }
.al-count { font-family: var(--al-body); font-size: 0.8rem; color: var(--al-muted); }
.al-cat:hover .al-cat__name,
.al-cat.is-current .al-cat__name { color: var(--al-accent); font-style: italic; }
.al-pagelist a { display: block; padding: 9px 0; font-family: var(--al-display); font-size: 1.15rem; }
.al-pagelist a:hover,
.al-pagelist .current_page_item > a { color: var(--al-accent); font-style: italic; }
.al-sidebar > .widget.al-box { padding: 18px 20px; background: var(--al-paper); border: 1px solid var(--al-rule); }
.widget.al-box > :not(.al-box__title) { margin: 10px 0; }

/* Single + page */
.al-single__head { padding-bottom: 20px; border-bottom: 1px solid var(--al-rule); margin-bottom: 26px; }
.al-single__title { margin: 6px 0 14px; font-family: var(--al-display); font-size: clamp(2.3rem, 4.8vw, 3.4rem); font-weight: 600; line-height: 1.05; }
.al-single__thumb { margin-bottom: 28px; padding: 6px; border: 1px solid var(--al-line); background: var(--al-paper); }
.al-entry { font-family: var(--al-display); font-size: 1.28rem; line-height: 1.65; }
.al-entry > p:first-child::first-letter { float: left; margin: 0.05em 0.08em 0 0; font-size: 3.6em; line-height: 0.82; color: var(--al-accent); }
.al-entry h2,
.al-entry h3 { font-weight: 600; font-style: italic; }
.al-entry a { color: var(--al-link); text-decoration-color: var(--al-link); text-decoration-thickness: 1px; }
.al-entry blockquote,
.al-entry .wp-block-quote { padding: 10px 0 10px 24px; border-left: 3px double var(--al-accent); font-style: italic; font-size: 1.4rem; }
.al-author { background: var(--al-paper); border: 1px solid var(--al-line); border-radius: 0; }
.al-author__name { font-family: var(--al-display); font-style: italic; }
.al-postnav a { border-top: 1px solid var(--al-rule); }
.al-postnav__title { font-size: 1.2rem; }
.al-postnav a:hover .al-postnav__title { color: var(--al-link); }
.al-tags a { border-radius: 0; font-style: italic; }
.page-numbers { border: 1px solid var(--al-line); font-family: var(--al-display); font-size: 1.1rem; color: var(--al-ink); background: var(--al-paper); }
a.page-numbers:hover { border-color: var(--al-ink); }
.page-numbers.current { background: var(--al-ink); border-color: var(--al-ink); color: #ffffff; }
.al-kicker { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--al-accent); }
.al-archive-head { padding-bottom: 14px; border-bottom: 1px solid var(--al-rule); margin-bottom: 6px; }
.al-archive-head__title { font-family: var(--al-display); font-style: italic; font-weight: 500; }
.al-404,
.al-empty { background: transparent; text-align: left; padding: 0; }
.al-404__num { font-family: var(--al-display); font-style: italic; font-weight: 500; }
.al-404 .al-search,
.al-empty .al-search { margin-inline: 0; }
.comment-body,
.comment-respond { border-color: var(--al-line); border-radius: 0; }

/* Footer */
.al-footer { border-top: 3px double var(--al-rule); padding-block: 34px 28px; background: var(--al-paper); }
.al-footer a { text-decoration: none; }
.al-footer__widgets { border-bottom: 1px solid var(--al-line); }
.al-footer-widget__title { font-family: var(--al-display); font-style: italic; }
.al-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.al-footer__brand { margin: 0; font-family: var(--al-display); font-size: 1.8rem; font-weight: 600; }
.al-footer__menu { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; font-family: var(--al-display); font-size: 1.1rem; }
.al-footer__menu a:hover,
.al-footer__bottom a:hover { color: var(--al-link); }
.al-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--al-line); font-size: 0.85rem; color: var(--al-muted); }
.al-footer__bottom p { margin: 0; }
