:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #302c28;
  background: #fffdf8;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px;
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: #a34e37;
}

a:hover {
  color: #73341f;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 8px 12px;
  background: #fffdf8;
}

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e9e2d8;
}

.wordmark {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

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

.social-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-left: 16px;
  border-left: 1px solid #e9e2d8;
}

.site-nav a,
.site-footer a,
.social-nav a {
  font-size: 14px;
}

.site-nav a {
  color: #686057;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color 160ms ease, color 160ms ease;
}

.site-nav a:hover {
  color: #a34e37;
  text-decoration: underline;
}

.social-nav a {
  color: #8c5d49;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color 160ms ease, color 160ms ease;
}

.social-nav a:hover {
  color: #73341f;
  text-decoration: underline;
}

main {
  display: block;
}

.hero {
  padding: 48px 0 32px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 6vw, 42px);
  line-height: 1.2;
  letter-spacing: -1.2px;
}

.hero p {
  max-width: 590px;
  margin: 0 0 14px;
  color: #555;
}

.hero-note {
  margin-top: 17px !important;
  color: #8a7566 !important;
  font-family: "Segoe Print", "Bradley Hand", cursive;
  font-size: 14px;
}

.section {
  padding: 22px 0;
  border-top: 1px solid #e9e2d8;
}

.section h2 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.35px;
}

.section h2::before {
  margin-right: 9px;
  color: #c27a55;
  content: "\2723";
  font-size: 15px;
  vertical-align: 2px;
}

.section > p {
  margin: 0 0 12px;
  color: #555;
}

.project-list,
.post-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.project-list li,
.post-list li {
  position: relative;
  margin: 6px 0;
  padding-left: 20px;
}

.project-list li::before,
.post-list li::before {
  position: absolute;
  left: 0;
  color: #c27a55;
  content: "\21b3";
}

.project-detail,
.post-detail {
  color: #666;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
  padding-top: 18px;
  border-top: 1px solid #e9e2d8;
  color: #666;
}

.site-footer p {
  margin: 0;
  font-size: 14px;
}

.article-header {
  padding: 36px 0 14px;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 14px;
}

.article-category,
.article-byline {
  color: #666;
  font-size: 14px;
}

.article-category {
  margin-bottom: 8px;
}

.article-header h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 6vw, 42px);
  line-height: 1.2;
}

.article-deck {
  margin: 0 0 8px;
  color: #555;
}

.article-byline {
  margin: 0;
}

.article-body {
  padding: 14px 0 24px;
}

.article-body h2 {
  margin: 26px 0 8px;
  font-size: 21px;
}

.article-body p {
  margin: 0 0 16px;
}

.article-body blockquote {
  margin: 22px 0;
  padding-left: 16px;
  border-left: 3px solid #c27a55;
  color: #6c4b3a;
}

.article-category {
  color: #a34e37;
}

.article-body::after {
  display: block;
  clear: both;
  content: "";
}

.article-body h3 {
  margin: 22px 0 6px;
  font-size: 18px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.article-body figure {
  margin: 22px 0;
}

.article-body figcaption {
  margin-top: 6px;
  color: #777;
  font-size: 14px;
  text-align: center;
}

.article-body pre {
  margin: 0 0 16px;
  padding: 12px 14px;
  overflow-x: auto;
  border-radius: 6px;
  background: #f4eee5;
  font: 14px/1.6 ui-monospace, Menlo, monospace;
  white-space: pre-wrap;
}

.article-body hr {
  margin: 28px 0;
  border: 0;
  border-top: 1px solid #e9e2d8;
}

.draft-banner {
  margin: -32px -24px 20px;
  padding: 8px 24px;
  background: #fff2c4;
  color: #6c4b3a;
  font-size: 14px;
}

.article-edit-note {
  color: #777;
  font-size: 13px;
}

@media (max-width: 520px) {
  body {
    padding: 20px 18px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .site-nav {
    gap: 8px 16px;
  }

  .social-nav {
    padding: 0;
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
