/*
Theme Name: Wake Up 2026
Theme URI: https://wkup.org
Author: Wake Up International
Author URI: https://wkup.org
Description: A clean, modern custom theme for Wake Up International, in a calm earthy palette. Built to render the site's existing content with no data migration required.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: wake-up-2026
*/

/* -------------------------------------------------- */
/* Design tokens                                       */
/* -------------------------------------------------- */
:root {
  --bg: #F8F3EA;
  --bg-alt: #F1E8D8;
  --ink: #2B2A25;
  --ink-soft: #4A4842;
  --ink-faint: #7A776C;
  --clay: #C1613B;
  --clay-dark: #9C4C2E;
  --sage: #5F7A5C;
  --sage-dark: #3A4E3B;
  --sand: #E7D6A9;
  --dust-blue: #B7C7C2;
  --sage-light: #D8E2D2;
  --rule: #E7DFCF;
  --white: #FFFFFF;
  --footer-bg: #2B2A25;
  --footer-text: rgba(248,243,234,0.85);
  --footer-text-dim: rgba(248,243,234,0.5);
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --container: 1280px;
}

/* -------------------------------------------------- */
/* Reset & base                                        */
/* -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--clay); text-decoration: none; }
a:hover { color: var(--clay-dark); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; margin: 0; color: var(--ink); }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 56px; }
.wrap-narrow { max-width: 900px; margin: 0 auto; padding: 0 56px; }
@media (max-width: 640px) {
  .wrap, .wrap-narrow { padding: 0 22px; }
}

/* -------------------------------------------------- */
/* Buttons                                             */
/* -------------------------------------------------- */
.btn { display: inline-block; padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: 15px; border: none; cursor: pointer; font-family: var(--font-body); }
.btn-solid { background: var(--white); color: var(--ink); }
.btn-solid:hover { background: var(--bg-alt); color: var(--ink); }
.btn-clay { background: var(--clay); color: var(--white); }
.btn-clay:hover { background: var(--clay-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.8); padding: 12.5px 26.5px; }
.btn-outline:hover { background: rgba(255,255,255,0.15); color: var(--white); }
.tag-pill { display: inline-block; background: var(--sand); color: #7A5B22; font-size: 12.5px; font-weight: 600; padding: 6px 14px; border-radius: 999px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }

/* -------------------------------------------------- */
/* Site header / nav                                   */
/* -------------------------------------------------- */
.site-header { padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-logo { font-family: var(--font-display); font-style: italic; font-size: 28px; font-weight: 500; color: var(--ink); }
.site-logo img { max-height: 42px; width: auto; }
.primary-nav ul { list-style: none; display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; flex-wrap: wrap; row-gap: 8px; }
.primary-nav li { position: relative; }
.primary-nav a { color: var(--ink); font-weight: 500; font-size: 14.5px; white-space: nowrap; }
.primary-nav a:hover { color: var(--clay); }
.primary-nav .sub-menu { list-style: none; margin: 0; padding: 10px; position: absolute; top: 100%; left: 0; background: var(--white); border-radius: 12px; box-shadow: 0 12px 30px rgba(43,42,37,0.12); display: none; min-width: 200px; z-index: 20; }
.primary-nav li:hover > .sub-menu { display: block; }
.primary-nav .sub-menu a { display: block; padding: 8px 10px; border-radius: 8px; font-size: 14.5px; }
.primary-nav .sub-menu a:hover { background: var(--bg-alt); }
.menu-toggle { display: none; }
@media (max-width: 900px) {
  .primary-nav { display: none; }
  .menu-toggle { display: inline-block; background: none; border: none; font-size: 15px; font-weight: 600; cursor: pointer; color: var(--ink); }
}

.search-toggle { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border-radius: 999px; border: none; background: transparent; color: var(--ink); cursor: pointer; }
.search-toggle:hover { background: var(--bg-alt); }
.site-search { border-top: 1px solid var(--rule); padding: 20px 0; }
.site-search .search-form { display: flex; gap: 10px; max-width: 480px; }
.site-search .search-form label { flex: 1; margin: 0; }
.site-search .search-field { width: 100%; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--rule); background: var(--bg); font-family: var(--font-body); font-size: 15px; color: var(--ink); }
.site-search .search-field:focus { outline: 2px solid var(--clay); outline-offset: 1px; }
.site-search .search-submit { flex-shrink: 0; padding: 12px 24px; border-radius: 999px; border: none; background: var(--clay); color: var(--white); font-family: var(--font-body); font-weight: 600; font-size: 14px; cursor: pointer; }
.site-search .search-submit:hover { background: var(--clay-dark); }

/* -------------------------------------------------- */
/* Hero                                                */
/* -------------------------------------------------- */
.hero { position: relative; width: 100%; overflow: hidden; background: linear-gradient(160deg, var(--clay) 0%, #C87A4C 38%, #DCA05C 68%, var(--sand) 100%); padding-bottom: 100px; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 999px; background: rgba(255,255,255,0.09); }
.hero::before { width: 520px; height: 520px; right: -120px; top: -140px; }
.hero::after { width: 460px; height: 460px; left: -80px; bottom: -220px; }
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; padding: 90px 24px 60px; text-align: center; }
.hero-kicker { font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.85); font-weight: 600; margin-bottom: 18px; }
.hero-title { font-size: 52px; line-height: 1.15; color: var(--white); margin: 0 0 22px; }
.hero-sub { font-size: 18px; line-height: 1.6; color: rgba(255,255,255,0.92); max-width: 560px; margin: 0 auto 34px; }
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 110px; }
@media (max-width: 640px) {
  .hero-title { font-size: 36px; }
}

/* -------------------------------------------------- */
/* Pillars                                             */
/* -------------------------------------------------- */
.pillars { padding: 74px 0 90px; }
.pillars-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; }
.pillar { display: flex; flex-direction: column; gap: 22px; border-radius: var(--radius-lg); padding: 36px 32px; }
.pillar h3 { font-size: 23px; margin-bottom: 10px; }
.pillar p { font-size: 15px; line-height: 1.6; color: var(--ink-soft); margin: 0; }
.pillar .pillar-link { font-weight: 600; font-size: 14px; color: var(--ink); }
.pillar-1 { background: var(--sand); }
.pillar-2 { background: var(--dust-blue); }
.pillar-3 { background: var(--sage-light); }
@media (max-width: 900px) { .pillars-grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------- */
/* Post cards / grids                                  */
/* -------------------------------------------------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 34px; gap: 16px; flex-wrap: wrap; }
.section-head h2 { font-size: 34px; }
.section-head .more-link { font-weight: 600; font-size: 14px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; }
.post-card { display: flex; flex-direction: column; gap: 16px; color: var(--ink); }
.post-card:hover .post-card-title { color: var(--clay); }
.post-card-media { width: 100%; height: 200px; border-radius: var(--radius-md); background: linear-gradient(135deg, var(--dust-blue), var(--sage)); background-size: cover; background-position: center; }
.post-card-title { font-family: var(--font-display); font-size: 21px; line-height: 1.35; color: var(--ink); }
@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }

.featured-section { padding: 0 0 96px; }

.list-section { padding: 92px 0; }
.list-section h2 { font-size: 32px; margin-bottom: 40px; text-align: center; }
.post-row { display: flex; align-items: center; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--rule); color: var(--ink); }
.post-row:last-child { border-bottom: none; }
.post-row:hover .post-card-title { color: var(--clay); }
.post-row-media { width: 96px; height: 96px; flex-shrink: 0; border-radius: 14px; background: linear-gradient(135deg, var(--dust-blue), var(--sage)); background-size: cover; background-position: center; }
.post-row-title { font-family: var(--font-display); font-size: 19px; color: var(--ink); }

/* -------------------------------------------------- */
/* Regions band                                        */
/* -------------------------------------------------- */
.regions { width: 100%; background: var(--sage-dark); padding: 80px 0; }
.regions h2 { font-size: 32px; color: var(--bg); margin-bottom: 48px; text-align: center; }
.regions-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 48px; }
.region { text-align: left; padding: 0 12px 0 0; border-right: 1px solid rgba(255,255,255,0.15); }
.region:last-child { border-right: none; }
.region-title { font-family: var(--font-display); font-size: 24px; color: var(--bg); margin-bottom: 20px; }
.region-posts { display: flex; flex-direction: column; gap: 16px; margin-bottom: 22px; }
.region-post { display: flex; align-items: center; gap: 14px; color: rgba(248,243,234,0.88); }
.region-post-media { width: 48px; height: 48px; border-radius: 10px; flex-shrink: 0; background: linear-gradient(135deg, rgba(255,255,255,0.24), rgba(255,255,255,0.06)); background-size: cover; background-position: center; }
.region-post-title { font-size: 14.5px; line-height: 1.4; }
.region-post:hover .region-post-title { color: var(--bg); }
.region-cta { color: var(--bg); font-weight: 600; }
.region-cta:hover { color: var(--sand); }
@media (max-width: 900px) { .regions-grid { grid-template-columns: 1fr; gap: 32px; } .region { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); padding: 0 0 28px; } .region:last-child { border-bottom: none; } }

/* -------------------------------------------------- */
/* Newsletter                                          */
/* -------------------------------------------------- */
.newsletter { width: 100%; background: var(--sand); padding: 84px 0; }
.newsletter-inner { max-width: 620px; margin: 0 auto; text-align: center; padding: 0 24px; }
.newsletter h2 { font-size: 32px; margin-bottom: 14px; }
.newsletter p { font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 30px; }
.newsletter-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.newsletter-form input[type="email"] { flex: 1; min-width: 200px; max-width: 320px; background: var(--white); border-radius: 999px; padding: 14px 22px; font-size: 15px; border: none; font-family: var(--font-body); }
.newsletter-form input[type="email"]::placeholder { color: #8A8578; }

/* -------------------------------------------------- */
/* Footer                                              */
/* -------------------------------------------------- */
.site-footer { width: 100%; background: var(--footer-bg); padding: 70px 0 34px; }
/* A flexible row of footer columns rather than a fixed 4-up grid, since
   the number of populated footer widget areas varies site to site (0-4
   link columns, plus the brand block and the Connect column). Columns
   wrap onto additional rows as needed rather than stretching thin. */
.footer-grid { display: flex; flex-wrap: wrap; gap: 40px 36px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-grid > *:first-child { flex: 1 1 240px; max-width: 300px; }
.footer-brand { font-family: var(--font-display); font-style: italic; font-size: 26px; color: var(--bg); margin-bottom: 14px; }
.footer-desc { font-size: 14px; line-height: 1.6; color: var(--footer-text-dim); max-width: 260px; margin: 0; }
.footer-col { flex: 0 1 170px; }
/* Footer columns can hold plain widgets (text, nav menus, image links)
   carried over from the old site rather than markup this theme wrote —
   force light, legible text/link colors on whatever they contain
   rather than relying on inheritance, since a widget's own unstyled
   heading or paragraph text otherwise defaults to browser-black on
   this dark background. */
.footer-col, .footer-col * { color: var(--footer-text) !important; }
.footer-col-title, .footer-col-title * { color: var(--footer-text-dim) !important; }
.footer-col ul, .footer-col ul.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col li { margin: 0; }
/* Some of the carried-over footer widgets (e.g. "Get Involved!", "Wake
   Up Sites") appear to hold their heading as plain text — the first
   line of the widget's own content — rather than in the widget's Title
   field, so it lands inside the same list as the links instead of
   above it. Style a first list item that isn't itself a link as a
   heading so it still reads as one; a first item that *is* a link
   (an ordinary widget like "About Wake Up", whose real title already
   renders separately above) is left alone. */
.footer-col ul li:first-child:not(:has(a)) {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--footer-text-dim) !important;
	margin-bottom: 4px;
}
.footer-col a { font-size: 14.5px; }
.footer-col a:hover, .footer-col a:hover * { color: var(--bg) !important; }
/* Undo the site-wide img reset (below) inside footer widgets specifically —
   older widget content (like a row of monastery logo links) relies on
   images flowing inline side by side, wrapping naturally, rather than
   each one stacking on its own line. */
.footer-col img { display: inline-block; max-width: 56px; height: auto; margin: 0 10px 10px 0; vertical-align: middle; }
.footer-social { display: flex; gap: 14px; }
.footer-social a svg { display: block; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; flex-wrap: wrap; gap: 12px; }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom, .footer-bottom a { font-size: 13px; color: var(--footer-text-dim); }
@media (max-width: 640px) { .footer-grid { flex-direction: column; gap: 30px; } .footer-grid > *:first-child { max-width: none; } }

/* -------------------------------------------------- */
/* WordPress core content classes                      */
/* -------------------------------------------------- */
/* WordPress ships none of this itself — every theme has to provide it,
   and this one hadn't yet. Without it, an image the classic editor
   floated left or right (very common in older content) just renders
   as a plain, cramped block image with no spacing or wrap-around. */
.alignleft { float: left; margin: 6px 24px 18px 0; }
.alignright { float: right; margin: 6px 0 18px 24px; }
.aligncenter { display: block; float: none; margin: 18px auto; }
.alignnone { margin: 18px 0; }
.wp-caption { max-width: 100%; }
.wp-caption.alignleft { margin: 6px 24px 18px 0; }
.wp-caption.alignright { margin: 6px 0 18px 24px; }
.wp-caption img { display: block; margin: 0; border-radius: 14px; }
.wp-caption-text { font-size: 13px; line-height: 1.5; color: var(--ink-faint); text-align: center; margin: 8px 0 0; }
.entry-content::after, .article-content::after { content: ""; display: table; clear: both; }

/* -------------------------------------------------- */
/* Single post / article                               */
/* -------------------------------------------------- */
.article-wrap { max-width: 1000px; margin: 0 auto; padding: 24px 56px 100px; display: grid; grid-template-columns: 2fr 1fr; gap: 56px; }
.article-back { padding: 0 0 12px; }
.article-body { display: flex; flex-direction: column; gap: 26px; }
.article-title { font-size: 40px; line-height: 1.2; }
.article-meta { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-faint); flex-wrap: wrap; }
.article-thumb { width: 100%; height: 360px; border-radius: 18px; object-fit: cover; background: linear-gradient(135deg, var(--dust-blue), var(--sage)); }
.article-content { font-size: 16.5px; line-height: 1.8; color: #3A3934; }
.article-content p { margin: 0 0 22px; }
.article-content h2 { font-size: 26px; margin: 40px 0 16px; }
.article-content h3 { font-size: 21px; margin: 32px 0 14px; }
.article-content blockquote { font-family: var(--font-display); font-style: italic; font-size: 22px; line-height: 1.5; color: var(--clay); padding: 8px 0 8px 24px; border-left: 3px solid var(--clay); margin: 12px 0; }
.article-content img { border-radius: 14px; margin: 8px 0; }
.article-content a { text-decoration: underline; }
.article-tags { display: flex; gap: 10px; padding-top: 14px; flex-wrap: wrap; }
.sidebar-title { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 18px; }
.related-list { display: flex; flex-direction: column; gap: 18px; }
.related-item { display: flex; gap: 14px; align-items: center; color: var(--ink); }
.related-item:hover .related-title { color: var(--clay); }
.related-thumb { width: 62px; height: 62px; flex-shrink: 0; border-radius: 10px; background: linear-gradient(135deg, var(--dust-blue), var(--sage)); background-size: cover; background-position: center; }
.related-title { font-family: var(--font-display); font-size: 15.5px; line-height: 1.35; }
.sidebar-cta { background: var(--sand); border-radius: 16px; padding: 26px; }
.sidebar-cta h4 { font-size: 19px; margin-bottom: 10px; }
.sidebar-cta p { font-size: 14px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 16px; }
.sidebar-cta a { font-weight: 600; font-size: 14px; color: var(--ink); }
@media (max-width: 900px) { .article-wrap { grid-template-columns: 1fr; padding: 24px 22px 60px; } }

/* -------------------------------------------------- */
/* Generic page template                               */
/* -------------------------------------------------- */
.page-content { max-width: 800px; margin: 0 auto; padding: 60px 56px 100px; }
.page-content .page-title { font-size: 42px; margin-bottom: 30px; }
.page-content .entry-content { font-size: 17px; line-height: 1.8; color: #3A3934; }
.page-content .entry-content p { margin: 0 0 22px; }
@media (max-width: 640px) { .page-content { padding: 40px 22px 60px; } }

/* -------------------------------------------------- */
/* Archive / category listing                          */
/* -------------------------------------------------- */
.archive-header { padding: 70px 56px 20px; text-align: center; }
.archive-header h1 { font-size: 40px; }
.archive-header p { font-size: 16px; color: var(--ink-soft); margin-top: 12px; }
.archive-grid-wrap { max-width: var(--container); margin: 0 auto; padding: 40px 56px 90px; }
.pagination { display: flex; justify-content: center; gap: 10px; padding: 50px 0 20px; }
.pagination a, .pagination span { padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--bg-alt); color: var(--ink); }
.pagination .current { background: var(--clay); color: var(--white); }
