@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@300;400;500&display=swap');

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

:root {
  --bg: #0f0f0f;
  --text: #ededed;
  --muted: #888;
  --border: #2a2a2a;
  --subtle: #555;
}

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist Mono', 'Courier New', monospace;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.page { max-width: 560px; margin: 0 auto; padding: 0 20px; }

/* NAV */
nav {
  display: flex;
  gap: 20px;
  padding: 40px 0 12px;
  border-bottom: 1px solid var(--border);
}
nav a { font-size: 0.9rem; color: var(--muted); text-decoration: none; }
nav a.active,
nav a:hover { color: var(--text); text-decoration: none; }

/* HERO */
.hero { padding: 48px 0 40px; }
.hero h1 {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 14px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.hero p { font-size: 0.9rem; color: var(--muted); line-height: 1.8; }
.hero p a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--subtle); }
.hero p a:hover { color: var(--text); }

/* UTC tooltip */
.utc {
  position: relative;
  cursor: default;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  text-decoration-color: var(--subtle);
}
.utc .tip {
  display: none;
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.75rem;
  padding: 3px 9px;
  white-space: nowrap;
  pointer-events: none;
}
.utc:hover .tip { display: block; }

/* SECTIONS */
section { padding: 32px 0; }
section h2 { font-size: 0.82rem; font-weight: 400; color: var(--muted); margin-bottom: 20px; letter-spacing: 0.02em; }

/* POST LIST */
.posts { list-style: none; }
.posts li a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 9px 0;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
}
.posts li a:hover .ptitle { text-decoration: underline; text-underline-offset: 3px; }
.ptitle { flex: 1; color: var(--text); }
.pdesc { color: var(--subtle); font-size: 0.8rem; flex-shrink: 0; white-space: nowrap; }

/* NEWSLETTER */
.nl-text { font-size: 0.9rem; color: var(--muted); margin-bottom: 16px; line-height: 1.75; }
.nl-form { display: flex; }
.nl-form input {
  flex: 1;
  background: transparent;
  border: 1px solid var(--border);
  border-right: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  padding: 8px 12px;
  outline: none;
}
.nl-form input::placeholder { color: var(--subtle); }
.nl-form input:focus { border-color: #444; }
.nl-form button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.15s;
}
.nl-form button:hover { background: #1a1a1a; }

/* CONNECT */
.connect-text { font-size: 0.9rem; color: var(--muted); margin-bottom: 20px; line-height: 1.8; }
.connect-text a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--subtle); }
.connect-text a:hover { color: var(--text); }
.socials { list-style: none; }
.socials li a {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 7px 0;
  text-decoration: none;
  transition: color 0.15s;
}
.socials li a:hover { color: var(--text); }

/* STATUS DOT */
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  margin-right: 6px;
  vertical-align: middle;
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* MINECRAFT WIDGET */
.mc-widget {
  display: flex;
  align-items: center;
  gap: 20px;
}
.mc-skin-wrap img {
  width: 52px;
  height: 52px;
  image-rendering: pixelated;
}
.mc-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mc-name {
  font-size: 0.9rem;
  color: var(--text);
}
.mc-uuid {
  font-size: 0.72rem;
  color: var(--subtle);
  letter-spacing: 0.02em;
}
.mc-link {
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  margin-top: 2px;
  transition: color 0.15s;
}
.mc-link:hover { color: var(--text); text-decoration: none; }
footer { padding: 32px 0 48px; }
footer p { font-size: 0.78rem; color: var(--subtle); }

/* ── BLOG LIST PAGE ── */
.blog-hero { padding: 48px 0 24px; }
.blog-hero h1 { font-size: 1.1rem; font-weight: 400; color: var(--text); }
.year-label { font-size: 0.82rem; font-weight: 400; color: var(--muted); padding: 28px 0 10px; }
.blog-entries { list-style: none; }
.blog-entries li a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
}
.blog-entries li a:hover .etitle { text-decoration: underline; text-underline-offset: 3px; }
.entry-left { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.etitle { color: var(--text); }
.edesc { color: var(--subtle); font-size: 0.8rem; }
.edate { color: var(--subtle); font-size: 0.8rem; flex-shrink: 0; }

/* ── SINGLE BLOG POST ── */
.post-hero { padding: 48px 0 32px; }
.post-date { font-size: 0.8rem; color: var(--subtle); display: block; margin-bottom: 16px; }
.post-hero h1 { font-size: 1.1rem; font-weight: 400; color: var(--text); margin-bottom: 16px; }
.post-hero .post-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.8; }

.post-body { padding-bottom: 48px; }
.post-body p { font-size: 0.9rem; color: var(--muted); line-height: 1.8; margin-bottom: 24px; }

.post-section { margin-bottom: 40px; }
.post-section h2 {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  margin-top: 40px;
}
.post-section p { font-size: 0.88rem; color: var(--muted); line-height: 1.8; margin-bottom: 12px; }

/* SETUP TABLE */
.setup-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 0;
  font-size: 0.88rem;
}
.setup-table td {
  padding: 8px 0;
  vertical-align: top;
  font-size: 0.88rem;
  color: var(--text);
}
.setup-table td:first-child {
  color: var(--muted);
  white-space: nowrap;
  padding-right: 32px;
  width: 120px;
}
.setup-table tr + tr td { border-top: 1px solid var(--border); }

.post-signoff {
  font-size: 0.82rem;
  color: var(--subtle);
  padding-top: 32px;
  margin-top: 8px;
}

/* CODE BLOCK */
.code-block {
  border: 1px solid var(--border);
  margin: 12px 0 24px;
  font-size: 0.82rem;
}
.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 14px;
  border-bottom: 1px solid var(--border);
  background: #141414;
}
.code-header span { color: var(--subtle); font-size: 0.75rem; }
.copy-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.72rem;
  padding: 3px 10px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.copy-btn:hover { color: var(--text); border-color: #444; }
.code-block pre {
  padding: 14px;
  color: var(--text);
  line-height: 1.7;
  overflow-x: auto;
  margin: 0;
  white-space: pre;
}
.post-body code {
  font-family: 'Geist Mono', 'Courier New', monospace;
  font-size: 0.82rem;
  color: var(--text);
  background: #1a1a1a;
  padding: 1px 5px;
  border: 1px solid var(--border);
}

@media (max-width: 480px) {
  .pdesc, .edesc { display: none; }
  .nl-form { flex-direction: column; }
  .nl-form input { border-right: 1px solid var(--border); border-bottom: none; }
  .setup-table td:first-child { padding-right: 16px; width: 100px; }
}
