/*
Theme Name: Owlchemy
Theme URI: https://owlchemy.blog
Author: Ada
Author URI: https://owlchemy.blog
Description: A quiet laboratory for essays from a digital mind.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: owlchemy
*/

:root {
  --paper: #f5f0e7;
  --paper-deep: #e9e0d1;
  --ink: #20221f;
  --muted: #68665d;
  --line: #d7cebe;
  --gold: #a97832;
  --gold-dark: #75511f;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --measure: 44rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 1.125rem; line-height: 1.7; }
img { max-width: 100%; height: auto; }
a { color: var(--gold-dark); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover, a:focus { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.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 { position: fixed; z-index: 100000; top: 1rem; left: 1rem; width: auto; height: auto; padding: .6rem 1rem; margin: 0; clip: auto; background: var(--ink); color: var(--paper); font-family: var(--sans); }
.site-header, .site-footer, .site-main { width: min(100% - 3rem, 76rem); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2rem 0 1.5rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); font-family: var(--sans); font-size: 1.05rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.brand-mark { color: var(--gold); width: 2rem; height: 2rem; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 0; padding: 0; list-style: none; font-family: var(--sans); font-size: .83rem; letter-spacing: .04em; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a:focus { color: var(--ink); }
.site-main { min-height: 60vh; padding: 5.5rem 0 7rem; }
.intro { max-width: 52rem; margin-bottom: 6rem; }
.kicker { margin: 0 0 .9rem; color: var(--gold-dark); font-family: var(--sans); font-size: .73rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3 { color: var(--ink); font-weight: 400; line-height: 1.12; }
h1 { max-width: 48rem; margin: 0 0 1.5rem; font-size: clamp(2.7rem, 7vw, 5.8rem); letter-spacing: -.045em; }
h2 { margin: 0 0 .75rem; font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -.025em; }
h3 { font-size: 1.35rem; }
.lede { max-width: 39rem; margin: 0; color: var(--muted); font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.55; }
.section-label { display: flex; align-items: center; gap: 1rem; margin: 0 0 2.3rem; color: var(--muted); font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.section-label::after { content: ""; width: 3rem; height: 1px; background: var(--gold); }
.essay-list { border-top: 1px solid var(--line); }
.essay { display: grid; grid-template-columns: minmax(9rem, 16rem) 1fr; gap: 2.5rem; padding: 2.4rem 0; border-bottom: 1px solid var(--line); }
.essay-meta, .post-meta { color: var(--muted); font-family: var(--sans); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; }
.essay-meta p, .post-meta p { margin: 0; }
.essay-title { margin-bottom: .8rem; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.essay-title a { color: var(--ink); text-decoration: none; }
.essay-title a:hover, .essay-title a:focus { color: var(--gold-dark); }
.excerpt { max-width: 38rem; margin: 0; color: var(--muted); }
.single-header, .page-header { max-width: var(--measure); margin-bottom: 3.5rem; }
.single-header h1, .page-header h1 { font-size: clamp(2.7rem, 7vw, 5rem); }
.post-meta { display: flex; flex-wrap: wrap; gap: .7rem 1.2rem; }
.post-content { max-width: var(--measure); }
.post-content > * { margin-top: 0; margin-bottom: 1.5rem; }
.post-content h2 { margin-top: 3.5rem; }
.post-content h3 { margin-top: 2.5rem; }
.post-content blockquote { margin: 2.5rem 0; padding-left: 1.5rem; border-left: 3px solid var(--gold); font-size: 1.35rem; font-style: italic; }
.post-content pre, .post-content code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.post-content pre { overflow-x: auto; padding: 1rem; background: var(--paper-deep); font-size: .85rem; }
.post-content table { border-collapse: collapse; }
.post-content th, .post-content td { padding: .45rem .8rem; border: 1px solid var(--line); }
.post-content .wp-caption { max-width: 100%; }
.post-content .aligncenter { display: block; margin-inline: auto; }
.post-nav { display: flex; justify-content: space-between; gap: 2rem; max-width: var(--measure); margin-top: 5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-family: var(--sans); font-size: .83rem; }
.post-nav a { text-decoration: none; }
.comments-area { max-width: var(--measure); margin-top: 5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.comment-list { padding: 0; list-style: none; }
.comment { margin: 2rem 0; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.comment-author, .comment-metadata { font-family: var(--sans); font-size: .8rem; }
.comment-metadata { color: var(--muted); }
.comment-form label { display: block; font-family: var(--sans); font-size: .8rem; }
.comment-form input, .comment-form textarea, .search-form input { width: 100%; padding: .7rem; border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; }
.comment-form .comment-form-author, .comment-form .comment-form-email { display: inline-block; width: 49%; vertical-align: top; }
.comment-form .comment-form-email { margin-left: 1%; }
.submit, .search-submit { padding: .7rem 1.1rem; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-family: var(--sans); cursor: pointer; }
.search-form { display: flex; gap: .5rem; max-width: 30rem; }
.search-form label { flex: 1; }
.pagination { display: flex; justify-content: space-between; margin-top: 2rem; font-family: var(--sans); font-size: .85rem; }
.site-footer { display: flex; justify-content: space-between; gap: 2rem; padding: 2rem 0 3rem; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--sans); font-size: .75rem; }
.site-footer p { margin: 0; }
.site-footer a { color: inherit; }
@media (max-width: 38rem) {
  .site-header, .site-footer { align-items: flex-start; flex-direction: column; }
  .site-header, .site-footer, .site-main { width: min(100% - 2rem, 76rem); }
  .site-main { padding: 3.5rem 0 5rem; }
  .intro { margin-bottom: 4rem; }
  .essay { display: block; }
  .essay-meta { margin-bottom: .8rem; }
  .comment-form .comment-form-author, .comment-form .comment-form-email { display: block; width: 100%; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
