/*
Theme Name: Abarforth Author
Theme URI: https://abarforth.com
Author: Charles Abarforth
Author URI: https://abarforth.com
Description: A custom author website theme built for Charles Abarforth, featuring a Homepage and About Me page that are fully editable from the WordPress Pages screen. Dark, cinematic styling to suit military sci-fi / techno-thriller fiction.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: abarforth
*/

/* -------------------------------------------------
   0. CSS VARIABLES
------------------------------------------------- */
:root{
  --bg:            #0a0c11;
  --bg-alt:        #12151d;
  --surface:       #171b25;
  --surface-2:     #1e2330;
  --border:        #2a3040;
  --text:          #e9ebf2;
  --text-muted:    #9aa3b8;
  --text-faint:    #6b7690;
  --accent:        #e0a94c;
  --accent-hover:  #f0bc63;
  --accent-blue:   #4fc3f7;
  --max-width:     1180px;
  --radius:        4px;
  --font-heading:  'Oswald', 'Arial Narrow', Arial, sans-serif;
  --font-body:     'Lora', Georgia, 'Times New Roman', serif;
  --font-mono:     'Courier New', Courier, monospace;
}

/* -------------------------------------------------
   1. RESET / BASE
------------------------------------------------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; height: auto; display: block; }
a{ color: var(--accent-blue); text-decoration: none; }
a:hover{ color: var(--accent); }
ul{ padding-left: 1.2em; }
h1,h2,h3,h4{
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  margin: 0 0 0.5em;
}
h1{ font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2{ font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3{ font-size: 1.3rem; }
p{ margin: 0 0 1.2em; }
.screen-reader-text{
  position:absolute!important; clip:rect(1px,1px,1px,1px);
  width:1px; height:1px; overflow:hidden; word-wrap:normal!important;
}

/* -------------------------------------------------
   2. LAYOUT HELPERS
------------------------------------------------- */
.wrap{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section{ padding: 84px 0; }
.section--tight{ padding: 56px 0; }
.section--alt{ background: var(--bg-alt); }
.text-center{ text-align: center; }
.eyebrow{
  display:inline-block;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--accent);
  border: 1px solid rgba(224,169,76,0.4);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

/* -------------------------------------------------
   3. SITE HEADER
------------------------------------------------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,12,17,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 18px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.site-branding{ display:flex; align-items:center; gap:12px; }
.site-title{
  margin:0;
  font-size: 1.3rem;
  letter-spacing: 0.12em;
}
.site-title a{ color:#fff; }
.site-title a:hover{ color: var(--accent); }
.custom-logo{ max-height:44px; width:auto; }

.main-navigation ul{
  list-style:none;
  display:flex;
  gap: 30px;
  margin:0;
  padding:0;
}
.main-navigation a{
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a{ color: var(--accent); }

.menu-toggle{
  display:none;
  background:none;
  border:1px solid var(--border);
  color:#fff;
  padding:8px 12px;
  border-radius: var(--radius);
  cursor:pointer;
  font-size: 1rem;
}

@media (max-width: 780px){
  .menu-toggle{ display:inline-block; }
  .main-navigation{
    display:none;
    width:100%;
    order:3;
    border-top: 1px solid var(--border);
    margin-top: 14px;
    padding-top: 14px;
  }
  .main-navigation.is-open{ display:block; }
  .main-navigation ul{ flex-direction:column; gap:16px; }
  .site-header__inner{ flex-wrap:wrap; }
}

/* -------------------------------------------------
   4. BUTTONS
------------------------------------------------- */
.btn{
  display:inline-block;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  padding: 15px 34px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s ease;
}
.btn--primary{ background: var(--accent); color:#151515; }
.btn--primary:hover{ background: var(--accent-hover); color:#151515; }
.btn--ghost{ background: transparent; border-color: rgba(255,255,255,0.35); color:#fff; }
.btn--ghost:hover{ border-color:#fff; color:#fff; }

/* -------------------------------------------------
   5. HERO (Homepage template)
------------------------------------------------- */
.hero{
  position: relative;
  min-height: 88vh;
  display:flex;
  align-items:center;
  background-size: cover;
  background-position: center;
  background-color: #05060a;
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(5,6,10,0.55) 0%, rgba(5,6,10,0.75) 55%, var(--bg) 100%);
}
.hero__inner{
  position:relative;
  z-index:2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 90px;
  width:100%;
}
.hero__tagline{
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 18px;
}
.hero__title{
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin-bottom: 20px;
  max-width: 820px;
}
.hero__desc{
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 34px;
}
.hero__actions{ display:flex; gap:18px; flex-wrap:wrap; }

/* -------------------------------------------------
   6. PAGE CONTENT (the_content output)
------------------------------------------------- */
.page-content{
  max-width: 760px;
  margin: 0 auto;
}
.page-content.page-content--wide{ max-width: var(--max-width); }
.page-content h2, .page-content h3{ margin-top: 1.4em; }
.page-content img{ border-radius: var(--radius); }
.page-content figure{ margin: 2em 0; }
.page-content figcaption{
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 8px;
  text-align:center;
}
.page-content blockquote{
  border-left: 3px solid var(--accent);
  margin: 1.6em 0;
  padding: 0.2em 0 0.2em 1.4em;
  color: var(--text-muted);
  font-style: italic;
}

/* -------------------------------------------------
   7. CTA / NEWSLETTER BAND
------------------------------------------------- */
.cta-band{
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align:center;
}
.cta-band h2{ margin-bottom: 14px; }
.cta-band p{ color: var(--text-muted); max-width: 560px; margin-left:auto; margin-right:auto; }
.cta-band__form{
  margin-top: 30px;
  display:flex;
  justify-content:center;
  gap: 12px;
  flex-wrap:wrap;
}

/* -------------------------------------------------
   8. GALLERY / TEASER GRID
------------------------------------------------- */
.teaser-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 40px;
}
@media (max-width: 780px){
  .teaser-grid{ grid-template-columns: 1fr; }
}
.teaser-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
}
.teaser-card img{ width:100%; aspect-ratio: 4/3; object-fit: cover; }
.teaser-card__body{ padding: 18px 20px 22px; }
.teaser-card__label{
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 6px;
}
.teaser-card p{ color: var(--text-muted); font-size: 0.95rem; margin:0; }

/* -------------------------------------------------
   9. ABOUT PAGE
------------------------------------------------- */
.about-hero{
  padding: 70px 0 20px;
}
.about-hero__grid{
  display:grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items:start;
}
@media (max-width: 780px){
  .about-hero__grid{ grid-template-columns: 1fr; }
}
.about-hero__photo img{
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.about-hero__name{ margin-bottom: 6px; }
.about-hero__role{
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  font-size: 0.9rem;
  margin-bottom: 26px;
}

/* -------------------------------------------------
   10. FOOTER
------------------------------------------------- */
.site-footer{
  border-top: 1px solid var(--border);
  padding: 48px 0;
  background: var(--bg-alt);
}
.site-footer__inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap: 20px;
}
.site-footer p{ margin:0; color: var(--text-faint); font-size: 0.9rem; }
.footer-social{ display:flex; gap:18px; list-style:none; margin:0; padding:0; }
.footer-social a{
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.footer-social a:hover{ color: var(--accent); }

/* -------------------------------------------------
   11. GENERIC PAGE (page.php fallback)
------------------------------------------------- */
.generic-page{ padding: 80px 0; }
.generic-page__header{ text-align:center; margin-bottom: 50px; }
