/* ---------------------------------------------------------------------------
   min.css — minimal design for javisantana.com
   Reference: williamjansson.com (mono, light) for navigation/home,
   and a clean sans-serif reading column for long-form posts.
   --------------------------------------------------------------------------- */

:root {
  --bg: #f2f2f2;
  --fg: #111;
  --muted: #8a8a8a;
  --rule: #dcdcdc;
  --measure: 66ch;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--fg);
  padding: 13vh 2em 9vh;
  overflow-x: hidden;
}

.home, .post {
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
}

::selection { background: #dcdcdc; color: #000; }

img { max-width: 100%; height: auto; }

@media (max-width: 640px) {
  body { padding: 2.5em 1.25em 4em; }
}

/* ===========================================================================
   HOME — monospace, William Jansson style
   =========================================================================== */
.home {
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.65;
}

.home h1 {
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 0.55em;
}

.home .tagline {
  color: var(--muted);
  margin-bottom: 1.65em;
}

.home > p { margin-bottom: 1.65em; }

.home a { color: inherit; text-decoration: none; }
.home a i { font-style: normal; border-bottom: 1px dotted; }
.home a:hover i { border-bottom-style: solid; }

.post-list { margin-bottom: 1.65em; }
.post-list .row {
  display: flex;
  gap: 0.9em;
  white-space: nowrap;
}
.post-list .n { color: var(--muted); flex: none; }
.post-list .t {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.post-list .y { color: var(--muted); flex: none; }

/* inspiration quotes, mixed into the list */
.post-list .row.q .t { color: #6b6b6b; }
.post-list .row.q .t i { font-style: italic; }
.post-list .row.q .qm { font-style: normal; border: 0; padding-right: 0.15em; }

.home footer { margin-top: 2.5em; color: var(--muted); }
.home footer a { color: var(--muted); }
.home footer a:hover i { border-bottom-style: solid; }

/* ===========================================================================
   POST — sans-serif reading column
   =========================================================================== */
.post {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: -0.006em;
  color: var(--fg);
}

.post-header { margin-bottom: 2.6em; }

.post-title {
  font-size: 2em;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 0.5em;
}

.post-lede {
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 1.4em;
}

.post-meta {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}
.post-meta a { color: inherit; text-decoration: none; border-bottom: 1px dotted; }

.post p { margin-bottom: 1.5em; }

.post h2 {
  font-size: 1.3em;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 2.2em 0 0.5em;
}
.post h3 {
  font-size: 1.1em;
  font-weight: 600;
  margin: 1.8em 0 0.4em;
}
.post h4, .post h5, .post h6 {
  font-size: 1em;
  font-weight: 600;
  margin: 1.6em 0 0.3em;
}

.post a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #bcbcbc;
  text-underline-offset: 0.15em;
}
.post a:hover { text-decoration-color: currentColor; }

.post strong { font-weight: 600; }
.post em { font-style: italic; }

.post ul, .post ol { margin: 0 0 1.5em 1.3em; }
.post li { margin-bottom: 0.4em; }
.post li > ul, .post li > ol { margin-bottom: 0.4em; margin-top: 0.4em; }

.post blockquote {
  margin: 0 0 1.5em;
  padding-left: 1em;
  border-left: 2px solid #cfcfcf;
  color: #555;
}
.post blockquote p:last-child { margin-bottom: 0; }

.post img { display: block; margin: 2.2em 0; border-radius: 3px; }

.post hr { border: 0; border-top: 1px solid var(--rule); margin: 2.8em 0; }

.post table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9em;
  margin: 0 0 1.5em;
}
.post th, .post td { border: 1px solid var(--rule); padding: 0.4em 0.6em; text-align: left; }
.post th { font-weight: 600; }

/* code */
.post code {
  font-family: var(--mono);
  font-size: 0.86em;
}
.post :not(pre) > code {
  background: #e6e6e6;
  padding: 0.1em 0.35em;
  border-radius: 3px;
}
.post pre {
  background: #fbfbfb;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1em 1.1em;
  margin: 0 0 1.5em;
  overflow-x: auto;
  font-size: 0.82em;
  line-height: 1.5;
}
.post pre code { background: none; padding: 0; font-size: inherit; }
.highlight { margin: 0 0 1.5em; }
.highlight pre { margin: 0; }

/* post footer — back to mono, ties into the home aesthetic */
.post-footer {
  margin-top: 4.5em;
  padding-top: 1.5em;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}
.post-footer a { color: var(--muted); text-decoration: none; border-bottom: 1px dotted; }
.post-footer a:hover { color: var(--fg); }
.post-footer .sep { padding: 0 0.4em; }

/* ---------------------------------------------------------------------------
   Syntax highlighting — quiet, near-monochrome
   --------------------------------------------------------------------------- */
.highlight .c, .highlight .cm, .highlight .c1, .highlight .cs { color: #999; font-style: italic; }
.highlight .k, .highlight .kd, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kc { color: #111; font-weight: 600; }
.highlight .o, .highlight .ow { color: #333; }
.highlight .s, .highlight .s1, .highlight .s2, .highlight .se, .highlight .sb, .highlight .sd { color: #4d7c4d; }
.highlight .n, .highlight .na, .highlight .nb, .highlight .nc, .highlight .nf, .highlight .nn, .highlight .nt, .highlight .nv { color: #111; }
.highlight .m, .highlight .mi, .highlight .mf, .highlight .mh, .highlight .il { color: #7c5cb0; }
.highlight .nt { color: #2b6cb0; }
.highlight .err { color: #a61717; background: #e3d2d2; }
.highlight .gd { color: #000; background: #ffdddd; }
.highlight .gi { color: #000; background: #ddffdd; }
