/* ==========================================================================
   Quotidian — elsewhen.me Custom Styles
   Attila theme overrides
   ========================================================================== */

/* --- Font --- */
:root {
  --font-pretendard: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  --font-title: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
}

body {
  font-family: var(--font-pretendard);
}

h1, h2, h3, h4, h5, h6,
.blog-name,
.blog-description,
.post-title,
.post-meta-author,
.post-nav-title,
.archive-title {
  font-family: var(--font-pretendard);
}

.post-content {
  font-family: var(--font-pretendard);
}

/* --- Homepage header: compact when no cover --- */
.blog-header {
  padding-top: calc(10rem + 3vw);
}

.blog-header .blog-box {
  padding-bottom: calc(3rem + 1.5vw);
}

/* Blog name: Cormorant Garamond serif title */
.blog-name {
  font-family: var(--font-title);
  font-size: 5.5em;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Description: serif italic, subtler */
.blog-description {
  font-family: var(--font-title);
  font-size: 2em;
  font-weight: 300;
  font-style: italic;
  margin-top: 0.5rem;
  opacity: 0.65;
  letter-spacing: 0.01em;
}

/* --- Content width: narrower for readability --- */
.inner {
  max-width: calc(48rem + 4vw);
}

/* --- Post list refinements --- */
.container .post .post-box {
  padding-top: calc(2.5rem + 1vw);
  padding-bottom: calc(2.5rem + 1vw);
}

.container .post .post-title {
  font-size: 2.4em;
  font-weight: 600;
}

.post-excerpt {
  font-size: 1.5em;
  line-height: 1.8em;
  opacity: 0.8;
}

.post-meta {
  font-size: 1.4em;
}

.post-meta-tag {
  font-weight: 500;
}

/* --- Post page refinements --- */
.post-header {
  padding: calc(10rem + 2vw) 0 calc(2rem + 1vw);
}

.post-header .post-title {
  font-size: 3.2em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.post-info .post-type {
  font-size: 0.85em;
  font-weight: 500;
  text-transform: none;
}

.post-info .post-count {
  font-size: 0.85em;
}

/* Post content typography */
.post-content {
  font-size: 1.65em;
  line-height: 1.85em;
}

.post-content p {
  margin: 0 0 2.4rem;
}

.post-content h2 {
  margin-top: 4rem;
  font-size: 2.4rem;
  font-weight: 600;
}

.post-content h3 {
  margin-top: 3rem;
  font-size: 2rem;
  font-weight: 600;
}

/* --- Navigation refinements --- */
.nav-header .nav-wrapper {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 1.05em;
  letter-spacing: 0.01em;
}

.nav-header .nav-wrapper ul a span {
  font-family: var(--font-title);
}

.nav-header .logo img {
  max-height: 28px;
}

/* --- Footer: minimal --- */
.nav-footer {
  font-size: 1.2em;
}

.nav-footer .nav-copy {
  opacity: 0.5;
}

.nav-footer .nav-publish {
  opacity: 0.5;
  font-size: 0.9em;
}

/* --- Tag page refinements --- */
.archive-title {
  font-size: 3em;
  font-weight: 600;
}

.archive-description {
  font-size: 1.6em;
  opacity: 0.7;
}

/* --- Progress bar: thinner --- */
.progress-container {
  height: 2px;
}

.progress-bar {
  height: 2px;
}

/* --- Post footer tags: refined --- */
.post-tags a {
  font-size: 1.4em;
  font-weight: 400;
}

/* --- Post navigation (prev/next): cleaner --- */
.post-nav-title {
  font-size: 1.8em;
  font-weight: 500;
}

.post-nav-excerpt {
  font-size: 1.4em;
  opacity: 0.7;
}

/* --- Share buttons: subtler --- */
.post-share a,
.post-share-button {
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.post-share a:hover,
.post-share a:focus,
.post-share-button:hover,
.post-share-button:focus {
  opacity: 1;
}

/* --- Responsive adjustments --- */
@media only screen and (max-width: 640px) {
  .blog-name {
    font-size: 4em;
  }

  .blog-description {
    font-size: 1.6em;
  }

  .blog-header {
    padding-top: calc(6rem + 2vw);
  }

  .post-header {
    padding: calc(7rem + 2vw) 0 calc(1.5rem + 1vw);
  }

  .post-header .post-title {
    font-size: 2.6em;
  }

  .container .post .post-title {
    font-size: 2em;
  }
}

/* --- When cover image IS present (future-proofing) --- */
.blog-header.has-cover {
  padding-top: calc(16rem + 4vw);
}

.blog-header.has-cover .blog-box {
  padding-bottom: calc(4rem + 2vw);
}

.has-cover .blog-name {
  font-size: 6em;
  font-weight: 600;
}
