/* Shared visual system: no gradients, shadows, category icons, or tinted page backgrounds. */
:root{--page:#fff;--ink:#16202a;--muted:#56626b;--line:#cbd2d7;--line-strong:#17222b;--surface:#f6f8f9;--font:Inter,Arial,Helvetica,sans-serif;--mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;--content-width:1344px;--radius:2px;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-6:24px;--space-8:32px;--space-12:48px;--space-16:64px}
*{box-sizing:border-box}html{font-family:var(--font);color:var(--ink);background:var(--page)}body{margin:0}a{color:inherit;text-underline-offset:3px}a:hover{color:var(--accent)}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid var(--accent);outline-offset:3px}button,input{font:inherit}button{cursor:pointer}.container{max-width:var(--content-width);margin:auto;padding:0 24px}.site-header{border-bottom:1px solid var(--line-strong)}.header-top{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-top:22px;padding-bottom:14px}.wordmark{font-size:28px;font-weight:800;letter-spacing:-1.2px;text-decoration:none}.metadata{font:12px var(--mono);color:var(--muted)}.nav{display:flex;gap:32px;align-items:center;padding:0 0 12px;flex-wrap:wrap}.nav a{text-decoration:none;font-size:14px;font-weight:600}.nav .active{color:var(--accent);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:14px}.hero{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(300px,.95fr);align-items:center;gap:24px;border-bottom:1px solid var(--line-strong);padding:42px 0 36px}.hero h1{font-size:clamp(40px,5.2vw,72px);line-height:1.03;letter-spacing:-.055em;margin:0 0 18px;font-weight:800;max-width:700px}.hero p{max-width:620px;color:var(--muted);font-size:17px;line-height:1.5;margin:0 0 20px}.pixel-art{display:block;width:100%;height:auto;image-rendering:pixelated;image-rendering:crisp-edges}.hero-art{align-self:end}.search{display:flex;gap:8px;margin:20px 0 12px}.search input{flex:1;min-width:0;padding:15px 16px;border:1px solid var(--line-strong);border-radius:var(--radius);background:#fff}.search button,.subscribe button{padding:13px 20px;background:var(--accent);color:#fff;border:1px solid var(--accent);font-weight:700;border-radius:var(--radius)}.popular{font-size:13px;color:var(--muted);line-height:2}.popular a{margin-left:12px;color:var(--accent)}.section-title{font-size:28px;letter-spacing:-.035em;margin:0 0 22px}.section{padding:36px 0;border-bottom:1px solid var(--line)}.home-content{display:grid;grid-template-columns:minmax(0,2.4fr) minmax(240px,1fr);gap:38px}.directory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 24px}.category h3{font-size:17px;letter-spacing:-.02em;margin:0 0 10px}.category h3 span{font:12px var(--mono);color:var(--accent);margin-left:5px}.category ul{padding:0;margin:0;list-style:none}.category li{font-size:14px;line-height:1.7}.category .count{color:var(--muted);font:11px var(--mono)}.more{font-size:13px;font-weight:700;color:var(--accent);display:inline-block;margin-top:8px}.sidebar{border-left:1px solid var(--line-strong);padding-left:30px}.sidebar-block{padding-bottom:24px;margin-bottom:24px;border-bottom:1px solid var(--line)}.sidebar-block h3{font-size:20px;letter-spacing:-.03em;margin:0 0 12px}.sidebar-block p{font-size:14px;line-height:1.6;color:var(--muted)}.sidebar-block li{margin-bottom:10px;font-size:14px}.sidebar-block ul{padding-left:17px}.subscribe{display:flex;gap:5px}.subscribe input{min-width:0;width:100%;border:1px solid var(--line-strong);padding:10px}.subscribe button{padding:10px}.neighbourhood-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.neighbourhood img{width:100%;border-bottom:1px solid var(--line);background:#fff}.neighbourhood a{display:block;font-size:15px;font-weight:700;text-decoration:none;margin-top:8px}.neighbourhood a:hover{text-decoration:underline}.detail-columns{display:grid;grid-template-columns:minmax(0,2fr) 290px;gap:48px}.result-list{list-style:none;padding:0;margin:0}.result-list li{padding:18px 0;border-top:1px solid var(--line)}.result-list a{font-weight:700}.result-list p{margin:6px 0;color:var(--muted);line-height:1.5}.tag{font:11px var(--mono);color:var(--muted)}.article{max-width:760px}.article p{font-size:17px;line-height:1.75}.article h2{margin-top:36px}.footer{padding:24px 0 48px;color:var(--muted);font-size:12px}.footer-art{max-height:100px;object-fit:contain;object-position:bottom;width:100%;image-rendering:pixelated}@media(max-width:900px){.hero{grid-template-columns:1fr}.hero-art{max-width:630px}.home-content,.detail-columns{grid-template-columns:1fr}.sidebar{border-left:0;border-top:1px solid var(--line);padding:26px 0 0}.directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.neighbourhood-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:550px){.container{padding:0 18px}.wordmark{font-size:23px}.metadata{display:none}.nav{gap:15px}.nav a{font-size:13px}.hero{padding:30px 0 22px}.hero h1{font-size:44px}.hero p{font-size:15px}.directory-grid{grid-template-columns:1fr 1fr;gap:24px 14px}.category li{font-size:13px}.section-title{font-size:24px}.search button{padding:12px}.neighbourhood-grid{gap:12px}}
:root{--accent:#C83D32;--accent-hover:#A82F27;--illustration-brick:#C44939;--illustration-leaf:#49745C}

/* Compact neighbourhood list (replaces the heavy image cards) */
.neighbourhood-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 24px;max-width:760px}
.neighbourhood-list a{font-size:16px;font-weight:700;text-decoration:none}
.neighbourhood-list a:hover{text-decoration:underline}
.neighbourhood-list .count{font:12px var(--mono);color:var(--accent);margin-left:4px}
.neighbourhood-all{margin-top:14px;font-size:14px}
.neighbourhood-all a{font-weight:700;color:var(--accent)}
@media(max-width:700px){.neighbourhood-list{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Hero art fills its grid column (overrides the old 440px cap in style.css) */
.hero-art { max-width: none; }
.hero-art .pixel-art, .hero-art img { width: 100%; max-width: none; }

/* Balance the hero: wider art column, vertically centered so it doesn't float with a gap above */
.hero { grid-template-columns: minmax(0, 1fr) minmax(340px, 1.18fr); }
.hero-art { align-self: center; }

/* ---- Site-wide base: make the handoff type/colour system apply everywhere ---- */
body { font-family: var(--font); color: var(--ink); background: var(--page); }
h1, h2, h3, h4 { font-family: var(--font); }

/* Category page (handoff detail-columns + result-list) */
.crumb{font:12px var(--mono);color:var(--muted);margin-bottom:10px}
.crumb a{color:var(--muted);text-decoration:none}
.category-title{font-size:clamp(38px,5vw,62px);letter-spacing:-.05em;margin:10px 0;line-height:1.05;font-weight:800}
.category-lede{color:var(--muted);max-width:680px;line-height:1.6;margin:0}
.section-title .count{font:13px var(--mono);color:var(--accent);font-weight:400;margin-left:4px}

/* Content width: the handoff's 1344px fills the viewport edge-to-edge; pull it in */
:root { --content-width: 1100px; }

/* Editorial pages: flatten the old boxed panels into clean handoff-style sections */
.panel { border: 0; background: transparent; box-shadow: none; margin-bottom: 28px; }
.panel-title { background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); font-family: var(--font); font-size: 20px; letter-spacing: -.02em; padding: 0 0 8px; }
.panel-body { padding: 14px 0 0; }
.columns { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(240px, 1fr); gap: 44px; }
.frame.page { max-width: var(--content-width); margin: 0 auto; padding: 0 24px; }
.page-title { font-size: clamp(38px, 5vw, 60px); letter-spacing: -.05em; font-weight: 800; margin: 20px 0 10px; }
.page-lede { color: var(--muted); max-width: 680px; line-height: 1.6; }
@media (max-width: 900px) { .columns { grid-template-columns: 1fr; } }

/* Mobile stacking must come after the later desktop overrides above */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .columns { grid-template-columns: 1fr; }
}

/* "Just added" band: real recent groups, breaks up the directory wall */
.just-added { border-top: 2px solid var(--accent); }
.just-added-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.just-added-head .section-title { font-size: 22px; margin: 0; }
.just-added-cta { font-size: 13px; font-weight: 700; color: var(--accent); white-space: nowrap; text-decoration: none; }
.just-added-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.ja-cat { font-size: 12px; color: var(--muted); text-decoration: none; display: block; margin-bottom: 3px; }
.ja-cat:hover { color: var(--accent); }
.ja-name { font-size: 15px; font-weight: 700; text-decoration: none; display: block; line-height: 1.3; }
.ja-name:hover { color: var(--accent); }
.ja-desc { font-size: 13px; color: var(--muted); line-height: 1.45; display: block; margin-top: 4px; }
@media (max-width: 900px) { .just-added-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 550px) { .just-added-grid { grid-template-columns: 1fr; } }

/* Hero: give the art more weight and add a red divider */
.hero { grid-template-columns: minmax(0, 1fr) minmax(320px, 1.22fr); border-bottom: 2px solid var(--accent); }

/* Stats strip: real scale, big mono numerals */
.stats-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 22px 0 26px; border-bottom: 1px solid var(--line); }
.stat-num { display: block; font: 700 38px/1 var(--mono); letter-spacing: -.02em; color: var(--ink); }
.stat-label { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; }

/* Personal note band */
.note-band { border-bottom: 0; }
.note-text { font-size: 22px; line-height: 1.5; max-width: 820px; letter-spacing: -.01em; margin: 0; }
.note-sign { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.note-sign a { color: var(--muted); }

@media (max-width: 700px) {
  .stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .note-text { font-size: 18px; }
}


/* Structured footer (replaces the pixel strip) */
.footer { border-top: 1px solid var(--ink); padding: 40px 0 42px; color: var(--ink); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.footer-brand .wordmark { font-size: 22px; }
.footer-brand p { color: var(--muted); margin: 10px 0 0; max-width: 270px; line-height: 1.5; font-size: 13px; }
.footer-col h4 { font-size: 13px; font-weight: 700; margin: 0 0 12px; color: var(--ink); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 7px; font-size: 13px; }
.footer-col a { text-decoration: none; color: var(--muted); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; font-size: 12px; color: var(--muted); }
.footer-bottom a { color: var(--muted); }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }

/* Density pass: tighten vertical rhythm so the page reads fuller */
.section { padding: 26px 0; }
.hero { padding: 26px 0 22px; }
.stats-strip { padding: 16px 0 18px; }
.note-band { padding: 26px 0; }
.footer { padding: 30px 0 32px; }
.home-content { gap: 32px; }
.directory-grid { gap: 24px 22px; }
.detail-columns { gap: 40px; }
.just-added-grid { gap: 20px; }
.note-text { font-size: 20px; }

/* Balance the directory: 7 sections in a 3-col grid left two empty cells.
   Flow them into balanced columns instead. */
.directory-grid { display: block; columns: 3; column-gap: 24px; }
.directory-grid .category { break-inside: avoid; margin-bottom: 24px; }

/* Hero: full-width editorial statement (illustration removed) */
.hero { grid-template-columns: 1fr; padding: 40px 0 30px; }
.hero h1 { font-size: clamp(46px, 6.2vw, 82px); max-width: 940px; }
.hero p { max-width: 660px; }
.hero .search { max-width: 660px; }

/* Hero: stats live in the right column, not a separate strip */
.hero { grid-template-columns: minmax(0, 1.55fr) minmax(230px, 0.45fr); align-items: center; }
.hero-main { min-width: 0; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; border-left: 1px solid var(--line); padding-left: 26px; }
.hero-stats .stat-num { display: block; font: 700 32px/1 var(--mono); letter-spacing: -.02em; color: var(--ink); }
.hero-stats .stat-label { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero-stats { border-left: 0; border-top: 1px solid var(--line); padding: 18px 0 0; margin-top: 22px; }
}

/* A bit more Myspace: pixel mark, dashed rule, webring line */
.wordmark { display: inline-flex; align-items: center; gap: 8px; }
.wordmark-mark { display: block; flex: none; image-rendering: pixelated; }
.footer { border-top: 1px dashed var(--ink); }
.webring { margin: 8px 0 0; font-size: 11px; color: var(--muted); }
.webring a { color: var(--muted); }

/* Surprise me: a quiet fun button in the nav */
.nav .nav-surprise { background: none; border: 0; padding: 0; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--accent); cursor: pointer; }
.nav .nav-surprise:hover { text-decoration: underline; text-underline-offset: 3px; }
.nav .nav-surprise:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Hero profile box (replaces the stats card) */
.hero-profile { max-width: 230px; justify-self: end; align-self: center; border: 1px solid var(--line); padding: 14px; }
.hero-profile-photo { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 10px; }
.hero-profile-name { font-weight: 800; font-size: 18px; margin: 0 0 2px; }
.hero-profile-line { font-size: 13px; color: var(--muted); line-height: 1.4; margin: 0 0 8px; }
.hero-profile-links { font-size: 13px; font-weight: 700; margin: 0; }
.hero-profile-links a { color: var(--accent); }
@media (max-width: 760px) { .hero-profile { justify-self: start; max-width: 200px; margin-top: 20px; } }

/* Hero profile: pixel avatar, not a real photo */
.hero-profile-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.hero-profile-avatar { display: block; width: 40px; height: 40px; image-rendering: pixelated; }
.hero-profile-name { font-weight: 800; font-size: 18px; margin: 0; }

/* Warm the page up: cream background, tinted bands, no blinding white */
:root { --page: #faf8f2; --surface: #f1ece0; }
body { background: var(--page); }
.just-added { background: var(--surface); padding: 24px; margin: 0 -24px 26px; }
.footer { background: var(--surface); padding: 30px 24px 32px; margin: 0 -24px; }

/* Typography scale: one clear hierarchy, no wild jumps
   Display 68 · Page H1 44 · Section 26 · Sub 20 · Body 16 · Small 13 · Micro 11-12 */
.hero h1 { font-size: clamp(44px, 5.5vw, 68px); }
.category-title, .page-title { font-size: clamp(32px, 4vw, 44px); }
.section-title { font-size: 26px; }
.just-added-head .section-title { font-size: 20px; }
.hero p { font-size: 16px; }
.article p { font-size: 16px; }

/* Readable metadata: the when/where line was 11px mono grey */
.tag { font: 13px/1.6 var(--font); color: var(--muted); }
.tag { font: 14px/1.6 var(--font); color: #46525c; }

/* Polish: free badge, subtle row hover, readable just-added copy */
.badge-free { display: inline-block; font-size: 11px; font-weight: 700; color: #335f37; background: #e6efe2; border: 1px solid #c2d6bc; padding: 1px 6px; margin-left: 6px; vertical-align: 1px; }
.result-list li { transition: background .15s ease; }
.result-list li:hover { background: rgba(22, 32, 42, .025); }
.ja-desc { font-size: 14px; }
