/*
Theme Name: Eclectic Quill
Theme URI: https://eclecticquill.com/
Author: Joshua McGee
Description: A modern editorial theme for The Eclectic Quill, inspired by its original warm, bookish design.
Version: 0.2.1
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 8.1
Text Domain: eclectic-quill
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, two-columns, right-sidebar, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
  --quill-ink: #253944;
  --quill-ink-deep: #172831;
  --quill-paper: #f4f0eb;
  --quill-paper-light: #fbf8f4;
  --quill-olive: #74643a;
  --quill-gold: #c7ad64;
  --quill-rust: #c85d08;
  --quill-text: #46535a;
  --quill-muted: #7b817f;
  --quill-rule: #d7cec1;
  --quill-width: 1180px;
  --quill-serif: Georgia, "Times New Roman", serif;
  --quill-sans: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--quill-paper);
  color: var(--quill-text);
  font-family: var(--quill-sans);
  font-size: 18px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}
a { color: var(--quill-ink); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover, a:focus { color: var(--quill-rust); }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button, input[type="submit"] { cursor: pointer; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { top: 8px; left: 8px; z-index: 100000; width: auto; height: auto; padding: .75rem 1rem; clip: auto; background: white; color: var(--quill-ink); }

.site-header { background: var(--quill-ink); color: white; }
.masthead { max-width: var(--quill-width); margin: 0 auto; padding: 2.35rem 2rem 2.1rem; display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.site-branding { min-width: 0; }
.site-title { margin: 0; color: white; font-size: clamp(2.25rem, 5vw, 3.35rem); font-weight: 650; line-height: 1; letter-spacing: -.03em; }
.site-title a { color: inherit; text-decoration: none; }
.site-description { margin: .55rem 0 0; color: var(--quill-gold); font-family: var(--quill-sans); font-size: 1.05rem; font-weight: 450; letter-spacing: .01em; }
.menu-toggle { display: none; padding: .65rem .85rem; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: transparent; color: white; }
.primary-nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem 1.1rem; margin: 0; padding: 0; list-style: none; }
.primary-nav a { color: #eef2f3; font-size: .9rem; text-decoration: none; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--quill-gold); }

.site-shell { max-width: var(--quill-width); margin: 0 auto; padding: 2.3rem 2rem 4rem; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(2.5rem, 6vw, 5rem); }
.site-main { min-width: 0; }
.page-header { margin-bottom: 2.25rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--quill-rule); }
.page-title { margin: 0; color: var(--quill-olive); font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.08; }
.archive-description { color: var(--quill-muted); }

.post-card, .single-post, .page-content { position: relative; margin: 0 0 3rem; padding: 0 0 2.8rem 6.25rem; border-bottom: 1px dotted var(--quill-ink); }
.post-card:last-child { margin-bottom: 1rem; }
.date-medallion { position: absolute; top: .15rem; left: 0; display: grid; place-content: center; width: 4.9rem; height: 4.9rem; border-radius: 50%; background: var(--quill-olive); color: white; font-size: 1rem; font-weight: 700; line-height: 1.02; text-align: center; text-transform: uppercase; }
.date-medallion span { display: block; }
.date-medallion .year { margin-top: .16rem; font-size: .62rem; font-weight: 600; letter-spacing: .08em; }
.entry-title { margin: 0; color: var(--quill-olive); font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 650; letter-spacing: -.02em; line-height: 1.08; }
.entry-title a { color: inherit; text-decoration: none; }
.entry-title a:hover { color: var(--quill-rust); }
.entry-meta { margin: .85rem 0 1.5rem; color: var(--quill-muted); font-family: var(--quill-serif); font-size: .9rem; font-style: italic; }
.entry-meta a { color: inherit; }
.entry-meta > * + *::before { content: " · "; color: var(--quill-gold); font-style: normal; }
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; font-size: .95rem; }
.post-navigation .nav-next { text-align: right; }
.post-navigation a { text-decoration: none; }
.post-navigation span { color: var(--quill-muted); }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--quill-olive); line-height: 1.22; }
.entry-content h2 { margin-top: 2.25rem; font-size: 1.8rem; }
.entry-content h3 { margin-top: 1.8rem; font-size: 1.4rem; }
.entry-content blockquote { margin: 2rem 0; padding: .25rem 0 .25rem 1.5rem; border-left: 4px solid var(--quill-gold); color: var(--quill-olive); font-family: var(--quill-serif); font-size: 1.2rem; font-style: italic; }
.entry-content pre { max-width: 100%; overflow: auto; padding: 1rem; background: var(--quill-ink-deep); color: white; }
.entry-content figure, .entry-content .wp-caption { max-width: 100% !important; margin: 2rem auto; }
.entry-content figcaption, .wp-caption-text { margin-top: .5rem; color: var(--quill-muted); font-family: var(--quill-serif); font-size: .8rem; text-align: center; }
.entry-content .alignwide { width: min(110%, 920px); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignfull { width: min(100vw, var(--quill-width)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.featured-image { margin: 1.75rem 0; overflow: hidden; border-radius: 2px; }
.featured-image img { width: 100%; }
.read-more { display: inline-block; margin-top: .6rem; font-weight: 700; }
.post-tags { margin-top: 2rem; color: var(--quill-muted); font-size: .88rem; }

.sidebar { min-width: 0; }
.author-card { margin-bottom: 2.5rem; }
.author-card h2 { margin: 1rem 0 .2rem; color: var(--quill-olive); font-size: 1.45rem; }
.author-card p { margin: 0; color: var(--quill-muted); font-family: var(--quill-serif); font-size: .9rem; }
.widget { margin: 0 0 2.45rem; }
.widget-title { margin: 0 0 .8rem; color: var(--quill-olive); font-size: 1.45rem; line-height: 1.2; }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li { margin: .3rem 0; font-size: .88rem; line-height: 1.48; }
.widget a { color: #657176; font-weight: 400; text-decoration: none; }
.widget a:hover { color: var(--quill-rust); }
.search-form { display: flex; gap: .5rem; }
.search-field, input[type="text"], input[type="email"], input[type="url"], input[type="password"], textarea { width: 100%; padding: .7rem .85rem; border: 1px solid var(--quill-rule); border-radius: 3px; background: white; color: var(--quill-text); }
.search-submit, input[type="submit"], .button { padding: .7rem 1rem; border: 0; border-radius: 999px; background: var(--quill-rust); color: white; font-weight: 700; }

.comments-area { margin: 2.5rem 0; }
.comments-title, .comment-reply-title { color: var(--quill-olive); }
.comment-list { padding: 0; list-style: none; }
.comment-list .children { list-style: none; }
.comment-body { margin: 1.25rem 0; padding: 1.25rem; background: var(--quill-paper-light); border-left: 3px solid var(--quill-gold); }
.comment-meta { font-size: .85rem; }

.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.pagination .page-numbers { min-width: 2.25rem; padding: .35rem .65rem; border: 1px solid var(--quill-rule); text-align: center; text-decoration: none; }
.pagination .current { background: var(--quill-olive); color: white; }

.site-footer { background: var(--quill-ink-deep); color: #cbd3d6; }
.site-footer-inner { max-width: var(--quill-width); margin: 0 auto; padding: 2rem; display: flex; justify-content: space-between; gap: 2rem; font-size: .85rem; }
.site-footer a { color: var(--quill-gold); }

@media (max-width: 900px) {
  .masthead { align-items: center; }
  .menu-toggle { display: inline-block; }
  .primary-nav { display: none; position: absolute; z-index: 20; top: 7rem; right: 1rem; left: 1rem; padding: 1rem; background: var(--quill-ink-deep); box-shadow: 0 12px 30px rgba(0,0,0,.25); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: block; }
  .primary-nav li { padding: .3rem 0; }
  .site-shell { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.5rem 2rem; border-top: 1px solid var(--quill-rule); padding-top: 2.5rem; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .masthead, .site-shell, .site-footer-inner { padding-left: 1.15rem; padding-right: 1.15rem; }
  .site-description { font-size: 1rem; }
  .post-card, .single-post, .page-content { padding-left: 0; }
  .date-medallion { position: static; width: auto; height: auto; margin-bottom: .8rem; display: inline-flex; gap: .3rem; padding: .35rem .7rem; border-radius: 999px; font-size: .78rem; }
  .date-medallion span { display: inline; }
  .post-navigation { grid-template-columns: 1fr; }
  .post-navigation .nav-next { text-align: left; }
  .sidebar { grid-template-columns: 1fr; }
  .site-footer-inner { display: block; }
}
