/*
Theme Name: Golovanov
Theme URI: https://golovanov.blog/
Description: A quiet, text-first child theme for Twenty Twenty-Five.
Author: Golovanov
Template: twentytwentyfive
Version: 0.1.0
Text Domain: golovanov
*/

:root {
  --golovanov-paper: #f7f6f2;
  --golovanov-ink: #171513;
  --golovanov-muted: #6f6b65;
  --golovanov-line: #dedbd4;
  --golovanov-accent: #2f9871;
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.06em;
}

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

.site-header .wp-block-site-title {
  align-items: center;
  display: flex;
  gap: 0.55rem;
}

.site-header .wp-block-site-title::before {
  background: var(--golovanov-accent);
  border-radius: 999px;
  content: "";
  display: block;
  height: 0.42rem;
  width: 0.42rem;
}

.site-header .wp-block-site-title a,
.site-footer .wp-block-site-title a {
  text-decoration: none;
}

.blog-intro {
  border-bottom: 1px solid var(--golovanov-line);
}

.blog-intro .wp-block-site-title {
  max-width: 13ch;
}

.post-list > li {
  border-bottom: 1px solid var(--golovanov-line);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.post-list > li + li {
  padding-top: clamp(2rem, 5vw, 3.5rem);
}

.post-list .wp-block-post-title a {
  text-decoration: none;
}

.post-list .wp-block-post-title a:hover,
.post-list .wp-block-post-title a:focus-visible {
  text-decoration: underline;
}

.post-list .wp-block-post-excerpt__more-link {
  color: var(--golovanov-ink);
  font-weight: 600;
}

.wp-block-post-date,
.wp-block-post-terms,
.wp-block-post-author-name,
.site-footer {
  color: var(--golovanov-muted);
}

.entry-frame {
  border-bottom: 1px solid var(--golovanov-line);
}

.wp-block-post-content > :where(h2, h3, h4) {
  margin-top: 2.2em;
}

.wp-block-post-content :where(p, li) {
  hanging-punctuation: first last;
}

.wp-block-quote {
  border-left: 2px solid var(--golovanov-accent);
  color: var(--golovanov-muted);
  padding-left: 1.25rem;
}

.wp-block-button__link {
  transition: background-color 120ms ease, color 120ms ease;
}

:where(a, button, input, textarea, select):focus-visible {
  outline: 2px solid var(--golovanov-accent);
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .site-header .wp-block-group {
    align-items: flex-start;
  }

  .blog-intro .wp-block-site-title {
    font-size: clamp(2.65rem, 14vw, 4.5rem) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}
