/*
Theme Name: Life 2.0 Para-Upakara
Theme URI: https://life-2-para-upakara.dhan48.chatgpt.site
Author: Dhanesvara Das Goswami
Description: A complete editorial WordPress theme for Life 2.0 Para-Upakara—civilizational dislocation, farmhoods, group-sufficiency, spiritual economics, and participation.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: life-20-para-upakara
Tags: block-styles, custom-menu, featured-images, wide-blocks, accessibility-ready
*/

:root {
  --l20-charcoal: #171712;
  --l20-black: #0b0c0a;
  --l20-cream: #ece6d8;
  --l20-ink: #1a211b;
  --l20-green: #123225;
  --l20-green-deep: #0c251b;
  --l20-amber: #eab238;
  --l20-muted: #918f87;
  --l20-white: #f4f1ea;
  --l20-content: 1160px;
  --l20-pad: clamp(22px, 5vw, 76px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--l20-charcoal);
  color: var(--l20-white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
::selection { background: var(--l20-amber); color: var(--l20-black); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { top: 8px; left: 8px; z-index: 9999; width: auto; height: auto; padding: 12px 18px; clip: auto; background: white; color: black; }

h1, h2, h3, h4, .l20-serif { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h1, h2, h3, h4, p { text-wrap: pretty; }
.l20-container { width: min(calc(100% - 2 * var(--l20-pad)), var(--l20-content)); margin-inline: auto; }
.l20-eyebrow { margin: 0 0 24px; color: var(--l20-amber); font-size: 10px; font-weight: 700; line-height: 1.4; letter-spacing: .38em; text-transform: uppercase; }
.l20-lead { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.58; }
.l20-section { position: relative; padding: clamp(86px, 10vw, 145px) var(--l20-pad); }
.l20-section-number { position: absolute; top: 75px; right: var(--l20-pad); color: rgba(255,255,255,.06); font-family: Georgia, serif; font-size: clamp(7rem, 15vw, 13rem); line-height: .75; }
.l20-display { margin: 0; font-size: clamp(3.2rem, 6vw, 6.2rem); line-height: .93; letter-spacing: -.05em; }
.l20-button, .wp-element-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 13px 23px;
  border: 1px solid var(--l20-amber); border-radius: 0; background: var(--l20-amber); color: var(--l20-black);
  font-size: 11px; font-weight: 700; letter-spacing: .2em; text-decoration: none; text-transform: uppercase;
}
.l20-button:hover, .wp-element-button:hover { background: transparent; color: var(--l20-amber); }
.l20-text-link { display: inline-flex; align-items: center; gap: 13px; padding-bottom: 6px; border-bottom: 1px solid currentColor; color: var(--l20-amber); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-decoration: none; text-transform: uppercase; }

/* Header */
.l20-site-header {
  position: sticky; top: 0; z-index: 100; min-height: 62px; padding: 0 var(--l20-pad);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  border-bottom: 1px solid rgba(255,255,255,.14); background: rgba(12,13,11,.94); backdrop-filter: blur(12px);
}
.l20-brand { color: var(--l20-white); font-size: 11px; letter-spacing: .28em; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.l20-brand span { color: var(--l20-amber); }
.l20-nav ul { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); margin: 0; padding: 0; list-style: none; }
.l20-nav a { color: #aaa89f; font-size: 10px; font-weight: 700; letter-spacing: .18em; text-decoration: none; text-transform: uppercase; }
.l20-nav a:hover, .l20-nav .current-menu-item > a { color: var(--l20-amber); }
.l20-mobile-menu { display: none; }

/* Home */
.l20-home-hero {
  position: relative; min-height: calc(100svh - 62px); display: flex; align-items: flex-end; overflow: hidden; background: var(--l20-black);
}
.l20-home-hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/images/caracas.jpg") center / contain no-repeat;
  filter: brightness(1.25) saturate(1.05);
}
.l20-home-hero::after { content: ""; position: absolute; inset: 0; background: rgba(16,17,13,.22); }
.l20-hero-inner { position: relative; z-index: 2; width: min(calc(100% - 2 * var(--l20-pad)), 1240px); margin: 0 auto; padding: 120px 0 10vh; }
.l20-home-hero h1 { margin: 0; max-width: 960px; color: white; font-size: clamp(3.5rem, 8.4vw, 8.2rem); line-height: .89; letter-spacing: -.055em; text-shadow: 0 3px 24px rgba(0,0,0,.72); }
.l20-home-hero h1 em { color: var(--l20-amber); font-style: normal; }
.l20-home-hero .l20-lead { max-width: 730px; margin-top: 40px; color: white; text-shadow: 0 2px 14px rgba(0,0,0,.9); }
.l20-story-grid { width: min(100%, var(--l20-content)); margin: 0 auto; display: grid; grid-template-columns: 4fr 7fr; gap: 10vw; }
.l20-side-note { max-width: 330px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--l20-amber); color: var(--l20-muted); }
.l20-problem-copy { color: #aaa8a0; }
.l20-problem-copy strong { color: var(--l20-amber); }
.l20-fault-grid { width: min(100%, var(--l20-content)); margin: 90px auto 0; display: grid; grid-template-columns: 1fr 1fr; }
.l20-fault-card { position: relative; min-height: 300px; padding: 38px 42px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; border: 1px solid #414038; }
.l20-fault-card + .l20-fault-card { border-left: 0; }
.l20-fault-card::before { content: ""; position: absolute; inset: 0; background-position: center; background-size: cover; filter: brightness(1.15) saturate(1.08); }
.l20-fault-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,14,11,.55), rgba(13,14,11,.18)); }
.l20-fault-oil::before { background-image: url("assets/images/burning-tanker.jpg"); }
.l20-fault-money::before { background-image: url("assets/images/petrodollar.jpg"); background-position: center 48%; }
.l20-fault-card > * { position: relative; z-index: 1; }
.l20-fault-card small { color: var(--l20-amber); font-size: 9px; font-weight: 700; letter-spacing: .3em; }
.l20-fault-card h3 { margin: 16px 0 8px; color: white; font-size: 2.7rem; text-shadow: 0 2px 14px black; }
.l20-fault-card p { margin: 0; color: white; text-shadow: 0 2px 12px black; }
.l20-hsb-feature { width: min(100%, var(--l20-content)); margin: 95px auto 0; padding: clamp(30px, 5vw, 65px); display: grid; grid-template-columns: minmax(180px, 270px) 1fr; align-items: center; gap: clamp(38px, 7vw, 90px); border: 1px solid #49473d; background: #202018; }
.l20-hsb-feature > img { width: 100%; box-shadow: 0 25px 60px rgba(0,0,0,.42); }
.l20-hsb-feature h3 { max-width: 730px; margin: 0; color: #f4f0e7; font-size: clamp(2rem, 4.1vw, 4.25rem); line-height: 1.04; letter-spacing: -.035em; }
.l20-hsb-feature h3 em { color: var(--l20-amber); font-style: normal; }
.l20-hsb-feature div > p:not(.l20-eyebrow) { max-width: 650px; color: #aaa89f; }
.l20-solution-split { min-height: 850px; display: grid; grid-template-columns: 54fr 46fr; background: var(--l20-cream); color: var(--l20-ink); }
.l20-solution-image { min-height: 680px; background: url("assets/images/solution.png") 64% center / cover no-repeat; }
.l20-solution-copy { align-self: center; padding: clamp(80px, 9vw, 140px) clamp(34px, 6vw, 100px); }
.l20-solution-copy .l20-eyebrow { color: #327253; }
.l20-solution-copy h2 { color: #163325; }
.l20-solution-copy p { color: #51574f; }
.l20-bold-statement { margin: 40px 0; padding: 28px 0; border-block: 1px solid rgba(20,63,43,.28); color: #143f2b; font-family: Georgia, serif; font-size: clamp(1.5rem, 2.5vw, 2.25rem); line-height: 1.25; }
.l20-hands { aspect-ratio: 3 / 1; display: grid; grid-template-columns: repeat(3, 1fr); }
.l20-hand { background: url("assets/images/hands-triptych.png") no-repeat; background-size: 300% 100%; }
.l20-hand-farmer { background-position: left center; }
.l20-hand-mother { background-position: right center; }
.l20-hand-mechanic { background-position: center; }
.l20-involved { background: var(--l20-green-deep); }
.l20-give-grid { max-width: 850px; margin: 48px 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.18); border-left: 1px solid rgba(255,255,255,.18); }
.l20-give-grid span { padding: 24px 20px; border-right: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); color: #d4dbd6; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.l20-closing { color: var(--l20-amber); font-family: Georgia, serif; font-size: clamp(2.4rem, 5vw, 5rem); line-height: 1; }

/* Interior pages */
.l20-page-hero { position: relative; min-height: 62vh; padding: 130px var(--l20-pad) 90px; display: flex; align-items: flex-end; overflow: hidden; background: var(--l20-black); }
.l20-page-hero::before { content: ""; position: absolute; inset: 0; background-position: center; background-size: cover; opacity: .55; }
.l20-page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,12,9,.92), rgba(10,12,9,.25)); }
.l20-page-hero > div { position: relative; z-index: 1; width: min(100%, var(--l20-content)); margin: 0 auto; }
.l20-page-hero h1 { max-width: 950px; margin: 0; color: white; font-size: clamp(3.5rem, 7vw, 7rem); line-height: .92; letter-spacing: -.05em; }
.l20-page-hero p:last-child { max-width: 760px; color: #ddd9d0; font-size: 1.25rem; }
.l20-hero-dislocation::before { background-image: url("assets/images/caracas.jpg"); opacity: .9; filter: brightness(1.1); }
.l20-hero-model::before { background-image: url("assets/images/solution.png"); opacity: .75; }
.l20-hero-involved::before { background-image: url("assets/images/hands-triptych.png"); opacity: .75; }
.l20-hero-about::before { background-image: url("assets/images/og.png"); opacity: .7; }
.l20-book-hero { min-height: 88vh; padding: 130px var(--l20-pad) 90px; display: grid; grid-template-columns: minmax(240px, 380px) minmax(0, 760px); justify-content: center; align-items: center; gap: clamp(55px, 8vw, 120px); background: #0d2718; color: var(--l20-white); }
.l20-book-cover { width: 100%; box-shadow: 0 35px 85px rgba(0,0,0,.52); }
.l20-book-hero h1 { margin: 0; color: #f6f1e6; font-size: clamp(3.5rem, 6.5vw, 7rem); line-height: .91; letter-spacing: -.055em; }
.l20-book-subtitle { margin: 25px 0 0; color: var(--l20-amber); font-family: Georgia, serif; font-size: clamp(1.35rem, 2.3vw, 2rem); line-height: 1.25; }
.l20-book-author { margin: 34px 0 0; color: #b9c1ba; font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.l20-book-copy { width: min(100%, 1040px); margin: 0 auto; }
.l20-book-copy h2 { max-width: 850px; margin: 0 0 50px; color: #153b29; font-size: clamp(3rem, 5.5vw, 5.7rem); line-height: .96; letter-spacing: -.045em; }
.l20-book-copy p { max-width: 830px; color: #465047; font-size: 1.08rem; line-height: 1.82; }
.l20-book-actions { margin-top: 55px; display: flex; flex-wrap: wrap; gap: 16px; }
.l20-button-outline { background: transparent; color: #1d6343; border-color: #1d6343; }
.l20-book-note { color: #747c75 !important; font-size: .93rem !important; }
.l20-light { background: var(--l20-cream); color: var(--l20-ink); }
.l20-light p { color: #50574f; }
.l20-green { background: var(--l20-green); }
.l20-dark { background: var(--l20-charcoal); }
.l20-content-grid { width: min(100%, var(--l20-content)); margin: 0 auto; display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: clamp(50px, 9vw, 120px); }
.l20-content-grid h2 { position: sticky; top: 105px; align-self: start; margin: 0; font-size: clamp(2.5rem, 4.5vw, 4.8rem); line-height: .98; letter-spacing: -.04em; }
.l20-copy { max-width: 780px; }
.l20-copy h3 { margin: 48px 0 14px; font-size: 2rem; line-height: 1.1; }
.l20-copy h3:first-child { margin-top: 0; }
.l20-copy p, .l20-copy li { color: inherit; }
.l20-copy ul, .l20-copy ol { padding-left: 1.25em; }
.l20-copy li { margin-bottom: 10px; }
.l20-card-grid { width: min(100%, var(--l20-content)); margin: 55px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.18); border-left: 1px solid rgba(255,255,255,.18); }
.l20-light .l20-card-grid { border-color: rgba(20,40,28,.2); }
.l20-card { min-height: 245px; padding: 32px; border-right: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); }
.l20-light .l20-card { border-color: rgba(20,40,28,.2); }
.l20-card small { color: var(--l20-amber); font-size: 9px; font-weight: 700; letter-spacing: .25em; }
.l20-card h3 { margin: 48px 0 13px; font-size: 1.7rem; line-height: 1.08; }
.l20-card p { margin: 0; color: #a5aaa5; font-size: .96rem; }
.l20-light .l20-card p { color: #5b625b; }
.l20-stage-grid { width: min(100%, var(--l20-content)); margin: 55px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.l20-stage { padding: 35px; background: rgba(255,255,255,.055); border-top: 3px solid var(--l20-amber); }
.l20-stage strong { display: block; margin-bottom: 16px; color: var(--l20-amber); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.l20-stage h3 { margin: 0 0 14px; font-size: 2rem; }
.l20-faq { width: min(100%, 880px); margin: 50px auto 0; }
.l20-faq details { border-top: 1px solid rgba(255,255,255,.2); }
.l20-faq details:last-child { border-bottom: 1px solid rgba(255,255,255,.2); }
.l20-faq summary { padding: 24px 45px 24px 0; cursor: pointer; color: white; font-family: Georgia, serif; font-size: 1.35rem; }
.l20-faq details p { padding: 0 0 24px; color: #abb2ac; }
.l20-callout { width: min(100%, var(--l20-content)); margin: 0 auto; padding: clamp(42px, 7vw, 85px); border: 1px solid rgba(255,255,255,.22); text-align: center; }
.l20-callout h2 { margin: 0 0 25px; font-size: clamp(2.7rem, 6vw, 6rem); line-height: .95; }

/* Form */
.l20-form { width: min(100%, 820px); margin: 45px auto 0; padding: clamp(28px, 5vw, 58px); background: var(--l20-cream); color: var(--l20-ink); }
.l20-field { margin-bottom: 24px; }
.l20-field label { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.l20-field input, .l20-field textarea, .l20-field select { width: 100%; padding: 13px 14px; border: 1px solid #9b9d96; border-radius: 0; background: white; color: #171915; }
.l20-field textarea { min-height: 140px; resize: vertical; }
.l20-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.l20-notice { width: min(100%, 820px); margin: 25px auto; padding: 18px; border-left: 4px solid var(--l20-amber); background: rgba(234,178,56,.11); }
.l20-honeypot { position: absolute; left: -9999px; }

/* Generic WordPress */
.l20-entry { width: min(calc(100% - 2 * var(--l20-pad)), 860px); margin: 0 auto; padding: 110px 0; }
.l20-entry h1 { font-size: clamp(2.8rem, 5vw, 5rem); }
.l20-post-list article { padding: 38px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.l20-post-list h2 { margin: 0 0 10px; }

/* Footer */
.l20-site-footer { padding: 44px var(--l20-pad); border-top: 1px solid #2d2d27; background: var(--l20-black); color: #716f68; }
.l20-footer-inner { width: min(100%, var(--l20-content)); margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.l20-footer-inner p { margin: 0; text-align: center; }
.l20-footer-inner a { text-align: right; text-decoration: none; }

@media (max-width: 980px) {
  .l20-nav { display: none; }
  .l20-mobile-menu { display: block; }
  .l20-mobile-menu summary { cursor: pointer; color: var(--l20-amber); font-size: 11px; font-weight: 700; letter-spacing: .18em; list-style: none; text-transform: uppercase; }
  .l20-mobile-menu ul { position: absolute; top: 62px; right: 0; left: 0; margin: 0; padding: 25px var(--l20-pad); background: var(--l20-black); list-style: none; }
  .l20-mobile-menu li { padding: 10px 0; }
  .l20-mobile-menu a { text-decoration: none; }
  .l20-story-grid, .l20-content-grid { grid-template-columns: 1fr; gap: 50px; }
  .l20-content-grid h2 { position: static; }
  .l20-solution-split { grid-template-columns: 1fr; }
  .l20-solution-image { min-height: 62vw; }
  .l20-card-grid { grid-template-columns: 1fr 1fr; }
  .l20-hsb-feature { grid-template-columns: 220px 1fr; }
  .l20-book-hero { grid-template-columns: minmax(220px, 320px) 1fr; }
  .l20-footer-inner { grid-template-columns: 1fr; text-align: left; }
  .l20-footer-inner p, .l20-footer-inner a { text-align: left; }
}

@media (max-width: 680px) {
  .l20-brand span { display: none; }
  .l20-home-hero::before { background-size: cover; background-position: 60% center; }
  .l20-fault-grid, .l20-card-grid, .l20-stage-grid { grid-template-columns: 1fr; }
  .l20-fault-card + .l20-fault-card { border-left: 1px solid #414038; border-top: 0; }
  .l20-hsb-feature { grid-template-columns: 1fr; margin-top: 70px; }
  .l20-hsb-feature > img { width: min(70%, 280px); }
  .l20-hands { aspect-ratio: 1.55 / 1; }
  .l20-give-grid { grid-template-columns: 1fr 1fr; }
  .l20-form-grid { grid-template-columns: 1fr; gap: 0; }
  .l20-page-hero { min-height: 68vh; }
  .l20-book-hero { min-height: auto; padding: 105px var(--l20-pad) 75px; grid-template-columns: 1fr; }
  .l20-book-cover { width: min(72%, 300px); }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
