/* The blog and the status page. Built on site.css; animations stay to short,
   quiet transitions, so these pages read calmly. */

.page { padding: clamp(130px, 16vw, 180px) 0 clamp(80px, 10vw, 120px); min-height: 70vh; }

.page-head { margin-bottom: clamp(40px, 6vw, 64px); }
.page-head h1 {
  margin-top: 4px;
  font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4rem);
  background: linear-gradient(180deg, var(--h1-a), var(--h1-b));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.badge {
  display: inline-flex; align-items: center; margin-left: 10px; padding: 2px 9px;
  border-radius: 999px; border: 1px solid color-mix(in srgb, var(--violet) 45%, transparent);
  font-size: 11px; letter-spacing: .04em; text-transform: none; color: var(--violet-text);
}

/* Blog list */

.post-list { display: grid; gap: 16px; max-width: 860px; }
.empty { color: var(--dim); font-size: 17px; }
.post-card {
  border-radius: 20px;
  border: 1px solid var(--hair);
  background: linear-gradient(180deg, var(--panel-a), var(--panel-b));
  box-shadow: var(--panel-shadow);
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.post-card:hover { border-color: color-mix(in srgb, var(--cyan) 35%, var(--hair)); transform: translateY(-2px); }
.post-link { display: block; padding: clamp(22px, 3vw, 30px); text-decoration: none; }
.post-date { display: flex; align-items: center; font-size: 12.5px; color: var(--dim); letter-spacing: .02em; }
.post-card h2 { margin-top: 10px; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); letter-spacing: -0.03em; }
.post-summary { margin-top: 10px; color: var(--muted); line-height: 1.6; max-width: 46em; }
.post-more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  font-size: 14px; font-weight: 500; color: var(--cyan-text);
}
.post-more::after { content: ''; width: 14px; height: 1.5px; background: currentColor; transition: width .3s var(--ease); }
.post-card:hover .post-more::after { width: 22px; }

/* A post */

.post { max-width: 760px; }
.back { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--dim); text-decoration: none; transition: color .2s; }
.back::before { content: ''; width: 14px; height: 1px; background: currentColor; }
.back:hover { color: var(--fg); }
.post-head { margin: 28px 0 clamp(28px, 4vw, 40px); }
.post-head h1 { margin-top: 12px; font-size: clamp(2.1rem, 1.3rem + 3vw, 3.4rem); }

.prose { font-size: 17.5px; line-height: 1.75; color: color-mix(in srgb, var(--fg) 88%, var(--muted)); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 2em; font-size: 1.65rem; color: var(--fg); }
.prose h3 { margin-top: 1.7em; font-size: 1.25rem; color: var(--fg); }
.prose h4 { margin: 1.5em 0 0; font-size: 1.05rem; color: var(--fg); }
.prose a { color: var(--cyan-text); text-decoration-color: color-mix(in srgb, var(--cyan) 45%, transparent); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--dim); }
.prose blockquote {
  margin-left: 0; padding: 4px 0 4px 20px;
  border-left: 2px solid var(--cyan); color: var(--muted);
}
.prose code { font-family: var(--mono); font-size: .88em; padding: 2px 6px; border-radius: 6px; background: var(--wash-2); border: 1px solid var(--hair); }
.prose pre {
  padding: 18px 20px; border-radius: 14px; overflow-x: auto;
  background: var(--sunk); border: 1px solid var(--hair);
  font-size: 14px; line-height: 1.6;
}
.prose pre code { padding: 0; border: 0; background: none; font-size: inherit; }
.prose img { max-width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--hair); }
.prose hr { border: 0; height: 1px; background: var(--hair-2); margin: 2.4em 0; }

.post-end {
  margin-top: clamp(48px, 7vw, 72px); padding-top: 32px;
  border-top: 1px solid var(--hair);
  color: var(--muted);
}
.post-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* Status */

.status-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .status-grid { grid-template-columns: 1fr; } }
.status-title { padding: 20px 24px 6px; font-size: 13px; font-family: var(--mono); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.services { list-style: none; margin: 0; padding: 6px 0 8px; }
.service {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 16px 24px;
}
.service + .service { border-top: 1px solid var(--panel-edge); }
.service-name { font-weight: 500; }
.service-detail { margin-top: 4px; font-size: 14px; color: var(--dim); line-height: 1.5; }
.svc-state { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; white-space: nowrap; font-size: 14px; font-weight: 500; }
.svc-state > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.svc-state > span:first-child::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.svc-state.is-up { color: var(--cyan-text); }
.svc-state.is-down { color: var(--candy-text); }
.svc-state.is-down > span:first-child::before { animation: pulse 2.4s ease-in-out infinite; }

.status-side { display: grid; gap: 20px; }
.tile {
  padding: 22px 24px; border-radius: 20px;
  border: 1px solid var(--hair);
  background: linear-gradient(180deg, var(--panel-a), var(--panel-b));
  box-shadow: var(--panel-shadow);
}
.tile-label { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tile-value { display: block; margin-top: 10px; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tile-pair { display: flex; gap: 32px; }
.tile-unit { display: block; margin-top: 2px; font-size: 13px; color: var(--dim); }
.tile-note { margin-top: 12px; font-size: 14px; line-height: 1.55; color: var(--dim); }
.status-foot { margin-top: 28px; font-size: 12.5px; color: var(--dim); }
