/* Jo's Rituals of Land
   Colours: moss bands, chalk ground, ochre accent. Light and dark.
   Type: Fraunces (display, italic) + Instrument Sans (text). */

:root{--bg:#ECEBE3;--ink:#22251A;--mute:#4F5743;--rule:#C6C9B5;--green:#3D4A2A;--tint:#DFE1D2;--moss:#3D4A2A;--onmoss:#ECEBE3;--onmoss2:#CFD2C1;--ochre:#C99A3B;--ochrefield:#C99A3B;--onochre:#1E2014;--btnink:#1E2014;color-scheme:light}
:root[data-theme="dark"]{--bg:#13160F;--ink:#E8E7DE;--mute:#A8AD99;--rule:#2E3526;--green:#B9C796;--tint:#1C2117;--moss:#2F3B21;--onmoss:#ECEBE3;--onmoss2:#C5C9B4;--ochre:#D6AA55;--ochrefield:#B98C35;--onochre:#15170F;--btnink:#15170F;color-scheme:dark}

*{box-sizing:border-box;min-width:0}
html{scroll-padding-top:24px}
body{margin:0;background:var(--bg);color:var(--ink);font-family:'Instrument Sans',system-ui,sans-serif;font-size:1rem;line-height:1.7;overflow-x:clip}
em,i{font-style:italic}
strong{font-weight:600}
img{max-width:100%}
a{color:inherit;text-underline-offset:3px}
a:hover{opacity:.75}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--ochre);outline-offset:4px}
p{margin:0}

.wrap{max-width:1160px;margin:0 auto;padding-left:clamp(24px,8vw,96px);padding-right:clamp(24px,8vw,96px)}
.pad{padding-top:clamp(72px,10vw,128px);padding-bottom:clamp(72px,10vw,128px)}
.stack{display:flex;flex-direction:column;gap:1.4em}

.disp{font-family:'Fraunces',Georgia,serif;font-style:italic;font-weight:380;font-variation-settings:'SOFT' 100,'WONK' 1,'opsz' 144;letter-spacing:-.025em}
.serif{font-family:'Fraunces',Georgia,serif;font-weight:360;font-variation-settings:'SOFT' 60,'opsz' 36}
.label{font-family:'Fraunces',Georgia,serif;font-style:italic;font-weight:420;font-variation-settings:'SOFT' 100,'opsz' 36}
.lead{font-size:clamp(1.25rem,2vw,1.5rem);line-height:1.45;color:var(--green)}
.h2{margin:0;font-size:clamp(2rem,4vw,3rem);line-height:1}
.muted{color:var(--mute)}
.green{color:var(--green)}
.inline-link{color:var(--green);font-weight:600}

/* bands */
.moss{background:var(--moss);color:var(--onmoss)}
.tint{background:var(--tint)}
.ochre{background:var(--ochrefield);color:var(--onochre)}

/* nav */
.nav{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 24px;font-size:.98rem;padding-top:24px}
.nav a{display:inline-flex;align-items:center;min-height:44px;text-decoration:none}
.brand{gap:12px;font-size:1.2rem}
.navlinks{display:flex;flex-wrap:wrap;gap:0 24px;color:var(--onmoss2)}

/* hero */
.hero{padding-bottom:clamp(72px,9vw,112px)}
.hero-row{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:56px 72px;margin-top:clamp(64px,9vw,120px)}
.hero-text{flex:1 1 460px;display:flex;flex-direction:column;gap:30px}
.hero h1{margin:0;line-height:.88;display:flex;flex-direction:column}
.hero h1 .jos{font-size:clamp(1.8rem,4vw,3rem);color:var(--ochre);margin-left:.08em}
.hero h1 .big{font-size:clamp(3.4rem,6.6vw,5.9rem);text-wrap:balance}
.hero .sub{max-width:26ch;font-size:clamp(1.25rem,2.2vw,1.6rem);line-height:1.3;color:var(--onmoss2)}
.hex{position:relative;flex:0 0 auto;width:clamp(170px,16vw,230px);margin:0}
.hex svg{display:block;width:100%;height:auto;aspect-ratio:1/1;overflow:visible;fill:var(--onmoss);opacity:.92}
.hex figcaption{position:absolute;left:6%;top:calc(100% + 24px);white-space:nowrap;font-family:'Fraunces',Georgia,serif;font-style:italic;font-weight:340;font-size:.8rem;line-height:1.5;letter-spacing:.01em;color:var(--onmoss2);opacity:.38}
/* hero band: fine grain */
.hero-band{position:relative;overflow:hidden;isolation:isolate}
.hero-band::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.16;mix-blend-mode:soft-light;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
.hero-band .hero{min-height:min(80vh,760px);display:flex;flex-direction:column}
.hero-band .hero-row{flex:1;align-items:center;margin-top:clamp(40px,6vw,80px)}
.hero-band .hero-text{flex:1 1 auto}
@media (min-width:641px){.hero-band .hero-row{gap:48px clamp(64px,9vw,170px);justify-content:center}.hero-band .hero-text{flex:0 1 auto}.hero h1 .big{white-space:nowrap}}
@media (max-width:640px){.hex{display:none}.hero-band .hero{min-height:0}}
/* footer: a night sky in both colour modes */
footer.night{position:relative;overflow:hidden;isolation:isolate;background:#0F120B;color:#E8E7DE;border-top:0;--mute:#A8AD99;--ink:#E8E7DE;--ochre:#D6AA55}
.stars{position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
.stars svg{display:block;width:100%;height:100%}
.stars circle{fill:#FFFFFF;opacity:calc(var(--o) * .6)}
/* one shooting star, once, when the footer comes into view */
.meteor{position:absolute;z-index:-1;top:14%;left:74%;width:140px;height:1.5px;border-radius:2px;background:linear-gradient(90deg,#fff,rgba(255,255,255,0));box-shadow:0 0 6px rgba(255,255,255,.5);opacity:0;transform:rotate(-10.6deg);transform-origin:left center;pointer-events:none}
footer.seen .meteor{animation:meteor 1.6s cubic-bezier(.2,.6,.3,1) .4s 1 forwards}
@keyframes meteor{0%{opacity:0;transform:translate(0,0) rotate(-10.6deg)}12%{opacity:.9}100%{opacity:0;transform:translate(-480px,90px) rotate(-10.6deg)}}
@media (prefers-reduced-motion:reduce){footer.seen .meteor{animation:glimmer 2.4s ease-in-out .4s 1 forwards}}
@keyframes glimmer{0%,100%{opacity:0;transform:rotate(-10.6deg)}40%{opacity:.8;transform:rotate(-10.6deg)}}
@keyframes cast{from{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:none}}
.hx{animation:cast .9s cubic-bezier(.3,.7,.2,1) both}
.l1{animation-delay:.3s}.l2{animation-delay:.75s}.l3{animation-delay:1.2s}.l4{animation-delay:1.65s}.l5{animation-delay:2.1s}.l6{animation-delay:2.55s}
@media (prefers-reduced-motion:reduce){.hx{animation:none}}

/* page header (inner pages) */
.phead{padding-bottom:clamp(56px,8vw,104px)}
.phead-row{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:28px 56px;margin-top:clamp(56px,8vw,96px)}
.phead h1{margin:0;font-size:clamp(2.8rem,7vw,5.6rem);line-height:.92}
.phead .sub{max-width:34ch;font-size:clamp(1.15rem,2vw,1.4rem);line-height:1.35;color:var(--onmoss2)}

/* rows with margin label */
.row{display:flex;flex-wrap:wrap;gap:16px 48px}
.row>.side{flex:0 0 160px;margin:0}
.row>.main{flex:1 1 400px;max-width:34rem}
.ruled{border-top:1px solid var(--rule);padding-top:40px}
.side.label{font-size:1.3rem;line-height:1.2;color:var(--green)}
.sections{display:flex;flex-direction:column;gap:clamp(56px,8vw,96px)}

/* lists of notes / rituals */
.list{border-bottom:1px solid var(--rule)}
.item{display:flex;flex-wrap:wrap;gap:8px 48px;border-top:1px solid var(--rule);padding:30px 0}
.item .when{flex:0 0 160px;padding-top:6px;font-size:1.05rem;color:var(--green);white-space:nowrap}
.item .what{flex:1 1 420px;max-width:38rem;display:flex;flex-direction:column;gap:8px}
.item h3{margin:0;font-size:clamp(1.35rem,2.4vw,1.75rem);line-height:1.15;font-weight:360}
.item h3 a{text-decoration:none}
.tags{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:.92rem;color:var(--mute)}
.empty{border-top:1px solid var(--rule);padding:36px 0;color:var(--mute)}
.list-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px 32px;margin-bottom:32px}

/* about */
.about{display:flex;flex-wrap:wrap;align-items:flex-start;gap:48px 72px}
.about{align-items:center}
.about figure{flex:1 1 380px;max-width:460px;margin:0}
.about img{display:block;width:100%;height:auto;border-radius:4px}
.about .stack{flex:1 1 380px;max-width:34rem}

/* thinking */
.ideas{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:0 56px}
.idea{border-top:1px solid var(--rule);padding:26px 0 34px;display:flex;flex-direction:column;gap:10px}
.idea h3{margin:0;font-size:1.3rem;line-height:1.2;color:var(--green)}
.closing{max-width:40rem;font-size:clamp(1.25rem,2.2vw,1.55rem);line-height:1.4;color:var(--green)}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:0 26px;border-radius:999px;text-decoration:none;font-weight:600;white-space:nowrap;font:inherit;font-weight:600;cursor:pointer;border:0}
.btn-ochre{background:var(--ochre);color:var(--btnink)}
.btn-line{background:transparent;border:1.5px solid currentColor}
.btn-ink{background:var(--onochre);color:var(--ochrefield)}
.btn-moss{background:var(--moss);color:var(--onmoss)}

/* invitations */
.invites{border-bottom:1px solid rgba(236,235,227,.25)}
.invite{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:18px 48px;border-top:1px solid rgba(236,235,227,.25);padding:28px 0}
.invite p{flex:1 1 360px;max-width:34rem;font-size:clamp(1.2rem,2vw,1.4rem);line-height:1.4}

/* forms */
.signup{display:flex;flex-direction:column;gap:12px;flex:0 1 440px}
.signup label{font-size:1.25rem}
.field-row{display:flex;flex-wrap:wrap;gap:10px}
input,textarea,select{font:inherit;font-size:16px;color:inherit}
.signup input{flex:1 1 220px;min-height:50px;padding:0 18px;border-radius:999px;border:1.5px solid currentColor;background:transparent}
.small{font-size:.95rem}
.form{display:flex;flex-direction:column;gap:20px;max-width:40rem}
.form label{display:flex;flex-direction:column;gap:6px;font-weight:500}
.form input,.form textarea{padding:12px 16px;border-radius:10px;border:1.5px solid var(--rule);background:var(--bg)}
.form textarea{min-height:180px;resize:vertical;line-height:1.5}
.form .check{flex-direction:row;align-items:flex-start;gap:10px;font-weight:400}
.form .check input{width:20px;height:20px;margin-top:3px;flex:none}
.hidden{position:absolute;left:-9999px}

/* article */
.article{display:flex;flex-direction:column;gap:1.3em;font-size:1.0625rem;line-height:1.8}
.article h2,.article h3{font-family:'Fraunces',Georgia,serif;font-weight:400;line-height:1.2;margin:16px 0 0}
.article h2{font-size:1.7rem}.article h3{font-size:1.35rem}
.article blockquote{margin:0;padding-left:20px;border-left:2px solid var(--ochre);font-family:'Fraunces',Georgia,serif;font-style:italic;font-size:1.3rem;line-height:1.5}
.article ul,.article ol{margin:0;padding-left:1.2em}
.article img{border-radius:4px}
.article hr{border:0;border-top:1px solid var(--rule);margin:8px 0;width:100%}
.article audio{width:100%}
.article>.serif:first-child{font-size:clamp(1.25rem,2.2vw,1.5rem);line-height:1.45;color:var(--green)}
.meta{display:flex;flex-wrap:wrap;gap:6px 18px;color:var(--onmoss2);font-size:.98rem}

/* footer */
.footer{border-top:1px solid var(--rule)}
.footer .wrap{padding-top:48px;padding-bottom:48px;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:32px 56px}
.footer .links{display:flex;flex-wrap:wrap;gap:0 28px;font-size:.98rem}
.footer .links a{display:inline-flex;align-items:center;min-height:44px}
.footer .brand{display:inline-flex;align-items:center;gap:12px;text-decoration:none;font-size:1.35rem}

.stack>.signup,.stack>form{flex:none}
.group-title{margin:40px 0 4px;font-size:1.3rem;color:var(--green)}
.group-title:first-child{margin-top:0}
.related{border-left:2px solid var(--ochre);padding:4px 0 4px 18px;color:var(--mute)}

.feeds input{flex:1 1 300px;min-height:50px;padding:0 18px;border-radius:999px;border:1.5px solid var(--rule);background:transparent;color:inherit;font:inherit}

/* sun and moon switch */
.nav .navlinks{align-items:center;margin-left:auto}
.mode{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin:0 -8px 0 4px;padding:0;border:0;background:none;cursor:pointer;color:inherit;border-radius:50%}
.mode:hover{opacity:.8}
.mode svg{display:block;width:30px;height:30px;overflow:visible}
.mode .sun,.mode .moon{transition:transform .8s cubic-bezier(.5,0,.2,1)}
.mode .sun{transform:translateY(0)}.mode .moon{transform:translateY(26px)}
[data-theme="dark"] .mode .sun{transform:translateY(26px)}[data-theme="dark"] .mode .moon{transform:translateY(0)}
@media (prefers-reduced-motion:reduce){.mode .sun,.mode .moon{transition:none}}
@media (max-width:640px){.nav .mode{order:2;margin-left:auto}.nav .navlinks{order:3;flex-basis:100%;margin-left:0}}
.pager{display:grid;grid-template-columns:1fr 1fr;gap:24px;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);padding:28px 0}
.pager a{display:flex;flex-direction:column;gap:4px;text-decoration:none}
.pager a:hover .serif{text-decoration:underline;text-underline-offset:4px}
.pager .label{color:var(--ochre);font-size:.85rem}
.pager .serif{font-size:1.25rem;line-height:1.3}
.pager .muted{font-size:.9rem}
.pager-prev .label::before{content:"\2190  "}
.pager-next{text-align:right;align-items:flex-end}
.pager-next .label::after{content:"  \2192"}
@media (max-width:560px){.pager{grid-template-columns:1fr}.pager-next{text-align:left;align-items:flex-start}}
