/*
Theme Name: Weatherall Editorial
Theme URI: https://jamesowenweatherall.com
Author: James Owen Weatherall
Author URI: https://jamesowenweatherall.com
Description: Editorial light block theme for jamesowenweatherall.com. Serif body (Source Serif 4), Archivo display headings, warm off-white ground, terracotta accent. Designed for a senior academic site with heavy publication content.
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: weatherall-editorial
Tags: block-patterns, full-site-editing, blog-portfolio, editor-style, wide-blocks
*/

/* Self-hosted fonts */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/Archivo-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/Archivo-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/Archivo-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/SourceSerif4-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/SourceSerif4-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/SourceSerif4-600-normal.woff2") format("woff2");
}

/* ---------- layout helpers ---------- */

/* hero portrait: fixed width, 4:5, slight radius */
.hero-portrait img { width: 360px; max-width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 4px; }
@media (max-width: 781px) { .hero-portrait img { width: 280px; } }

.bio-portrait img { width: 240px; max-width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; border-radius: 4px; }
@media (max-width: 781px) { .bio-portrait img { width: 200px; } }

/* right rails: hairline left border */
.bio-rail, .research-rail, .socal-rail { border-left: 1px solid var(--wp--preset--color--line); padding-left: 2rem; }
@media (max-width: 781px) {
  .bio-rail, .research-rail, .socal-rail { border-left: none; border-top: 1px solid var(--wp--preset--color--line); padding-left: 0; padding-top: 1.6rem; margin-top: 1.6rem; }
}

/* rail list style: em-dash bullets */
.rail-list { list-style: none; padding-left: 0; margin-left: 0; }
.rail-list > li { padding-left: 1rem; position: relative; margin-bottom: 0.6rem; }
.rail-list > li::before { content: "\2014"; position: absolute; left: 0; color: var(--wp--preset--color--accent); }

/* home publication list: two columns, em-dash markers */
.home-pub-list ul { columns: 2; column-gap: 3.5rem; list-style: none; padding-left: 0; }
.home-pub-list li { break-inside: avoid; margin-bottom: 1rem; padding-left: 1.1rem; position: relative; }
.home-pub-list li::before { content: "\2014"; position: absolute; left: 0; color: var(--wp--preset--color--accent); }
@media (max-width: 781px) { .home-pub-list ul { columns: 1; } }

/* dark news band list */
.news-band-list ul { list-style: none; padding-left: 0; }
.news-band-list li { padding: 0.9rem 0; border-bottom: 1px solid rgba(250,249,246,.14); margin-bottom: 0; }
.news-band-list li:last-child { border-bottom: none; }
.news-band-list .wp-block-post-date { margin-bottom: 0.3rem; }
.news-band-list .wp-block-post-date time { color: #d8926f; }
.news-band-list a { color: var(--wp--preset--color--inverse); }
.news-band-list .wp-block-post-excerpt__excerpt { color: rgba(250,249,246,0.72); }

/* page-head kicker used by custom templates */
.page-kicker { margin-bottom: 0.9rem; }

/* books page rows: cover left, text right */
.books-content .wp-block-media-text { margin-bottom: 2.75rem; }
.books-content h2 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.books-content .book-meta { font-family: var(--wp--preset--font-family--heading); font-size: 0.8438rem; font-weight: 600; letter-spacing: 0.02em; color: var(--wp--preset--color--accent); text-transform: uppercase; margin-bottom: 1.1rem; }

/* articles page citation lists */
.articles-content ul { list-style: none; padding-left: 0; }
.articles-content li { padding: 0.95rem 0; border-bottom: 1px solid var(--wp--preset--color--line); font-size: 0.9688rem; line-height: 1.6; }
.articles-content h2 { padding-bottom: 0.6rem; margin-bottom: 0.9rem; }
.articles-content h3 { margin-top: 2.75rem; }

/* teaching rows */
.teaching-content ul { list-style: none; padding-left: 0; }
.teaching-content li { padding: 0.8rem 0; border-bottom: 1px solid var(--wp--preset--color--line); font-size: 1rem; }
.teaching-content h2 { margin-top: 2.75rem; }
.teaching-content h2:first-child { margin-top: 0; }

/* resources rows */
.resources-content ul { list-style: none; padding-left: 0; max-width: 860px; }
.resources-content li { padding: 1rem 0; border-bottom: 1px solid var(--wp--preset--color--line); }

/* contact grid */
.contact-content { max-width: 900px; }
.contact-content h3 { font-family: var(--wp--preset--font-family--heading); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wp--preset--color--accent); margin-bottom: 0.7rem; }

/* research page: program blocks */
.research-main h2 { font-size: 1.4375rem; margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--wp--preset--color--line); }
.research-main h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.research-main p { margin-bottom: 1.1rem; }

/* socal rail */
.socal-rail h4 { margin-top: 1.8rem; }
.socal-rail h4:first-child { margin-top: 0.2rem; }
