:root {
  --ink: #1a2332;
  --muted: #5c6570;
  --paper: #f6f4ef;
  --card: #fffcf7;
  --line: #e3ddd2;
  --copper: #9a4524;
  --max: 42rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
}

a { color: var(--copper); text-underline-offset: 0.16em; }

a:hover { color: var(--ink); }

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

.wrap {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
  font-family: "Fraunces", Palatino, Georgia, serif;
  font-size: 1.45rem;
  font-weight: 560;
  letter-spacing: -0.02em;
}

.brand img { width: 2.25rem; height: 2.25rem; display: block; }

nav { display: flex; gap: 1.1rem; }

nav a { color: var(--ink); text-decoration: none; font-size: 1rem; }

nav a:hover { text-decoration: underline; }

main { padding: 2.5rem 0 4rem; }

h1, h2, h3 {
  font-family: "Fraunces", Palatino, Georgia, serif;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h1 { font-size: 2.6rem; margin: 0 0 0.8rem; }

h2 { font-size: 1.5rem; margin: 2rem 0 0.6rem; }

.lede { font-size: 1.25rem; color: var(--muted); margin-top: 0; }

.meta { color: var(--muted); font-size: 0.95rem; }

.post-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }

.post-list li { border-top: 1px solid var(--line); padding: 1rem 0; }

.post-list a { color: var(--ink); text-decoration: none; font-family: "Fraunces", Palatino, Georgia, serif; font-size: 1.35rem; }

.post-list a:hover { text-decoration: underline; }

article p { margin: 0 0 1rem; }

article code, p code, li code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.92em;
  background: #efeae2;
  padding: 0.05em 0.3em;
}

pre {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  font-size: 0.92rem;
  line-height: 1.45;
}

pre code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  background: none;
  padding: 0;
}

form {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

label { display: grid; gap: 0.3rem; font-size: 0.98rem; }

input, textarea {
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
}

textarea { min-height: 9rem; resize: vertical; }

button {
  justify-self: start;
  font: inherit;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: 6px;
  padding: 0.65rem 1rem;
  cursor: pointer;
}

button:hover { background: #2a3548; }

.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.8rem; padding: 0; list-style: none; }

.swatches li { border: 1px solid var(--line); background: var(--card); }

.swatch { height: 4.5rem; }

.swatches p { margin: 0.6rem; font-size: 0.95rem; }

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 1.5rem 0 2.5rem;
  font-size: 0.95rem;
}

footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

footer a { color: var(--muted); }

@media (max-width: 720px) {
  header.site .wrap {
    flex-wrap: wrap;
    align-items: flex-start;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }

  nav { flex-wrap: wrap; gap: 0.7rem 1rem; }

  h1 { font-size: 2.15rem; }
}
