/* /hood.css — nobody's neighbourhood. the host's bar and the index are the club's (green,
   vtFont, a white window); a homepage is its owner's: body.is-home drops the club's type for
   the fonts people had, over their tile, in one of a handful of looks (.hp--*) */

.hd > main { padding-top: 3.4em; }
/* sizes in px: a homepage sets its own body size, the bars stay the club's */
.hd .top-bar { font-size: 18.7px; }
.hd-host {
  position: fixed; top: 29px; left: 0; right: 0; z-index: 9990;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 1em;
  padding: 1px 0.8em; background: #000; color: #00c800; font: 16px/1.3 vtFont, "Courier New", monospace; letter-spacing: 0.05em;
}
.hd-host a, .hd-host a:visited { color: #00c800; text-decoration: none; padding: 0 0.2em; }
.hd-host a:hover, .hd-host a:focus-visible { background: #00c800; color: #000; }
.hd-host__r { display: flex; gap: 1em; }
.hd-host__url { opacity: 0.6; }

/* the index: the club's window */
.hd-win { max-width: 980px; margin: 1.2em auto 4em; background: #fff; border: 2px solid #000; box-shadow: 4px 4px 0 #000; padding-bottom: 0.6em; }
.hd-intro, .hd-toc, .hd-what, .hd-foot { font-size: 0.85em; }
.hd-intro, .hd-toc { text-align: center; }
.hd-street { scroll-margin-top: 3.2em; }
.hd-res { display: grid; grid-template-columns: repeat(auto-fill, minmax(15em, 1fr)); gap: 0.4em 1em; padding: 0 1.2em; }
.hd-res li { display: flex; align-items: center; gap: 0.5em; min-width: 0; }
.hd-res li::before { content: none; }
.hd-res li > a:first-child { line-height: 0; padding: 2px; }
.hd-res img, .hp img { image-rendering: pixelated; }
.hd-no { font-size: 0.7em; opacity: 0.55; }
.hd-res li > a:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- a homepage ---------- */

body.is-home { background-color: #808080; background-repeat: repeat; image-rendering: pixelated; cursor: default; font-size: 16px; }
body.is-home > main { padding: 66px 0.6em 3em; }
.hp {
  --pbg: #fff; --ink: #000; --link: #0000ee; --vlink: #551a8b; --head: #000080; --font: "Times New Roman", Times, serif; --hfont: var(--font);
  --edge: 6px ridge #c0c0c0;
  max-width: 760px; margin: 0 auto; padding: 14px 18px 18px; background: var(--pbg); color: var(--ink); border: var(--edge);
  font: 16px/1.4 var(--font); image-rendering: auto;
}
.hp a, .hp a:visited { color: var(--link); text-decoration: underline; background: none; }
.hp a:visited { color: var(--vlink); }
.hp a:hover, .hp a:focus-visible { color: var(--ink); background: none; }
.hp h1, .hp h2 { background: none; border: 0; white-space: normal; overflow: visible; letter-spacing: 0; color: var(--head); font-family: var(--hfont); }
.hp h1::before, .hp h1::after { content: none; }
.hp h1 { font-size: 2em; line-height: 1.2; text-align: center; margin: 0.2em 0 0.3em; }
.hp h2 { display: block; font-size: 1.35em; margin: 0.6em 0 0.3em; padding: 0; }
.hp p { margin: 0.5em 0; }
.hp ul.hp-list { list-style: disc; padding: 0 0 0 1.6em; margin: 0.3em 0; }
.hp li::before { content: none; }
.hp ::selection { background: #000080; color: #fff; }
.hp-marq { display: block; font-weight: bold; color: var(--head); margin: 0.2em 0 0.6em; }
.hp-blink { text-align: center; font-weight: bold; color: var(--head); animation: hp-blink 1.1s steps(1) infinite; }
@keyframes hp-blink { 50% { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .hp-blink { animation: none; } }
.hp-c { text-align: center; }
.hp-motto { text-align: center; font-style: italic; }
.hp-div { text-align: center; line-height: 0; margin: 1em 0 0.4em; }
.hp-div img { max-width: 100%; height: auto; }
.hp-about { overflow: hidden; }
.hp-me { float: right; margin: 0.3em 0 0.6em 1em; text-align: center; font-size: 0.8em; }
.hp-me canvas { display: block; width: 64px; height: 64px; border: 2px outset #c0c0c0; image-rendering: pixelated; }
.hp-facts { border-collapse: collapse; margin: 0.6em 0; font-size: 0.92em; clear: right; }
.hp-facts th, .hp-facts td { border: 1px solid currentColor; padding: 2px 8px; text-align: left; vertical-align: top; }
.hp-facts th { white-space: nowrap; }
.hp-btns, .hp-blinkies, .hp-awards { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 0.4em 0; }
.hp-blinkies { gap: 2px; }
.hp-awards { gap: 10px; align-items: end; }
.hp-btns a, .hp-blinkies a, .hp-awards a { line-height: 0; }
.hp-code { display: block; width: 100%; max-width: 460px; margin: 0.4em auto; font: 12px "Courier New", monospace; background: #fff; color: #000; border: 2px inset #c0c0c0; resize: none; }
.hp-ring { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; text-align: center; border: 3px double currentColor; padding: 6px 10px; margin: 0.4em auto; max-width: 520px; }
.hp-ring a:first-child { line-height: 0; }
.hp-ring p { margin: 0.15em 0; }
.hp-ringnav { font-size: 0.9em; font-weight: bold; }
.hp-gbform { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; max-width: 460px; margin: 0.4em auto 0.8em; }
.hp-gbform textarea { grid-column: 1 / -1; resize: vertical; }
.hp-gbform input, .hp-gbform textarea { font: 13px Arial, sans-serif; padding: 2px 4px; border: 2px inset #c0c0c0; background: #fff; color: #000; caret-color: #000; }
.hp-gbform button { grid-column: 1 / -1; justify-self: center; font: 13px Arial, sans-serif; padding: 2px 14px; border: 2px outset #c0c0c0; background: #c0c0c0; color: #000; cursor: pointer; }
.hp-gbform button:active { border-style: inset; }
.hp-gbe { border-top: 1px dashed currentColor; padding: 0.3em 0; }
.hp-gbh { font-size: 0.85em; margin: 0.2em 0; }
.hp-gbe > p:last-child { margin: 0.2em 0 0.4em 1em; }
.hp-foot { text-align: center; font-size: 0.9em; }
.hp-foot img { vertical-align: middle; }

/* the looks: what people's pages came in */
.hp--plain { --pbg: #fff; --head: #000080; }
.hp--dark { --pbg: #000; --ink: #c0c0c0; --link: #00ff00; --vlink: #00a000; --head: #ff0000; --font: "Courier New", Courier, monospace; --edge: 4px outset #404040; }
.hp--glitter { --pbg: #ffe0f4; --ink: #6a0070; --link: #ff00aa; --vlink: #a000c0; --head: #ff33cc; --font: "Comic Sans MS", "Comic Neue", "Chalkboard SE", cursive; --edge: 6px dotted #ff66cc; text-align: center; }
.hp--glitter .hp-list { display: inline-block; text-align: left; }
.hp--glitter .hp-facts { margin: 0.6em auto; }
.hp--night { --pbg: #0a0a30; --ink: #d8d8ff; --link: #9fc0ff; --vlink: #c09fff; --head: #ffd27a; --font: Georgia, "Times New Roman", serif; --edge: 4px double #6060a0; }
.hp--gold { --pbg: #fffbea; --ink: #3a2408; --link: #8a5a00; --vlink: #6a3a00; --head: #a8741a; --font: Georgia, "Palatino Linotype", Palatino, serif; --hfont: "Times New Roman", serif; --edge: 6px double #d4a640; }
.hp--legal { --pbg: #fff; --ink: #000; --link: #000080; --vlink: #000080; --head: #000; --font: "Times New Roman", Times, serif; --edge: 1px solid #000; }
.hp--legal h1 { font-variant: small-caps; }
.hp--neon { --pbg: #000; --ink: #e0e0e0; --link: #00ffff; --vlink: #ff00ff; --head: #ff00ff; --font: Verdana, Tahoma, sans-serif; --hfont: "Arial Black", Impact, sans-serif; --edge: 3px solid #00ffff; }

@media (max-width: 760px) { .hd-host__url { display: none; } }
@media (max-width: 600px) {
  /* the host's bar takes two lines here */
  body.is-home > main { padding-top: 84px; }
  .hp { padding: 10px 10px 14px; }
  .hp h1 { font-size: 1.55em; }
  .hp-me { float: none; display: table; margin: 0.4em auto; }
  .hp-gbform { grid-template-columns: 1fr; }
}
