/* sshrin.com. Forest green with plum. Light by default; dark only when the visitor picks it (stored in localStorage). */
:root{
  --bg:#F8F7F3; --surface:#FFFFFF; --panel:#E9EEE8; --ink:#18201B; --muted:#5D655F; --rule:#E2E3DB;
  --accent:#1F6B45; --soft:#EAD7E3; --support:#7B2D5B; --on-accent:#FFFFFF;
  --serif:"DM Serif Display", Georgia, serif; --sans:"Source Sans 3", "Segoe UI", system-ui, sans-serif;
  color-scheme:light;
}
:root[data-theme="dark"]{
  --bg:#121814; --surface:#18201B; --panel:#1F2A23; --ink:#E8EDE9; --muted:#A3ACA5; --rule:#2B362F;
  --accent:#73C79A; --soft:#4A2F43; --support:#E39AC6; --on-accent:#0F1612;
  color-scheme:dark;
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font:400 18px/1.6 var(--sans);-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:inherit}
a:focus-visible,button:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:2px}
h1,h2,h3{font-family:var(--serif);font-weight:400;margin:0;text-wrap:balance}
/* One container and one left edge on every page. The header, footer and project rows use the full width;
   reading text stops at a comfortable line length but stays on the same left edge. */
.wide,.col{max-width:1160px;margin:0 auto;padding-left:max(20px,4vw);padding-right:max(20px,4vw)}
.col > :not(header.top):not(footer.site){max-width:760px}
.wide + .col{padding-top:0}
.go{color:var(--accent);font-weight:600;font-size:16px;text-underline-offset:4px;text-decoration-thickness:1px}
.go:hover{text-decoration-thickness:2px}
.muted{color:var(--muted)}

header.top{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:22px 0;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font:400 24px/1 var(--serif);color:var(--ink)}
.brand .mark{width:34px;height:34px;flex:none;display:block}
header.top nav{display:flex;gap:22px;font-size:16px;flex-wrap:wrap;align-items:center}
header.top nav a{text-decoration:none;white-space:nowrap}
header.top nav a:hover{color:var(--accent)}
.theme-toggle{font:600 14px/1 var(--sans);color:var(--muted);background:none;border:1px solid var(--rule);border-radius:99px;padding:7px 12px;cursor:pointer}
.theme-toggle:hover{color:var(--ink);border-color:var(--muted)}

.hero{padding:48px 0 8px}
/* Text on the shared left edge; the photo sits on the right, its ring inside the circle so it ends where the header does. */
.intro{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:56px;align-items:center}
.intro img{width:260px;height:260px;border-radius:50%;object-fit:cover;border:10px solid var(--soft)}
.intro h1{font-size:clamp(36px,4.8vw,58px);line-height:1.05;margin-bottom:16px}
.intro h1 em{color:var(--accent)}
.intro p{margin:0;color:var(--muted);font-size:20px;max-width:56ch}
.intro .hello{font-size:18px;font-weight:600;color:var(--support);margin:0 0 12px}
@media (max-width:760px){.intro{grid-template-columns:1fr;gap:28px}.intro img{order:-1;width:140px;height:140px;border-width:6px}}
.k{font:700 13px/1 var(--sans);letter-spacing:.12em;text-transform:uppercase;color:var(--accent);margin:0 0 8px}

/* Showcase: each project is a wide row, image and text alternating sides. */
.show{display:flex;flex-wrap:wrap;gap:44px;align-items:center;text-decoration:none;padding:36px 0;border-top:1px solid var(--rule)}
.show.flip{flex-direction:row-reverse}
.show .art{flex:3 1 460px;aspect-ratio:16/10;border-radius:16px;overflow:hidden;background:var(--panel)}
.show .art img{width:100%;height:100%;object-fit:cover}
.show .t{flex:2 1 300px}
.show h3{font-size:40px;line-height:1.05;margin-bottom:8px}
.show p{font-size:19px;margin:0 0 10px;color:var(--muted)}
.show:hover h3{color:var(--accent)}
.ph{width:100%;height:100%;padding:12% 14%}
.ph div{height:100%;background:var(--surface);border-radius:8px;box-shadow:0 10px 22px -12px rgba(0,0,0,.35);border-top:12px solid var(--rule);position:relative}
.ph div::after{content:"";position:absolute;right:12%;top:18%;width:40%;height:52%;background:var(--surface);border-radius:6px;box-shadow:0 6px 14px -6px rgba(0,0,0,.3);border-top:10px solid var(--accent)}

section.more{margin-top:64px}
#work{margin-top:56px}
.sec-h{font-size:36px;line-height:1.1;margin:0 0 18px}
.feat{display:block;text-decoration:none;padding-bottom:20px;border-bottom:1px solid var(--rule);margin-bottom:8px}
.feat small{display:block;font-size:15px;color:var(--muted);margin-bottom:4px}
.feat strong{display:block;font:400 30px/1.18 var(--serif)}
.feat:hover strong{color:var(--accent)}
.recent{list-style:none;margin:0;padding:0}
.recent li{display:grid;grid-template-columns:100px minmax(0,1fr);gap:18px;padding:9px 0;align-items:baseline}
.recent time{font-size:15px;color:var(--muted);font-variant-numeric:tabular-nums}
.recent a{font-size:19px;text-decoration:none}
.recent a:hover{color:var(--accent)}
.sub{margin:18px 0 0;color:var(--muted);font-size:17px}

.entries{list-style:none;margin:0;padding:0}
.entry{padding:18px 0;border-top:1px solid var(--rule)}
.entry:first-child{border-top:0}
.e-meta{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap;margin-bottom:6px;font-size:13px}
.e-meta time{color:var(--muted);font-variant-numeric:tabular-nums}
.e-kind{font-size:11.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--support)}
.e-kind.post{color:var(--accent)}
.e-title{font:400 23px/1.25 var(--serif);margin:0 0 6px;display:block;text-decoration:none}
a.e-title:hover{color:var(--accent)}
.e-body{font-size:17px;line-height:1.6}
.e-body p{margin:0 0 10px}
.e-body img{border-radius:10px;margin:8px 0}
.e-body blockquote{margin:10px 0;padding-left:12px;border-left:3px solid var(--soft);font-family:var(--serif);font-style:italic}
.e-body code{font-size:.88em;background:var(--panel);padding:1px 5px;border-radius:4px}
.e-src{display:block;font-size:14px;color:var(--muted);margin-top:4px}
.e-src a{color:var(--muted)}

.page-h{font-size:52px;line-height:1.05;margin:32px 0 8px}
.lead{color:var(--muted);margin:0 0 24px;font-size:19px}
.filters{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}
.filters a{font-weight:600;font-size:15px;border:1px solid var(--rule);background:var(--surface);border-radius:99px;padding:9px 16px;text-decoration:none}
.filters a[aria-current="page"]{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.topics{list-style:none;margin:0;padding:0}
.topics li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:baseline;padding:16px 0;border-top:1px solid var(--rule)}
.topics li:first-child{border-top:0}
.topics a{text-decoration:none}
.topics strong{display:block;font:400 25px/1.2 var(--serif)}
.topics a:hover strong{color:var(--accent)}
.topics .muted{display:block;font-size:17px;margin-top:2px}
.topics .count{font-size:15px;white-space:nowrap;font-variant-numeric:tabular-nums}
.topic-h{margin-top:4px}
/* YouTube: a thumbnail in lists; on the entry page the player loads only when pressed. */
.yt-thumb,.yt-player button{position:relative;display:block;border-radius:12px;overflow:hidden;background:#000}
.yt-thumb{width:min(100%,320px);aspect-ratio:16/9;margin:6px 0 10px}
.yt-thumb img,.yt-player img{width:100%;height:100%;object-fit:cover}
.yt-player{aspect-ratio:16/9;margin:0 0 20px;border-radius:12px;overflow:hidden;background:#000}
.yt-player button{all:unset;cursor:pointer;display:block;position:relative;width:100%;height:100%}
.yt-player button:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.yt-player iframe{width:100%;height:100%;border:0;display:block}
.play{position:absolute;left:50%;top:50%;width:64px;height:44px;margin:-22px 0 0 -32px;border-radius:12px;background:rgba(18,24,20,.82);transition:background .15s}
.play::after{content:"";position:absolute;left:26px;top:13px;border-style:solid;border-width:9px 0 9px 15px;border-color:transparent transparent transparent #fff}
.yt-thumb .play{width:48px;height:34px;margin:-17px 0 0 -24px}
.yt-thumb .play::after{left:19px;top:10px;border-width:7px 0 7px 12px}
.yt-thumb:hover .play,.yt-player button:hover .play{background:var(--plum)}
/* Books */
.e-book{display:inline-flex;align-items:center;gap:8px;font-size:14px;color:var(--muted);text-decoration:none;margin-top:6px}
.e-book img{border-radius:2px;box-shadow:0 1px 3px rgba(0,0,0,.25);width:24px;height:auto}
.e-book:hover{color:var(--accent)}
.shelf-h{font-size:28px;margin:28px 0 14px}
.shelf{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:26px 20px}
.shelf a{display:flex;flex-direction:column;gap:4px;text-decoration:none}
.shelf img,.shelf .nocover{width:100%;height:auto;aspect-ratio:2/3;object-fit:cover;border-radius:4px;box-shadow:0 8px 18px -10px rgba(0,0,0,.5);margin-bottom:6px}
.shelf .nocover{display:flex;align-items:flex-end;padding:12px;background:var(--panel);font:400 16px/1.2 var(--serif)}
.shelf strong{font-weight:600;font-size:16px;line-height:1.3}
.shelf .muted{font-size:14px}
.shelf a:hover strong{color:var(--accent)}
.book-head{display:grid;grid-template-columns:120px minmax(0,1fr);gap:24px;align-items:end;margin:24px 0 20px}
.book-head img{width:120px;height:auto;border-radius:4px;box-shadow:0 10px 24px -12px rgba(0,0,0,.55)}
.book-head .page-h{margin:4px 0 6px;font-size:clamp(32px,5vw,44px)}
.book-head .lead,.book-head .muted{margin:0;font-size:17px}
article.full .e-body{font-size:19px;line-height:1.7}
article.full h1{font-size:clamp(34px,5vw,48px);line-height:1.1;margin:8px 0 18px}

footer.site{border-top:1px solid var(--rule);margin-top:72px;padding:24px 0 52px;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;color:var(--muted);font-size:15px}
footer.site nav{display:flex;gap:18px;flex-wrap:wrap}
footer.site a{text-decoration:none}
footer.site a:hover{color:var(--accent)}

@media (max-width:600px){.show h3{font-size:32px}.show{gap:20px;padding:28px 0}}
