/* Navesink.Net - "Riverfront" design (2026-11-18)
   Navy masthead with Navesink's coordinates, sky horizon band, photo filmstrip,
   buoy-red links (the old site's red links, kept). The previous Blogger-era
   stylesheet is saved as style-blogger.css in navesink-restore-tools. */
:root {
	--bg: #f2f5f4;
	--card: #ffffff;
	--navy: #10304a;
	--fg: #172532;
	--dim: #5e6f7c;
	--buoy: #e1432b;
	--water: #cfe0e6;
	--line: #d5dfe1;
	--mist: #9fc3d4;
	--body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
	--cond: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 16px; line-height: 1.6; }
a { color: var(--buoy); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--buoy); outline-offset: 2px; }
img { border: 0; }

/* masthead */
.hd { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.hd::before { content: ""; position: absolute; inset: 0; pointer-events: none;
	background: repeating-radial-gradient(ellipse at 85% 140%, transparent 0 22px, rgba(255,255,255,.07) 22px 23px); }
.hd-in { position: relative; max-width: 1240px; margin: 0 auto; padding: 34px 22px 30px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: end; }
.coords { font-family: var(--cond); font-weight: 500; letter-spacing: .18em; font-size: 13px; color: var(--mist); text-transform: uppercase; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.hd h1 { margin: 0; font-family: var(--cond); font-weight: 700; font-size: clamp(48px, 8.5vw, 104px); line-height: .9; text-transform: uppercase; }
.hd h1 a { color: #fff; text-decoration: none; }
.hd h1 em { font-style: normal; color: var(--buoy); }
.hd p { margin: 10px 0 0; font-size: 18px; color: #dbe8ee; }
.badge { display: grid; justify-items: center; gap: 6px; font-family: var(--cond); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); text-decoration: none; }
.badge:hover { text-decoration: none; color: #fff; }
.badge img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 5px solid var(--buoy); outline: 5px solid #fff; outline-offset: -1px; transition: transform .2s; }
.badge:hover img { transform: rotate(-6deg); }
.band { height: 46px; background: url(/images/header-bg.jpg) center 60% / cover; }

/* filmstrip: recent post photos, filled by /sidebar.js */
.strip { display: flex; gap: 6px; overflow-x: auto; padding: 10px 22px 8px; background: #0c0b0a; border-top: 4px solid var(--buoy); scrollbar-width: thin; scrollbar-color: #333 #0c0b0a; }
.strip:empty { display: none; }
.strip a { flex: 0 0 auto; display: grid; gap: 3px; text-decoration: none; }
.strip img { display: block; height: 72px; width: 108px; object-fit: cover; opacity: .82; filter: saturate(.85); transition: opacity .2s, filter .2s; }
.strip a:hover img, .strip a:focus-visible img { opacity: 1; filter: none; }
.strip span { font-family: var(--cond); font-size: 10px; letter-spacing: .14em; color: #b9852f; padding-left: 2px; }

/* columns */
.cols { display: grid; grid-template-columns: 220px minmax(0, 1fr) 260px; grid-template-areas: "left main right"; gap: 22px; max-width: 1240px; margin: 0 auto; padding: 22px; }
.left { grid-area: left; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
main { grid-area: main; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.right { grid-area: right; display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* sidebar boxes */
.box { background: var(--card); border: 1px solid var(--line); padding: 16px 18px; }
.box h3 { margin: 0 0 12px; font-family: var(--cond); font-weight: 700; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.box h3::before { content: ""; width: 9px; height: 9px; background: var(--buoy); transform: rotate(45deg); flex: none; }
.box ul { list-style: none; margin: 0; padding: 0; }
.proj { display: grid; gap: 12px; }
.proj li { display: grid; gap: 2px; }
.proj a { font-weight: 600; line-height: 1.3; }
.proj span { color: var(--dim); font-size: 14px; line-height: 1.45; }
.links { display: grid; gap: 4px; font-size: 15px; }
.about { display: grid; gap: 10px; justify-items: center; text-align: center; }
.about img { width: 160px; height: auto; border: 4px solid var(--water); }
.about dl { margin: 0; font-size: 15px; }
.about dt { display: inline; color: var(--dim); }
.about dt::after { content: ": "; }
.about dd { display: inline; margin: 0; }

/* Previous Posts as a filmstrip: thumbnails with frame numbers */
.prev { display: grid; gap: 8px; }
.prev a { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; align-items: center; color: var(--fg); text-decoration: none; }
.prev a:hover .ptt { color: var(--buoy); text-decoration: underline; }
.prev .th { display: block; width: 58px; height: 44px; object-fit: cover; background: #0c0b0a; border: 2px solid #0c0b0a; }
.prev .th-none { display: grid; place-items: center; font-family: var(--cond); font-size: 10px; line-height: 1.1; letter-spacing: .1em; text-transform: uppercase; color: var(--mist); background: var(--navy); border-color: var(--navy); text-align: center; }
.pt { display: grid; gap: 1px; min-width: 0; }
.ptt { font-size: 14px; line-height: 1.3; }
.prev small { font-family: var(--cond); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.prev .fr { color: var(--buoy); }

/* Archives grouped by year */
.archives { display: grid; gap: 2px; }
.archives summary { cursor: pointer; display: flex; justify-content: space-between; font-family: var(--cond); font-weight: 700; letter-spacing: .08em; font-size: 15px; padding: 3px 0; color: var(--navy); list-style: none; }
.archives summary::-webkit-details-marker { display: none; }
.archives summary::before { content: "+"; width: 14px; color: var(--buoy); }
.archives details[open] summary::before { content: "\2212"; }
.archives summary span:first-child { flex: 1; }
.arch { display: grid; gap: 2px; padding: 2px 0 8px 14px; font-size: 15px; }
.arch li { display: flex; justify-content: space-between; gap: 8px; }
.n { color: var(--dim); font-variant-numeric: tabular-nums; font-weight: 400; }

/* posts */
.pagehead { margin: 0; font-family: var(--cond); font-weight: 700; font-size: 30px; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); }
.post { background: var(--card); border: 1px solid var(--line); }
.post .meta { font-family: var(--cond); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding: 22px 28px 0; font-weight: 500; }
.ptitle { margin: 0; font-family: var(--cond); font-weight: 700; font-size: 38px; line-height: 1; text-transform: uppercase; padding: 6px 28px 18px; color: var(--navy); text-wrap: balance; border-bottom: 4px solid var(--navy); }
.ptitle a { color: var(--navy); }
.post .body { padding: 20px 28px 8px; overflow-wrap: anywhere; }
.post .body p { margin: 0 0 1em; }
.post .body img, .post .body iframe, .post .body video, .post .body object, .post .body embed { max-width: 100%; }
.post .body img { height: auto; }
.post .body table { max-width: 100%; }
.post .foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 28px; background: var(--water); font-size: 14px; color: var(--navy); }
.labels { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tag { font-family: var(--cond); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.comments { padding: 18px 28px 22px; border-top: 1px solid var(--line); }
.comments h3 { margin: 0 0 8px; font-family: var(--cond); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 15px; color: var(--navy); }
.comment { border-top: 1px dashed var(--line); padding: 10px 0; }
.comment-body { padding: 4px 0 2px 12px; }
.comment-when { font-size: 13px; font-style: italic; color: var(--dim); padding-left: 12px; }
.pager { display: flex; justify-content: space-between; gap: 12px; font-family: var(--cond); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* archive page */
.yearlist { background: var(--card); border: 1px solid var(--line); padding: 18px 24px; }
.yearlist h2 { margin: 0 0 10px; font-family: var(--cond); font-size: 28px; color: var(--navy); display: flex; align-items: baseline; gap: 12px; }
.yearlist h2 a { color: var(--navy); }
.yearlist h2 span { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-weight: 500; }
.yearlist ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.yearlist li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; }
.yearlist .d { font-family: var(--cond); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); font-variant-numeric: tabular-nums; }

.ft { background: var(--navy); color: var(--mist); font-family: var(--cond); letter-spacing: .14em; text-transform: uppercase; font-size: 13px; padding: 22px 16px 30px; text-align: center; }

@media (max-width: 980px) {
	.cols { grid-template-columns: minmax(0, 1fr) 250px; grid-template-areas: "main right" "left right"; }
}
@media (max-width: 700px) {
	.cols { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "right" "left"; padding: 16px; gap: 18px; }
	.hd-in { grid-template-columns: 1fr; padding: 26px 16px 22px; }
	.badge { display: none; }
	.strip { padding-left: 16px; padding-right: 16px; }
	.ptitle { font-size: 30px; }
	.post .meta, .ptitle, .post .body, .post .foot, .comments { padding-left: 18px; padding-right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.badge img, .strip img { transition: none; }
}

/* app icons in Previous Posts: show the whole icon on navy instead of cropping it */
.prev img.th[src$=".png"] { object-fit: contain; background: var(--navy); border-color: var(--navy); padding: 3px; }
