/* Kindle 8th gen (Basic 2016, 600x800 e-ink) friendly CSS.
   Rules: no flex / no grid / no animation / no shadow / no gradient / no webfont.
   Black & white only -- grayscale renders as dither on old e-ink.

   Layout idea: NUMBERS BIG, everything else small.
   Numbers use sans-serif + bold + -webkit-text-stroke so they render thick
   on e-ink (lower the stroke value if they look too heavy on your device). */

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;      /* never let the page become scrollable */
  background: #ffffff;
  color: #000000;
}

body {
  font-family: "Songti SC", "SimSun", Georgia, "Times New Roman", serif;
  -webkit-text-size-adjust: 100%;
}

#wrap {
  width: 564px;          /* 600 - 2*18 padding */
  margin: 0 auto;
  padding: 12px 18px;
  text-align: center;
}

/* ------------------------------------------------------------- big numbers */

#time {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 170px;
  font-weight: bold;
  line-height: 1.02;
  letter-spacing: -4px;
  -webkit-text-stroke: 2px #000000;
}

#temp {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 100px;
  font-weight: bold;
  line-height: 1.05;
  letter-spacing: -3px;
  -webkit-text-stroke: 2px #000000;
}

#deg {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 56px;
  font-weight: bold;
  vertical-align: 30px;
  -webkit-text-stroke: 1.5px #000000;
}

/* --------------------------------------------------------- small text bits */

#date {
  font-size: 22px;
  line-height: 1.35;
  margin-top: 2px;
}

.hr {
  height: 0;
  border-top: 2px solid #000000;
  margin: 12px 0;
}

#city {
  font-size: 23px;
  font-weight: bold;
  line-height: 1.3;
}

#cond {
  font-size: 30px;
  font-weight: bold;
  margin-left: 12px;
  vertical-align: 28px;
}

#meta {
  font-size: 18px;
  line-height: 1.35;
  margin-top: 2px;
}

#fc {
  width: 100%;
  table-layout: fixed;
}

#fc td {
  border-left: 1px solid #000000;
  padding: 1px 0;
}

#fc td:first-child {
  border-left: 0;
}

.fcDay { font-size: 21px; line-height: 1.3; }
.fcW   { font-size: 18px; line-height: 1.3; }

#greet {
  font-size: 23px;
  font-weight: bold;
  line-height: 1.4;
}

#dress {
  font-size: 19px;
  line-height: 1.4;
  margin-top: 1px;
}

#foot {
  font-size: 15px;
  line-height: 1.35;
  margin-top: 10px;
}

/* peeking cat: line art behind the bottom rule */

#catbox {
  margin-top: 4px;
}

#catbox svg {
  width: 300px;
  height: 185px;
}

/* ------------------------------------------------------------------------ */
/* Compact typography: applied by clock.js when the viewport is short
   (Kindle browser viewport height varies with firmware / toolbar). */

#wrap.tight #time  { font-size: 158px; letter-spacing: -3px; -webkit-text-stroke: 1.5px #000000; }
#wrap.tight #date  { font-size: 21px; }
#wrap.tight #city  { font-size: 22px; }
#wrap.tight #temp  { font-size: 92px; -webkit-text-stroke: 1.5px #000000; }
#wrap.tight #deg   { font-size: 50px; vertical-align: 26px; }
#wrap.tight #cond  { font-size: 28px; vertical-align: 24px; }
#wrap.tight #meta  { font-size: 18px; }
#wrap.tight .hr    { margin: 10px 0; }
#wrap.tight .fcDay { font-size: 20px; }
#wrap.tight .fcW   { font-size: 18px; }
#wrap.tight #greet { font-size: 22px; }
#wrap.tight #dress { font-size: 19px; }
#wrap.tight #foot  { font-size: 14px; margin-top: 6px; }
#wrap.tight #catbox svg { width: 250px; height: 154px; }
