/* Basecamp Lens v2 — shared stylesheet (main, learn, private) */
@font-face{font-family:"Fraunces";src:url("../fonts/fraunces.woff2") format("woff2");font-weight:100 900;font-display:swap}
@font-face{font-family:"Inter";src:url("../fonts/inter.woff2") format("woff2");font-weight:100 900;font-display:swap}
:root{
  --night:#0d1511; --night-2:#131f19; --line:rgba(243,239,230,.14);
  --sand:#f6f1e7; --sand-2:#ece3d2; --pine:#1f3a2e; --ink:#1c2420; --muted-dark:#5d6861;
  --text:#f3efe6; --muted:rgba(243,239,230,.66); --sunset:#d2693c; --sunset-lt:#e58a5a;
  --serif:"Fraunces",Georgia,"Times New Roman",serif;
  --sans:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --wrap:1200px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;min-height:100vh;display:flex;flex-direction:column;font-family:var(--sans);font-size:17px;line-height:1.6;-webkit-font-smoothing:antialiased}
main{flex:1}
img{display:block;max-width:100%}
a{color:inherit}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 32px;width:100%}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
a:focus-visible{outline:2px solid var(--sunset-lt);outline-offset:3px;border-radius:4px}

/* Themes */
.theme-dark{background:var(--night);color:var(--text)}
.theme-learn{background:var(--sand);color:var(--ink);--text:var(--ink);--muted:var(--muted-dark);--line:rgba(31,58,46,.14)}

/* Header */
.site-header{position:sticky;top:0;z-index:20;background:rgba(13,21,17,.9);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.theme-learn .site-header{background:rgba(246,241,231,.92)}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:76px}
.site-header.over-hero .nav a,.site-header.over-hero .brand{text-shadow:0 1px 3px rgba(0,0,0,.7)}
.site-header.over-hero .nav a{opacity:.95}
.site-header.over-hero{position:absolute;left:0;right:0;background:linear-gradient(180deg,rgba(5,9,7,.78) 0%,rgba(5,9,7,.45) 55%,rgba(5,9,7,0) 100%);padding-bottom:28px;backdrop-filter:none;-webkit-backdrop-filter:none;border-bottom:0}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--text)}
.brand svg{width:38px;height:38px;flex:none}
.brand-name{font-family:var(--serif);font-weight:600;font-size:22px;letter-spacing:-.01em;line-height:1;font-variation-settings:"SOFT" 50,"opsz" 72}
.brand-name span{color:var(--sunset-lt)}
.theme-learn .brand-name span{color:var(--sunset)}
.nav ul{list-style:none;margin:0;padding:0;display:flex;gap:2px;align-items:center}
.nav a{display:inline-flex;align-items:center;gap:6px;padding:8px 13px;border-radius:999px;text-decoration:none;font-size:15px;font-weight:500;letter-spacing:.01em;color:var(--text);opacity:.86;transition:opacity .15s,background .15s;white-space:nowrap}
.nav a:hover,.nav a[aria-current="page"]{opacity:1;background:rgba(243,239,230,.1)}
.theme-learn .nav a:hover,.theme-learn .nav a[aria-current="page"]{background:var(--sand-2)}
.lock{width:12px;height:12px;flex:none;opacity:.85}

/* Hero */
.hero{position:relative;min-height:100vh;min-height:100svh;display:flex;align-items:flex-end;overflow:hidden;background:#05080a;color:#fff}
.hero-photo{position:absolute;inset:0;margin:0}
.hero-photo img{width:100%;height:100%;object-fit:cover;object-position:60% 50%}
.hero::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(0,0,0,0) 45%,rgba(0,0,0,.45) 78%,rgba(0,0,0,.7) 100%)}
.hero-inner{position:relative;z-index:1;padding-top:140px;padding-bottom:clamp(72px,11vh,120px)}
.quote{margin:0}
.quote-text{margin:0;font-family:var(--serif);font-weight:350;font-style:normal;font-size:clamp(28px,3.6vw,50px);line-height:1.18;letter-spacing:-.012em;color:#fff;font-variation-settings:"SOFT" 0,"opsz" 72;text-shadow:0 1px 3px rgba(0,0,0,.55),0 0 28px rgba(0,0,0,.45);text-wrap:balance;max-width:17em}
.quote-by{margin-top:20px;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px;font-size:14px;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.88);text-shadow:0 1px 3px rgba(0,0,0,.6)}
.quote-author{font-weight:600}
.quote-source{font-weight:400;color:rgba(255,255,255,.7)}
.quote-source[hidden]{display:none}

/* Photo caption (reusable: <figure class="photo"> ... <figcaption class="caption">) */
.photo{margin:0}
.caption{display:block;margin-top:10px;font-size:13px;line-height:1.4;letter-spacing:.02em;color:var(--muted)}
.caption--overlay{position:absolute;right:20px;bottom:16px;z-index:2;margin:0;max-width:calc(100% - 40px);font-size:12px;color:rgba(255,255,255,.72);text-shadow:0 1px 2px rgba(0,0,0,.8);text-align:right}

/* Homepage section words */
.sections{border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.sections ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,1fr)}
.sections li+li{border-left:1px solid var(--line)}
.sections a{display:flex;align-items:center;justify-content:center;gap:10px;padding:52px 12px;text-decoration:none;font-family:var(--serif);font-weight:400;font-size:clamp(24px,2.4vw,34px);letter-spacing:-.01em;font-variation-settings:"SOFT" 30,"opsz" 72;transition:background .2s,color .2s}
.sections a:hover{background:var(--night-2);color:#fff}
.sections .lock{width:16px;height:16px;opacity:.7}

/* Simple pages */
.page{padding:clamp(72px,14vh,160px) 0 clamp(80px,16vh,180px)}
.page h1{margin:0;font-family:var(--serif);font-weight:400;font-size:clamp(48px,8vw,104px);line-height:1;letter-spacing:-.025em;font-variation-settings:"SOFT" 30,"opsz" 144}
.page p{margin:22px 0 0;color:var(--muted);font-size:18px}
.page p a{color:var(--text)}
.page .kicker{margin:0 0 18px;font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:var(--sunset)}
.page .back{margin-top:40px;font-size:15px}
.page .back a{text-decoration:none;border-bottom:1px solid currentColor;padding-bottom:2px}
.page--private .big-lock{width:44px;height:44px;color:var(--sunset-lt);margin-bottom:22px}

/* Footer */
.site-footer{border-top:1px solid var(--line);padding:36px 0;font-size:14px}
.site-footer .wrap{display:flex;align-items:center;justify-content:space-between;gap:20px 32px;flex-wrap:wrap}
.site-footer .brand svg{width:30px;height:30px}
.site-footer .brand-name{font-size:18px}
.footer-links{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px 22px}
.footer-links a{display:inline-flex;align-items:center;gap:5px;text-decoration:none;color:var(--muted)}
.footer-links a:hover{color:var(--text)}
.footer-links .lock{width:11px;height:11px}
.copy{margin:0;color:var(--muted)}

/* Responsive */
@media (max-width:860px){
  .wrap{padding:0 22px}
  .site-header .wrap{flex-direction:column;align-items:flex-start;gap:6px;min-height:0;padding-top:14px;padding-bottom:10px}
  .nav{width:100%}
  .nav ul{flex-wrap:wrap;gap:0;margin-left:-9px}
  .nav a{padding:6px 9px;font-size:14.5px}
  .sections ul{grid-template-columns:1fr}
  .sections li+li{border-left:0;border-top:1px solid var(--line)}
  .sections a{justify-content:space-between;padding:22px 22px;font-size:28px}
  .sections a::after{content:"\2192";font-family:var(--sans);font-size:18px;opacity:.45;margin-left:auto}
  .sections a{justify-content:flex-start}
}
@media (max-width:640px){
  body{font-size:16px}
  .brand-name{font-size:20px}
  .brand svg{width:34px;height:34px}
  .nav a{padding:6px 7px;font-size:14px;gap:4px}
  .nav ul{margin-left:-7px}
  .hero-inner{padding-bottom:72px}
  .quote-text{font-size:clamp(26px,7.4vw,34px);line-height:1.22}
  .quote-by{font-size:12.5px;margin-top:16px}
  .caption--overlay{left:22px;right:22px;bottom:18px;text-align:left;font-size:11.5px}
  .site-footer .wrap{flex-direction:column;align-items:flex-start}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
