.home { background: var(--paper); color: var(--navy); }
.home .bar { background: transparent; color: var(--navy); min-height: 0; padding: 28px 0; }
.home .bar a, .home .logo { color: var(--navy); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.home header.bar { max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter); width: 100%; }
.home nav { display: flex; gap: 32px; align-items: center; margin-left: auto; }
.home nav a { color: var(--navy); text-decoration: none; font-size: 16px; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
.home nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.home nav a.pill { background: var(--navy); color: var(--on-navy); padding: 10px 18px; border-radius: var(--radius-control); }
.home h1 { font-size: clamp(40px, 5.4vw, 72px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; max-width: none; margin: 0 auto; text-align: center; text-wrap: wrap; text-wrap: balance; }
.intro { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; gap: 16px; margin: 32px 0 40px; }
.intro .sub { color: var(--pencil); font-size: clamp(16px, 2.1vw, 20px); line-height: 1.4; max-width: none; margin: 0; text-wrap: wrap; text-wrap: balance; }
@media (min-width: 768px) {
  .home h1, .intro .sub { white-space: nowrap; text-wrap: nowrap; }
}
.window-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-bottom: 64px; }
.find { display: flex; flex-direction: column; }
.find .ph { background: var(--shelf); }
.find .ph img { object-fit: contain; }
.tag { position: relative; align-self: flex-start; max-width: 88%; margin: -44px 0 0 20px; background: var(--marigold); color: var(--navy); padding: 16px 18px 14px 34px; border-radius: var(--radius-tag); transform: rotate(-1.5deg); }
.find:nth-child(2) .tag { transform: rotate(1.2deg); }
.tag:before { content: ""; position: absolute; left: 12px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px var(--navy); }
.tag blockquote, .tag p { font-size: 16px; line-height: 1.4; font-weight: 500; margin: 0; }
.tag cite, .tag a { display: block; margin-top: 8px; font-style: normal; font-size: 14px; font-weight: 600; color: var(--navy); }
.prob { font-size: 22px; line-height: 1.25; font-weight: 600; margin: 20px 0 6px; }
.more { font-size: 16px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; color: var(--navy); }
.walk { padding: 72px 0 96px; }
.home h2 { font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 650; margin: 0 0 24px; }
.walk-grid { display: block; }
.prob a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.places { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 40px; }
.place { background: var(--shelf); border-radius: var(--radius-media); padding: 12px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--navy); min-height: 44px; }
.place b { font-size: 20px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip, #categories button, .picker button {
  background: var(--shelf);
  color: var(--navy);
  border-radius: var(--radius-pill);
  padding: 12px 20px;
  min-height: 44px;
  font-size: 16px;
  font-weight: 500;
  border: 0;
}
#categories button[aria-pressed="true"] { background: var(--navy); color: var(--on-navy); }
.story-band { background: var(--shelf); border-radius: var(--radius-media); padding: 56px; margin: 96px 0 0; }
.story-band [data-slot="source-proof"] { margin: 20px 0 0; max-width: 60ch; font-size: 18px; line-height: 1.55; color: #5A6275; text-align: left; float: none; }
.story-band .steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.story-band .steps li { counter-increment: step; font-size: 17px; font-weight: 600; }
.story-band .steps li:before { content: counter(step); display: block; font-size: 40px; font-weight: 700; color: var(--pencil); line-height: 1; margin-bottom: 8px; }
.shelf-more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; color: var(--navy); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.writer-slot:empty { display: none; }
.story-band .writer-slot { background: var(--paper); }
.fab { position: fixed; right: 28px; bottom: 28px; width: 60px; height: 60px; border-radius: 50%; background: var(--navy); color: var(--on-navy); border: 3px solid var(--paper); display: flex; align-items: center; justify-content: center; z-index: 20; }
.search-dialog { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--navy) 55%, transparent); padding: 40px; }
.search-dialog[hidden] { display: none !important; }
.search-panel { background: var(--paper); color: var(--navy); border: var(--border-strong); border-radius: var(--radius-media); max-width: 980px; width: 100%; padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.search-panel #searchform { flex: 0 0 auto; }
.search-panel input { width: 100%; height: auto; box-sizing: border-box; background: var(--shelf); border: 0; border-radius: 12px; padding: 20px 22px; font: 400 24px/1.4 var(--font); color: var(--navy); min-height: 44px; }
.search-panel input:focus { outline: 3px solid var(--navy); outline-offset: 2px; }
.search-close, #search-close { align-self: flex-end; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: var(--navy); color: var(--on-navy); border: 0; border-radius: var(--radius-control); }
.search-row { display: flex; gap: 10px; }
.recents { display: grid; gap: 12px; }
.recents a { display: flex; gap: 12px; align-items: center; min-height: 44px; color: var(--navy); text-decoration: none; font-size: 16px; font-weight: 600; }
.recents img { width: 64px; height: 64px; object-fit: contain; background: var(--shelf); border-radius: 10px; }
.shelf { background: var(--paper); }
.shelf .grid { max-width: var(--max); }
@media (max-width: 1024px) {
  .window-row { grid-template-columns: 1fr 1fr; }
  .window-row .find:last-child { grid-column: 1 / -1; }
  .places { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .walk-grid, .story-band { display: block; }
  .window-row { grid-template-columns: 1fr; gap: 40px; }
  .home h1 { line-height: 1.05; }
  .home h2 { font-size: 28px; }
  .places { grid-template-columns: 1fr 1fr; }
  .walk { padding: 48px 0 64px; }
  .fab { width: 52px; height: 52px; right: 16px; bottom: 16px; }
}
@media (max-width: 600px) {
  .home nav a:not(.pill) { display: none; }
  .find .ph { aspect-ratio: 1; }
  .chip, #categories button { padding: 10px 14px; font-size: 14px; min-height: 44px; }
  .story-band .steps { grid-template-columns: 1fr; }
  .story-band [data-slot="source-proof"] { max-width: none; width: 100%; font-size: 17px; }
  .story-band .steps li { display: flex; gap: 14px; align-items: baseline; }
  .story-band .steps li:before { font-size: 28px; margin: 0; }
  .search-dialog { padding: 0; align-items: stretch; }
  .search-panel { border-radius: 0; border-width: 0; min-height: 100%; overflow: auto; padding: 18px; }
  .search-panel input { font-size: 16px; padding: 16px 18px; }
  .search-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; min-width: 0; max-width: 100%; }
  .search-row::-webkit-scrollbar { display: none; }
  .filter-chips { flex-wrap: wrap; overflow: visible; min-width: 0; max-width: 100%; }
}
@media (max-width: 600px) {
  .paper-nav, .home header.bar { flex-wrap: nowrap; min-width: 0; max-width: 100%; }
  .paper-nav .logo, .home .logo { white-space: nowrap; font-size: 16px; min-width: 0; }
  .paper-nav .pill, .home nav a.pill { white-space: nowrap; flex-shrink: 0; }
  .paper-nav nav a:not(.pill), .home nav a:not(.pill) { display: none; }
  .product-page .bar .wrap { flex-wrap: nowrap; }
}
@media (max-width: 380px) {
  .paper-nav .logo, .home .logo { font-size: 13px; }
  .paper-nav .pill, .home nav a.pill { padding: 8px 10px; font-size: 13px; }
  .paper-nav, .home header.bar { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .tag, .find:nth-child(2) .tag { transform: none; }
}
