:root {
  color-scheme: light;
  --sp-ground: #fbf7e7;
  --sp-ink: #2c261c;
  --sp-accent: #7d6331;
  --sp-support: #c1e2d7;
  --sp-surface: #fff;
  --sp-gold: #ead292;
  --sp-serif: 'Baskervville', Baskerville, 'Times New Roman', serif;
  --sp-sans: 'Albert Sans', Arial, sans-serif;
  --sp-roll: 720px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--sp-ground); color: var(--sp-ink); font: 18px/1.65 var(--sp-sans); }
::selection { color: var(--sp-ink); background: var(--sp-support); }
a { color: var(--sp-accent); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color 150ms, background-color 150ms; }
a:hover { color: var(--sp-ink); text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--sp-accent); outline-offset: 6px; }
summary, a { -webkit-tap-highlight-color: transparent; }
svg { vertical-align: middle; }
img { max-width: 100%; }
i[data-lucide], svg.lucide { display: inline-block; flex: 0 0 auto; width: 22px; height: 22px; stroke-width: 1.6; }
i[data-lucide] > svg { display: block; width: 100%; height: 100%; }
.sp-skip { position: absolute; z-index: 20; top: 8px; left: 12px; transform: translateY(-180%); background: var(--sp-ground); padding: 10px 20px; }
.sp-skip:focus { transform: none; }

.sp-mast { width: min(var(--sp-roll), calc(100% - 40px)); margin: 0 auto; }
.sp-contents > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 92px; cursor: pointer; }
.sp-contents > summary::-webkit-details-marker { display: none; }
.sp-wordmark { font: 38px/1.05 var(--sp-serif); letter-spacing: -1.4px; }
.sp-wordmark em { font-style: italic; color: var(--sp-accent); }
.sp-browse { display: flex; align-items: center; gap: 10px; padding: 7px 11px; border: 1px solid var(--sp-accent); font-size: 16px; }
.sp-browse svg, .sp-browse i { width: 18px; height: 18px; }
.sp-contents > summary:hover .sp-browse { background: var(--sp-support); box-shadow: 3px 3px 0 var(--sp-accent); }
.sp-contents[open] .sp-browse > svg, .sp-contents[open] .sp-browse > i { transform: rotate(180deg); }
.sp-nav { padding: 2px 0 30px; }
.sp-nav a { display: flex; align-items: center; justify-content: space-between; padding: 15px 12px; border-bottom: 1px solid var(--sp-accent); text-decoration: none; }
.sp-nav a:hover { background: var(--sp-support); box-shadow: 6px 0 0 var(--sp-accent); }
.sp-nav span { color: var(--sp-ink); font: 25px/1.2 var(--sp-serif); }

/* The paper runs through the photograph: a gold heading band, never a card. */
.sp-home { display: block; }
.sp-hero { position: relative; isolation: isolate; display: grid; place-items: center; min-height: 660px; padding: 36px 0 50px; }
.sp-panorama { position: absolute; z-index: -1; inset: 0; width: 100%; }
.sp-panorama::before { content: ''; position: absolute; inset: 0; background-color: var(--sp-support); background-image: url('street-panorama.webp'); background-position: center 60%; background-size: cover; clip-path: polygon(0 0,100% 0,100% 99%,99% 100%,98% 99%,97% 100%,96% 99%,95% 100%,94% 99%,93% 100%,92% 99%,91% 100%,90% 99%,89% 100%,88% 99%,87% 100%,86% 99%,85% 100%,84% 99%,83% 100%,82% 99%,81% 100%,80% 99%,79% 100%,78% 99%,77% 100%,76% 99%,75% 100%,74% 99%,73% 100%,72% 99%,71% 100%,70% 99%,69% 100%,68% 99%,67% 100%,66% 99%,65% 100%,64% 99%,63% 100%,62% 99%,61% 100%,60% 99%,59% 100%,58% 99%,57% 100%,56% 99%,55% 100%,54% 99%,53% 100%,52% 99%,51% 100%,50% 99%,49% 100%,48% 99%,47% 100%,46% 99%,45% 100%,44% 99%,43% 100%,42% 99%,41% 100%,40% 99%,39% 100%,38% 99%,37% 100%,36% 99%,35% 100%,34% 99%,33% 100%,32% 99%,31% 100%,30% 99%,29% 100%,28% 99%,27% 100%,26% 99%,25% 100%,24% 99%,23% 100%,22% 99%,21% 100%,20% 99%,19% 100%,18% 99%,17% 100%,16% 99%,15% 100%,14% 99%,13% 100%,12% 99%,11% 100%,10% 99%,9% 100%,8% 99%,7% 100%,6% 99%,5% 100%,4% 99%,3% 100%,2% 99%,1% 100%,0 99%); }
.sp-wheel-crop { position: absolute; right: 9%; bottom: -14px; width: 82px; height: 82px; background-image: url('street-panorama.webp'); background-size: 384px 216px; background-position: 91% 95%; clip-path: circle(48%); }
.sp-hero-roll { position: relative; width: min(800px, calc(100% - 96px)); margin: 0 auto; padding: 0 40px 24px; background: var(--sp-ground); box-shadow: 14px 14px 0 rgb(44 38 28 / 22%); }
.sp-hero-roll::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 12px; background: var(--sp-ground); clip-path: polygon(0 0,100% 0,100% 25%,98% 100%,96% 25%,94% 100%,92% 25%,90% 100%,88% 25%,86% 100%,84% 25%,82% 100%,80% 25%,78% 100%,76% 25%,74% 100%,72% 25%,70% 100%,68% 25%,66% 100%,64% 25%,62% 100%,60% 25%,58% 100%,56% 25%,54% 100%,52% 25%,50% 100%,48% 25%,46% 100%,44% 25%,42% 100%,40% 25%,38% 100%,36% 25%,34% 100%,32% 25%,30% 100%,28% 25%,26% 100%,24% 25%,22% 100%,20% 25%,18% 100%,16% 25%,14% 100%,12% 25%,10% 100%,8% 25%,6% 100%,4% 25%,2% 100%,0 25%); }
.sp-heading-band { position: relative; margin: 0 -40px; padding: 27px 40px 24px; background: var(--sp-gold); border-top: 8px solid var(--sp-accent); border-bottom: 1px solid var(--sp-accent); }
.sp-heading-band > i, .sp-heading-band > svg { position: absolute; top: 27px; left: -30px; width: 58px; height: 64px; padding: 12px; color: var(--sp-ink); background: var(--sp-support); box-shadow: 5px 5px 0 var(--sp-accent); transform: rotate(-9deg); }
h1 { font: 56px/1.05 var(--sp-serif); letter-spacing: -1.6px; font-weight: 400; text-wrap: balance; }
.sp-home-title { margin: 0; font-size: 64px; text-align: center; }
.sp-welcome { max-width: 650px; margin: 22px auto; text-align: center; font-size: 19px; line-height: 1.5; }
.sp-prescription-note { position: relative; margin: 0; padding: 21px 0; color: var(--sp-ink); font-size: 17px; line-height: 1.55; }
.sp-prescription-note::before, .sp-prescription-note::after { content: ''; position: absolute; left: -18px; right: -18px; height: 3px; background: radial-gradient(circle, var(--sp-accent) 1.15px, transparent 1.5px) left center/15px 3px repeat-x; }
.sp-prescription-note::before { top: 0; }
.sp-prescription-note::after { bottom: 0; }
.sp-prescription-note p { margin: 0; }
.sp-home-body { padding-top: 36px; }

/* A single reading roll; the subtotal slips and margin marks break its edges. */
.sp-roll { width: min(var(--sp-roll), calc(100% - 48px)); margin: 0 auto; }
.sp-roll-section { position: relative; }
.sp-roll h2 { position: relative; font: 42px/1.12 var(--sp-serif); letter-spacing: -0.8px; margin: 60px 0 25px; text-wrap: balance; }
.sp-home-body .sp-roll-section:first-child h2 { margin-top: 18px; }
.sp-roll h2 > i, .sp-roll h2 > svg { position: absolute; top: 4px; left: -68px; width: 42px; height: 42px; padding: 7px; color: var(--sp-accent); border-top: 3px solid var(--sp-accent); }
.sp-roll h3 { font: 600 21px/1.35 var(--sp-sans); }
.sp-roll p { margin: 0 0 24px; }
.sp-entries { margin: 30px 0; }
.sp-entry { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: baseline; gap: 38px; padding: 20px 0; border-bottom: 2px dotted #9d8d68; }
.sp-entry:first-child { border-top: 2px dotted #9d8d68; }
.sp-entry dt { font-weight: 600; line-height: 1.4; }
.sp-entry dd { margin: 0; text-align: right; font: 24px/1.25 var(--sp-serif); color: var(--sp-accent); }
.sp-subtotal { position: relative; display: flex; align-items: center; justify-content: center; gap: 20px; width: calc(100% + 112px); margin: 50px -56px; padding: 20px 26px; background: var(--sp-support); box-shadow: 8px 8px 0 #e8d8ac; text-align: center; font: italic 26px/1.3 var(--sp-serif); color: var(--sp-ink); transform: rotate(-1deg); }
.sp-subtotal::before, .sp-subtotal::after { content: ''; flex: 1 0 28px; height: 3px; background: radial-gradient(circle, var(--sp-accent) 1.1px, transparent 1.5px) left center/13px 3px repeat-x; }
.sp-subtotal span { flex: 0 1 auto; transform: rotate(1deg); }
.sp-page-top { padding: 28px 0 8px; }
.sp-crumbs { margin: 0 0 28px; display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--sp-accent); }
.sp-crumbs svg, .sp-crumbs i { width: 16px; height: 16px; }
.sp-page-top h1 { margin: 0 0 25px; padding-top: 18px; border-top: 7px solid var(--sp-accent); }
.sp-intro { font-size: 21px; line-height: 1.55; max-width: 650px; }
.sp-inner-photo { height: 270px; position: relative; margin: 40px -80px 48px; background-color: var(--sp-support); background-size: cover; background-position: center; box-shadow: -12px 12px 0 var(--sp-support), -12px 15px 0 var(--sp-accent); transform: rotate(-1deg); }
.sp-inner-photo::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 7px; background: radial-gradient(circle at 7px 7px, var(--sp-ground) 3px, transparent 3.5px) left bottom/14px 7px repeat-x; }
.sp-photo-heart-basket { background-image: url('heart-basket.webp'); background-position: center 62%; }
.sp-photo-rain-jacket { background-image: url('rain-jacket.webp'); }
.sp-photo-bakery-bench { background-image: url('bakery-bench.webp'); }
.sp-photo-wheel-detail { background-image: url('wheel-detail.webp'); background-position: center 65%; }
.sp-photo-parked-bicycles { background-image: url('parked-bicycles.webp'); }
.sp-photo-morning-window { background-image: url('morning-window.webp'); }
.sp-reading-end { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 3px solid var(--sp-accent); margin-top: 56px; padding-top: 20px; font-size: 16px; }
.sp-reading-end a { display: inline-flex; align-items: center; gap: 9px; }
.sp-reading-end svg, .sp-reading-end i { width: 18px; height: 18px; }
.sp-foot { margin: 88px 0 0; padding: 32px max(24px, calc((100% - 720px) / 2)) 36px; background: var(--sp-support); border-top: 7px solid var(--sp-accent); }
.sp-foot > p { font-size: 16px; max-width: 620px; margin: 0 0 20px; }
.sp-foot-links { display: flex; flex-wrap: wrap; gap: 12px 27px; font-size: 16px; margin-bottom: 28px; }
.sp-foot-links a { color: var(--sp-ink); }
.sp-foot-links a:hover { background: var(--sp-ground); }
.sp-copyright { font: 32px/1.2 var(--sp-serif); }
.sp-error { padding-top: 54px; min-height: 40vh; }
.sp-error h1 { margin: 0 0 30px; }

@media (max-width: 1000px) {
  .sp-roll h2 > i, .sp-roll h2 > svg { position: static; display: block; margin-bottom: 14px; }
  .sp-subtotal { width: calc(100% + 24px); margin-left: -12px; margin-right: -12px; gap: 14px; padding: 18px; }
  .sp-inner-photo { margin-left: -12px; margin-right: -12px; transform: none; }
}

@media (max-width: 600px) {
  body { font-size: 17px; line-height: 1.65; }
  .sp-contents > summary { min-height: 68px; gap: 14px; }
  .sp-wordmark { font-size: 26px; line-height: 0.96; letter-spacing: -0.6px; }
  .sp-wordmark em { display: block; }
  .sp-browse { gap: 6px; padding: 6px 9px; font-size: 16px; }
  .sp-nav { padding-bottom: 20px; }
  .sp-nav span { font-size: 21px; }
  .sp-hero { display: flex; flex-direction: column; min-height: 0; padding: 0; }
  .sp-hero-roll { order: 0; width: 100%; padding: 0 24px 18px; box-shadow: none; }
  .sp-hero-roll::after { height: 8px; }
  .sp-heading-band { margin: 0 -24px; padding: 17px 24px 18px; border-top-width: 6px; }
  .sp-heading-band > i, .sp-heading-band > svg { display: none; }
  .sp-home-title { font-size: 30px; line-height: 1.08; letter-spacing: -0.55px; }
  .sp-welcome { font-size: 17px; line-height: 1.45; margin: 18px auto; }
  .sp-prescription-note { font-size: 16px; line-height: 1.45; padding: 17px 0; }
  .sp-prescription-note::before, .sp-prescription-note::after { left: -10px; right: -10px; }
  .sp-panorama { order: 1; position: relative; z-index: -1; inset: auto; height: 70px; width: 100%; margin-top: 0; }
  .sp-panorama::before { background-image: url('street-panorama.webp'); background-position: center 56%; }
  .sp-wheel-crop { width: 46px; height: 46px; right: calc(13% - 23px); bottom: -14px; background-image: url('street-panorama.webp'); background-size: 400px 100px; background-position: 92% 110%; }
  .sp-home-body { padding-top: 32px; }
  .sp-roll h2 { font-size: 32px; margin-top: 42px; margin-bottom: 20px; }
  .sp-roll h2 > i, .sp-roll h2 > svg { width: 34px; height: 34px; padding: 4px; margin-bottom: 11px; }
  .sp-subtotal { font-size: 23px; margin-top: 36px; margin-bottom: 36px; gap: 10px; box-shadow: 5px 5px 0 #e8d8ac; }
  .sp-subtotal::before, .sp-subtotal::after { flex-basis: 12px; }
  .sp-entry { display: block; padding: 16px 0; }
  .sp-entry dt { font-size: 18px; }
  .sp-entry dd { text-align: left; font-size: 22px; margin-top: 7px; }
  .sp-page-top { padding-top: 17px; }
  .sp-page-top h1 { font-size: 37px; line-height: 1.08; letter-spacing: -0.8px; }
  .sp-intro { font-size: 18px; }
  .sp-crumbs { font-size: 16px; margin-bottom: 25px; }
  .sp-inner-photo { height: 160px; margin-top: 28px; margin-bottom: 35px; box-shadow: -5px 8px 0 var(--sp-support), -5px 10px 0 var(--sp-accent); }
  .sp-reading-end { align-items: flex-start; }
  .sp-foot { margin-top: 52px; }
  .sp-copyright { font-size: 27px; }
  .sp-error h1 { font-size: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
