:root {
  --accent: #a406ed;
  --text: #333;
  --text-2: #757575;
  --dark: #15171a;
  --line: #e6e6e6;
  --gray: #f6f6f6;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: Menlo, Consolas, Monaco, monospace;
}
* { box-sizing: border-box; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { color: var(--dark); letter-spacing: -0.02em; line-height: 1.15; margin: 0; }

.site-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* header */
.site-header { padding: 26px 0 0; }
.site-header__top { display: flex; align-items: center; justify-content: space-between; }
.site-header__top img { height: 34px; width: auto; }
.site-nav { display: flex; gap: 2.8rem; margin-top: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.site-nav a {
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 500;
}
.btn-subscribe {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 11px 22px;
}
.btn-subscribe:hover { text-decoration: none; opacity: 0.9; }

/* layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 6rem; padding: 5rem 0 7rem; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; gap: 4rem; } }

/* latest post */
.label { font-size: 1.2rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 1.4rem; }
.latest-title { font-size: 4.6rem; font-weight: 700; margin-bottom: 1.8rem; display: block; }
.latest-title:hover { text-decoration: none; opacity: 0.85; }
.latest-excerpt { font-size: 2rem; color: var(--text); line-height: 1.5; margin-bottom: 1.8rem; }
.meta { font-size: 1.2rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.meta a { color: var(--accent); }

.more-label { font-size: 1.2rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); font-weight: 600; margin: 5rem 0 2.4rem; border-top: 1px solid var(--line); padding-top: 2.4rem; }
.post-card { margin-bottom: 4.2rem; }
.post-card h2 { font-size: 2.6rem; font-weight: 700; margin-bottom: 1.2rem; }
.post-card h2 a:hover { text-decoration: none; opacity: 0.85; }
.post-card p { font-size: 1.7rem; margin: 0 0 1.2rem; }
.post-card .meta { font-size: 1.2rem; }
.post-card .meta a { color: var(--accent); }

/* sidebar */
.sidebar { font-size: 1.4rem; }
.side-card { border: 1px solid var(--line); border-radius: 3px; padding: 2.4rem; margin-bottom: 3rem; }
.side-card .label { color: var(--text-2); }
.side-about { display: flex; gap: 1.4rem; align-items: flex-start; }
.side-about img { width: 44px; height: 44px; border-radius: 8px; }
.side-about h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.side-about p { margin: 0; color: var(--text-2); font-size: 1.3rem; line-height: 1.5; }
.side-signup { margin-top: 2rem; }
.side-signup form { display: flex; }
.side-signup input { flex: 1; border: 1px solid var(--line); border-right: 0; padding: 10px 12px; font-size: 1.3rem; border-radius: 3px 0 0 3px; }
.side-signup button { border: 0; background: var(--accent); color: #fff; font-size: 1.1rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0 14px; border-radius: 0 3px 3px 0; cursor: pointer; }

/* single post */
.post-header { padding: 5rem 0 2rem; max-width: 760px; }
.post-header h1 { font-size: 4.6rem; font-weight: 700; margin-bottom: 1.6rem; }
.post-header .byline { display: flex; align-items: center; gap: 1rem; margin-top: 1.6rem; font-size: 1.3rem; color: var(--text-2); }
.feature-image { margin: 2rem 0 4rem; }
.post-content { max-width: 760px; font-size: 1.8rem; line-height: 1.7; }
.post-content > p, .post-content > ul, .post-content > ol, .post-content > blockquote { font-size: 1.8rem; margin: 0 0 1.6em; }
.post-content h1, .post-content h2 { font-size: 2.8rem; font-weight: 700; margin: 1.8em 0 0.6em; }
.post-content h3 { font-size: 2.2rem; font-weight: 700; margin: 1.6em 0 0.5em; }
.post-content a { color: var(--accent); text-decoration: underline; }
.post-content img { margin: 2em 0; border-radius: 3px; }
.post-content blockquote { border-left: 3px solid var(--accent); padding-left: 1.6rem; color: var(--text-2); font-style: italic; margin-left: 0; }
.post-content code { font-family: var(--mono); font-size: 0.9em; background: var(--gray); padding: 2px 5px; border-radius: 3px; }
.post-content pre { background: #23241f; color: #f8f8f2; padding: 1.8rem; border-radius: 4px; overflow-x: auto; font-size: 1.4rem; line-height: 1.5; }
.post-content pre code { background: none; padding: 0; color: inherit; }
.post-content table { width: 100%; border-collapse: collapse; font-size: 1.6rem; }
.post-content th, .post-content td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }

/* subscribe band */
.subscribe-band { background: var(--accent); color: #fff; text-align: center; padding: 7rem 24px; }
.subscribe-band h2 { color: #fff; font-size: 3.2rem; margin-bottom: 1.2rem; }
.subscribe-band p { font-size: 1.7rem; margin: 0 0 2.4rem; }
.subscribe-band form { display: flex; max-width: 460px; margin: 0 auto; }
.subscribe-band input { flex: 1; border: 0; padding: 14px 16px; font-size: 1.5rem; border-radius: 3px 0 0 3px; }
.subscribe-band button { border: 0; background: #fff; color: var(--accent); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 1.2rem; padding: 0 22px; border-radius: 0 3px 3px 0; cursor: pointer; }

/* footer */
.site-footer { padding: 3rem 0; }
.site-footer__inner { display: flex; justify-content: space-between; font-size: 1.3rem; color: var(--text-2); border-top: 1px solid var(--line); padding-top: 3rem; flex-wrap: wrap; gap: 1rem; }

/* about page */
.page-body { max-width: 760px; font-size: 1.8rem; padding: 5rem 0; }

@media (max-width: 767px) {
  .latest-title, .post-header h1 { font-size: 3.2rem; }
  .site-nav { gap: 1.6rem; }
}
