<?php
/**
 * Classic fallback. Block themes use templates/index.html, but this file
 * keeps the theme installable on older WordPress versions and satisfies
 * the WP theme directory minimum-file requirement.
 *
 * @package WE88_Arena
 */

defined( 'ABSPATH' ) || exit;

get_header();
?>
<main id="main" class="site-main" style="padding:2rem 1rem;max-width:760px;margin:0 auto;font-size:14px;">
	<?php if ( have_posts() ) : ?>
		<?php while ( have_posts() ) : the_post(); ?>
			<article <?php post_class(); ?> style="margin-bottom:2rem;">
				<header>
					<h2 style="font-family:'Inter','Noto Sans Thai',system-ui,sans-serif;font-weight:700;font-size:1.25rem;letter-spacing:0;">
						<a href="<?php the_permalink(); ?>" style="color:inherit;text-decoration:none;"><?php the_title(); ?></a>
					</h2>
					<p style="color:#8b96ab;font-size:0.75rem;"><?php echo esc_html( get_the_date() ); ?></p>
				</header>
				<div class="entry-content" style="line-height:1.55;">
					<?php the_excerpt(); ?>
				</div>
			</article>
		<?php endwhile; ?>

		<?php the_posts_navigation(); ?>
	<?php else : ?>
		<p><?php esc_html_e( 'Nothing here yet.', 'we88-express' ); ?></p>
	<?php endif; ?>
</main>
<?php
get_footer();
