/*
Theme Name: Dengub
Theme URI: https://evgenydengub.com
Author: Evgeny Dengub
Description: A quiet, editorial block theme for evgenydengub.com. Home and Publications pages are created automatically on activation, and all text, images and lists are editable in the WordPress editor.
Version: 1.2
Requires at least: 6.6
Tested up to: 6.8
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: dengub
*/

a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid #8E2F1C; outline-offset: 3px; border-radius: 2px; }

/* Header and footer */
.site-header { padding-top: 36px; padding-bottom: 24px; border-bottom: 1px solid #E2DBD0; }
.site-header .wp-block-site-title a { text-decoration: none; }
.site-header .wp-block-navigation a { text-decoration: none; }
.site-header .wp-block-navigation a:hover { color: #8E2F1C; text-decoration: underline; }
.site-footer { padding-top: 28px; padding-bottom: 40px; border-top: 1px solid #E2DBD0; font-size: 15px; color: #6A6157; }
.site-footer p { margin: 0; }

/* Page structure */
.intro { padding-top: 72px; padding-bottom: 64px; gap: 64px; }
.intro h1 { margin-top: 0; }
.affil { font-size: 21px; color: #6A6157; margin-top: -8px !important; }
.lead { font-size: 18px; line-height: 1.7; color: #3A352E; max-width: 64ch; }
.page-head { padding-top: 64px; padding-bottom: 24px; }
.section { border-top: 1px solid #E2DBD0; padding-top: 56px; padding-bottom: 56px; gap: 48px; }
.section h2 { margin-top: 0; overflow-wrap: normal; word-break: normal; hyphens: manual; }
.section > .wp-block-column:first-child { flex: 0 0 240px !important; min-width: 240px; }
.section h3 { margin-top: 32px; }
.wp-block-column > h3:first-child { margin-top: 0; }
.section p { color: #3A352E; max-width: 64ch; }
.note, .section p.note { color: #6A6157; }

/* Plain lists (no bullets) */
ul.plain { list-style: none; padding-left: 0; margin: 0 0 20px; }
ul.plain li { margin-bottom: 16px; font-size: 17px; line-height: 1.55; }

/* Images: covers, portrait, photos. Empty images show a soft tinted panel. */
.wp-block-image.is-cover, .wp-block-image.is-portrait, .wp-block-image.is-photo { margin: 0; background: #ECE5DA; border-radius: 3px; overflow: hidden; }
.wp-block-image.is-cover { aspect-ratio: 2 / 3; }
.wp-block-image.is-portrait { aspect-ratio: 4 / 5; }
.wp-block-image.is-photo { aspect-ratio: 1 / 1; }
.wp-block-image.is-cover img, .wp-block-image.is-portrait img, .wp-block-image.is-photo img { width: 100%; height: 100%; object-fit: cover; }
.wp-block-image img:not([src]) { display: none; }

/* Book entries on the Publications page */
.books { gap: 36px 40px; }
.book { gap: 20px; margin-bottom: 0; }
.book p { font-size: 17px; line-height: 1.55; margin: 0 0 4px; }
.book p.book-title { font-size: 18px; font-weight: 600; line-height: 1.35; color: #222019; }

.shelf { gap: 24px; }

@media (max-width: 781px) {
  .intro { padding-top: 40px; padding-bottom: 48px; gap: 32px; }
  .intro .wp-block-image.is-portrait { max-width: 280px; }
  .intro h1 { font-size: 32px; }
  .section { padding-top: 44px; padding-bottom: 44px; gap: 20px; }
  .section > .wp-block-column:first-child { flex-basis: 100% !important; min-width: 0; }
  .page-head { padding-top: 40px; }
}
