/* Piri Guides — shared stylesheet for every page under /guides/.
   Tokens and type scale are lifted from the homepage so the section matches the
   rest of the site. Plain static CSS: no build step, no preprocessor. */

:root {
  --cream:#F7F0E5; --paper:#FFFDF8; --ink:#1E1A16; --muted:#756E65;
  --red:#CE452F; --red-dark:#A93222; --green:#809754; --line:#E6DACA;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{font-family:"DM Sans",system-ui,-apple-system,sans-serif;background:var(--cream);color:var(--ink);line-height:1.65;overflow-x:hidden}
a{color:inherit}
img{max-width:100%;height:auto}

.wrap{width:min(1160px,calc(100% - 40px));margin:auto}
.narrow{width:min(720px,calc(100% - 40px));margin:auto}

/* ---- header / nav (matches the homepage) ---- */
.site-nav{height:82px;display:flex;align-items:center;justify-content:space-between}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-weight:700;font-size:1.12rem}
.brand img{width:56px;height:56px;border-radius:16px;box-shadow:0 8px 22px rgba(37,27,20,.14);flex:0 0 auto}
.navlinks{display:flex;align-items:center;gap:28px;font-size:.93rem;font-weight:600}
.navlinks a{text-decoration:none;color:var(--muted)}
.navlinks a:hover{color:var(--ink)}
.navlinks a[aria-current="page"]{color:var(--ink)}
.mini-cta{background:var(--ink)!important;color:#fff!important;padding:11px 17px;border-radius:999px}

h1,h2,h3{font-family:"Fraunces",Georgia,serif;letter-spacing:-.03em;line-height:1.1}

/* ---- breadcrumbs ---- */
.crumbs{font-size:.83rem;color:var(--muted);padding:26px 0 0}
.crumbs ol{list-style:none;display:flex;flex-wrap:wrap;gap:8px}
.crumbs li:not(:last-child):after{content:"/";margin-left:8px;color:var(--line)}
.crumbs a{text-decoration:none}
.crumbs a:hover{color:var(--ink)}

/* ---- index hero ---- */
.guides-hero{padding:44px 0 54px;max-width:760px}
.eyebrow{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.62);border:1px solid var(--line);padding:7px 12px;border-radius:999px;font-size:.76rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--green)}
.eyebrow i{width:8px;height:8px;background:var(--green);border-radius:50%}
.guides-hero h1{font-size:clamp(2.7rem,6vw,4.6rem);margin:20px 0 20px}
.guides-hero p{font-size:1.13rem;color:var(--muted);max-width:620px}

/* ---- guide cards ---- */
.card-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;padding-bottom:40px}
.card{display:block;text-decoration:none;background:rgba(255,253,248,.72);border:1px solid var(--line);border-radius:25px;padding:29px;transition:.2s ease}
.card:hover{transform:translateY(-5px);background:var(--paper);box-shadow:0 15px 40px rgba(61,43,29,.07)}
.card .kicker{font-size:.74rem;font-weight:700;text-transform:uppercase;letter-spacing:.09em;color:var(--green)}
.card h2{font-size:1.5rem;margin:12px 0 9px}
.card p{color:var(--muted);font-size:.95rem}
.card .more{display:inline-block;margin-top:16px;font-weight:700;font-size:.9rem;color:var(--red)}
/* Not a link, so no hover lift — but it still contains a real link, which is why
   this must not set pointer-events:none. */
.card.soon{opacity:.78}
.card.soon a{color:var(--red);text-decoration:underline;text-underline-offset:2px}
.card.soon .kicker{color:var(--muted)}

/* ---- article ---- */
.article{padding:10px 0 40px}
.article header{padding-bottom:8px;border-bottom:1px solid var(--line);margin-bottom:34px}
.article h1{font-size:clamp(2.3rem,5vw,3.6rem);margin:16px 0 18px}
.article .standfirst{font-size:1.13rem;color:var(--muted);margin-bottom:22px}
.byline{font-size:.83rem;color:var(--muted);padding-bottom:26px}
.article h2{font-size:1.85rem;margin:46px 0 14px}
.article h3{font-size:1.24rem;margin:30px 0 10px}
.article p,.article ul,.article ol{margin-bottom:17px}
.article ul,.article ol{padding-left:22px}
.article li{margin-bottom:8px}
.article a{color:var(--red);text-decoration:underline;text-underline-offset:2px}
.article strong{font-weight:700}
.article figure{margin:32px 0}
.article figure img{display:block;width:100%;border-radius:22px;border:1px solid var(--line);box-shadow:0 18px 45px rgba(61,43,29,.10)}
.article figcaption{font-size:.85rem;color:var(--muted);margin-top:12px;text-align:center}
/* Portrait-orientation photos: capped so a tall image doesn't swamp the column. */
.article figure.portrait{max-width:460px;margin-left:auto;margin-right:auto}

.toc{background:rgba(255,253,248,.72);border:1px solid var(--line);border-radius:22px;padding:24px 28px;margin:0 0 34px}
.toc h2{font-family:"DM Sans",sans-serif;font-size:.76rem;font-weight:700;text-transform:uppercase;letter-spacing:.09em;color:var(--muted);margin:0 0 12px}
.toc ol{margin:0;padding-left:20px}
.toc li{margin-bottom:6px;font-size:.95rem}
.toc a{color:inherit;text-decoration:none;font-weight:600}
.toc a:hover{color:var(--red)}

.callout{background:rgba(255,253,248,.8);border:1px solid var(--line);border-left:4px solid var(--green);border-radius:16px;padding:20px 24px;margin:30px 0}
.callout p:last-child{margin-bottom:0}

/* ---- CTA ---- */
.cta{background:var(--ink);color:#fff;border-radius:32px;padding:52px 46px;margin:56px 0 10px;text-align:center}
.cta img.mark{width:78px;height:78px;border-radius:23px;margin-bottom:20px;box-shadow:0 15px 35px rgba(39,29,21,.2)}
.cta h2{font-size:clamp(1.9rem,4vw,2.8rem);margin:0 0 14px;color:#fff}
.cta p{color:#CFC8BF;max-width:520px;margin:0 auto 26px}
.app-store-badge{display:inline-block;line-height:0;transition:transform .18s ease,filter .18s ease}
.app-store-badge:hover{transform:translateY(-2px);filter:drop-shadow(0 7px 12px rgba(0,0,0,.3))}
.app-store-badge img{display:block;width:190px;height:auto}

.next-up{border-top:1px solid var(--line);margin-top:52px;padding-top:30px}
.next-up h2{font-size:1.35rem;margin-bottom:14px}
.next-up ul{list-style:none;padding:0}
.next-up li{margin-bottom:9px}
.next-up a{color:var(--red);font-weight:600;text-decoration:none}
.next-up a:hover{text-decoration:underline}

.disclaimer{color:var(--muted);font-size:.85rem;margin-top:34px}

/* ---- footer (matches the homepage) ---- */
.site-foot{border-top:1px solid var(--line);padding:35px 0 45px;color:var(--muted);font-size:.83rem;margin-top:40px}
.foot{display:flex;justify-content:space-between;align-items:center;gap:20px}
.foot nav{display:flex;gap:20px;flex-wrap:wrap}
.foot a{text-decoration:none}
.foot a:hover{color:var(--ink)}

@media(max-width:820px){
  .card-grid{grid-template-columns:1fr}
  .cta{padding:40px 26px;border-radius:26px}
}
@media(max-width:620px){
  .wrap,.narrow{width:min(100% - 28px,1160px)}
  .navlinks a:not(.mini-cta){display:none}
  .brand{font-size:1rem}
  .brand img{width:46px;height:46px;border-radius:14px}
  .article h2{font-size:1.55rem}
  .foot{flex-direction:column;text-align:center}
  .foot nav{justify-content:center}
}
