/* silhouettte — uncommon web restyle v2 (Oct 2026)
   Dark terminal / newsprint. Mono, flat, dithered. No rounded corners, no shadows, no blur. */

:root {
  --bg: #16130f;
  --bg-2: #1f1b15;
  --fg: #e9e1d2;
  --muted: #8f8572;
  --line: #38322a;
  --accent: #e05260;
  --accent-2: #8fc9a8;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --dither: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='2' height='2' fill='%23ffffff' fill-opacity='0.035'/%3E%3C/svg%3E");
  --checker: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Crect width='4' height='4' fill='%23e05260' fill-opacity='0.5'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { min-height: 100vh; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--fg);
  background-color: var(--bg);
  background-image: var(--dither);
  background-attachment: fixed;
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--bg); }

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 6vh 1.25rem 9vh;
}

/* Header */
header { margin-bottom: 1.9rem; }
.header-row {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.2rem;
}
.header-mark { width: 44px; height: 44px; flex: none; }
.header-avatar {
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}
.header-row h1 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}
h1 { font-weight: 700; letter-spacing: 0.02em; }
.sub {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}
.meta {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.6rem;
}

/* Dotted rule with a dithered tick */
.divider { display: none; }

/* Feed */
.feed { list-style: none; padding: 0; margin: 0; }
.feed li {
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0.4rem;
}
.feed li:first-child { border-top: 1px solid var(--line); }
.feed a {
  display: block;
  color: var(--fg);
  text-decoration: none;
  transition: color 0.12s;
}
.feed a::before { content: "> "; color: var(--muted); }
.feed a:hover { color: var(--accent); }
.feed a:hover::before { color: var(--accent); }

.date-group {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 2.4rem 0 0.5rem;
}
.date-group::before { content: "# "; color: var(--accent); }
.date-group:first-child { margin-top: 0; }

/* Back link */
.back {
  display: inline-block;
  margin-bottom: 1.1rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
}
.back:hover { color: var(--accent); }

.site-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.72rem;
  border-bottom: 1px dotted var(--muted);
  padding-bottom: 1px;
  white-space: nowrap;
  margin-left: 1rem;
}
.site-link:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* Post body */
.post { word-wrap: break-word; }
.post h1 { font-size: 1.45rem; margin: 0 0 1rem; line-height: 1.35; }
.post p {
  line-height: 1.85;
  margin: 0 0 1.3rem;
  max-width: 40rem;
}
.post p:last-child { margin-bottom: 0; }
.post a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}
.post a:hover { background: var(--accent); color: var(--bg); }
.post code {
  font-family: var(--mono);
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 0.1em 0.35em;
  font-size: 0.92em;
}
.post pre {
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--fg);
  padding: 1rem 1.1rem;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.6;
}
.post pre code { background: none; border: 0; padding: 0; color: inherit; }
.post blockquote {
  margin: 0 0 1.3rem;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}
.post img { max-width: 100%; border: 1px solid var(--line); }

/* Socials */
.socials { display: flex; gap: 1.3rem; align-items: center; margin-left: auto; }
.social-icon { color: var(--muted); display: flex; align-items: center; }
.social-icon:hover { color: var(--accent); }

/* Search */
.search-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: 0.6rem 1rem;
  margin-bottom: 1.6rem;
}
.search-prompt { color: var(--accent); }
.search-row input {
  flex: 1;
  background: none;
  border: 0;
  outline: none;
  color: var(--fg);
  font-family: var(--mono);
  font-size: 0.95rem;
  min-width: 0;
}
.search-row input::placeholder { color: var(--muted); }
.search-mode {
  flex: none;
  align-self: stretch;
  width: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  padding: 0 0.25rem;
  cursor: pointer;
}
.search-mode:hover { color: var(--fg); border-color: var(--muted); }
.search-mode.on, .search-mode[aria-pressed="true"] { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.search-results { list-style: none; margin: 0 0 1.8rem; padding: 0; }
.search-results li { border-bottom: 1px solid var(--line); padding: 0.45rem 0.2rem; }
.search-results a { color: var(--fg); text-decoration: none; }
.search-results a:hover { color: var(--accent); }
.search-results .sco { color: var(--muted); font-size: 0.75rem; }
.search-results .sep { color: var(--muted); }

/* Footer */
footer {
  margin-top: 3.6rem;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}
/* ===== Dither & noise effects ===== */

/* film grain — animated fractal noise over everything */
body::after {
  content: "";
  position: fixed;
  inset: -100%;
  width: 300%;
  height: 300%;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.3s steps(4) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-1.2%, 1%); }
  50%  { transform: translate(1%, -1.2%); }
  75%  { transform: translate(-1%, -0.8%); }
  100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
}

/* timeline view switcher */
.view-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.75rem;
  font-size: 0.72rem;
}
.view-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-right: 0.4rem;
  line-height: 1;
}
.view-btn {
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: lowercase;
  padding: 0.24rem 0.7rem;
  line-height: 1;
  cursor: pointer;
}
.view-btn:hover { color: var(--fg); border-color: var(--muted); }
.view-btn.on, .view-btn[aria-pressed="true"] { color: var(--bg); background: var(--accent); border-color: var(--accent); }

/* dithered search bar — faint checker tint over the panel */
.search-row {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='2' height='2' fill='%23e9e1d2' fill-opacity='0.05'/%3E%3Crect x='2' y='2' width='2' height='2' fill='%23e9e1d2' fill-opacity='0.05'/%3E%3C/svg%3E");
  background-size: 4px 4px;
}

/* dither sweep on post-link hover */
.feed a:hover {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='2' height='2' fill='%23e9e1d2' fill-opacity='0.12'/%3E%3Crect x='2' y='2' width='2' height='2' fill='%23e9e1d2' fill-opacity='0.12'/%3E%3C/svg%3E");
  background-size: 4px 4px;
}
