/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  AuthorWings child theme — a premium editorial Journal, Archives, and Single Post experience for GeneratePress.
 Author:       AuthorWings
 Author URI:   https://authorwings.com
 Template:     generatepress
 Version:      2.3.1
*/

/*
 * TYPOGRAPHY NOTE
 * This child theme does NOT set fonts. Font family, size, line-height and
 * weight for headings (h1–h3) and body text come from the theme / Customizer
 * global typography. Only small UI labels (eyebrows, meta, pills, buttons)
 * keep a specific size, because there is no global setting for those — and
 * even those inherit the Customizer font family.
 */

/* ==========================================================================
   Design tokens (AuthorWings palette)
   ========================================================================== */
:root {
	--aw-green:   #4F5B42;
	--aw-green-d: #3E4834;
	--aw-terra:   #9E6B4F;
	--aw-terra-d: #8A5C43;
	--aw-brown:   #6E5642;
	--aw-ink:     #4A4335;
	--aw-body:    #5A5346;
	--aw-taupe:   #A99B82;
	--aw-sage:    #CBD6B8;
	--aw-cream:   #FBF8F1;
	--aw-beige:   #F2EEE3;
	--aw-beige2:  #EDE6D6;
	--aw-white:   #FFFFFF;
	--aw-dark:    #1C2439;   /* deep navy — hero / dark bands */
	--aw-dark-2:  #141B2B;   /* darker navy for the gradient */
	--aw-gold:    #A8773A;   /* highlighted / accent words in titles */

	--aw-shadow:    0 6px 20px rgba(43,49,36,0.07);
	--aw-shadow-lg: 0 22px 50px rgba(43,49,36,0.16);
	--aw-radius: 16px;
	--aw-wide: 1120px;
	--aw-read: 720px;
}

/* Full-bleed helper for edge-to-edge bands inside GeneratePress' container. */
.aw-fullbleed { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

body { background: var(--aw-cream); }
.aw-inner { max-width: var(--aw-wide); margin: 0 auto; padding: 0 24px; }

/* ==========================================================================
   Bits (small UI labels keep a size; no font-family — inherits theme)
   ========================================================================== */
.aw-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--aw-terra); margin: 0 0 14px; }
.aw-eyebrow--light { color: var(--aw-sage); }

.aw-pill { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.aw-pill--soft { background: rgba(158,107,79,0.14); color: var(--aw-terra); }

.aw-btn {
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--aw-terra); color: var(--aw-white);
	font-weight: 700;
	padding: 14px 28px; border-radius: 10px; border: 0; cursor: pointer;
	text-decoration: none; transition: background .2s ease, transform .2s ease;
}
.aw-btn:hover { background: var(--aw-terra-d); color: var(--aw-white); transform: translateY(-1px); }

.aw-more {
	display: inline-flex; align-items: center; gap: 7px;
	font-weight: 700;
	color: var(--aw-terra); text-decoration: none;
	transition: gap .2s ease, color .2s ease;
}
.aw-more:hover { gap: 12px; color: var(--aw-terra-d); }
.aw-more svg { width: 17px; height: 17px; }

.aw-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--aw-taupe); display: inline-block; }

/* ==========================================================================
   Dark page hero (blog + archives)
   ========================================================================== */
.aw-hero {
	background: radial-gradient(120% 140% at 50% 0%, var(--aw-dark) 0%, var(--aw-dark-2) 100%);
	color: var(--aw-cream); text-align: center; padding: 84px 24px 92px;
}
.aw-hero__inner { max-width: 720px; margin: 0 auto; }
.aw-hero__crumb { font-size: 13px; letter-spacing: .04em; color: var(--aw-sage); margin: 0 0 20px; opacity: .9; }
.aw-hero__crumb a { color: var(--aw-sage); text-decoration: none; }
.aw-hero__crumb a:hover { color: var(--aw-white); }
.aw-hero__title { color: var(--aw-cream); margin: 0; }        /* size/font from Customizer h1 */
.aw-hero__title em { font-style: italic; color: var(--aw-sage); }
.aw-hero__sub { color: var(--aw-beige); max-width: 560px; margin: 20px auto 0; opacity: .92; }

/* ==========================================================================
   Featured post
   ========================================================================== */
.aw-featured {
	display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
	background: var(--aw-white); border: 1px solid var(--aw-beige2);
	border-radius: var(--aw-radius); overflow: hidden; box-shadow: var(--aw-shadow);
	margin: -56px auto 0; max-width: var(--aw-wide); position: relative;
}
.aw-featured__media { display: block; overflow: hidden; min-height: 320px; background: var(--aw-sage); }
.aw-featured__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.aw-featured:hover .aw-featured__media img { transform: scale(1.04); }
.aw-featured__body { padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; }
.aw-featured__title { margin: 14px 0 14px; }                  /* size/font from Customizer heading */
.aw-featured__title a { color: var(--aw-ink); text-decoration: none; transition: color .2s ease; }
.aw-featured__title a:hover { color: var(--aw-terra); }
.aw-featured__excerpt { color: var(--aw-body); margin: 0 0 22px; }
@media (max-width: 860px) { .aw-featured { grid-template-columns: 1fr; } .aw-featured__media { min-height: 240px; } .aw-featured__body { padding: 30px 26px 34px; } }

/* ==========================================================================
   Category tabs
   ========================================================================== */
.aw-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: var(--aw-wide); margin: 44px auto 40px; padding: 0 24px; }
.aw-tab {
	font-size: 14px; font-weight: 600; color: var(--aw-brown);
	background: var(--aw-white); border: 1px solid var(--aw-beige2);
	padding: 10px 20px; border-radius: 999px; text-decoration: none; transition: all .2s ease;
}
.aw-tab:hover { border-color: var(--aw-sage); color: var(--aw-ink); }
.aw-tab.is-active { background: var(--aw-dark); border-color: var(--aw-dark); color: var(--aw-cream); }

/* ==========================================================================
   Post grid + cards
   ========================================================================== */
.aw-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; max-width: var(--aw-wide); margin: 0 auto; padding: 0 24px; }
@media (max-width: 1024px) { .aw-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px)  { .aw-post-grid { grid-template-columns: 1fr; } }

.aw-card { background: var(--aw-white); border: 1px solid var(--aw-beige2); border-radius: var(--aw-radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--aw-shadow); transition: transform .35s ease, box-shadow .35s ease; }
.aw-card:hover { transform: translateY(-6px); box-shadow: var(--aw-shadow-lg); }
.aw-card__media { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--aw-sage); position: relative; }
.aw-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.aw-card:hover .aw-card__media img { transform: scale(1.06); }
.aw-card__media, .aw-featured__media { text-decoration: none; }
.aw-card__media--empty { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--aw-sage), var(--aw-beige2)); }
.aw-card__ph { font-weight: 800; font-size: 44px; color: var(--aw-green); text-decoration: none; line-height: 1; }
.aw-card__body { display: flex; flex-direction: column; flex-grow: 1; padding: 24px 24px 26px; }
.aw-card__meta { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; flex-wrap: wrap; }
.aw-card__cat { font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--aw-terra); text-decoration: none; }
.aw-card__cat:hover { color: var(--aw-terra-d); }
.aw-card__date { font-size: 13px; color: var(--aw-taupe); }
.aw-card__title { margin: 0 0 11px; }                          /* size/font from Customizer heading */
.aw-card__title a { color: var(--aw-ink); text-decoration: none; transition: color .2s ease; }
.aw-card__title a:hover { color: var(--aw-terra); }
.aw-card__excerpt { color: var(--aw-body); margin: 0 0 22px; }
.aw-card .aw-more { margin-top: auto; }

/* ==========================================================================
   Pagination
   ========================================================================== */
.aw-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin: 64px auto 0; max-width: var(--aw-wide); }
.aw-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; padding: 12px 16px; background: var(--aw-white); border: 1px solid var(--aw-beige2); color: var(--aw-brown); font-size: 14px; font-weight: 600; line-height: 1; text-decoration: none; border-radius: 10px; transition: all .2s ease; }
.aw-pagination .page-numbers.current { background: var(--aw-dark); border-color: var(--aw-dark); color: var(--aw-cream); }
.aw-pagination a.page-numbers:hover { background: var(--aw-terra); border-color: var(--aw-terra); color: var(--aw-white); }
.aw-pagination .page-numbers.dots { background: transparent; border: 0; color: var(--aw-taupe); }

/* ==========================================================================
   Newsletter band
   ========================================================================== */
.aw-newsletter { background: radial-gradient(120% 160% at 50% 0%, var(--aw-dark) 0%, var(--aw-dark-2) 100%); color: var(--aw-cream); padding: 72px 24px; margin-top: 88px; text-align: center; }
.aw-newsletter__inner { max-width: 620px; margin: 0 auto; }
.aw-newsletter h2 { color: var(--aw-cream); margin: 0 0 12px; }  /* size/font from Customizer heading */
.aw-newsletter__sub { color: var(--aw-beige); margin: 0 0 28px; opacity: .9; }
.aw-newsletter__form { display: flex; gap: 10px; max-width: 470px; margin: 0 auto; }
.aw-newsletter__form input { flex: 1; padding: 14px 18px; border-radius: 10px; border: 1px solid rgba(251,248,241,0.25); background: rgba(251,248,241,0.06); color: var(--aw-cream); font-size: 15px; }
.aw-newsletter__form input::placeholder { color: rgba(251,248,241,0.55); }
.aw-newsletter__form input:focus { outline: none; border-color: var(--aw-sage); }
@media (max-width: 520px) { .aw-newsletter__form { flex-direction: column; } }

/* ==========================================================================
   Reading progress
   ========================================================================== */
.aw-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; background: transparent; z-index: 9999; }
.aw-progress span { display: block; height: 100%; width: 0; background: var(--aw-terra); transition: width .1s linear; }

/* ==========================================================================
   Single post
   ========================================================================== */
.aw-single-hero { background: radial-gradient(120% 150% at 50% 0%, var(--aw-dark) 0%, var(--aw-dark-2) 100%); color: var(--aw-cream); text-align: center; padding: 72px 24px 150px; }
.aw-single-hero__inner { max-width: 780px; margin: 0 auto; }
.aw-single-hero__crumb { font-size: 13px; color: var(--aw-sage); margin: 0 0 22px; opacity: .9; }
.aw-single-hero__crumb a { color: var(--aw-sage); text-decoration: none; }
.aw-single-hero__crumb a:hover { color: var(--aw-white); }
.aw-single-hero .aw-cats { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.aw-single-hero .aw-cats a { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--aw-cream); background: rgba(158,107,79,0.9); padding: 6px 14px; border-radius: 999px; text-decoration: none; transition: background .2s ease; }
.aw-single-hero .aw-cats a:hover { background: var(--aw-terra); }
.aw-single-hero h1 { color: var(--aw-cream); margin: 0 0 26px; }  /* size/font from Customizer h1 */
.aw-single-hero h1 em { font-style: italic; color: var(--aw-gold); }  /* highlighted word */
.aw-single-hero__meta { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; font-size: 15px; color: var(--aw-beige); }
.aw-single-hero__meta img { border-radius: 50%; display: block; border: 2px solid rgba(251,248,241,0.3); }
.aw-single-hero__meta strong { color: var(--aw-cream); font-weight: 700; }
.aw-single-hero__meta .aw-dot { background: var(--aw-sage); opacity: .6; }

/* Featured image overlapping the hero */
.aw-single-featured { max-width: 940px; margin: -110px auto 0; padding: 0 24px; position: relative; z-index: 2; }
.aw-single-featured img { width: 100%; height: auto; border-radius: var(--aw-radius); display: block; box-shadow: var(--aw-shadow-lg); }

/* Layout: share rail | content | aside */
.aw-single-layout { display: grid; grid-template-columns: 56px minmax(0, var(--aw-read)) 300px; justify-content: center; gap: 44px; align-items: start; max-width: var(--aw-wide); margin: 56px auto 0; padding: 0 24px; }
.aw-single-main { grid-column: 2; grid-row: 1; min-width: 0; }
.aw-share { grid-column: 1; grid-row: 1; position: sticky; top: 120px; display: flex; flex-direction: column; gap: 10px; }
.aw-aside { grid-column: 3; grid-row: 1; position: sticky; top: 120px; display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 1080px) {
	.aw-single-layout { grid-template-columns: minmax(0, var(--aw-read)); }
	.aw-single-main { grid-column: 1; }
	.aw-aside { grid-column: 1; grid-row: auto; position: static; }
	.aw-share { grid-column: 1; grid-row: auto; position: static; flex-direction: row; justify-content: center; }
}

/* Share buttons */
.aw-share__btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--aw-white); border: 1px solid var(--aw-beige2); color: var(--aw-brown); cursor: pointer; transition: all .2s ease; }
.aw-share__btn:hover { background: var(--aw-terra); border-color: var(--aw-terra); color: var(--aw-white); transform: translateY(-2px); }
.aw-share__btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.aw-share__copy.is-copied { background: var(--aw-green); border-color: var(--aw-green); color: var(--aw-white); }

/* Aside: TOC + CTA */
.aw-toc { background: var(--aw-white); border: 1px solid var(--aw-beige2); border-radius: var(--aw-radius); padding: 24px; }
.aw-toc__label { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--aw-taupe); margin: 0 0 16px; }
.aw-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.aw-toc li { counter-increment: toc; margin: 0; }
.aw-toc a { display: flex; gap: 12px; padding: 8px 0; font-size: 14px; line-height: 1.45; color: var(--aw-body); text-decoration: none; border-left: 2px solid transparent; padding-left: 12px; margin-left: -12px; transition: all .2s ease; }
.aw-toc a::before { content: counter(toc, decimal-leading-zero); color: var(--aw-taupe); font-weight: 700; font-variant-numeric: tabular-nums; }
.aw-toc a:hover { color: var(--aw-ink); }
.aw-toc a.is-active { color: var(--aw-terra); border-left-color: var(--aw-terra); font-weight: 600; }
.aw-toc a.is-active::before { color: var(--aw-terra); }

.aw-cta-box { background: radial-gradient(140% 160% at 50% 0%, var(--aw-dark) 0%, var(--aw-dark-2) 100%); color: var(--aw-cream); border-radius: var(--aw-radius); padding: 28px; text-align: center; }
.aw-cta-box h3 { color: var(--aw-cream); margin: 0 0 8px; }      /* size/font from Customizer heading */
.aw-cta-box p { font-size: 14px; line-height: 1.6; color: var(--aw-beige); margin: 0 0 18px; opacity: .92; }

/* Content typography — inherits Customizer body/heading settings */
.aw-single-content { counter-reset: h2sec; }
.aw-single-content > *:first-child { margin-top: 0; }
.aw-single-content p, .aw-single-content ul, .aw-single-content ol { color: var(--aw-body); margin: 0 0 26px; }
.aw-single-content h2 { counter-increment: h2sec; color: var(--aw-ink); margin: 50px 0 18px; scroll-margin-top: 100px; }
.aw-single-content h2::before { content: counter(h2sec, decimal-leading-zero); display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; color: var(--aw-terra); margin-bottom: 6px; }
.aw-single-content h3 { color: var(--aw-ink); margin: 38px 0 14px; }
.aw-single-content a { color: var(--aw-terra); text-decoration: underline; text-underline-offset: 2px; }
.aw-single-content a:hover { color: var(--aw-terra-d); }
.aw-single-content img { max-width: 100%; height: auto; border-radius: 10px; }
.aw-single-content ul, .aw-single-content ol { padding-left: 1.2em; }
.aw-single-content li { margin-bottom: 10px; }
.aw-single-content blockquote { border-left: 4px solid var(--aw-terra); background: var(--aw-beige); border-radius: 0 10px 10px 0; margin: 34px 0; padding: 22px 26px; font-style: italic; color: var(--aw-brown); }
.aw-single-content blockquote p { color: var(--aw-brown); margin: 0; }
.aw-single-content figure { margin: 32px 0; }
.aw-single-content code { background: var(--aw-beige); padding: 2px 7px; border-radius: 5px; font-size: .9em; color: var(--aw-brown); }

/* Tags */
.aw-tags { margin: 40px 0 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.aw-tags__label { font-size: 13px; color: var(--aw-taupe); font-weight: 700; margin-right: 4px; }
.aw-tags a { font-size: 13px; color: var(--aw-brown); background: var(--aw-beige); padding: 6px 14px; border-radius: 999px; text-decoration: none; transition: all .2s ease; }
.aw-tags a:hover { background: var(--aw-sage); color: var(--aw-ink); }

/* Author box */
.aw-author-box { margin: 48px 0 0; padding: 28px; background: var(--aw-beige); border-radius: var(--aw-radius); display: flex; gap: 20px; align-items: flex-start; }
@media (max-width: 500px) { .aw-author-box { flex-direction: column; text-align: center; align-items: center; } }
.aw-author-box img { border-radius: 50%; display: block; }
.aw-author-box .aw-author-role { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--aw-terra); font-weight: 700; margin: 0 0 6px; }
.aw-author-box h3 { margin: 0 0 8px; color: var(--aw-ink); }    /* size/font from Customizer heading */
.aw-author-box p { margin: 0; color: var(--aw-body); }

/* Prev / next — compact buttons */
.aw-post-nav { margin: 44px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.aw-nav-btn { display: inline-flex; align-items: center; gap: 9px; padding: 12px 22px; background: var(--aw-white); border: 1px solid var(--aw-beige2); border-radius: 10px; font-weight: 600; color: var(--aw-ink); text-decoration: none; transition: all .2s ease; }
.aw-nav-btn:hover { border-color: var(--aw-terra); color: var(--aw-terra); }
.aw-nav-btn span { color: var(--aw-terra); font-weight: 700; }

/* Sidebar widget area */
.aw-widget-area { display: flex; flex-direction: column; gap: 24px; }
.aw-widget { background: var(--aw-white); border: 1px solid var(--aw-beige2); border-radius: var(--aw-radius); padding: 24px; }
.aw-widget__title { font-size: 18px; font-weight: 700; color: var(--aw-ink); margin: 0 0 14px; }
.aw-widget a { color: var(--aw-terra); text-decoration: none; }
.aw-widget a:hover { color: var(--aw-terra-d); }
.aw-widget ul { list-style: none; margin: 0; padding: 0; }
.aw-widget li { padding: 7px 0; border-bottom: 1px solid var(--aw-beige); color: var(--aw-body); font-size: 15px; }
.aw-widget li:last-child { border-bottom: 0; }

/* Related */
.aw-related { background: var(--aw-beige); margin-top: 80px; padding: 72px 24px; }
.aw-related__inner { max-width: var(--aw-wide); margin: 0 auto; }
.aw-related__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 36px; padding: 0 24px; }
.aw-related h2 { color: var(--aw-ink); margin: 0; }             /* size/font from Customizer heading */
.aw-related .aw-post-grid { padding: 0 24px; }

/* Comments spacing */
.aw-single-comments { margin: 56px 0 0; }
.aw-single-comments .comment-respond { background: var(--aw-white); border: 1px solid var(--aw-beige2); border-radius: var(--aw-radius); padding: 28px; }

/* ==========================================================================
   Defend against a site-wide "underline links" setting
   (keeps only in-article body links underlined).
   ========================================================================== */
.aw-toc a,
.aw-more,
.aw-card__title a,
.aw-card__cat,
.aw-card__media,
.aw-featured__title a,
.aw-featured__media,
.aw-tab,
.aw-nav-btn,
.aw-share__btn,
.aw-pagination .page-numbers,
.aw-hero__crumb a,
.aw-single-hero__crumb a,
.aw-single-hero .aw-cats a,
.aw-tags a,
.aw-btn,
.aw-widget__title a { text-decoration: none !important; }

/* Kill underlines drawn as border-bottom / box-shadow on text links, too. */
.aw-toc a, .aw-toc li,
.aw-card__title a, .aw-card__cat, .aw-featured__title a,
.aw-more, .aw-hero__crumb a, .aw-single-hero__crumb a,
.aw-single-hero .aw-cats a, .aw-tags a,
.aw-post-nav .aw-nav-title, .aw-widget__title a {
	border-bottom: 0 !important;
	box-shadow: none !important;
}

/* ==========================================================================
   Keep hero links light on the dark hero
   (override the Customizer's global link color, meant for light backgrounds).
   ========================================================================== */
.aw-hero__crumb a,
.aw-single-hero__crumb a { color: var(--aw-sage) !important; }
.aw-hero__crumb a:hover,
.aw-single-hero__crumb a:hover { color: var(--aw-white) !important; }
.aw-single-hero .aw-cats a { color: var(--aw-cream) !important; }
.aw-single-hero .aw-cats a:hover { color: var(--aw-white) !important; }
.aw-newsletter a,
.aw-cta-box a.aw-btn { color: var(--aw-white) !important; }
