/*
Theme Name: Aeternum Starter
Theme URI: https://example.com/aeternum
Author: Swamp School
Author URI: https://swampschool.org
Description: A clean, mobile-first starter theme with a modern layout, accessible navigation, and simple customization via the Customizer.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aeternum
Tags: one-column, custom-logo, custom-menu, footer-widgets, blog
*/

/* Base Typography */
:root {
  --bg: #0e0f10;
  --card: #15171a;
  --muted: #8b949e;
  --text: #e6edf3;
  --accent: #4cc9f0;
  --accent-2: #2ec4b6;
  --warning: #ffb703;
  --radius: 16px;
  --maxw: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1rem; }

.site-header { background: rgba(0,0,0,.3); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(8px); border-bottom: 1px solid #222; }
.brand { display: flex; align-items: center; gap: .75rem; padding: .75rem 0; }
.brand .site-title { margin: 0; font-size: 1.1rem; font-weight: 700; }
.brand .site-description { margin: 0; color: var(--muted); font-size: .9rem; }

.nav-toggle { display: none; background: transparent; border: 1px solid #333; color: var(--text); padding: .5rem .75rem; border-radius: 10px; }
.main-nav ul { list-style: none; display: flex; gap: 1rem; margin: 0; padding: 0; }
.main-nav a { display: inline-block; padding: .75rem .25rem; border-radius: 8px; }
.main-nav a:focus, .main-nav a:hover { background: #1f2328; text-decoration: none; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: .5rem; }
  .main-nav ul { display: none; flex-direction: column; gap: 0; background: #0f1115; border: 1px solid #222; border-radius: 12px; margin-top: .5rem; overflow: hidden; }
  .main-nav.open ul { display: flex; }
  .main-nav a { padding: .9rem 1rem; }
}

.hero {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 6rem 1rem 4rem;
  background: radial-gradient(55% 90% at 50% 0%, #1a1f2b 0%, #0e0f10 60%);
  border-bottom: 1px solid #1f2328;
}
.hero h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 0 0 .5rem; }
.hero p { color: var(--muted); margin-top: .25rem; max-width: 60ch; }

.grid { display: grid; gap: 1rem; grid-template-columns: repeat(12, 1fr); }
.card { background: var(--card); padding: 1.25rem; border-radius: var(--radius); border: 1px solid #222; }
.shadow { box-shadow: 0 10px 30px rgba(0,0,0,.25); }

.cards-3 > * { grid-column: span 4; }
@media (max-width: 900px) { .cards-3 > * { grid-column: span 6; } }
@media (max-width: 640px) { .cards-3 > * { grid-column: span 12; } }

.site-footer { margin-top: 4rem; border-top: 1px solid #1f2328; background: #0f1115; }
.site-footer .widgets { display: grid; gap: 1rem; grid-template-columns: repeat(12, 1fr); padding: 2rem 0; }
.site-footer .widgets > * { grid-column: span 4; }
@media (max-width: 900px) { .site-footer .widgets > * { grid-column: span 6; } }
@media (max-width: 640px) { .site-footer .widgets > * { grid-column: span 12; } }

.wp-block-image img, img { max-width: 100%; height: auto; border-radius: 12px; }
pre, code { background: #0a0c10; padding: .2rem .4rem; border-radius: 6px; }
button, .button, input[type=submit] { background: linear-gradient(180deg, #30363d, #1f2328); border: 1px solid #343a40; color: var(--text); border-radius: 10px; padding: .6rem 1rem; cursor: pointer; }
button:hover, .button:hover { filter: brightness(1.1); }

.pagination { display: flex; gap: .5rem; justify-content: center; padding: 1.5rem 0; }
.pagination a, .pagination span { padding: .4rem .7rem; border: 1px solid #2b3036; border-radius: 8px; }
.pagination .current { background: #1f2328; }
