:root {
  --ink: #26241f;
  --muted: #7b7870;
  --line: rgba(38, 36, 31, .12);
  --paper: #f7f5ef;
  --panel: #efede7;
  --white: #fff;
  --accent: #ad4b35;
  --accent-soft: #f1ddd5;
  --sans: "Avenir Next", "Helvetica Neue", -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.nav-links {
  display: flex;
  gap: 26px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}

.nav-links a:hover {
  color: var(--accent);
}

/* Article */
.article {
  max-width: 740px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}

.crumbs {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 18px;
}

.crumbs a {
  color: var(--muted);
}

.article h1,
.blog-head h1 {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.2;
  margin: 0 0 14px;
  letter-spacing: -.3px;
}

.meta {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 34px;
}

.article h2 {
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.3;
  margin: 46px 0 12px;
}

.article h3 {
  font-size: 19px;
  margin: 30px 0 8px;
}

.article p,
.article li {
  color: #3b3934;
}

.article li {
  margin: 0 0 10px;
}

.article figure {
  margin: 30px 0;
}

.article figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(35, 31, 23, .12);
}

.article figcaption {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
}

.note {
  background: var(--paper);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 26px 0;
}

.note p {
  margin: 0;
}

.cta-box {
  background: var(--paper);
  border-radius: 16px;
  padding: 30px;
  margin: 48px 0 0;
  text-align: center;
}

.cta-box h2 {
  margin-top: 0;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 11px;
  font-weight: 600;
  font-size: 16px;
}

.btn:hover {
  background: #96402d;
}

.related {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

/* Blog index */
.blog-head {
  text-align: center;
  padding: 72px 24px 40px;
  background: linear-gradient(180deg, var(--paper) 0%, #ffffff 100%);
}

.blog-head p {
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto;
}

.post-list {
  max-width: 760px;
  margin: 0 auto;
  padding: 10px 24px 80px;
}

.post-item {
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

.post-item h2 {
  font-family: var(--serif);
  font-size: 24px;
  margin: 0 0 8px;
}

.post-item h2 a {
  color: var(--ink);
  text-decoration: none;
}

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

.post-item p {
  margin: 0 0 6px;
  color: var(--muted);
}

.post-item time {
  font-size: 14px;
  color: var(--muted);
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  font-size: 14px;
  color: var(--muted);
}

.foot-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.foot-links {
  display: flex;
  gap: 22px;
}

.foot-links a {
  color: var(--muted);
  text-decoration: none;
}

.foot-links a:hover {
  color: var(--accent);
}

@media (max-width: 760px) {
  .article h1,
  .blog-head h1 {
    font-size: 31px;
  }

  .nav-links {
    display: none;
  }
}
