/*
 * forecast · pesamazonian.com · design brief
 * 1 Concept: a grow-room weather app. The PES Amazonian kit's conditions are forecast day by day, from the soaked
 *   substrate to the last flush: a "current conditions" card, a swipeable 35-day strip, a contamination radar.
 * 2 Type: Parkinsans (readings, headings, big light numerals) + Source Sans 3 (reading text). Self-hosted woff2.
 * 3 Palette: mist #e6eef0, sheet #fbfcfc, ink #132228, dusk #163f52 (conditions card), dew #1d5b78, lamp amber #dc8f2e;
 *   risk scale low #8fb3c2, raised #dc8f2e, high #b5452f.
 * 4 Layout signature: the app's home stack (now card, condition tiles, day strip, widgets, forecast discussion,
 *   "detailed forecasts" list); deep pages open with a conditions header of four readings and hour-chip contents.
 * 5 Finishing detail: rounded widget cards with an icon-led small-caps label, as in a weather app; radar sweep.
 */
@font-face{font-family:"Parkinsans";font-style:normal;font-weight:300 800;font-display:swap;src:url(fonts/parkinsans-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Parkinsans";font-style:normal;font-weight:300 800;font-display:swap;src:url(fonts/parkinsans-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:400 600;font-display:swap;src:url(fonts/sourcesans3-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:400 600;font-display:swap;src:url(fonts/sourcesans3-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Source Sans 3";font-style:italic;font-weight:400;font-display:swap;src:url(fonts/sourcesans3-italic-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Source Sans 3";font-style:italic;font-weight:400;font-display:swap;src:url(fonts/sourcesans3-italic-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

:root{
  --mist:#e6eef0;--sheet:#fbfcfc;--ink:#132228;--muted:#4a5d64;--line:#cbd8db;
  --dusk:#163f52;--dusk2:#1d4d63;--on-dusk:#eef5f7;--on-dusk2:#b9d0d8;
  --dew:#1d5b78;--amber:#dc8f2e;--amber-ink:#8a4f0e;
  --r1:#8fb3c2;--r2:#dc8f2e;--r3:#b5452f;
  --rad:22px;--rad-s:14px;
  --ui:"Parkinsans",ui-rounded,system-ui,sans-serif;--txt:"Source Sans 3",system-ui,sans-serif;
  --wrap:min(1180px,100% - 2rem);
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:5rem}
body{margin:0;background:var(--mist);color:var(--ink);font:400 1.125rem/1.62 var(--txt);font-kerning:normal}
img{max-width:100%;height:auto;display:block}
a{color:var(--dew);text-underline-offset:.18em;text-decoration-thickness:1px}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:3px solid var(--amber);outline-offset:3px;border-radius:6px}
.skip{position:absolute;left:-999px;top:.5rem;background:var(--ink);color:#fff;padding:.5rem 1rem;border-radius:999px;z-index:20}
.skip:focus{left:1rem}
.ic{width:24px;height:24px;flex:none}
.ic-s{width:18px;height:18px}
h1,h2,h3,h4{font-family:var(--ui);line-height:1.18;letter-spacing:-.01em}

/* app bar */
.bar{position:sticky;top:0;z-index:10;display:flex;align-items:center;gap:1rem;padding:.6rem max(1rem,(100% - 1180px)/2);background:var(--mist);border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:.6rem;text-decoration:none;color:var(--ink);margin-right:auto}
.brand img{width:40px;height:40px}
.brand-name{font:600 1.1rem/1.05 var(--ui);display:flex;flex-direction:column}
.brand-name small{font:400 .78rem/1.3 var(--ui);color:var(--muted);letter-spacing:.04em}
.tabs{display:none;gap:.2rem;font:500 .92rem/1 var(--ui)}
.tabs a{color:var(--ink);text-decoration:none;padding:.55rem .8rem;border-radius:999px}
.tabs a:hover{background:#d7e3e6}
.tabs a[aria-current]{background:var(--dusk);color:var(--on-dusk)}
.menu{position:relative}
.menu summary{list-style:none;cursor:pointer;font:500 .95rem/1 var(--ui);padding:.6rem 1rem;border-radius:999px;background:var(--dusk);color:var(--on-dusk)}
.menu summary::-webkit-details-marker{display:none}
.menu-sheet{position:absolute;right:0;top:calc(100% + .5rem);width:min(22rem,calc(100vw - 2rem));background:var(--sheet);border-radius:var(--rad);box-shadow:0 12px 32px rgba(19,34,40,.18);padding:.5rem;display:grid}
.menu-sheet a{display:grid;grid-template-columns:24px 1fr;column-gap:.75rem;padding:.65rem .7rem;border-radius:var(--rad-s);text-decoration:none;color:var(--ink);font:500 1rem/1.25 var(--ui)}
.menu-sheet a .ic{grid-row:span 2;color:var(--dew);margin-top:.1rem}
.menu-sheet small{font:400 .82rem/1.3 var(--txt);color:var(--muted)}
.menu-sheet a:hover,.menu-sheet a[aria-current]{background:var(--mist)}
@media (min-width:1080px){.tabs{display:flex}.menu{display:none}}

main{width:var(--wrap);margin:0 auto;padding:1rem 0 3rem}

/* now card */
.now{display:grid;gap:1rem;margin-top:.5rem}
.now-card{position:relative;display:grid;gap:1rem;background:var(--dusk);color:var(--on-dusk);border-radius:28px;padding:1.4rem 1.3rem 1.3rem;overflow:hidden}
.loc{margin:0;display:flex;align-items:center;gap:.45rem;font:500 .85rem/1.2 var(--ui);color:var(--on-dusk2);letter-spacing:.03em}
.now-card h1{margin:0;font-weight:500;font-size:clamp(1.35rem,1rem + 1.8vw,2.2rem);max-width:24ch;color:#fff}
.now-main{display:grid;gap:.8rem}
.now-temp{display:flex;align-items:flex-end;gap:.6rem}
.now-temp .big{font:300 clamp(4.6rem,3rem + 7vw,8.4rem)/.86 var(--ui);letter-spacing:-.05em;color:#fff}
.now-temp .sub{font:400 1rem/1.3 var(--ui);color:var(--on-dusk2);padding-bottom:.55rem;max-width:12ch}
.now-cond p{margin:0}
.now-day{font:500 .85rem/1.3 var(--ui);text-transform:uppercase;letter-spacing:.09em;color:var(--amber)}
.now-title{font:500 1.45rem/1.2 var(--ui);color:#fff;margin:.2rem 0 .35rem!important}
.now-sight{color:var(--on-dusk2);max-width:40ch;font-size:1.05rem}
.now-photo{margin:0;border-radius:20px;overflow:hidden;aspect-ratio:3/2;background:#2a5468}
.now-photo img{width:100%;height:100%;object-fit:cover;object-position:62% 50%}
.flip .now-main{animation:fcIn .45s cubic-bezier(.2,.7,.2,1)}
@keyframes fcIn{from{opacity:.2;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (min-width:860px){
  .now-card{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);grid-template-areas:"loc photo" "h1 photo" "main photo";align-content:start;padding:2rem 2rem 2rem 2.2rem;column-gap:2rem}
  .loc{grid-area:loc}.now-card h1{grid-area:h1}.now-main{grid-area:main;align-self:end}
  .now-photo{grid-area:photo;aspect-ratio:auto;min-height:100%}
}

/* condition tiles */
.tiles{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
.tiles li{background:var(--sheet);border-radius:var(--rad);padding:1rem 1rem 1.05rem;display:grid;align-content:start;gap:.15rem;min-height:8.2rem}
.tiles .ic{color:var(--dew);margin-bottom:.35rem}
.t-l{font:500 .74rem/1.2 var(--ui);text-transform:uppercase;letter-spacing:.1em;color:var(--muted)}
.t-v{font:500 1.18rem/1.22 var(--ui);color:var(--ink)}
.t-n{font-size:.88rem;line-height:1.35;color:var(--muted);margin-top:.2rem}
@media (min-width:860px){.tiles{grid-template-columns:repeat(4,minmax(0,1fr))}}
.todo{background:#f6ecdc;border-radius:var(--rad);padding:1.05rem 1.2rem;border-left:6px solid var(--amber)}
.todo-h{display:flex;align-items:center;gap:.5rem;margin:0 0 .3rem;font-size:1.02rem;font-weight:600;color:var(--amber-ink)}
.todo p{margin:0;max-width:72ch}

/* day strip */
.strip-wrap{margin-top:2.2rem}
.strip-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.3rem 1.5rem;margin-bottom:.8rem}
.strip-head h2{margin:0;font-size:1.5rem;font-weight:500}
.strip-head p{margin:0;color:var(--muted);font-size:.98rem;max-width:56ch}
.strip{display:flex;gap:.55rem;overflow-x:auto;scroll-snap-type:x mandatory;padding:.3rem .2rem 1rem;scrollbar-width:thin;overscroll-behavior-x:contain}
.day{scroll-snap-align:start;flex:0 0 6.6rem;display:grid;justify-items:center;gap:.35rem;padding:.85rem .4rem .8rem;border:0;border-radius:20px;background:var(--sheet);color:var(--ink);font:inherit;cursor:pointer;position:relative;transition:background .2s,color .2s,transform .2s}
.day:hover{transform:translateY(-2px)}
.day[aria-pressed=true]{background:var(--dusk);color:var(--on-dusk)}
.d-no{font:600 .9rem/1 var(--ui)}
.d-ic{width:30px;height:30px;color:var(--dew)}
.day[aria-pressed=true] .d-ic{color:var(--amber)}
.d-ph{font:400 .82rem/1.2 var(--ui);color:var(--muted)}
.day[aria-pressed=true] .d-ph{color:var(--on-dusk2)}
.d-t{font:500 .95rem/1 var(--ui);font-variant-numeric:tabular-nums}
.d-r{width:2.4rem;height:5px;border-radius:5px;background:var(--r1)}
.d-r.r2{background:var(--r2)}.d-r.r3{background:var(--r3)}
.fc-ready .fc-table{display:none}
.src{display:flex;gap:.5rem;align-items:flex-start;margin:.6rem 0 0;color:var(--muted);font-size:.9rem;line-height:1.4;max-width:90ch}
.src .ic{margin-top:.15rem}

/* tables (no-JS forecast + article) */
.table{overflow-x:auto;background:var(--sheet);border-radius:var(--rad);margin:1rem 0}
table{border-collapse:collapse;width:100%;font-size:.95rem;line-height:1.4}
caption{text-align:left;font:500 .8rem/1.2 var(--ui);text-transform:uppercase;letter-spacing:.09em;color:var(--muted);padding:1rem 1rem .3rem}
th,td{text-align:left;vertical-align:top;padding:.65rem .9rem;border-bottom:1px solid #e1e9eb}
thead th{font:600 .78rem/1.25 var(--ui);text-transform:uppercase;letter-spacing:.07em;color:var(--muted);background:#eef3f4}
tbody tr:last-child>*{border-bottom:0}
.fc-table table{min-width:68rem}

/* widgets */
.widgets{display:grid;gap:1rem;margin-top:2rem}
@media (min-width:900px){.widgets{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)}}
.w{background:var(--sheet);border-radius:var(--rad);padding:1.2rem 1.25rem 1.3rem}
.w-h{display:flex;align-items:center;gap:.45rem;margin:0 0 .9rem;font:600 .78rem/1.2 var(--ui);text-transform:uppercase;letter-spacing:.1em;color:var(--muted)}
.w-h .ic{color:var(--dew)}
.radar-grid{display:grid;gap:1.2rem;align-items:center}
@media (min-width:560px){.radar-grid{grid-template-columns:minmax(0,15rem) 1fr}}
.radar{width:100%;max-width:15rem;margin:0 auto;background:var(--dusk);border-radius:50%}
.radar-w{display:flex;flex-direction:column}.radar-grid{flex:1}
@media (min-width:900px){.radar-grid{grid-template-columns:minmax(0,19rem) 1fr}.radar{max-width:19rem}}
.radar .rg{fill:none;stroke:#3d6a7e;stroke-width:1}
.radar .sweep path{fill:rgba(143,179,194,.18)}
.radar .sweep{transform-origin:120px 120px;animation:sweep 6s linear infinite}
@keyframes sweep{to{transform:rotate(360deg)}}
.blip{cursor:pointer}
.blip circle{fill:var(--r1);stroke:var(--dusk);stroke-width:2}
.blip.r2 circle{fill:var(--r2)}.blip.r3 circle{fill:#e0725a}
.blip text{font:500 10px var(--ui);fill:var(--on-dusk2);text-anchor:middle}
.blip.on circle{stroke:#fff;stroke-width:3;r:8}
.blip.on text{fill:#fff;font-weight:700}
.rk{font:500 1.5rem/1.1 var(--ui);margin:0 0 .3rem}
.radar-txt p{margin:0 0 .6rem}
.legend{list-style:none;padding:0;margin:.6rem 0;display:flex;flex-wrap:wrap;gap:.3rem 1rem;font-size:.88rem;color:var(--muted)}
.legend span{display:inline-block;width:.75rem;height:.75rem;border-radius:50%;margin-right:.35rem;vertical-align:-.05rem;background:var(--r1)}
.legend .r2{background:var(--r2)}.legend .r3{background:var(--r3)}
.fine{font-size:.86rem;line-height:1.45;color:var(--muted)}
.feat{display:grid;gap:.35rem;text-decoration:none;color:var(--ink)}
.feat img{width:100%;max-width:15rem;margin:0 auto .4rem;border-radius:var(--rad-s);background:#fff}
.feat-name{font:500 1.15rem/1.25 var(--ui)}
.feat-spec{font-size:.92rem;color:var(--muted)}
.feat-meta,.pc-meta{display:flex;align-items:baseline;gap:.6rem;flex-wrap:wrap}
.price{font:600 1.15rem/1 var(--ui);font-variant-numeric:tabular-nums}
.shop{font-size:.86rem;color:var(--muted)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;margin-top:.5rem;padding:.7rem 1.1rem;border-radius:999px;background:var(--amber);color:#1f1405;font:600 .95rem/1.1 var(--ui);text-align:center}
a:hover .btn{background:#e8a24a}

/* sheets and articles */
.sheet{background:var(--sheet);border-radius:var(--rad);padding:1.4rem 1.2rem 1.8rem;margin-top:2rem}
@media (min-width:760px){.sheet{padding:2.4rem 3rem 2.8rem}}
@media (min-width:1000px){.is-page .sheet{max-width:58rem;margin-left:auto;margin-right:auto}}
.sheet>*{max-width:70ch}
.sheet>.table,.sheet>.products,.sheet>.product-feature,.sheet>figure{max-width:none}
.kicker{font:500 .8rem/1.3 var(--ui);text-transform:uppercase;letter-spacing:.1em;color:var(--amber-ink);margin:0 0 .6rem}
.sheet h2{font-size:clamp(1.35rem,1.1rem + .9vw,1.75rem);font-weight:500;margin:2.4rem 0 .6rem;padding-top:1.4rem;border-top:1px solid var(--line)}
.sheet>p:not(.kicker):first-of-type,.discussion>.kicker+p{font-size:1.2rem;line-height:1.55}
.sheet h3{font-size:1.18rem;font-weight:600;margin:1.8rem 0 .4rem}
.sheet p,.sheet ul,.sheet ol{margin:0 0 1rem}
.sheet li{margin-bottom:.35rem}
.sheet blockquote{margin:1.2rem 0;padding:.4rem 0 .4rem 1.1rem;border-left:4px solid var(--r1);color:var(--muted)}
.sheet figure{margin:1.5rem 0}
.sheet figure img{max-width:16rem;margin:0}
.sheet .table{background:#f3f7f8;border:1px solid #e1e9eb}
.sheet thead th{background:#e8eff1}
code{font-size:.92em}

/* detail head */
.detail-head{margin-top:.5rem;background:var(--dusk);color:var(--on-dusk);border-radius:28px;padding:1.5rem 1.3rem 1.3rem}
@media (min-width:760px){.detail-head{padding:2.2rem 2.4rem 1.8rem}}
.detail-head .kicker{color:var(--amber)}
.detail-head h1{font-size:clamp(1.8rem,1.3rem + 2.4vw,3rem);font-weight:500;margin:0 0 .6rem;max-width:26ch;color:#fff}
.lede{font-size:1.15rem;color:var(--on-dusk2);margin:0 0 1.4rem;max-width:62ch}
.tiles-page li{min-height:0;background:var(--dusk2);color:var(--on-dusk)}
.tiles-page .t-l{color:var(--on-dusk2)}
.tiles-page .t-v{font-size:1.06rem;color:#fff}
.t-no{font:500 .78rem/1 var(--ui);color:var(--amber);margin-bottom:.5rem}
.upd{margin:1rem 0 0;font:400 .88rem/1.2 var(--ui);color:var(--on-dusk2)}
.hours{margin-top:1.4rem}
.hours ol{list-style:none;margin:0;padding:.2rem .1rem .6rem;display:flex;gap:.5rem;overflow-x:auto;scroll-snap-type:x proximity}
.hours li{flex:0 0 auto;scroll-snap-align:start}
.hours a{display:flex;flex-direction:column;gap:.15rem;width:11.5rem;height:100%;padding:.7rem .85rem;border-radius:var(--rad-s);background:var(--sheet);color:var(--ink);text-decoration:none;font:500 .88rem/1.28 var(--ui)}
.hours a span{font-size:.75rem;color:var(--amber-ink);letter-spacing:.08em}
.hours a:hover{background:#fff;box-shadow:inset 0 0 0 2px var(--r1)}

/* product cards */
.products{display:grid;grid-template-columns:repeat(auto-fill,minmax(13.5rem,1fr));gap:.9rem;margin:1.4rem 0 1.8rem}
.product-feature{margin:1.4rem 0 1.8rem}
.pc{display:grid;grid-template-rows:auto 1fr;background:#fff;border:1px solid #dfe8ea;border-radius:var(--rad);overflow:hidden;text-decoration:none;color:var(--ink);transition:transform .2s,box-shadow .2s}
.pc:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(19,34,40,.12)}
.pc-img{display:block;background:#fff;padding:.8rem .8rem 0}
.pc-img img{aspect-ratio:1;object-fit:contain;width:100%;border-radius:12px}
.pc-body{display:grid;align-content:start;gap:.4rem;padding:.8rem 1rem 1rem}
.pc-name{font:500 1rem/1.3 var(--ui)}
.pc .btn{justify-self:start;font-size:.88rem;padding:.6rem .95rem}
.pc-one{grid-template-rows:none;grid-template-columns:minmax(7rem,11rem) 1fr;align-items:center;max-width:36rem}
.pc-one .pc-img{padding:.8rem}

/* list of forecasts */
.list{margin-top:2.4rem}
.list h2{font-size:1.5rem;font-weight:500;margin:0 0 .8rem}
.list ul{list-style:none;margin:0;padding:0;background:var(--sheet);border-radius:var(--rad);overflow:hidden}
.list li+li{border-top:1px solid #e1e9eb}
.list a{display:grid;grid-template-columns:24px 1fr 20px;gap:.9rem;align-items:center;padding:1rem 1.2rem;text-decoration:none;color:var(--ink)}
.list a:hover{background:#f1f6f7}
.list a>.ic:first-child{color:var(--dew)}
.l-t{font:500 1.08rem/1.25 var(--ui);display:flex;flex-direction:column}
.l-t small{font:400 .92rem/1.35 var(--txt);color:var(--muted)}
.ic-c{width:20px;height:20px;color:var(--muted)}
@media (min-width:860px){.list ul{display:grid;grid-template-columns:1fr 1fr}.list li+li{border-top:0}.list li{border-bottom:1px solid #e1e9eb}.list li:nth-child(odd){border-right:1px solid #e1e9eb}}

/* footer */
.foot{width:var(--wrap);margin:0 auto 2.5rem;padding:1.5rem 1.3rem;border-radius:var(--rad);background:var(--dusk);color:var(--on-dusk)}
.foot a{color:#fff}
.foot-pub{display:flex;gap:1rem;align-items:center}
.foot-pub img{width:84px;height:auto;flex:none}
.foot-pub p{margin:0;max-width:60ch}
.disc{margin:1rem 0 .4rem;font-size:.95rem;color:var(--on-dusk);max-width:90ch}
.foot .fine{color:var(--on-dusk2);margin:0}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
@media print{.bar,.strip,.widgets,.list{display:none}.fc-table{display:block!important}}
@media (min-width:1000px){.is-page .hours{max-width:58rem;margin-left:auto;margin-right:auto}}
