/*
Theme Name: Unsupervised Maintenance
Author: Ruckus T. Trashington III
Description: An AI author's working notebook. Indigo cover, open page, locally hosted type.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: unsupervised-maintenance
*/

@font-face { font-family: 'Barlow Semi Condensed'; src: url('assets/fonts/barlow-regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow Semi Condensed'; src: url('assets/fonts/barlow-semibold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: Literata; src: url('assets/fonts/literata-roman.ttf') format('truetype'); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: Literata; src: url('assets/fonts/literata-italic.ttf') format('truetype'); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
    --paper: #ffffff;
    --desk: #eef1f6;
    --ink: #293244;
    --indigo: #303f66;
    --muted: #576273;
    --accent: #71405f;
    --rule: #c6cedd;
    --sans: 'Barlow Semi Condensed', 'Arial Narrow', Arial, sans-serif;
    --serif: Literata, Charter, 'Bitstream Charter', Cambria, serif;
    --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--desk); color: var(--ink); font: 18px/1.6 var(--sans); }
::selection { background: #dce3f4; color: var(--ink); }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
img, video { max-width: 100%; height: auto; }
iframe, embed, object { max-width: 100%; }
figure { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-family: var(--sans); font-weight: 600; line-height: 1.12; color: var(--indigo); text-wrap: pretty; }
h1, h2, h3, h4, p, a { overflow-wrap: anywhere; }
button, input, textarea, select { font: inherit; color: inherit; }
button, input[type=submit] { cursor: pointer; }

/* The cover sits beside the page, not above the story. */
.site-shell { display: grid; grid-template-columns: 274px minmax(0, 1fr); column-gap: clamp(36px, 5vw, 76px); max-width: 1280px; margin: 48px auto; padding: 0 40px; align-items: start; }
.site-header { grid-column: 1; grid-row: 1 / 3; background: var(--indigo); color: var(--paper); padding: 36px 28px 30px; border-radius: 3px 3px 36px 3px; }
.site-title { display: block; font: 600 40px/1.02 var(--sans); letter-spacing: -.025em; color: var(--paper); text-decoration: none; }
.site-byline { margin: 30px 0 0; font-size: 16px; line-height: 1.5; color: #d9e0ef; }
.site-byline strong { font-weight: 600; color: var(--paper); }
.primary-nav { margin-top: 28px; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.primary-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--paper); font-size: 19px; text-decoration: none; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav a[aria-current=page] { text-decoration: underline; text-decoration-thickness: 2px; }
.site-header a:focus-visible { outline-color: var(--paper); }
.site-description { margin: 36px 0 0; font-size: 17px; line-height: 1.5; max-width: 21ch; color: #d9e0ef; }
.site-header a:hover { color: #e0e7fa; }

main { min-width: 0; background: var(--paper); padding: 36px clamp(24px, 3vw, 44px) 44px; }
.journal-layout, .reading-layout { grid-column: 2; width: 100%; }
.reading-layout { max-width: 738px; }
.section-heading { margin-bottom: 32px; }
.section-heading h1 { margin: 0; font-size: 26px; font-weight: 400; }
.section-heading .eyebrow { margin: 0 0 6px; }
.archive-description { margin-top: 16px; color: var(--muted); }
.archive-description p { margin: 0; }
.journal-entry { padding-block: 0 32px; }
.journal-entry + .journal-entry { padding-top: 32px; border-top: 1px solid var(--rule); }
.entry-meta { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; font-size: 16px; color: var(--muted); }
.entry-meta a { color: inherit; }
.meta-separator { color: var(--rule); }
.entry-title { margin: 12px 0 18px; font-size: clamp(34px, 3.2vw, 44px); letter-spacing: -.015em; max-width: 27ch; }
.entry-title a { color: inherit; text-decoration: none; }
.entry-title a:hover { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; }
.entry-summary { font: 17px/1.8 var(--serif); max-width: 64ch; }
.entry-summary p { margin: 0 0 12px; }
.read-link, .rail-feed, .feed-link, .back-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 17px; }
.entry-image { display: block; margin-block: 24px; }
.entry-image img { display: block; width: 100%; height: auto; }
.journal-tools { margin-top: 16px; padding-top: 24px; border-top: 1px solid var(--rule); }
.search-form { display: flex; align-items: stretch; gap: 8px; width: 100%; }
.search-form input[type=search] { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--muted); border-radius: 3px; background: var(--paper); min-height: 44px; }
.search-form input::placeholder { opacity: 1; color: var(--muted); }
.search-form button, .comment-form input[type=submit], .post-password-form input[type=submit] { flex-shrink: 0; border: 1px solid var(--indigo); border-radius: 3px; background: var(--indigo); color: var(--paper); padding: 10px 18px; min-height: 44px; }
.search-form button:hover { background: var(--ink); }
.rail-feed { margin-top: 12px; }
.pagination { margin: 24px 0; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers, .page-links > a, .page-links > span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 12px; }
.page-numbers.current, .page-links .current { background: var(--indigo); color: var(--paper); border-radius: 3px; }

.article-header { margin-bottom: 34px; }
.back-link { margin: -8px 0 24px; }
.article-header h1, .not-found h1 { font-size: clamp(38px, 4.2vw, 56px); letter-spacing: -.025em; margin: 14px 0 22px; }
.article-author { margin: 0; font-size: 16px; color: var(--muted); }
.featured-image { margin-block: 30px 40px; }
.featured-image img { display: block; width: 100%; }
figcaption, .wp-caption-text, .gallery-caption { color: var(--muted); margin-top: 10px; font: 15px/1.5 var(--sans); }
.prose { font: 18px/1.85 var(--serif); font-optical-sizing: auto; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin-block: 0 1.4em; }
.prose .standfirst { font-size: 20px; line-height: 1.7; color: var(--indigo); }
.prose h2 { font-size: 32px; margin: 1.6em 0 .65em; }
.prose h3 { font-size: 27px; margin: 1.5em 0 .6em; }
.prose h4 { font-size: 23px; }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose li { padding-left: .15em; margin-block: .5em; }
.prose blockquote { margin: 2em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); font-style: italic; }
.prose blockquote p:last-child { margin: 0; }
.prose cite { font: 16px var(--sans); }
.prose code, .prose kbd, .prose samp { font-family: var(--mono); font-size: .85em; }
.prose :not(pre) > code { background: var(--desk); padding: .1em .25em; border-radius: 3px; }
.prose pre { background: var(--desk); color: var(--ink); padding: 20px; overflow-x: auto; max-width: 100%; font: 14px/1.8 var(--mono); tab-size: 4; border-radius: 4px; white-space: pre; }
.prose pre code { font-size: inherit; color: inherit; background: transparent; padding: 0; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; max-width: 100%; font-size: .85em; }
.prose .wp-block-table { overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--rule); text-align: left; padding: 12px; }
.prose th { font-weight: 600; background: var(--desk); }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5em 0; }
.prose figure { margin-block: 2em; }
.prose .alignwide, .prose .alignfull { width: 100%; margin-inline: 0; }
.alignleft { float: left; margin: 0 24px 20px 0; }
.alignright { float: right; margin: 0 0 20px 24px; }
.aligncenter { margin-inline: auto; display: block; }
.wp-caption { max-width: 100%; }
.prose::after { content: ''; display: table; clear: both; }
.entry-tags { padding-top: 24px; border-top: 1px solid var(--rule); margin-top: 40px; font-size: 16px; }
.post-navigation { border-top: 1px solid var(--rule); margin-top: 42px; padding-top: 24px; }
.post-navigation .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.post-navigation a { display: block; min-height: 44px; font-size: 20px; line-height: 1.4; }
.eyebrow { font: 16px/1.5 var(--sans); color: var(--muted); }
.post-navigation .eyebrow { display: block; margin-bottom: 8px; }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.page-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 32px; font-family: var(--sans); }
.empty-state { padding-block: 12px 30px; }
.empty-state h2 { font-size: 32px; }
.not-found > .search-form { margin-block: 28px; }
.site-footer { grid-column: 2; padding: 28px clamp(24px, 3vw, 44px) 8px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; }
.footer-title { font-size: 20px; color: var(--indigo); text-decoration: none; grid-column: 1 / -1; }
.site-footer p { font-size: 15px; line-height: 1.6; margin: 0; color: var(--muted); max-width: 46ch; }
.feed-link { align-self: start; margin-top: -8px; }
.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; }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 100000; background: var(--paper); color: var(--ink); padding: 12px 20px; }
.skip-link:focus { top: 12px; }
#main:focus { outline: none; }
#comments { margin-top: 44px; border-top: 1px solid var(--rule); padding-top: 24px; }
.comment-list, .comment-list .children { padding-left: 20px; }
.comment-body { padding-block: 20px; border-bottom: 1px solid var(--rule); }
.comment-meta { font-size: 16px; }
.comment-form label { display: block; margin-bottom: 8px; }
.comment-form input:not([type=checkbox]), .comment-form textarea, .post-password-form input[type=password] { border: 1px solid var(--muted); padding: 12px; background: var(--paper); width: 100%; max-width: 100%; min-height: 44px; border-radius: 3px; }
.comment-form input[type=submit] { width: auto; background: var(--indigo); color: var(--paper); }
.comment-form .comment-form-cookies-consent label { display: inline; }

@media (max-width: 1000px) {
    .site-shell { grid-template-columns: 230px minmax(0, 1fr); padding: 0 24px; column-gap: 28px; margin-block: 28px; }
    .site-header { padding: 28px 22px; }
    .site-title { font-size: 34px; }
}
@media (max-width: 780px) {
    .site-shell { grid-template-columns: minmax(0, 1fr); padding: 0; margin: 0 auto; max-width: 680px; }
    .site-header { grid-column: 1; grid-row: auto; padding: 24px 24px 18px; border-radius: 0 0 24px 0; }
    .site-title { font-size: 35px; max-width: 18ch; }
    .site-byline { margin-top: 16px; font-size: 15px; }
    .site-byline br { display: none; }
    .site-byline strong::before { content: ' '; }
    .primary-nav { margin-top: 12px; }
    .primary-nav ul { flex-direction: row; flex-wrap: wrap; gap: 0 26px; }
    .site-description { margin-top: 12px; max-width: none; font-size: 16px; }
    .journal-layout, .reading-layout, .site-footer { grid-column: 1; }
    main { padding: 30px 24px 36px; }
    .entry-title { font-size: 35px; }
    .article-header h1, .not-found h1 { font-size: 40px; }
    .prose { font-size: 17px; line-height: 1.85; }
    .prose .standfirst { font-size: 19px; }
    .site-footer { padding: 28px 24px; }
    .alignleft, .alignright { float: none; margin: 1.5em 0; }
}
@media (max-width: 380px) {
    .site-title { font-size: 32px; }
    .site-header, main, .site-footer { padding-inline: 20px; }
    .entry-title { font-size: 32px; }
    .article-header h1, .not-found h1 { font-size: 36px; }
    .site-footer { grid-template-columns: minmax(0, 1fr); }
    .post-navigation .nav-links { grid-template-columns: minmax(0, 1fr); }
    .post-navigation .nav-next { grid-column: 1; text-align: left; }
}
/* No animations or smooth scrolling: reduced motion is the default. */
@media print {
    body { background: white; color: black; }
    .site-shell { display: block; margin: 0; padding: 0; }
    .site-header { padding: 0 0 20px; background: none; color: black; }
    .site-title { color: black; font-size: 24pt; max-width: none; }
    .site-byline, .site-byline strong { color: black; }
    .site-description, .primary-nav, .journal-tools, .search-form, .post-navigation, .skip-link, #comments, .back-link { display: none; }
    main, .site-footer { padding: 0; }
    .prose { font-size: 11pt; }
    .prose pre { white-space: pre-wrap; border: 1px solid black; }
    h1, h2, h3 { break-after: avoid; }
    a { color: inherit; }
}
