:root {
  --font: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ink: #26332a;
  --cream: #f5f0e4;
  --sage: #cddac2;
  --clay: #e0a98d;
  --deep: #26332a;
  --sand: #ebdcae;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 48px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
}
h1, h2, h3, p, ul, figure { margin: 0 0 1em; font-size: 12px; }
h1, h2, h3 { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { background: var(--ink); color: var(--cream); text-decoration: none; }

.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center;
  padding: 12px 24px;
  background: var(--deep); color: var(--cream);
}
.site-header a { text-decoration: none; }
.site-header a:hover { background: var(--cream); color: var(--deep); }
.brand { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }

.block { padding: 56px 24px; }
.inner { max-width: 880px; margin: 0 auto; }
.block-sage { background: var(--sage); }
.block-clay { background: var(--clay); }
.block-sand { background: var(--sand); }
.block-cream { background: var(--cream); }
.cv-list { padding-left: 20px; margin-bottom: 0; }
.cv-list li { margin-bottom: .5em; }
.block-deep { background: var(--deep); color: var(--cream); }

.intro { display: grid; gap: 32px; }
@media (min-width: 760px) { .intro { grid-template-columns: 1fr 1.4fr; align-items: start; } }

.photo-frame {
  aspect-ratio: 4 / 5; width: 100%;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 16px;
  border: 1px dashed var(--ink); background: var(--clay);
}
.intro img { width: 100%; height: auto; display: block; }

.cards { display: grid; gap: 0; }
.card { padding: 24px; background: var(--cream); }
.card p:last-child { margin-bottom: 0; }

.button, button {
  font: inherit; cursor: pointer;
  display: inline-block; padding: 8px 20px;
  background: var(--ink); color: var(--cream);
  border: 1px solid var(--ink); border-radius: 0; text-decoration: none;
}
.button:hover, button:hover { background: var(--cream); color: var(--ink); }

form { display: grid; gap: 16px; max-width: 520px; }
label { display: grid; gap: 4px; font-weight: 700; }
input, select, textarea {
  font: inherit; width: 100%; padding: 8px;
  background: var(--cream); color: var(--ink);
  border: 1px solid var(--ink); border-radius: 0;
}
input:focus, select:focus, textarea:focus, a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.block-deep input:focus, .block-deep a:focus-visible { outline-color: var(--cream); }
textarea { min-height: 140px; resize: vertical; }

.site-footer { padding: 24px; background: var(--deep); color: var(--cream); }
.site-footer .inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-footer p { margin: 0; }

/* Blog */
.post-list { display: grid; gap: 0; padding: 0; list-style: none; margin: 0; }
.post-card { background: var(--cream); border-bottom: 1px solid var(--ink); }
.post-card a { display: block; padding: 20px 24px; text-decoration: none; }
.post-card a:hover { background: var(--ink); color: var(--cream); }
.post-card-image { width: 100%; max-height: 240px; object-fit: cover; display: block; margin-bottom: 12px; }
.post-card-title { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; display: block; }
.post-card-date { display: block; opacity: .75; }
.post-card-summary { display: block; margin-top: 6px; }
.post-list-empty { padding: 20px 24px; background: var(--cream); }

.post-body p, .post-body ul, .post-body h2, .post-body h3 { max-width: 640px; }
.post-body ul { padding-left: 20px; }
.post-image, .post-figure-image, .post-inline-image { max-width: 100%; height: auto; display: block; margin: 0 0 16px; }
.post-figure { margin: 0 0 1.5em; }
.post-figure figcaption { opacity: .75; }
