:root {
  --text: #222222;
  --text-muted: #575760;
  --bg: #f7f8f9;
  --surface: #ffffff;
  --accent: #1e73be;
  --border: #e5e7eb;
  --max-width: 1100px;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

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

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

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

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: #000;
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 0;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.site-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-ui);
}

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

.site-nav {
  font-family: var(--font-ui);
  font-size: 0.95rem;
}

.site-nav summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  background: var(--surface);
}

.site-nav summary::-webkit-details-marker {
  display: none;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.site-nav a:hover,
.site-nav .active a {
  color: var(--accent);
}

.site-main {
  padding: 2rem 0 3rem;
}

.site-layout {
  display: block;
}

.content-area {
  width: 100%;
  min-width: 0;
}

.archive-header h1 {
  margin: 0 0 1.5rem;
  font-size: 1.8rem;
  font-family: var(--font-ui);
}

.post-list {
  display: grid;
  gap: 1.5rem;
}

.post-card,
.article,
.page {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
}

.post-card-title,
.article-header h1 {
  margin: 0 0 0.75rem;
  font-size: 1.6rem;
  line-height: 1.3;
  font-family: var(--font-ui);
}

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

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

.post-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-ui);
}

.post-meta span + span::before,
.post-meta time + span::before {
  content: " · ";
}

.post-excerpt {
  margin: 0;
}

.post-categories {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-family: var(--font-ui);
}

.article-content h2,
.article-content h3 {
  font-family: var(--font-ui);
  line-height: 1.3;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.article-content p,
.article-content ul,
.article-content ol {
  margin: 0 0 1rem;
}

.article-content ul,
.article-content ol {
  padding-left: 1.5rem;
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.site-info {
  padding: 1.25rem 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-family: var(--font-ui);
}

.footer-nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 1.25rem;
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}

.footer-nav-list a {
  text-decoration: none;
  color: var(--text);
}

.footer-nav-list a:hover,
.footer-nav-list a:focus {
  color: var(--accent);
}

.copyright-bar {
  text-align: center;
}

.copyright-bar .copyright {
  color: var(--text-muted);
}

@media (min-width: 769px) {
  .site-nav summary {
    display: none;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 17px;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav:not([open]) ul {
    display: none;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.75rem;
  }

  .post-card,
  .article,
  .page {
    padding: 1.25rem;
  }

  .post-card-title,
  .article-header h1 {
    font-size: 1.35rem;
  }

  html,
  body {
    overflow-x: clip;
  }

  .content-area {
    max-width: 100%;
    overflow-x: clip;
  }

  [id^="div-gpt-ad"],
  [id^="google_ads_iframe_"] {
    max-width: 100% !important;
    margin-left: 0 !important;
    box-sizing: border-box;
  }
}
