/* MarkBaker.com photo home (mockup 3, "subtle textures"). Loaded on the home page only (html.photo-home).
   Images: /assets/ph/ (WebP first, JPEG fallback). Below-the-fold photos load when near the viewport (photo-home.js). */
:root.photo-home.photo-home.photo-home,:root.photo-home.photo-home.photo-home[data-theme]{
  color-scheme:light;
  --bg:oklch(0.64 0.075 var(--h,145));--bg-hi:oklch(0.69 0.075 var(--h,145));--surface:oklch(0.74 0.06 var(--h,145));
  --card:oklch(0.80 0.05 var(--h,145));--field:oklch(0.86 0.035 var(--h,145));--line:oklch(0.60 0.06 var(--h,145));
  --ink:oklch(0.19 0.03 var(--h,145));--ink2:oklch(0.24 0.035 var(--h,145));--muted:oklch(0.30 0.04 var(--h,145));
  --btn:oklch(0.30 0.08 var(--h,145));--btn-txt:oklch(0.96 0.015 var(--h,145));--accent:oklch(0.38 0.11 var(--h,145));
  --accent-soft:oklch(0.72 0.09 var(--h,145));--logo-tile:#fff;--logo-ink:oklch(0.46 0.13 var(--vh,var(--h)));
}
html.photo-home,html.photo-home body{overflow-x:clip;max-width:100%}
html.photo-home body{background-image:linear-gradient(180deg, rgba(120,170,130,.55), rgba(120,170,130,.55)), url("ph/page-map.jpg");background-image:linear-gradient(180deg, rgba(120,170,130,.55), rgba(120,170,130,.55)), image-set(url("ph/page-map.webp") type("image/webp"), url("ph/page-map.jpg") type("image/jpeg"));background-attachment:fixed;background-size:cover;background-position:center}

/* Mark's link rule: white + underline, visited #FBEBB8; dark-green chip where links sit on light cards */
html.photo-home a{color:#FFFFFF;text-decoration:underline;text-underline-offset:.18em;text-decoration-color:rgba(255,255,255,.7)}
html.photo-home a:visited{color:#FBEBB8;text-decoration-color:rgba(251,235,184,.75)}
html.photo-home a:hover{color:#FBEBB8;text-decoration-color:#FBEBB8}
html.photo-home .card a:not(.btn),html.photo-home .mi a:not(.btn),html.photo-home .small a:not(.btn),html.photo-home p a:not(.btn){background:#244028;color:#FFFFFF;padding:.05em .4em .08em;border-radius:4px;display:inline-block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom}
html.photo-home .card a:not(.btn):visited,html.photo-home .mi a:not(.btn):visited,html.photo-home .small a:not(.btn):visited,html.photo-home p a:not(.btn):visited{color:#FBEBB8}
html.photo-home a.btn,html.photo-home .btn{text-decoration:none!important}
html.photo-home a.logo,html.photo-home a.logo:visited{color:inherit;text-decoration:none!important;background:transparent!important;padding:0}
html.photo-home header.site{background:oklch(0.28 0.055 145);border-bottom:0;color:#fff}
html.photo-home header.site .logo,html.photo-home header.site .logo:visited,html.photo-home header.site .lt{color:#fff}
html.photo-home header.site .logo small{color:oklch(0.86 0.06 145);border-color:rgba(255,255,255,.28)}
html.photo-home nav.main a,html.photo-home .subnav a{color:#FFFFFF!important;background:transparent!important;text-decoration:underline;text-underline-offset:.28em;text-decoration-color:rgba(255,255,255,.4);padding:0}
html.photo-home nav.main a:visited,html.photo-home .subnav a:visited{color:#FBEBB8!important}
html.photo-home nav.main a:hover,html.photo-home nav.main a.on,html.photo-home .subnav a.on,html.photo-home .subnav a:hover{color:#FBEBB8!important;text-decoration-color:#FBEBB8}
html.photo-home .subnav{background:oklch(0.24 0.05 145);border-top:1px solid rgba(255,255,255,.12)}
html.photo-home .btn.ghost{color:#fff!important;border:1px solid rgba(255,255,255,.4)}
html.photo-home .hdr-actions .btn.pri,html.photo-home .hdr-actions .btn.pri:visited{background:oklch(0.86 0.11 88);color:oklch(0.24 0.05 80)!important}
html.photo-home footer.site{background:oklch(0.28 0.055 145);color:oklch(0.90 0.03 145);border-top:0}
html.photo-home footer.site a{color:#FFFFFF;background:transparent!important;padding:0}
html.photo-home footer.site a:visited{color:#FBEBB8}
html.photo-home .thm select{color:#fff;background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.25)}

/* Hero: photo behind the live layout, darker left scrim for the cream type */
html.photo-home .hero{position:relative;isolation:isolate;padding:64px 0 48px;overflow:hidden;background-color:oklch(0.30 0.05 145);
  background-image:linear-gradient(100deg, rgba(20,36,24,.74) 0 40%, rgba(20,36,24,.5) 58%, rgba(20,36,24,.2) 100%), url("ph/hero.jpg");background-image:linear-gradient(100deg, rgba(20,36,24,.74) 0 40%, rgba(20,36,24,.5) 58%, rgba(20,36,24,.2) 100%), image-set(url("ph/hero.webp") type("image/webp"), url("ph/hero.jpg") type("image/jpeg"));background-position:center,70% 48%;background-size:cover;background-repeat:no-repeat}
html.photo-home .hero::after{content:"";position:absolute;right:0;top:-10%;width:42%;height:120%;background-image:url("ph/glow.jpg");background-image:image-set(url("ph/glow.webp") type("image/webp"), url("ph/glow.jpg") type("image/jpeg"));background-position:center;background-size:cover;background-repeat:no-repeat;opacity:.22;
  mask-image:radial-gradient(closest-side,#000 40%,transparent 80%);-webkit-mask-image:radial-gradient(closest-side,#000 40%,transparent 80%);pointer-events:none;z-index:0}
html.photo-home .hero .wrap{position:relative;z-index:1}
html.photo-home .hero h1{margin:14px 0;line-height:0;font-size:inherit}
html.photo-home .hero-title-art{display:block;width:min(100%,534px);height:auto}
html.photo-home .hero .tag.gray{background:rgba(16,30,20,.55);color:#F7F3EA;border:0;backdrop-filter:blur(6px)}
html.photo-home .hero .lead{color:#F7F3EA;text-shadow:0 1px 2px rgba(12,24,16,.65),0 0 18px rgba(12,24,16,.35);max-width:34em}
html.photo-home .hero-copy .muted,html.photo-home .hero-copy .muted.small{color:#E8E4D4!important;text-shadow:0 1px 2px rgba(12,24,16,.7)}
html.photo-home .hero .input.big,html.photo-home .hero .ctas .btn{box-shadow:0 8px 24px rgba(12,24,16,.28)}
html.photo-home .hero .ctas .btn.sec{background:oklch(0.90 0.03 145);border-color:rgba(255,255,255,.55)}
html.photo-home .stack{position:relative;overflow:hidden;background-image:linear-gradient(180deg, rgba(200,224,204,.88), rgba(200,224,204,.84)), url("ph/stats-map.jpg");background-image:linear-gradient(180deg, rgba(200,224,204,.88), rgba(200,224,204,.84)), image-set(url("ph/stats-map.webp") type("image/webp"), url("ph/stats-map.jpg") type("image/jpeg"));background-position:center;background-size:cover;background-repeat:no-repeat}
html.photo-home .stack > .muted{color:var(--ink);font-weight:600;text-shadow:none}

/* Section washes (lazy) */
html.photo-home .tex-friends{padding:28px 0 8px;background-color:rgba(130,175,140,.82)}
html.photo-home .tex-crowd{padding:8px 0 28px;background-color:rgba(130,175,140,.8)}
html.photo-home:not(.ph-io) .tex-friends, html.photo-home .tex-friends.ph-in{background-image:linear-gradient(180deg, rgba(130,175,140,.82), rgba(130,175,140,.82)), url("ph/tex-friends.jpg");background-image:linear-gradient(180deg, rgba(130,175,140,.82), rgba(130,175,140,.82)), image-set(url("ph/tex-friends.webp") type("image/webp"), url("ph/tex-friends.jpg") type("image/jpeg"));background-size:cover;background-position:center 35%}
html.photo-home:not(.ph-io) .tex-crowd, html.photo-home .tex-crowd.ph-in{background-image:linear-gradient(180deg, rgba(130,175,140,.8), rgba(130,175,140,.8)), url("ph/tex-crowd.jpg");background-image:linear-gradient(180deg, rgba(130,175,140,.8), rgba(130,175,140,.8)), image-set(url("ph/tex-crowd.webp") type("image/webp"), url("ph/tex-crowd.jpg") type("image/jpeg"));background-size:cover;background-position:center}
html.photo-home .how{overflow:hidden;position:relative}
html.photo-home .how-photo{display:block;height:88px;margin:-22px -22px 14px;border-radius:var(--r) var(--r) 0 0;background-color:oklch(0.70 0.05 145);background-size:cover;opacity:.95;pointer-events:none}
html.photo-home:not(.ph-io) .how-photo.p1, html.photo-home .how-photo.p1.ph-in{background-image:url("ph/how-1.jpg");background-image:image-set(url("ph/how-1.webp") type("image/webp"), url("ph/how-1.jpg") type("image/jpeg"));background-position:center 28%}
html.photo-home:not(.ph-io) .how-photo.p2, html.photo-home .how-photo.p2.ph-in{background-image:url("ph/how-2.jpg");background-image:image-set(url("ph/how-2.webp") type("image/webp"), url("ph/how-2.jpg") type("image/jpeg"));background-position:center 40%}
html.photo-home:not(.ph-io) .how-photo.p3, html.photo-home .how-photo.p3.ph-in{background-image:url("ph/how-3.jpg");background-image:image-set(url("ph/how-3.webp") type("image/webp"), url("ph/how-3.jpg") type("image/jpeg"));background-position:center 40%}
html.photo-home .spot,html.photo-home .claim,html.photo-home .mc{overflow:hidden;position:relative;background-color:rgba(200,224,204,.94)}
html.photo-home:not(.ph-io) .spot, html.photo-home .spot.ph-in{background-image:linear-gradient(90deg, rgba(200,224,204,.94) 0 62%, rgba(200,224,204,.72)), url("ph/spot.jpg?v=ph4");background-image:linear-gradient(90deg, rgba(200,224,204,.94) 0 62%, rgba(200,224,204,.72)), image-set(url("ph/spot.webp?v=ph4") type("image/webp"), url("ph/spot.jpg?v=ph4") type("image/jpeg"));background-position:0 0,right center;background-size:auto,cover;background-repeat:no-repeat}
html.photo-home:not(.ph-io) .claim, html.photo-home .claim.ph-in{background-image:linear-gradient(90deg, rgba(200,224,204,.94) 0 70%, rgba(200,224,204,.78)), url("ph/claim.jpg");background-image:linear-gradient(90deg, rgba(200,224,204,.94) 0 70%, rgba(200,224,204,.78)), image-set(url("ph/claim.webp") type("image/webp"), url("ph/claim.jpg") type("image/jpeg"));background-position:0 0,right center;background-size:auto,cover;background-repeat:no-repeat}
html.photo-home:not(.ph-io) .mc, html.photo-home .mc.ph-in{background-image:linear-gradient(90deg, var(--card) 0 78%, rgba(210,230,214,.55)), url("ph/card.jpg");background-image:linear-gradient(90deg, var(--card) 0 78%, rgba(210,230,214,.55)), image-set(url("ph/card.webp") type("image/webp"), url("ph/card.jpg") type("image/jpeg"));background-position:0 0,right center;background-size:auto,cover;background-repeat:no-repeat}

@media (max-width:720px){
  html.photo-home body{background-attachment:scroll}
  html.photo-home .hero{padding:32px 0 28px;background-image:linear-gradient(180deg, rgba(20,36,24,.7) 0 58%, rgba(20,36,24,.35) 100%), url("ph/hero-960.jpg");background-image:linear-gradient(180deg, rgba(20,36,24,.7) 0 58%, rgba(20,36,24,.35) 100%), image-set(url("ph/hero-960.webp") type("image/webp"), url("ph/hero-960.jpg") type("image/jpeg"));background-position:center,72% 68%}
  html.photo-home .hero-title-art{width:100%}
  html.photo-home .how-photo{height:72px}
  html.photo-home .spot,html.photo-home .claim,html.photo-home .mc{background-image:none!important;background:var(--card)}
  html.photo-home .tex-friends,html.photo-home .tex-crowd{padding:16px 0}
  html.photo-home .input.big.search{flex-wrap:wrap;gap:10px}
  html.photo-home .input.big.search .btn{width:100%;justify-content:center}
  html.photo-home .mc{flex-wrap:wrap;align-items:flex-start}
  html.photo-home .mc > .mi{flex:1 1 0;min-width:0}
  html.photo-home .mc > .btn{width:100%;margin:10px 0 0}
  html.photo-home .wrap,html.photo-home .grid,html.photo-home .grid>*,html.photo-home .card,html.photo-home .hgrid,html.photo-home .hgrid>*{min-width:0}
  html.photo-home .mi,html.photo-home .small,html.photo-home .mn,html.photo-home p{overflow-wrap:anywhere}
}
@media (prefers-reduced-motion:reduce){html.photo-home body{background-attachment:scroll}}
