:root {
  color-scheme: light;
  --page-bg: #f4f0e8;
  --text: #26231f;
  --muted: #6f665d;
  --rule: #d7cec0;
  --accent: #8b2f1f;
  --accent-hover: #5f1f15;
  --panel: #ebe4d8;
  --code-bg: #e4dccf;
  --max-width: 680px;
  --sidebar-width: 176px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page-bg);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text);
}

body {
  margin: 0;
  min-height: 100%;
  padding: 44px 32px 72px;
  background:
    linear-gradient(90deg, rgba(38, 35, 31, 0.08) 0 1px, transparent 1px)
      calc(50% - 430px) 0 / 1px 100% no-repeat,
    var(--page-bg);
}

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

a:hover,
a:focus-visible {
  color: var(--accent-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

.site {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, var(--max-width));
  gap: 48px;
  width: min(100%, calc(var(--sidebar-width) + var(--max-width) + 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 32px;
  align-self: start;
}

.site-title {
  margin: 0 0 18px;
  font-size: 1.25rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0;
}

.site-title a {
  color: var(--text);
  text-decoration: none;
}

.site-tagline {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  font-style: italic;
}

.site-nav {
  display: grid;
  gap: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.66rem;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-nav a {
  display: block;
  width: fit-content;
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.content {
  min-width: 0;
}

.post,
.archive-section {
  padding-bottom: 32px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--rule);
}

.post:last-child,
.archive-section:last-child {
  border-bottom: 0;
}

.post-title,
.page-title {
  margin: 0 0 6px;
  font-size: clamp(1.65rem, 4vw, 2.45rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0;
}

.post-title a {
  color: var(--text);
  text-decoration: none;
}

.post-title a:hover {
  color: var(--accent);
}

.post-meta,
.dateline {
  margin: 0 0 20px;
  color: var(--muted);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.66rem;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.post p,
.entry p {
  margin: 0 0 1.15em;
}

.post h2,
.entry h2 {
  margin: 1.65em 0 0.45em;
  font-size: 1.35rem;
  line-height: 1.2;
}

.post h3,
.entry h3 {
  margin: 1.45em 0 0.35em;
  font-size: 1.05rem;
  line-height: 1.25;
}

.post ul,
.post ol,
.entry ul,
.entry ol {
  margin: 0 0 1.25em 1.35em;
  padding: 0;
}

.post li,
.entry li {
  margin-bottom: 0.35em;
}

blockquote {
  margin: 1.35em 0;
  padding: 0.05em 0 0.05em 1.1em;
  border-left: 3px solid var(--rule);
  color: #423c35;
  font-style: italic;
}

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

code,
kbd,
samp {
  border-radius: 3px;
  background: var(--code-bg);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.86em;
}

code {
  padding: 0.08em 0.25em;
}

pre {
  overflow-x: auto;
  margin: 1.35em 0;
  padding: 16px 18px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--code-bg);
  font-size: 0.78rem;
  line-height: 1.5;
}

pre code {
  padding: 0;
  background: transparent;
}

.linked-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.linked-list li {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}

.linked-list a {
  font-size: 1.12rem;
  font-weight: 700;
}

.linked-list p {
  margin: 0.35em 0 0;
  color: #403a33;
}

.note,
.callout {
  margin: 1.5em 0;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--panel);
  color: #403a33;
}

.archive-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-list li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(215, 206, 192, 0.72);
}

.archive-list time {
  color: var(--muted);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-footer {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.68rem;
  line-height: 1.5;
}

@media (max-width: 820px) {
  body {
    padding: 28px 16px 56px;
    background: var(--page-bg);
  }

  .site {
    display: block;
    width: min(100%, var(--max-width));
  }

  .site-header {
    position: static;
    margin-bottom: 34px;
  }

  .site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
  }
}

@media (max-width: 520px) {
  html {
    font-size: 17px;
  }

  .site {
    width: min(100%, var(--max-width));
  }

  .archive-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
