@import url("https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Raleway:wght@300;400;500&display=swap");

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --text: #333333;
  --muted: #999999;
  --accent: #73ba30;
  --accent-dark: #5aa21f;
  --border: #d7d7d7;
}

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

body {
  margin: 0;
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(760px, 92vw);
  margin: 0 auto;
}

.site-header {
  display: grid;
  grid-template-columns: 170px 1fr;
  grid-template-areas:
    "photo title"
    "photo nav";
  column-gap: 26px;
  row-gap: 10px;
  padding: 36px 0 18px;
}

.header-image {
  grid-area: photo;
}

.header-image img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.header-title {
  grid-area: title;
}

.header-title h1 {
  font-family: "Raleway", sans-serif;
  font-weight: 400;
  font-size: 32px;
  margin: 0;
}

.header-title h1 a {
  color: var(--text);
}

.header-title h2 {
  font-family: "Raleway", sans-serif;
  font-weight: 300;
  font-size: 18px;
  margin: 6px 0 0;
  color: var(--text);
}

.header-nav {
  grid-area: nav;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.social-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.social-nav a {
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.social-nav svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.main-nav a {
  color: var(--accent);
  font-size: 17px;
}

.search {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 5px;
  overflow: hidden;
  background: #ffffff;
}

.search input {
  border: 0;
  padding: 4px 8px;
  font-size: 16px;
  font-family: inherit;
  background: transparent;
  color: var(--text);
  width: 150px;
}

.search input:focus {
  outline: none;
}

.search button {
  border: 0;
  padding: 4px 8px;
  background: #f0f0f0;
  color: var(--text);
  cursor: pointer;
}

.search button svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.posts-section {
  padding: 6px 0 44px;
}

.section-title {
  font-family: "Raleway", sans-serif;
  font-weight: 400;
  font-size: 18px;
  margin: 0 0 16px;
}

.posts {
  display: grid;
  gap: 30px;
}

.post .meta {
  font-size: 13.6px;
  color: var(--muted);
  margin-bottom: 4px;
}

.post .summary {
  font-family: "Raleway", sans-serif;
  font-weight: 300;
  font-size: 19.2px;
  margin: 5px 0 15px;
}

.post .description {
  margin: 0 0 8px;
  line-height: 1.6;
}

.post .read-more {
  color: var(--accent);
  font-size: 17px;
}

.empty-state {
  color: var(--muted);
}

.content {
  padding: 10px 0 60px;
}

.content h1 {
  font-family: "Raleway", sans-serif;
  font-weight: 400;
  font-size: 28px;
  margin: 0 0 18px;
}

.content h2,
.content h3,
.content h4 {
  font-family: "Raleway", sans-serif;
  font-weight: 400;
  margin: 28px 0 12px;
}

.content p {
  margin: 0 0 16px;
  line-height: 1.7;
}

.content ul,
.content ol {
  margin: 0 0 18px;
  padding-left: 1.2rem;
}

.content li {
  margin: 6px 0;
  line-height: 1.6;
}

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

.content code {
  font-family: "Menlo", "Consolas", "Liberation Mono", monospace;
  font-size: 0.95em;
  background: #f1f1f1;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.content pre {
  background: #1e1e1e;
  color: #f5f5f5;
  padding: 14px 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 0 0 20px;
}

.content pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr;
    grid-template-areas:
      "photo"
      "title"
      "nav";
    justify-items: center;
    text-align: center;
  }

  .nav-row,
  .main-nav,
  .social-nav {
    justify-content: center;
  }

  .header-image img {
    width: 130px;
    height: 130px;
  }

  .search input {
    width: 130px;
  }
}

@media (max-width: 520px) {
  .search {
    width: 100%;
  }

  .search input {
    width: 100%;
  }
}
