/* modern minimalist typography stylesheet for sixball archive */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, Cambria, "Times New Roman", Times, serif;
  --bg-color: #faf9f5;
  --text-color: #1a1a1a;
  --link-color: #a00000;
  --link-hover: #e00000;
  --muted-color: #666;
  --border-color: #eaeaea;
  --code-bg: #f3f3f0;
}


@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --link-color: #ff4d4d;
    --link-hover: #ff8080;
    --muted-color: #aaa;
    --border-color: #2c2c2c;
    --code-bg: #1e1e1e;
  }
}

body {
  font-family: var(--font-serif);
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--bg-color);
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 4rem;
}

header {
  font-family: var(--font-sans);
  position: sticky;
  top: 3rem;
  height: fit-content;
}

main, article {
  max-width: 680px;
}

footer {
  grid-column: 2;
  margin-top: 5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--muted-color);
}

@media (max-width: 800px) {
  body {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1.5rem;
  }
  header {
    position: static;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
    margin-bottom: 1rem;
  }
  footer {
    grid-column: 1;
    margin-top: 3rem;
  }
}

.about-panel {
  margin-top: 2rem;
}

.about-panel h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-color);
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.about-panel p {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted-color);
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--text-color);
  line-height: 1.25;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.site-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0;
}

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

.site-title a:hover {
  text-decoration: none;
}

.site-description {
  margin: 0.25rem 0 0 0;
  color: var(--muted-color);
  font-size: 1.1rem;
  font-style: italic;
}

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

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

.post-item {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-color);
}

.post-item:last-child {
  border-bottom: none;
}

.post-item h2 {
  margin: 0 0 0.5rem 0;
}

.post-item-date {
  font-family: var(--font-sans);
  color: var(--muted-color);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.5rem;
}

.post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
  border-radius: 4px;
}

.post-content figure {
  margin: 2rem 0;
}

.post-content figcaption {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--muted-color);
  text-align: center;
  margin-top: 0.5rem;
}

blockquote {
  border-left: 4px solid var(--link-color);
  margin: 2rem 0;
  padding-left: 1.5rem;
  font-style: italic;
  color: var(--muted-color);
}

pre, code {
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  background-color: var(--code-bg);
  border-radius: 4px;
}

code {
  padding: 0.2rem 0.4rem;
  font-size: 0.9em;
}

pre {
  padding: 1rem;
  overflow-x: auto;
}

pre code {
  padding: 0;
  background-color: transparent;
  font-size: 0.9rem;
}

/* Align helper classes from WP content */
.alignleft {
  float: left;
  margin: 0.5rem 1.5rem 0.5rem 0;
}

.alignright {
  float: right;
  margin: 0.5rem 0 0.5rem 1.5rem;
}

.aligncenter {
  display: block;
  margin: 1.5rem auto;
  text-align: center;
}

.clearfix::after {
  content: "";
  clear: both;
  display: table;
}
