/*
Theme Name: The Chronicle
Description: Editorial magazine theme. Every homepage section, the header, footer and colours are edited under "Chronicle" in WP Admin.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: chronicle
*/
/* Utility classes live in assets/css/theme.css (generated, see tailwind.config.js). */

body { min-height: max(884px, 100dvh); }
.premium-shadow { box-shadow: 0 4px 20px rgba(15, 23, 42, .05); }
.premium-shadow:hover { box-shadow: 0 8px 30px rgba(15, 23, 42, .08); transform: translateY(-2px); transition: all .3s ease; }

/* Keeps a dropdown open while the pointer crosses the gap above it. */
.nav-dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }

.entry-content > * + * { margin-top: 1.25em; }
.entry-content h2 { font: 700 32px/1.3 "Playfair Display", serif; margin-top: 1.6em; }
.entry-content h3 { font: 600 24px/1.4 "Playfair Display", serif; margin-top: 1.5em; }
.entry-content a { color: rgb(var(--c-primary)); text-decoration: underline; }
.entry-content ul { list-style: disc; padding-left: 1.5em; }
.entry-content ol { list-style: decimal; padding-left: 1.5em; }
.entry-content blockquote { border-left: 3px solid rgb(var(--c-primary)); padding-left: 1.25em; font-style: italic; }
.entry-content img { border-radius: .5rem; }

.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid rgb(var(--c-outline-variant)); border-radius: .25rem; font-size: 14px; }
.pagination .current, .pagination a:hover { background: rgb(var(--c-primary)); color: #fff; }

.comment-list { display: flex; flex-direction: column; gap: 24px; }
.comment-list .children { margin: 24px 0 0 24px; }
.comment-form { display: grid; gap: 16px; }
.comment-form label { display: block; font-size: 14px; font-weight: 500; }
.comment-form input:not([type=checkbox]):not([type=submit]), .comment-form textarea { width: 100%; border-radius: .25rem; border-color: rgb(var(--c-outline-variant)); }
.comment-form .submit { background: rgb(var(--c-primary)); color: #fff; padding: 12px 24px; border-radius: .25rem; cursor: pointer; }

/* Keep the sticky header below the WordPress toolbar when signed in. */
.admin-bar header.sticky { top: 32px; }
@media (max-width: 782px) { .admin-bar header.sticky { top: 46px; } }
@media (max-width: 600px) { .admin-bar header.sticky { top: 0; } }
