/* ollyconn — minimal but 2026-current
   sans body, mono code, dark code blocks even in light mode,
   one accent color, generous whitespace, hairline rules */

@import url('https://fonts.bunny.net/css?family=inter:400,500,600,700|jetbrains-mono:400,500,700|newsreader:400i,600,700&display=swap');

:root {
  --paper: #fbfbf9;
  --ink: #1c1c1f;
  --ink-soft: #6b6b73;
  --ink-faint: #a8a8b0;
  --rule: #e2e2dd;
  --accent: #5b6ee1;
  --selection: #d9e0ff;
  --code-bg: #11131a;
  --code-bg-inline: #f1efe8;
  --code-text: #d8dee9;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", "Charter", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14141a;
    --ink: #ececef;
    --ink-soft: #93939d;
    --ink-faint: #5a5a64;
    --rule: #2a2a32;
    --accent: #8a99f0;
    --selection: #2c3870;
    --code-bg-inline: #1f212a;
  }
}

* { box-sizing: border-box; }

html { font-size: 17px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
  font-feature-settings: "ss01", "cv11";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--selection); color: var(--ink); }

/* masthead */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--rule);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 1.4rem;
  height: 1.4rem;
  color: var(--ink);
}
.brand-name {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.masthead nav { display: flex; gap: 1.5rem; }
.masthead nav a {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s ease;
}
.masthead nav a:hover { color: var(--ink); }

/* main */
main { min-height: 60vh; }

/* headings */
h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 2.5em 0 0.7em;
  scroll-margin-top: 2rem;
}
h1 { font-size: 1.75rem; letter-spacing: -0.025em; }
h2 { font-size: 1.35rem; letter-spacing: -0.02em; }
h3 { font-size: 1.1rem; }
h4 { font-size: 1rem; color: var(--ink-soft); }
h2 + p, h3 + p { margin-top: 0; }

/* body text */
p, ul, ol, blockquote, pre, table, figure {
  margin: 0 0 1.25em;
}
p { font-size: 1rem; }

ul, ol { padding-left: 1.5em; }
li { margin: 0.25em 0; }
li > p { margin: 0.25em 0; }

blockquote {
  border-left: 2px solid var(--accent);
  padding: 0.1em 0 0.1em 1.15em;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
}
blockquote p { margin: 0.4em 0; }

hr {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin: 3em 0;
}

/* links */
a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
a:hover {
  border-bottom-color: var(--accent);
}

/* inline code */
code, kbd, samp {
  font-family: var(--mono);
  font-size: 0.86em;
  font-feature-settings: "calt" 0;
}
:not(pre) > code {
  background: var(--code-bg-inline);
  padding: 0.12em 0.4em;
  border-radius: 4px;
  color: var(--ink);
  font-size: 0.85em;
  white-space: nowrap;
}

/* code blocks — always dark, github-dark inspired */
pre {
  background: var(--code-bg);
  color: var(--code-text);
  padding: 1.1em 1.25em;
  overflow-x: auto;
  border-radius: 6px;
  font-size: 0.83rem;
  line-height: 1.55;
  margin: 1.5em 0;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  border: 1px solid rgba(255,255,255,0.04);
}
pre code {
  background: transparent;
  padding: 0;
  font-size: inherit;
  color: inherit;
  white-space: pre;
}

/* rouge syntax highlighting — github dark-ish */
.highlight .c, .highlight .c1, .highlight .cm, .highlight .cp, .highlight .cs { color: #6e7681; font-style: italic; }
.highlight .k, .highlight .kc, .highlight .kd, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kt { color: #ff7b72; }
.highlight .s, .highlight .s1, .highlight .s2, .highlight .sb, .highlight .sc, .highlight .sd, .highlight .se, .highlight .sh, .highlight .si, .highlight .sx, .highlight .sr, .highlight .ss { color: #a5d6ff; }
.highlight .nb, .highlight .nf, .highlight .fm { color: #d2a8ff; }
.highlight .nv, .highlight .vc, .highlight .vg, .highlight .vi { color: #79c0ff; }
.highlight .nt { color: #7ee787; }
.highlight .na { color: #79c0ff; }
.highlight .o, .highlight .ow { color: #ff7b72; }
.highlight .mi, .highlight .mf, .highlight .mh, .highlight .mo { color: #79c0ff; }
.highlight .err { color: #ffa198; background: transparent; }
.highlight .gi { color: #7ee787; background: rgba(46,160,67,0.15); }
.highlight .gd { color: #ffa198; background: rgba(248,81,73,0.15); }

/* tables */
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
  margin: 1.5em 0;
}
th, td {
  text-align: left;
  padding: 0.55em 0.75em;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
th {
  font-weight: 600;
  color: var(--ink);
  border-bottom: 2px solid var(--rule);
  background: var(--code-bg-inline);
}
td > code { font-size: 0.8em; }

/* images */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2em auto;
  border-radius: 4px;
}

/* about-page hero + section markers (saved from a 2002 student site) */
.about-hero {
  margin: 0 0 2.5rem;
}
.about-hero img {
  width: 100%;
  max-width: 100%;
  margin: 0;
  border-radius: 4px;
}
.about-hero figcaption {
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-style: italic;
  margin: 0.6rem 0 0;
  text-align: right;
}
.section-marker {
  width: 44px;
  height: 44px;
  display: inline-block;
  vertical-align: middle;
  margin: 0 0.7em 0 0;
  border-radius: 4px;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
}
h2 .section-marker, h3 .section-marker {
  margin-top: 0;
}
.moma-video {
  margin: 1.5rem 0 2rem;
}
.moma-video video {
  width: 100%;
  height: auto;
  border-radius: 4px;
  background: #111;
  display: block;
}
.moma-video figcaption {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.5;
}
.etalia-strip {
  margin: 2.5rem 0;
  text-align: center;
}
.etalia-strip img {
  display: inline-block;
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  margin: 0 0.3rem 0.6rem;
  vertical-align: middle;
  filter: grayscale(20%);
  transition: filter 0.2s;
}
.etalia-strip img:hover {
  filter: grayscale(0%);
}
.etalia-strip figcaption {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-style: italic;
  margin-top: 0.4rem;
}

/* post */
.post-header {
  margin-bottom: 2.5rem;
}
.post-header h1 {
  font-size: 2.1rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.4em;
  line-height: 1.15;
}
.post-meta {
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin: 0 0 0;
  font-family: var(--sans);
}
.post-meta time { font-variant-numeric: tabular-nums; }

/* home (post list) */
.intro {
  margin-bottom: 3em;
  color: var(--ink-soft);
  font-size: 1rem;
}
.now-building {
  border-left: 2px solid var(--accent);
  padding: 0.3em 0 0.3em 1em;
  margin: 1.5em 0 0;
  font-size: 0.95rem;
  color: var(--ink);
}
.now-building-label {
  font-weight: 600;
  color: var(--accent);
  margin-right: 0.3em;
}
.post-list { display: flex; flex-direction: column; gap: 2em; }
.post-entry {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2em;
}
.post-entry:last-child { border-bottom: none; padding-bottom: 0; }
.post-entry h2 {
  margin: 0 0 0.35em;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.post-entry h2 a {
  color: var(--ink);
  border-bottom: none;
}
.post-entry h2 a:hover {
  color: var(--accent);
  border-bottom: none;
}
.post-entry .post-meta { margin: 0 0 0.6em; }
.post-summary { color: var(--ink-soft); margin: 0; font-size: 0.95rem; line-height: 1.6; }

/* footer */
footer {
  margin-top: 6em;
  padding-top: 1.5em;
  border-top: 1px solid var(--rule);
  color: var(--ink-faint);
  font-size: 0.825rem;
  text-align: center;
}
footer a { color: var(--ink-soft); border-bottom: none; }
footer a:hover { color: var(--ink); }
