:root {
  --paper: #edeff1;
  --panel: #f7f8f9;
  --ink: #1a2430;
  --muted: #5c6874;
  --rule: #ccd4d9;
  --accent: #35625b;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* header */

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--ink);
}

.masthead h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.masthead h1 a {
  color: inherit;
  text-decoration: none;
}

.nav {
  margin-left: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav a + a {
  margin-left: 1rem;
}

.tagline {
  flex-basis: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* log entries */

.log {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.log > li {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--rule);
}

.stamp {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.stamp .device {
  color: var(--accent);
}

.log h2 {
  margin: 0.35rem 0 0.4rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.35;
}

.log h2 a {
  color: inherit;
  text-decoration: none;
}

.log h2 a:hover {
  text-decoration: underline;
}

.log p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* article */

.entry {
  margin-top: 2.5rem;
}

.entry h1 {
  margin: 0.5rem 0 1.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.25;
}

.entry h2 {
  margin: 2.2rem 0 0.6rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 600;
}

.entry p {
  margin: 0 0 1rem;
}

.entry ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.entry li {
  margin-bottom: 0.35rem;
}

pre {
  margin: 0 0 1.25rem;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  background: var(--panel);
  border-left: 3px solid var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.55;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
}

p code,
li code {
  padding: 0.1em 0.3em;
  background: var(--panel);
  border-radius: 2px;
}

blockquote {
  margin: 0 0 1.25rem;
  padding-left: 1rem;
  border-left: 2px solid var(--rule);
  color: var(--muted);
}

/* misc */

.notfound {
  margin-top: 4rem;
}

.notfound .code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
}

.notfound h1 {
  margin: 0.75rem 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 600;
}

.foot {
  margin-top: 3.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

@media (max-width: 30rem) {
  body {
    font-size: 16px;
  }
  .nav {
    margin-left: 0;
    flex-basis: 100%;
  }
  .nav a:first-child {
    margin-left: 0;
  }
}
