/* Deliberately plain. A full visual design is still a later pass — spec section 13.
   This pass does three things: a larger wordmark, a light cool-grey ground, and a
   single hairline box around each section. */

:root {
  --bg:      #e9edf2;  /* light cool grey */
  --surface: #ffffff;
  --line:    #c7d0da;
  --text:    #1a1d21;
  --muted:   #5b6673;
  --link:    #0a5ba3;
  --code-bg: #f4f6f9;
}

* { box-sizing: border-box; }

body {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a { color: var(--link); }

/* The box: one hairline around a section. */
.box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.box > :first-child { margin-top: 0; }
.box > :last-child  { margin-bottom: 0; }

/* Header */
header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 1rem;
}
.site-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
}
.site-title:hover { text-decoration: underline; }
header nav a + a { margin-left: 1rem; }

/* Headings */
h1 { font-size: 1.65rem; line-height: 1.25; letter-spacing: -0.015em; margin: 0 0 1rem; }
h2 { font-size: 1.2rem;  line-height: 1.3;  margin: 1.75rem 0 .75rem; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 .5rem; }

.tagline { font-size: 1.15rem; margin: 0; }

/* Section lists: hairlines between entries rather than a box per entry. */
ul.posts, ul.projects, ul.entries { list-style: none; margin: 0; padding: 0; }
ul.posts > li, ul.projects > li, ul.entries > li {
  padding: .9rem 0;
  border-top: 1px solid var(--line);
}
ul.posts > li:first-child,
ul.projects > li:first-child,
ul.entries > li:first-child { border-top: 0; padding-top: 0; }
ul.posts > li:last-child,
ul.projects > li:last-child,
ul.entries > li:last-child { padding-bottom: 0; }
ul.posts > li > p, ul.entries > li > p { margin: .3rem 0 0; color: var(--muted); }

time { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: .5rem; }

/* Article body */
img { max-width: 100%; height: auto; }
figure { margin: 1.75rem 0; }
figcaption { margin-top: .5rem; color: var(--muted); font-size: .9rem; }

pre {
  overflow-x: auto;
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .75rem 1rem;
}
code { font-size: .95em; }
blockquote {
  margin: 1.25rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--line);
  color: var(--muted);
}

table { border-collapse: collapse; width: 100%; }
td, th { border: 1px solid var(--line); padding: .35rem .6rem; text-align: left; }
th { background: var(--code-bg); }
.wide { overflow-x: auto; }

/* Narrow screens: the box's own padding plus the body gutter eats too much
   measure at phone width, so tighten the box and keep the 1rem side gutter. */
@media (max-width: 30rem) {
  body { padding: 1rem .75rem 3rem; }
  .box { padding: 1rem 1rem; }
  .site-title { font-size: 1.5rem; }
  header { gap: .25rem .75rem; }
}
