/*
Theme Name: Amaephya
Theme URI: https://amaephya.com
Author: Julia Nana-Fosua Dampare
Author URI: https://amaephya.com
Description: A refined, literary blog theme for Amaephya — stories for who you're becoming.
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: amaephya
Tags: blog, one-column, two-columns, custom-colors, custom-menu, featured-images, threaded-comments
*/

/* =====================================================
   CSS VARIABLES
   ===================================================== */
:root {
  --text: #1a1a1a;
  --text-sec: #3d3d3a;
  --text-muted: #888;
  --text-hint: #aaa;
  --border: #e0ddd8;
  --border-med: #d4cfc9;
  --bg: #f5f2ee;
  --surface: #fff;
  --surface-alt: #faf9f7;
  --accent: #c47a55;
  --accent-bg: #f5ede7;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --max: 1200px;
  --pad: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--text);
  text-decoration: none;
}

/* =====================================================
   HEADER / NAV — global (all pages)
   ===================================================== */
.ama-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  border-bottom: 0.5px solid #e0ddd8;
  transition: box-shadow 0.3s;
}
.ama-header.scrolled {
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.07);
}
.ama-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 64px;
  height: 72px;
  display: flex;
  align-items: center;
}
.ama-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: auto;
  text-decoration: none;
}
.ama-logo img,
.ama-logo img.custom-logo {
  height: 40px !important;
  width: auto !important;
  max-width: 180px !important;
  object-fit: contain;
  display: block;
}
.ama-logo .custom-logo-link {
  display: flex;
  align-items: center;
  line-height: 0;
}
.ama-logo-text {
  font-family: "Cormorant Garamond", serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #1a1a1a;
  line-height: 1;
}
.ama-nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-right: 32px;
}
.ama-nav-links a {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  transition: color 0.2s;
}
.ama-nav-links a:hover {
  color: #1a1a1a;
}
.ama-search-btn {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: #aaa;
  transition: color 0.2s;
  line-height: 1;
  flex-shrink: 0;
}
.ama-search-btn:hover {
  color: #1a1a1a;
}
.ama-search-btn svg {
  display: block;
}
.ama-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: 8px;
}
.ama-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #1a1a1a;
}

/* =====================================================
   SEARCH OVERLAY & SUGGESTIONS
   ===================================================== */
.ama-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(245, 242, 238, 0.97);
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.ama-search-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.ama-search-overlay-close {
  position: absolute;
  top: 24px;
  right: 36px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #aaa;
}
.ama-search-wrap {
  width: 100%;
  max-width: 580px;
  padding: 0 24px;
  position: relative;
}
.ama-search-input {
  font-family: "Cormorant Garamond", serif;
  font-size: 38px;
  font-weight: 300;
  background: transparent;
  border: none;
  border-bottom: 1px solid #e0ddd8;
  padding: 10px 0;
  color: #1a1a1a;
  outline: none;
  width: 100%;
}
.ama-search-input::placeholder {
  color: #ccc;
}
.ama-search-hint {
  font-size: 12px;
  color: #aaa;
  letter-spacing: 0.06em;
  text-align: center;
}
.ama-suggestions {
  width: 100%;
  margin-top: 6px;
  display: none;
  flex-direction: column;
}
.ama-suggestions.has-results {
  display: flex;
}
.ama-suggestion {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: #fff;
  border: 0.5px solid #e0ddd8;
  border-top: none;
  text-decoration: none;
  color: #1a1a1a;
  transition: background 0.15s;
}
.ama-suggestion:first-child {
  border-top: 0.5px solid #e0ddd8;
  border-radius: 8px 8px 0 0;
}
.ama-suggestion:last-child {
  border-radius: 0 0 8px 8px;
}
.ama-suggestion:only-child {
  border-radius: 8px;
}
.ama-suggestion:hover,
.ama-suggestion:focus {
  background: #faf9f7;
  outline: none;
}
.ama-suggestion-thumb {
  width: 52px;
  height: 52px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}
.ama-suggestion-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ama-suggestion-thumb--placeholder {
  background: linear-gradient(135deg, #e8ddd1, #d4c0ac);
}
.ama-suggestion-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.ama-suggestion-cat {
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #c47a55;
}
.ama-suggestion-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ama-suggestion-excerpt {
  font-size: 12px;
  font-weight: 300;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ama-suggestion-date {
  font-size: 11px;
  color: #bbb;
  flex-shrink: 0;
}
.ama-search-loading,
.ama-search-empty {
  padding: 16px;
  background: #fff;
  border: 0.5px solid #e0ddd8;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 300;
  color: #888;
  text-align: center;
  margin-top: 6px;
}

/* =====================================================
   MOBILE DRAWER
   ===================================================== */
.ama-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: #fff;
  z-index: 400;
  padding: 36px 32px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.ama-drawer.open {
  transform: translateX(0);
}
.ama-drawer-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #aaa;
  align-self: flex-end;
  cursor: pointer;
}
.ama-drawer-logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
}
.ama-drawer-links {
  display: flex;
  flex-direction: column;
}
.ama-drawer-links a {
  display: block;
  font-size: 15px;
  font-weight: 300;
  color: #3d3d3a;
  padding: 13px 0;
  border-bottom: 0.5px solid #e0ddd8;
}
.ama-drawer-links a:hover {
  color: #1a1a1a;
}
.ama-overlay-bg {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.3);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.ama-overlay-bg.show {
  opacity: 1;
  pointer-events: all;
}

/* =====================================================
   NEWSLETTER SECTION — global (all pages)
   ===================================================== */
.ama-newsletter {
  background: var(--surface);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  margin-top: 80px;
}
.ama-newsletter-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 60px var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.ama-nl-h3 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--text);
}
.ama-nl-p {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* .big-one — the newsletter plugin wrapper */
.big-one form {
  display: flex;
  gap: 10px;
  width: 100%;
  flex-direction: column;
}
.big-one input[type="text"],
.big-one input[type="email"] {
  flex: 1;
  min-width: 120px;
  padding: 13px 18px;
  font-size: 14px;
  font-family: "DM Sans", sans-serif;
  font-weight: 300;
  border: 0.5px solid #d4cfc9;
  border-radius: 8px;
  background: #faf9f7;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.2s;
}
.big-one input[type="text"]:focus,
.big-one input[type="email"]:focus {
  border-color: #888;
  background: #fff;
}
.big-one input[type="submit"] {
  padding: 13px 28px;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.big-one input[type="submit"]:hover {
  opacity: 0.82;
}
.big-one label {
  display: none;
}
.big-one .newsletter-privacy-field {
  display: none;
}

/* =====================================================
   FOOTER — simple (non-homepage pages)
   ===================================================== */
footer.site-footer {
  background: var(--surface);
  border-top: 0.5px solid var(--border);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-hint);
}
.footer-copy {
  font-size: 12px;
  color: #bbb;
  letter-spacing: 0.04em;
}
.footer-socials {
  display: flex;
  gap: 20px;
}
.footer-socials a {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-hint);
  transition: color 0.2s;
}
.footer-socials a:hover {
  color: var(--text);
}

/* =====================================================
   FOOTER — 4-column (homepage)
   ===================================================== */
.ama-footer {
  background: var(--surface);
  border-top: 0.5px solid var(--border);
}
.ama-footer-top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 60px var(--pad) 48px;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 56px;
}
.ama-footer-logo {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--text-hint);
  margin-bottom: 14px;
  display: block;
}
.ama-footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--text-hint);
  margin-bottom: 16px;
  display: block;
}
.ama-footer-brand-p {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-hint);
  line-height: 1.75;
  max-width: 240px;
}
.ama-footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-hint);
  margin-bottom: 20px;
}
.ama-footer-col a {
  display: block;
  font-size: 13px;
  font-weight: 300;
  color: var(--text-hint);
  margin-bottom: 13px;
  transition: color 0.2s;
}
.ama-footer-col a:hover {
  color: var(--text);
}
.ama-footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--pad);
  border-top: 0.5px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ama-footer-copy {
  font-size: 12px;
  color: #bbb;
  letter-spacing: 0.04em;
}
.ama-footer-socials {
  display: flex;
  gap: 20px;
}
.ama-footer-socials a {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-hint);
  transition: color 0.2s;
}
.ama-footer-socials a:hover {
  color: var(--text);
}

/* =====================================================
   SUBSCRIBE STRIP (simple pages)
   ===================================================== */
.subscribe-strip {
  background: var(--surface);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}
.subscribe-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 52px 48px;
  display: flex;
  gap: 48px;
  align-items: center;
  flex-direction: column;
}
.subscribe-text {
  flex: 1;
}
.subscribe-text h3 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 8px;
}
.subscribe-text p {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}
.subscribe-form {
  flex: 1;
  display: flex;
  gap: 10px;
}
.subscribe-form input {
  flex: 1;
  padding: 13px 18px;
  font-size: 14px;
  font-family: var(--sans);
  font-weight: 300;
  border: 0.5px solid var(--border-med);
  border-radius: 8px;
  background: var(--surface-alt);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.subscribe-form input:focus {
  border-color: #888;
  background: var(--surface);
}
.sub-btn {
  padding: 13px 28px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.sub-btn:hover {
  opacity: 0.82;
}

/* =====================================================
   UTILITIES
   ===================================================== */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-hint);
  margin-bottom: 16px;
  display: block;
}
.divider {
  border: none;
  border-top: 0.5px solid var(--border);
  margin: 48px 0;
}

/* =====================================================
   SINGLE POST CONTENT
   ===================================================== */
.post-content {
  max-width: 680px;
  margin: 0 auto;
}
.post-content p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.9;
  color: #333;
  margin-bottom: 24px;
}
.post-content h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  margin: 40px 0 16px;
}
.post-content h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  margin: 32px 0 12px;
}
.post-content blockquote {
  border-left: 2px solid #c8c3bc;
  margin: 32px 0;
  padding: 0 0 0 24px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: #555;
  line-height: 1.6;
}
.post-content img {
  border-radius: 6px;
  margin: 32px 0;
}
.post-content a {
  border-bottom: 1px solid #c8c3bc;
}
.post-content a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .ama-newsletter-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .ama-footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}
@media (max-width: 960px) {
  .subscribe-inner {
    flex-direction: column;
    gap: 28px;
    padding: 40px 40px;
  }
  .subscribe-form {
    width: 100%;
  }
}
@media (max-width: 768px) {
  .ama-nav {
    padding: 0 24px;
  }
  .ama-nav-links,
  .ama-search-btn {
    display: none;
  }
  .ama-hamburger {
    display: flex;
  }
  .ama-footer-top {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }
  .ama-footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
  .ama-newsletter-inner {
    padding: 40px 28px;
  }
}
@media (max-width: 600px) {
  .footer-inner,
  .subscribe-inner {
    padding-left: 24px;
    padding-right: 24px;
  }
  .footer-inner {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
  .subscribe-form {
    flex-direction: column;
  }
  .ama-search-wrap {
    padding: 0 16px;
  }
  .ama-search-input {
    font-size: 28px;
  }
  .big-one form {
    flex-direction: column;
  }
}
@media (max-width: 480px) {
  .ama-footer-bottom {
    padding-left: 20px;
    padding-right: 20px;
  }
}
/* Progress bar */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: #c47a55;
  z-index: 9999;
  transition: width 0.1s linear;
}
