/* kindle-dash — boxed-grid broadsheet (matches user's ASCII layout).
   1448 × 1072 e-ink at 300 ppi. Pure black on white. */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,800;1,700;1,800&family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 1448px;
  height: 1072px;
  overflow: hidden;
  background: #fff;
  color: #000;
}

body {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 20px;
  line-height: 1.32;
  font-feature-settings: "tnum" 1, "kern" 1, "liga" 1;
  -webkit-font-smoothing: never;
  text-rendering: geometricPrecision;
}

.frame {
  width: 1448px;
  height: 1072px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  border: 2px solid #000;
}

/* ---------- rows of the grid ---------- */
.row {
  border-bottom: 1px solid #000;
  display: flex;
}
.row:last-child { border-bottom: 0; }

.cell {
  padding: 14px 22px;
  flex: 1;
  border-right: 1px solid #000;
}
.cell:last-child { border-right: 0; }

/* ---------- HERO row ---------- */
.hero { height: 158px; }
.hero .cell { padding: 14px 24px; display: flex; flex-direction: column; justify-content: center; }
.hero-time, .hero-weather { gap: 6px; }

.hero-line-1 {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 800;
  font-size: 48px;
  line-height: 0.95;
  letter-spacing: -1px;
}
.hero-line-2 {
  font-family: "EB Garamond", serif;
  font-size: 22px;
  font-weight: 500;
  margin-top: 6px;
}
.hero-line-3 {
  font-family: "EB Garamond", serif;
  font-size: 15px;
  font-weight: 400;
  margin-top: 2px;
  opacity: 0.8;
}
.hero-line-3.italic { font-style: italic; }

.hero-weather .hero-line-1 {
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  line-height: 1;
}
.hero-weather .hero-line-2 {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 42px;
  margin-top: 8px;
  line-height: 1;
  font-feature-settings: "tnum" 1;
}
.hero-weather .hero-line-2 .hilo {
  font-family: "EB Garamond", serif;
  font-style: normal;
  font-weight: 500;
  font-size: 18px;
  margin-left: 12px;
  font-feature-settings: "tnum" 1;
}
.hero-weather .hero-line-3 { margin-top: 4px; }

/* ---------- section title (used in each row that needs one) ---------- */
.section-title {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.3px;
  text-transform: none;
  padding: 10px 22px 0;
  margin-bottom: 6px;
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  height: 1px;
  background: #000;
  margin-top: 4px;
  opacity: 0.35;
}

/* ---------- CLAUDE row ---------- */
.claude { display: block; padding-bottom: 10px; }
.claude .section-title { padding: 8px 22px 0; }
.claude-row {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 10px 22px;
}
.claude-row .bar {
  display: block;
  width: 100%;
  height: 14px;
  border: 1px solid #000;
  background: #fff;
}
.claude-row .bar .fill {
  display: block;
  height: 100%;
  background: repeating-linear-gradient(
    45deg, #000 0px, #000 2px, #fff 2px, #fff 4px
  );
}
.claude-row .acct {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 26px;
}
.claude-row .acct-name {
  font-family: "EB Garamond", serif;
  font-style: normal;
  font-weight: 600;
}
.claude-row .pcts {
  font-family: "EB Garamond", serif;
  font-size: 18px;
  font-feature-settings: "tnum" 1;
  white-space: nowrap;
}
.claude-row .pcts b {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.2px;
}
.claude-row .pcts .dot { opacity: 0.4; margin: 0 6px; }
.claude-row.pending { opacity: 0.65; }
.claude-row.pending .pcts { font-style: italic; }
.claude-row.warn { background: rgba(0,0,0,0.05); }
.warn-tag {
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  background: #000;
  color: #fff;
  padding: 2px 6px;
  margin-left: 6px;
}
.warn-icon { margin-left: 8px; font-size: 22px; }

/* ---------- SPLIT row (moon | news) ---------- */
.split { flex: 1; min-height: 0; overflow: hidden; }
.split .news-cell { overflow: hidden; }
.split .moon-cell {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 14px;
  text-align: center;
}
.moon-svg {
  background: radial-gradient(circle, #fff 60%, rgba(0,0,0,0.06) 100%);
  border-radius: 50%;
  padding: 4px;
  margin-bottom: 6px;
}
.moon-svg svg { width: 120px; height: 120px; display: block; }
.moon-name {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.2px;
  margin-top: 2px;
}
.moon-illum {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 4px;
}
.moon-meta {
  font-family: "EB Garamond", serif;
  font-style: italic;
  font-size: 16px;
  margin-top: 6px;
  opacity: 0.85;
}

.split .news-cell { padding: 0 0 14px 0; }
.news-list {
  list-style: none;
  padding: 0 22px;
}
.news-list li {
  display: grid;
  grid-template-columns: 14px 80px 12px 1fr 50px;
  align-items: baseline;
  column-gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dotted rgba(0,0,0,0.30);
}
.news-list li:last-child { border-bottom: 0; }
.bullet { font-size: 16px; line-height: 1; }
.src {
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
}
.dash { opacity: 0.35; }
.news-list .title {
  font-family: "EB Garamond", serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.18;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.age {
  font-family: "EB Garamond", serif;
  font-style: italic;
  font-size: 14px;
  text-align: right;
  opacity: 0.55;
}

/* ---------- SIGNAL row (bottom) ---------- */
.signal { display: block; padding-bottom: 12px; }
.signal .section-title { padding: 8px 22px 0; }
.signal .post {
  padding: 8px 22px;
  border-bottom: 1px dotted rgba(0,0,0,0.25);
}
.signal .post:last-child { border-bottom: 0; }
.post-handle {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.post-handle .post-age { opacity: 0.55; font-weight: 500; }
.post-text {
  font-family: "EB Garamond", serif;
  font-size: 22px;
  font-style: italic;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- empty ---------- */
.empty {
  font-family: "EB Garamond", serif;
  font-style: italic;
  font-size: 15px;
  opacity: 0.55;
  padding: 12px 22px;
}
