/*
Theme Name:   Hoyer Antiquity
Theme URI:    https://example.com/hoyer-antiquity
Description:  A child theme of Twenty Ten styled for the Anchors of Antiquity lecture series by Kurt Hoyer — Archaeology and the Bible.
Author:       Kurt Hoyer
Template:     twentyten
Version:      1.03
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  hoyer-antiquity
*/

/* ── GOOGLE FONTS ──────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=EB+Garamond:ital,wght@0,400;0,600;1,400;1,600&display=swap');

/* ── CSS CUSTOM PROPERTIES ─────────────────────────────────────────────────── */
:root {
  --aoa-dark:    #2B3040;
  --aoa-gold:    #C8952B;
  --aoa-gold-lt: #E8BA5A;
  --aoa-cream:   #F5E4C2;
  --aoa-parch:   #F9F0DC;
  --aoa-brown:   #6B4423;
  --aoa-text:    #2E1E0E;
  --aoa-border:  #d4b483;
}

/* ── BASE ──────────────────────────────────────────────────────────────────── */
body {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--aoa-text);
  background-color: var(--aoa-parch);
}

a {
  color: var(--aoa-brown);
}
a:hover, a:focus {
  color: var(--aoa-gold);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel', 'Palatino Linotype', Palatino, serif;
  color: var(--aoa-brown);
  line-height: 1.25;
}

/* ── WRAPPER / LAYOUT ──────────────────────────────────────────────────────── */
#wrapper {
  background: var(--aoa-parch);
}

/* ── HEADER / BRANDING ─────────────────────────────────────────────────────── */
#header {
  background: var(--aoa-dark);
  padding: 0;
  width: 100%;
}

#masthead {
  margin: 0 auto;
  width: 940px;
}

/* Hide the text site-title and site-description since they're baked into
   our header image — we show them only to screen readers */
#site-title,
#site-description {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

#branding {
  background: var(--aoa-dark);
  display: block;
  width: 940px;
}

/* The custom header image itself */
#branding img {
  border: none;
  display: block;
  width: 940px;
  height: auto;
  max-width: 100%;
}

/* ── NAVIGATION BAR (#access) ──────────────────────────────────────────────── */
#access {
  background: var(--aoa-dark) !important;
  border-top: 2px solid var(--aoa-gold);
  border-bottom: 1px solid rgba(200,149,43,0.3);
  width: 940px;
  margin: 0 auto;
  float: none;
  clear: both;
}

#access .menu-header,
#access div.menu {
  margin: 0;
  width: 940px;
}

/* All nav links — explicit font, size, and color */
#access ul li a,
#access div.menu a {
  font-family: 'Cinzel', Georgia, serif !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.10em !important;
  text-transform: uppercase !important;
  color: #F5E4C2 !important;
  line-height: 44px;
  padding: 0 14px;
  text-decoration: none;
  display: block;
}

#access ul li a:hover,
#access li:hover > a,
#access ul ul li:hover > a {
  background: #1e2330 !important;
  color: var(--aoa-gold) !important;
}

/* Active / current page */
#access ul li.current_page_item > a,
#access ul li.current_page_ancestor > a,
#access ul li.current-menu-ancestor > a,
#access ul li.current-menu-item > a,
#access ul li.current-menu-parent > a {
  color: var(--aoa-gold) !important;
  border-bottom: 3px solid var(--aoa-gold);
}

/* Dropdown sub-menus */
#access ul ul {
  background: var(--aoa-dark);
  border: 1px solid var(--aoa-gold);
  top: 44px;
}
#access ul ul li a {
  background: var(--aoa-dark) !important;
  color: #F5E4C2 !important;
  line-height: 1.2 !important;
  padding: 10px 14px !important;
  width: 200px;
}
#access ul ul li a:hover {
  color: var(--aoa-gold) !important;
}

/* ── MAIN CONTENT ──────────────────────────────────────────────────────────── */
#main {
  background: var(--aoa-parch);
  width: 940px;
  margin: 0 auto;
}

#content {
  background: var(--aoa-parch);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 17px;
  color: var(--aoa-text);
}

#content p,
#content ul,
#content ol {
  line-height: 1.8;
}

/* Page / post titles */
.entry-title {
  font-family: 'Cinzel', serif;
  color: var(--aoa-brown);
  font-size: 1.9rem;
  border-bottom: 2px solid var(--aoa-gold);
  padding-bottom: 0.4rem;
  margin-bottom: 1.2rem;
}

.entry-title a {
  color: var(--aoa-brown);
  text-decoration: none;
}
.entry-title a:hover {
  color: var(--aoa-gold);
}

/* ── SIDEBAR ───────────────────────────────────────────────────────────────── */
#secondary {
  background: var(--aoa-parch);
}

.widget-area .widget-title {
  font-family: 'Cinzel', serif;
  color: var(--aoa-brown);
  font-size: 1rem;
  border-bottom: 1px solid var(--aoa-gold);
  padding-bottom: 0.3rem;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── LECTURE PAGE STYLES ───────────────────────────────────────────────────── */
.page-template-page-lecture #content {
  background: var(--aoa-parch);
}

.aoa-lecture-label {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--aoa-gold);
  display: block;
  margin-bottom: 0.3rem;
}

.aoa-lecture-intro {
  font-family: 'EB Garamond', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--aoa-brown);
  border-left: 4px solid var(--aoa-gold);
  padding-left: 1.2rem;
  margin: 1.5rem 0 2rem;
  line-height: 1.7;
}

.aoa-divider {
  border: none;
  border-top: 1px solid var(--aoa-gold);
  margin: 1.8rem 0;
  opacity: 0.5;
}

.aoa-pullquote {
  background: var(--aoa-cream);
  border-left: 5px solid var(--aoa-gold);
  border-right: 1px solid var(--aoa-border);
  padding: 1.2rem 1.5rem;
  margin: 2rem 0;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: var(--aoa-brown);
  font-style: italic;
}
.aoa-pullquote cite {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--aoa-gold);
  margin-top: 0.6rem;
  font-style: normal;
}

.aoa-nav-buttons {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.aoa-btn {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 2px;
  display: inline-block;
}
.aoa-btn-gold {
  background: var(--aoa-gold);
  color: var(--aoa-dark) !important;
}
.aoa-btn-gold:hover {
  background: var(--aoa-gold-lt);
  color: var(--aoa-dark) !important;
}
.aoa-btn-dark {
  background: var(--aoa-dark);
  color: var(--aoa-cream) !important;
}
.aoa-btn-dark:hover {
  background: #3c4560;
  color: var(--aoa-cream) !important;
}

/* ── ABOUT PAGE ────────────────────────────────────────────────────────────── */
.page-template-page-about .aoa-bio-wrap {
  overflow: hidden;
}

.aoa-headshot {
  float: right;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid var(--aoa-gold);
  box-shadow: 0 0 0 5px var(--aoa-dark);
  object-fit: cover;
  margin: 0 0 1.5rem 2rem;
}

.aoa-speaker-label {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--aoa-gold);
  display: block;
  margin-bottom: 0.3rem;
}

/* ── FOOTER ────────────────────────────────────────────────────────────────── */
#footer {
  background: var(--aoa-dark);
  border-top: 3px solid var(--aoa-gold);
  color: var(--aoa-cream);
  padding: 0;
}

#colophon {
  padding: 1.5rem 0;
}

#site-info {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--aoa-cream);
  float: left;
}
#site-info a {
  color: var(--aoa-gold);
  text-decoration: none;
}
#site-info a:hover {
  color: var(--aoa-gold-lt);
}

#site-generator {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  color: #6a7a90;
  float: right;
  letter-spacing: 0.04em;
}
#site-generator a {
  color: #6a7a90;
}

/* Footer widget area */
#footer-widget-area .widget-title {
  font-family: 'Cinzel', serif;
  color: var(--aoa-gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(200, 149, 43, 0.4);
  padding-bottom: 0.3rem;
  margin-bottom: 0.8rem;
}
#footer-widget-area .widget {
  color: var(--aoa-cream);
  font-size: 0.85rem;
}
#footer-widget-area a {
  color: var(--aoa-cream);
}
#footer-widget-area a:hover {
  color: var(--aoa-gold);
}

/* ── HOME PAGE: LECTURE CARDS ──────────────────────────────────────────────── */
.aoa-cards {
  display: flex;
  gap: 1.2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}
.aoa-card {
  flex: 1 1 250px;
  background: #fff8ee;
  border: 2px solid var(--aoa-gold);
  border-radius: 3px;
  padding: 1.3rem 1.2rem;
  box-shadow: 0 2px 10px rgba(43,48,64,0.08);
}
.aoa-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  color: var(--aoa-brown);
  border-bottom: 1px solid var(--aoa-gold);
  padding-bottom: 0.4rem;
  margin-bottom: 0.8rem;
  line-height: 1.4;
}
.aoa-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--aoa-text);
  margin-bottom: 1rem;
}

/* Series description box */
.aoa-series-desc {
  background: var(--aoa-cream);
  border: 1px solid var(--aoa-border);
  border-radius: 3px;
  padding: 1.5rem 2rem;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--aoa-text);
  line-height: 1.8;
  margin: 1.5rem 0 2rem;
  box-shadow: inset 0 0 30px rgba(180,140,80,0.08);
}

/* Section heading style */
.aoa-section-head {
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  color: var(--aoa-brown);
  border-bottom: 2px solid var(--aoa-gold);
  padding-bottom: 0.3rem;
  margin: 2rem 0 1rem;
}

/* ── RESPONSIVE ────────────────────────────────────────────────────────────── */
@media screen and (max-width: 960px) {
  #masthead,
  #access,
  #access .menu-header,
  #access div.menu,
  #main,
  #branding,
  #branding img {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  #access ul li a,
  #access div.menu a {
    padding: 0 8px !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.06em !important;
  }
  .aoa-cards {
    flex-direction: column;
  }
  .aoa-headshot {
    float: none;
    display: block;
    margin: 0 auto 1.5rem;
  }
}
