/*
Theme Name: The Daily Wellness Flow
Theme URI: https://thedailywellnessflow.org/
Author: Rare Capital
Description: Lightweight editorial WordPress theme for The Daily Wellness Flow.
Version: 1.0.0-rc.1
Requires at least: 6.8
Requires PHP: 8.1
Text Domain: tdwf
*/

@font-face{font-family:Marcellus;src:url(assets/fonts/Marcellus-Regular.ttf) format("truetype");font-display:swap;font-weight:400}
@font-face{font-family:Manrope;src:url(assets/fonts/Manrope-wght.ttf) format("truetype");font-display:swap;font-weight:300 800}

:root{
  --forest:#12382f;
  --forest-deep:#09251f;
  --ink:#17342d;
  --ivory:#fbf6eb;
  --paper:#fffdf8;
  --sage:#8ba79b;
  --sage-text:#547566;
  --sage-soft:#dce8e1;
  --copper:#c97955;
  --copper-text:#a95a3b;
  --gold:#ddaE40;
  --rose:#b96d70;
  --blue:#6d91a0;
  --line:rgba(18,56,47,.18);
  --shadow:0 22px 60px rgba(18,56,47,.09);
  --radius:30px;
  --max:1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--ivory);color:var(--ink);font-family:Manrope,system-ui,sans-serif;font-size:17px;line-height:1.7}
img{display:block;max-width:100%;height:auto}
a{color:var(--forest);text-underline-offset:.2em}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:3px solid var(--copper);outline-offset:4px;border-radius:4px}
.screen-reader-text{position:absolute!important;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{position:fixed!important;z-index:99999;top:1rem;left:1rem;width:auto;height:auto;padding:.8rem 1rem;margin:0;clip:auto;background:white;color:var(--forest)}

.site-header{position:relative;z-index:20;border-bottom:1px solid var(--line);background:rgba(251,246,235,.96)}
.header-inner{max-width:var(--max);margin:auto;min-height:94px;padding:1rem 24px;display:flex;align-items:center;justify-content:space-between;gap:2rem}
.brand{display:flex;align-items:center;gap:.85rem;text-decoration:none;color:var(--forest-deep);min-width:245px}
.brand img{width:46px;height:46px}
.brand-text{font-family:Marcellus,serif;text-transform:uppercase;letter-spacing:.09em;line-height:1.02;font-size:.77rem}
.brand-text strong{display:block;font-size:1.15rem;font-weight:400;letter-spacing:.04em}
.primary-menu,.footer-menu{list-style:none;margin:0;padding:0;display:flex;gap:1.55rem;align-items:center}
.primary-menu a{text-decoration:none;font-size:.84rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase}
.primary-menu a:hover{color:var(--copper-text)}
.primary-menu .menu-item:last-child a{padding:.65rem 1rem;border:1px solid var(--forest);border-radius:999px}
.mobile-nav{display:none}
.mobile-nav summary{cursor:pointer;font-weight:800;text-transform:uppercase;letter-spacing:.08em;list-style:none}
.mobile-nav summary::-webkit-details-marker{display:none}
.mobile-nav .primary-menu{display:grid;position:absolute;left:18px;right:18px;top:104px;background:var(--paper);padding:1.2rem;border-radius:18px;box-shadow:var(--shadow)}

.site-main{overflow:hidden}
.wrap{width:min(calc(100% - 40px),var(--max));margin-inline:auto}
.narrow{width:min(calc(100% - 40px),780px);margin-inline:auto}
.section{padding:clamp(4rem,8vw,7.5rem) 0}
.section--paper{background:var(--paper)}
.section--forest{background:var(--forest-deep);color:var(--ivory)}
.section--sage{background:var(--sage-soft)}
.eyebrow{margin:0 0 1rem;text-transform:uppercase;letter-spacing:.16em;font-size:.72rem;font-weight:800;color:#54746a}
.section--forest .eyebrow{color:#b7d0c5}
h1,h2,h3,h4{font-family:Marcellus,Georgia,serif;font-weight:400;line-height:1.08;color:var(--forest-deep);text-wrap:balance}
.section--forest h1,.section--forest h2,.section--forest h3{color:var(--ivory)}
h1{font-size:clamp(3.25rem,7.5vw,7.4rem);letter-spacing:-.04em;margin:.1em 0 .28em}
h2{font-size:clamp(2.35rem,4.8vw,4.7rem);letter-spacing:-.035em;margin:.2em 0 .4em}
h3{font-size:clamp(1.5rem,2.6vw,2.25rem);margin:.2em 0 .5em}
.lede{font-size:clamp(1.1rem,1.8vw,1.35rem);line-height:1.65;max-width:760px;color:#405f56}
.section--forest .lede{color:#d7e5de}
.button-row{display:flex;flex-wrap:wrap;gap:.8rem;margin-top:2rem}
.button,.wp-block-button__link{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;border-radius:999px;padding:.86rem 1.25rem;font-size:.82rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;text-decoration:none;border:1px solid var(--forest);background:var(--forest);color:var(--ivory)}
.button:hover,.wp-block-button__link:hover{background:var(--copper-text);border-color:var(--copper-text);color:white}
.button--ghost{background:transparent;color:var(--forest)}
.section--forest .button--ghost{border-color:rgba(255,255,255,.5);color:var(--ivory)}

.hero{position:relative;min-height:690px;display:grid;align-items:center;padding:clamp(5rem,10vw,9rem) 0;background:radial-gradient(circle at 78% 26%,rgba(221,174,64,.16),transparent 28%),radial-gradient(circle at 88% 76%,rgba(201,121,85,.13),transparent 32%),var(--ivory)}
.hero-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(330px,.85fr);gap:clamp(2rem,7vw,7rem);align-items:center}
.hero h1 span{display:block;color:var(--copper)}
.hero-art{position:relative;aspect-ratio:1;border-radius:50%;background:linear-gradient(145deg,#dce8e1,#f9ecd8);box-shadow:inset 0 0 0 1px rgba(18,56,47,.1),var(--shadow)}
.hero-art:before,.hero-art:after{content:"";position:absolute;border-radius:50%;border:2px solid var(--forest);opacity:.7}
.hero-art:before{inset:18%;border-color:var(--copper);border-left-color:transparent;transform:rotate(-20deg)}
.hero-art:after{inset:31%;border-color:var(--sage);border-bottom-color:transparent;transform:rotate(28deg)}
.hero-art img{position:absolute;width:31%;height:31%;inset:34.5%;object-fit:contain}
.hero-note{position:absolute;right:-2%;bottom:11%;max-width:220px;background:var(--paper);border:1px solid var(--line);padding:1rem 1.2rem;border-radius:18px;box-shadow:var(--shadow);font-size:.83rem}

.intro-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:clamp(2rem,8vw,8rem);align-items:start}
.dimension-list{display:grid;grid-template-columns:repeat(2,1fr);gap:.7rem 2rem;list-style:none;padding:0;margin:1rem 0}
.dimension-list li{border-bottom:1px solid var(--line);padding:.7rem 0;font-weight:650}

.flow-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;margin-top:3rem}
.flow-card{background:var(--paper);min-height:335px;padding:2rem;display:flex;flex-direction:column;text-decoration:none;color:var(--ink);transition:background .25s ease,transform .25s ease}
.flow-card:hover{background:#f1e8d8}
.flow-card .number{font-family:Marcellus,serif;color:var(--copper-text);font-size:1.2rem}
.flow-card h3{margin-top:auto}
.flow-card p{font-size:.93rem;color:#506b63}
.flow-card .arrow{font-size:1.6rem;color:var(--copper)}

.world-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:1.2rem;margin-top:3rem}
.world-card{position:relative;min-height:340px;padding:2rem;border-radius:26px;overflow:hidden;text-decoration:none;color:var(--ink);display:flex;flex-direction:column;justify-content:flex-end;border:1px solid rgba(18,56,47,.1)}
.world-card:nth-child(1){grid-column:span 7;background:#eadfd9}
.world-card:nth-child(2){grid-column:span 5;background:#e5eadb}
.world-card:nth-child(3){grid-column:span 4;background:#dce8e1}
.world-card:nth-child(4){grid-column:span 4;background:#efe3cf}
.world-card:nth-child(5){grid-column:span 4;background:#dde4ea}
.world-card:before{content:"";position:absolute;width:190px;height:190px;border-radius:50%;border:1px solid currentColor;right:-32px;top:-38px;opacity:.22}
.world-card:after{content:"";position:absolute;width:120px;height:120px;border-radius:50%;border:1px solid currentColor;right:38px;top:24px;opacity:.16}
.world-card .world-label{position:relative;z-index:2;text-transform:uppercase;letter-spacing:.13em;font-size:.69rem;font-weight:800}
.world-card h3{position:relative;z-index:2;margin:.45rem 0}
.world-card p{position:relative;z-index:2;margin:0;max-width:34rem;font-size:.92rem}

.feature{display:grid;grid-template-columns:1.05fr .95fr;border-radius:var(--radius);overflow:hidden;background:var(--forest-deep);color:var(--ivory);box-shadow:var(--shadow)}
.feature-media{min-height:440px;background:#0b1715;display:flex;align-items:center;justify-content:center;padding:3rem}
.feature-media img{border-radius:18px;box-shadow:0 25px 60px rgba(0,0,0,.35)}
.feature-copy{padding:clamp(2rem,5vw,5rem);display:flex;flex-direction:column;justify-content:center}
.feature-copy h2{font-size:clamp(2.3rem,4vw,4.4rem)}
.feature-copy p{color:#cbd9d3}

.method-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;margin-top:3rem}
.method-step{padding:1.6rem 0;border-top:2px solid var(--sage)}
.method-step:nth-child(2){border-color:var(--copper)}
.method-step:nth-child(3){border-color:var(--gold)}
.method-step:nth-child(4){border-color:var(--rose)}
.method-step b{display:block;font-family:Marcellus,serif;font-size:1.35rem;margin-bottom:.45rem}
.method-step p{font-size:.9rem;margin:0}

.page-hero{padding:clamp(5rem,10vw,8.5rem) 0 4rem;background:radial-gradient(circle at 85% 10%,rgba(201,121,85,.13),transparent 32%)}
.page-hero h1{font-size:clamp(3rem,6vw,6rem)}
.content-shell{padding:4rem 0 7rem}
.prose{width:min(100%,800px)}
.prose h2{font-size:clamp(2rem,4vw,3.5rem);margin-top:2em}
.prose h3{margin-top:1.7em}
.prose p,.prose li{max-width:72ch}
.prose blockquote{margin:2.5rem 0;padding:1.5rem 2rem;border-left:4px solid var(--copper);background:var(--paper);font-family:Marcellus,serif;font-size:1.45rem}
.prose table{width:100%;border-collapse:collapse}
.prose th,.prose td{padding:.8rem;border-bottom:1px solid var(--line);text-align:left}

.hub-intro{display:grid;grid-template-columns:.7fr 1.3fr;gap:4rem;margin-bottom:4rem}
.link-list{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.link-panel{background:var(--paper);padding:1.6rem;border:1px solid var(--line);border-radius:20px;text-decoration:none;min-height:190px}
.link-panel:hover{border-color:var(--copper)}
.link-panel h3{font-size:1.45rem}
.empty-state{border:1px solid var(--line);background:var(--paper);border-radius:24px;padding:2rem;margin:2rem 0}
.evidence-box{background:var(--sage-soft);border-radius:22px;padding:1.7rem;margin:2rem 0}
.evidence-box h3{font-size:1.4rem}
.boundary-box{border-left:5px solid var(--copper);background:var(--paper);padding:1.4rem 1.6rem;margin:2rem 0}

.site-footer{background:var(--forest-deep);color:#d9e5df;padding:4rem 0 2rem}
.footer-grid{display:grid;grid-template-columns:1fr 1.6fr;gap:4rem;align-items:start}
.site-footer .brand{color:var(--ivory)}
.site-footer p{max-width:38rem;color:#b9ccc3}
.footer-menu{display:grid;grid-template-columns:repeat(3,1fr);gap:.7rem 1.5rem}
.footer-menu a{color:var(--ivory);font-size:.84rem;text-decoration:none}
.footer-bottom{border-top:1px solid rgba(255,255,255,.15);margin-top:3rem;padding-top:1.4rem;display:flex;justify-content:space-between;gap:1rem;font-size:.77rem;color:#9eb5aa}

@media(max-width:980px){
  .desktop-nav{display:none}.mobile-nav{display:block}
  .hero-grid,.intro-grid,.feature,.footer-grid,.hub-intro{grid-template-columns:1fr}
  .hero-art{max-width:520px;margin:auto;width:90%}
  .flow-grid{grid-template-columns:repeat(2,1fr)}
  .world-card:nth-child(n){grid-column:span 6}
  .method-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:640px){
  body{font-size:16px}.header-inner{min-height:82px;padding-inline:18px}.brand{min-width:0}.brand img{width:40px;height:40px}.brand-text{font-size:.64rem}.brand-text strong{font-size:.94rem}
  .wrap,.narrow{width:min(calc(100% - 30px),var(--max))}
  .hero{min-height:auto;padding:4.5rem 0}.hero-grid{gap:3.5rem}.hero-note{right:0}.dimension-list{grid-template-columns:1fr}
  .flow-grid,.world-grid,.method-grid,.link-list{grid-template-columns:1fr}.flow-card{min-height:250px}.world-card:nth-child(n){grid-column:1;min-height:290px}
  .feature-media{min-height:280px;padding:1.2rem}.feature-copy{padding:2rem}
  .footer-menu{grid-template-columns:1fr 1fr}.footer-bottom{display:block}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation-duration:.01ms!important;transition-duration:.01ms!important}}
@media print{
  .site-header,.site-footer,.page-hero,.eyebrow{display:none!important}
  body{background:white;color:#172d27;font-size:12pt}.content-shell{padding:0}
}
