/*
Theme Name: S.N. Monograph
Author: Sarah N. Brekke
Description: A sleek monochrome journal with a varied editorial image grid, fine typography, and optional widget sidebars that collapse when empty.
Version: 1.0.3
Update URI: false
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: monograph
Tags: blog, grid-layout, one-column, two-columns, right-sidebar, custom-header, custom-logo, custom-menu, custom-colors, featured-images, threaded-comments, translation-ready, wide-blocks
*/

/* Theme variables remain overridable through native Additional CSS. */
:root {
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-heading: Baskerville, "Times New Roman", serif;
  --font-masthead: var(--font-body);
  --paper: #fff;
  --ink: #202020;
  --muted: #555;
  --body-size: 17px;
  --title-size: 30px;
  --lead-size: 44px;
  --masthead-size: 34px;
  --site-width: 1320px;
  --reading-width: 700px;
  --margin-width: 260px;
  --header-height: 180px;
  --image-height: 250px;
  --grid-gap: 28px;
  --sidebar-gap: 56px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--body-size)/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
a:hover {
  text-decoration: underline;
}
img {
  max-width: 100%;
  height: auto;
}
svg {
  display: block;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
input[type="submit"],
.wp-block-button__link {
  cursor: pointer;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 0.6em 1.1em;
  border-radius: 0;
  font-size: 13px;
}
button:hover,
input[type="submit"]:hover {
  opacity: 0.85;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
textarea,
select {
  border: 1px solid #ccc;
  background: var(--paper);
  padding: 0.6em 0.75em;
  border-radius: 0;
  max-width: 100%;
  min-width: 0;
}
textarea {
  width: 100%;
  resize: vertical;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  padding: 0;
  margin: -1px;
  border: 0;
  white-space: nowrap;
}
.skip-link:focus {
  clip-path: none;
  width: auto;
  height: auto;
  top: 12px;
  left: 12px;
  padding: 12px;
  background: var(--paper);
  z-index: 100;
}
.site-shell {
  width: min(calc(100% - 96px), var(--site-width));
  margin: 0 auto;
  padding-top: 32px;
}
.site-header {
  margin-bottom: 38px;
}
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}
.site-branding {
  min-width: 0;
  max-width: 65%;
}
.site-title {
  margin: 0;
  font: 300 var(--masthead-size)/1.1 var(--font-masthead);
  letter-spacing: -0.055em;
  overflow-wrap: anywhere;
}
.site-title a {
  text-decoration: none;
}
.site-description {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.12em;
}
.custom-logo {
  display: block;
  width: auto;
  max-height: 90px;
}
.custom-logo-link {
  display: inline-block;
}
.header-image-link {
  display: block;
  margin-bottom: 24px;
}
.header-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: var(--header-height);
  margin: auto;
  object-fit: contain;
}
:where(.header-fit-cover) .header-image {
  width: 100%;
  height: var(--header-height);
  object-fit: cover;
}
.image-mode-home {
  font-size: 15px;
  text-decoration: none;
}
.nav-row {
  display: flex;
  align-items: center;
  gap: 28px;
  position: relative;
  flex-shrink: 0;
}
.menu-toggle {
  display: none;
}
.menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
}
.menu li {
  position: relative;
}
.menu a {
  display: block;
  text-decoration: none;
  padding: 5px 0;
}
.menu a:hover,
.menu :where(.current-menu-item, .current_page_item) > a {
  text-decoration: underline;
}
.menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  padding: 12px 18px;
  margin: 0;
  list-style: none;
  background: var(--paper);
  border: 1px solid #ddd;
  z-index: 20;
}
.menu .sub-menu .sub-menu {
  left: 100%;
  top: 0;
}
.menu li:hover > .sub-menu,
.menu li:focus-within > .sub-menu {
  display: block;
}
.menu .sub-menu li {
  padding: 3px 0;
}
.header-search summary {
  cursor: pointer;
  list-style: none;
}
.header-search summary::-webkit-details-marker {
  display: none;
}
.search-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(380px, calc(100vw - 48px));
  padding: 20px;
  background: var(--paper);
  border: 1px solid #ddd;
  z-index: 30;
}
.search-form {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.search-form label {
  flex: 1;
  min-width: 0;
}
.search-field {
  width: 100%;
  font-size: 14px;
}
.search-submit {
  flex-shrink: 0;
}

/* Four tracks, with a repeating 2/1/1 then 1/2/1 article pattern. */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px var(--grid-gap);
  align-items: start;
}
.journal-card {
  min-width: 0;
  overflow-wrap: anywhere;
}
.journal-card:nth-child(6n + 1),
.journal-card:nth-child(6n + 5) {
  grid-column: span 2;
}
.card-image {
  display: block;
  text-decoration: none;
  overflow: hidden;
  margin-bottom: 14px;
}
.card-image img {
  display: block;
  width: 100%;
  height: var(--image-height);
  object-fit: cover;
}
:where(.grayscale-featured)
  :where(.card-image, .featured-image, .archive-thumbnail)
  img {
  filter: grayscale(1);
}
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.entry-meta a {
  text-decoration: none;
}
.entry-meta a:hover {
  text-decoration: underline;
}
.card-title {
  margin: 7px 0 8px;
  font: 400 var(--title-size)/1.1 var(--font-heading);
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}
.card-title a {
  text-decoration: none;
}
.card-title a:hover {
  text-decoration: underline;
}
.card-excerpt {
  margin: 0 0 15px;
  font-size: 14px;
  line-height: 1.6;
}
.card-copy {
  min-width: 0;
}
.journal-card.text-only {
  padding-top: 20px;
  border-top: 1px solid #d7d7d7;
}
.journal-card.text-only .card-copy {
  max-width: 52ch;
}
.read-more {
  display: inline-block;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.1em;
  font-size: 12px;
  line-height: 1.7;
}
.entry-pinned {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 8px 0;
}
.feed-location {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 28px;
}
.feed-location a {
  text-decoration: none;
}
.currently {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid #ccc;
}
.currently h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
}
.currently dl {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
  margin: 0;
}
.currently dl > div {
  flex: 1 1 160px;
  min-width: 0;
  text-align: center;
  padding: 0 14px;
}
.currently dl > div + div {
  border-left: 1px solid #ddd;
}
.currently dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.currently dd {
  margin: 5px 0 0;
  font: 400 18px/1.4 var(--font-heading);
  overflow-wrap: anywhere;
}
.pagination {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 16px;
  align-items: start;
  margin: 30px 0 0;
  font-size: 12px;
}
.pagination a {
  text-decoration: none;
}
.pagination a:hover {
  text-decoration: underline;
}
.pagination-older {
  text-align: right;
}
.pagination-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.pagination-numbers .current {
  border-bottom: 1px solid var(--ink);
}
.pagination-position {
  flex-basis: 100%;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

/* The wrapper and all article elements center together when there is no sidebar. */
.article-layout {
  width: 100%;
  margin: 0 auto;
}
.article-layout.without-aside {
  max-width: var(--reading-width);
}
.article-layout.has-aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--margin-width);
  gap: var(--sidebar-gap);
  align-items: start;
  max-width: calc(
    var(--reading-width) + var(--margin-width) + var(--sidebar-gap)
  );
}
.single-entry,
.page-entry {
  min-width: 0;
  width: 100%;
}
.entry-header {
  margin-bottom: 20px;
}
.entry-title,
.page-title {
  font: 400 clamp(30px, 3.2vw, var(--lead-size))/1.12 var(--font-heading);
  letter-spacing: -0.035em;
  margin: 7px 0 0;
  overflow-wrap: anywhere;
}
.page-entry .entry-title {
  margin-top: 0;
}
.featured-image {
  margin: 0 0 22px;
}
.featured-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
}
.single-entry > .featured-image img {
  aspect-ratio: 7 / 3;
  max-height: none;
  object-fit: cover;
}
:where(.single-image-whole) .single-entry > .featured-image img {
  aspect-ratio: auto;
  max-height: 400px;
  object-fit: contain;
}
.featured-image figcaption {
  color: var(--muted);
  font-size: 12px;
  margin-top: 7px;
}
.entry-content {
  min-width: 0;
  overflow-wrap: anywhere;
}
.entry-content > :first-child {
  margin-top: 0;
}
.entry-content p {
  margin: 0 0 1.1em;
}
.entry-content > :last-child {
  margin-bottom: 0;
}
.entry-content :where(h2, h3, h4, h5, h6) {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin: 1.25em 0 0.5em;
}
.entry-content h2 {
  font-size: 30px;
}
.entry-content h3 {
  font-size: 25px;
}
.entry-content blockquote {
  margin: 25px 0;
  padding: 4px 0 4px 18px;
  border-left: 2px solid #aaa;
  color: var(--muted);
}
.entry-content blockquote p {
  margin: 0;
}
.entry-content :where(pre, .wp-block-table) {
  overflow: auto;
  max-width: 100%;
}
.entry-content pre {
  font-size: 13px;
  background: #f5f5f5;
  padding: 15px;
}
.entry-content code {
  font-size: max(12px, 0.85em);
}
.entry-content table {
  border-collapse: collapse;
  max-width: 100%;
}
.entry-content :where(th, td) {
  border: 1px solid #ddd;
  padding: 8px;
}
.entry-content :where(iframe, video, embed, object) {
  max-width: 100%;
}
.entry-content figure {
  max-width: 100%;
}
.entry-content figcaption,
.wp-caption-text {
  font-size: 12px;
  color: var(--muted);
}
.entry-content .alignwide {
  width: 100%;
}
.entry-content .alignfull {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}
.alignleft {
  float: left;
  margin: 0 22px 15px 0;
}
.alignright {
  float: right;
  margin: 0 0 15px 22px;
}
.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.entry-content::after {
  content: "";
  display: block;
  clear: both;
}
.wp-caption {
  max-width: 100%;
}
.gallery {
  display: grid;
  gap: 16px;
}
.gallery-item {
  margin: 0;
  min-width: 0;
}
.gallery-columns-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.gallery-columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.gallery:where(
  .gallery-columns-4,
  .gallery-columns-5,
  .gallery-columns-6,
  .gallery-columns-7,
  .gallery-columns-8,
  .gallery-columns-9
) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.entry-footer {
  color: var(--muted);
  font-size: 12px;
  margin-top: 22px;
}
.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  margin-top: 24px;
}
.entry-share {
  border-top: 1px solid #ddd;
  padding-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  font-size: 12px;
}
.entry-share button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: inherit;
}
.entry-share button:hover {
  text-decoration: underline;
  opacity: 1;
}
.share-status {
  flex-basis: 100%;
  font-size: 12px;
}
.share-status:empty {
  display: none;
}
.share-status input {
  width: 100%;
}
.post-navigation {
  border-bottom: 1px solid #ddd;
  padding: 22px 0;
  margin-bottom: 22px;
}
.post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.post-navigation a {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.nav-next {
  text-align: right;
  grid-column: 2;
}
.nav-label {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 6px;
}
.article-aside,
.archive-margin {
  min-width: 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.widget {
  margin: 0 0 28px;
}
.widget + .widget {
  padding-top: 22px;
  border-top: 1px solid #ddd;
}
.widget-title,
.widget .wp-block-heading {
  font: 400 22px/1.25 var(--font-heading);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.widget p {
  margin: 0 0 12px;
}
.widget ul,
.widget ol {
  padding: 0;
  margin: 0;
  list-style: none;
}
.widget li {
  margin: 7px 0;
}
.widget li ul {
  padding-left: 15px;
}
.widget a {
  text-decoration: none;
}
.widget a:hover {
  text-decoration: underline;
}
.widget :where(table, .wp-calendar-table) {
  width: 100%;
  font-size: 12px;
}
.widget img {
  height: auto;
}
.page-template-page-full-width .article-layout.without-aside {
  max-width: 100%;
}
/* Quiet editorial conversation, with bounded fields and reply threads. */
.comments-area {
  margin-top: 32px;
  padding-top: 0;
  border-top: 0;
  font-size: 14px;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.comments-area :where(h2, h3) {
  font: 400 30px/1.2 var(--font-heading);
  letter-spacing: -0.025em;
  margin: 0 0 24px;
}
.comment-list,
.comment-list .children {
  list-style: none;
  padding: 0;
  margin: 0;
}
.comment-list {
  margin-bottom: 36px;
}
.comment-list .children {
  margin-left: 20px;
  padding-left: 20px;
  border-left: 1px solid #ddd;
}
.comment-list .children .children {
  margin-left: 0;
  padding-left: 12px;
}
.comment-body {
  position: relative;
  padding: 26px;
  margin-bottom: 24px;
  background: #f5f5f5;
  min-width: 0;
}
.comment-body:has(.avatar) {
  margin-left: 56px;
}
.comments-title {
  padding-bottom: 22px;
  border-bottom: 1px solid #ddd;
}

.comment-meta {
  font-size: 12px;
  min-height: 0;
}
.comment-author {
  font-size: 14px;
}
.comment-author .fn {
  font-weight: 600;
}
.comment-author .says {
  display: none;
}
.comment-author .avatar {
  position: absolute;
  top: 0;
  left: -56px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0;
}
.bypostauthor > .comment-body .comment-author .fn {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.comment-metadata {
  color: var(--muted);
  font-size: 12px;
  margin: 4px 0 14px;
}
.comment-metadata a {
  text-decoration: none;
}
.comment-metadata a:hover {
  text-decoration: underline;
}
.comment-content {
  clear: both;
}
.comment-content p {
  margin: 12px 0;
}
.comment-content pre {
  max-width: 100%;
  overflow: auto;
  padding: 12px;
  background: #f5f5f5;
}
.comment-content :where(img, iframe) {
  max-width: 100%;
}
.comment-content :where(ul, ol) {
  padding-left: 22px;
}
.comment-awaiting-moderation {
  padding: 10px 12px;
  border-left: 2px solid var(--ink);
  font-size: 12px;
}
.reply {
  margin-top: 14px;
  font-size: 12px;
}
.comment-reply-link {
  display: inline-block;
  padding: 4px 0;
  border: 0;
  text-decoration: underline;
}
.comment-reply-link:hover {
  border-color: var(--ink);
}
.comment-respond {
  margin-top: 36px;
  padding: 28px 0 0;
  border: 0;
  border-top: 1px solid var(--ink);
  min-width: 0;
  width: 100%;
  max-width: 100%;
}
.comment-reply-title small {
  display: block;
  margin-top: 12px;
}
#cancel-comment-reply-link {
  font: 400 12px/1.5 var(--font-body);
  letter-spacing: normal;
}
.comment-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  min-width: 0;
  max-width: 100%;
}
.comment-form > * {
  grid-column: 1 / -1;
  min-width: 0;
  max-width: 100%;
}
.comment-form > :where(.comment-form-author, .comment-form-email) {
  grid-column: auto;
}
/* Embedded comment forms are a single full-width field, not half a grid row. */
.comment-form,
.comment-respond .jetpack_remote_comment {
  width: 100%;
}
.comment-respond iframe.jetpack_remote_comment,
.comment-respond iframe[src*="jetpack.wordpress.com"] {
  display: block;
  grid-column: 1 / -1;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
}

.comment-form > p {
  margin: 0;
}
.comment-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}
.comment-form
  :where(input:not([type="checkbox"]):not([type="submit"]), textarea) {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 12px;
  background: transparent;
  border: 1px solid #bbb;
  font-size: 14px;
}
.comment-form :where(input, textarea):focus-visible,
.comments-area a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.comment-form
  :where(
    .comment-notes,
    .logged-in-as,
    .comment-form-comment,
    .comment-form-url,
    .comment-form-cookies-consent,
    .form-submit
  ) {
  grid-column: 1 / -1;
}
.comment-form :where(.comment-notes, .logged-in-as) {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
}
.comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.comment-form-cookies-consent input {
  flex: 0 0 auto;
  margin: 4px 0 0;
}
.comment-form-cookies-consent label {
  font-weight: 400;
  margin: 0;
}
.comment-form textarea {
  min-height: 180px;
  resize: vertical;
}
.comment-form .submit {
  padding: 12px 22px;
  min-height: 44px;
}
.comments-navigation {
  font-size: 12px;
  margin: 20px 0;
}
.comments-navigation .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}
.comments-closed {
  color: var(--muted);
  font-size: 12px;
}
@media (max-width: 600px) {
  .comment-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .comment-list .children {
    margin-left: 8px;
    padding-left: 12px;
  }
  .comment-list .children .children {
    padding-left: 6px;
  }
  .comment-respond {
    padding: 24px 0 0;
  }
  .comment-body {
    padding: 18px;
  }
  .comment-body:has(.avatar) {
    margin-left: 40px;
  }
  .comment-author .avatar {
    left: -40px;
    width: 30px;
    height: 30px;
  }
}

/* Compact chronological archives share the same sidebar rules as articles. */
.archive-heading {
  margin: 0 auto 32px;
  max-width: 1000px;
}
.archive-heading .search-form {
  max-width: 440px;
  margin-top: 20px;
}
.archive-introduction {
  font-size: 14px;
  margin-top: 16px;
}
.archive-layout {
  max-width: 1000px;
  margin: 0 auto;
}
.archive-layout.has-aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--margin-width);
  gap: 44px;
  max-width: 1200px;
  align-items: start;
}
.archive-list {
  min-width: 0;
}
.archive-year {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 35px;
}
.archive-year > h2 {
  font: 400 32px/1.2 var(--font-heading);
  margin: 0;
}
.archive-year-content {
  min-width: 0;
}
.archive-month {
  font: 400 23px/1.2 var(--font-heading);
  margin: 0 0 18px;
}
.archive-month:not(:first-child) {
  margin-top: 28px;
}
.archive-entry {
  display: flex;
  gap: 20px;
  align-items: start;
  margin-bottom: 22px;
  overflow-wrap: anywhere;
}
.archive-date {
  flex: 0 0 90px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.archive-date span,
.archive-date time {
  display: block;
  margin-bottom: 5px;
}
.archive-date a {
  text-decoration: none;
}
.archive-copy {
  flex: 1;
  min-width: 0;
}
.archive-copy h4 {
  font: 400 24px/1.15 var(--font-heading);
  margin: 0 0 8px;
}
.archive-copy h4 a {
  text-decoration: none;
}
.archive-copy p {
  font-size: 12px;
  line-height: 1.55;
  margin: 0;
}
.archive-thumbnail {
  flex: 0 0 64px;
}
.archive-thumbnail img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: cover;
}
.search-results-list,
.no-results,
.not-found {
  max-width: 800px;
  margin: 0 auto;
}
.search-entry {
  padding: 20px 0;
  border-bottom: 1px solid #ddd;
  overflow-wrap: anywhere;
}
.search-entry .entry-title {
  font-size: 30px;
}
.search-entry .entry-content {
  font-size: 14px;
}
.search-entry .entry-header {
  margin-bottom: 12px;
}
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 100;
  background: transparent;
}
.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--ink);
}
.admin-bar .reading-progress {
  top: 32px;
}
.site-footer {
  margin-top: 48px;
  padding: 18px 0 22px;
  border-top: 1px solid #ccc;
  font-size: 12px;
}
.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 28px;
}
.footer-top,
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 24px;
}
.footer-brand {
  font: 400 18px/1.2 var(--font-masthead);
  text-decoration: none;
}
.footer-menu {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-menu a,
.footer-bottom a {
  text-decoration: none;
}
.footer-bottom {
  color: var(--muted);
  margin-top: 12px;
}
.footer-bottom p {
  margin: 0;
}
@media (max-width: 1050px) {
  .site-shell {
    width: calc(100% - 64px);
  }
  :root {
    --sidebar-gap: 32px;
    --grid-gap: 22px;
  }
  .article-layout.has-aside {
    grid-template-columns: minmax(0, 1fr) min(28%, var(--margin-width));
  }
  .card-title {
    font-size: min(var(--title-size), 28px);
  }
  .archive-layout.has-aside {
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: 28px;
  }
}
@media (max-width: 850px) {
  .journal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .journal-card:nth-child(6n + 1),
  .journal-card:nth-child(6n + 5) {
    grid-column: auto;
  }
  .card-image img {
    height: min(var(--image-height), 260px);
  }
  .site-description {
    letter-spacing: 0.04em;
  }
  .nav-row {
    gap: 18px;
  }
  .menu {
    gap: 18px;
  }
  .archive-year {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .archive-date {
    flex-basis: 75px;
  }
}
@media (max-width: 700px) {
  .site-shell {
    width: calc(100% - 40px);
    padding-top: 24px;
  }
  .site-header {
    margin-bottom: 30px;
  }
  .header-row {
    gap: 18px;
    align-items: flex-start;
  }
  .site-branding {
    max-width: calc(100% - 85px);
  }
  .site-title {
    font-size: min(var(--masthead-size), 29px);
  }
  .site-description {
    font-size: 12px;
  }
  .nav-row {
    gap: 14px;
  }
  .menu-toggle {
    display: inline-block;
    padding: 0;
    font-size: 12px;
    border: 0;
    background: none;
    color: var(--ink);
  }
  .js .primary-navigation #primary-menu-wrap {
    display: none;
  }
  .js .primary-navigation.is-open #primary-menu-wrap {
    display: block;
  }
  #primary-menu-wrap {
    position: absolute;
    right: 0;
    top: calc(100% + 16px);
    width: 230px;
    background: var(--paper);
    border: 1px solid #ddd;
    padding: 18px;
    z-index: 20;
  }
  .menu {
    display: block;
  }
  .menu li {
    margin-bottom: 8px;
  }
  .menu .sub-menu,
  .menu .sub-menu .sub-menu {
    display: block;
    position: static;
    padding: 4px 0 0 14px;
    border: 0;
    min-width: 0;
  }
  .header-search svg {
    width: 18px;
    height: 18px;
  }
  .article-layout.has-aside,
  .archive-layout.has-aside {
    display: block;
  }
  .article-layout {
    max-width: var(--reading-width);
  }
  .article-aside,
  .archive-margin {
    margin-top: 36px;
  }
  .currently dl {
    gap: 16px;
  }
  .currently dl > div {
    border-left: 0;
    padding: 0;
  }
  .entry-title,
  .page-title {
    font-size: min(var(--lead-size), 36px);
  }
  .footer-top,
  .footer-bottom {
    flex-wrap: wrap;
  }
  .admin-bar .reading-progress {
    top: 46px;
  }
}
@media (max-width: 480px) {
  .site-shell {
    width: calc(100% - 32px);
  }
  .journal-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .card-image img {
    height: auto;
    aspect-ratio: 4 / 3;
  }
  .card-title {
    font-size: var(--title-size);
  }
  .card-excerpt {
    font-size: 14px;
  }
  .currently dl {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .pagination {
    grid-template-columns: 1fr 1fr;
  }
  .pagination-numbers {
    grid-row: 2;
    grid-column: 1 / -1;
  }
  .pagination-older {
    grid-row: 1;
    grid-column: 2;
  }
  .archive-entry {
    flex-wrap: wrap;
    gap: 10px;
  }
  .archive-date {
    flex-basis: 100%;
  }
  .archive-date span,
  .archive-date time {
    display: inline-block;
    margin-right: 10px;
  }
  .archive-copy h4 {
    font-size: 23px;
  }
  .comment-form {
    display: block;
  }
  .comment-form > p {
    margin-bottom: 12px;
  }
  .post-navigation .nav-links {
    gap: 18px;
  }
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .alignleft,
  .alignright {
    float: none;
    margin-left: 0;
    margin-right: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  body {
    font-size: 12pt;
    background: #fff;
    color: #000;
  }
  .site-shell {
    width: 100%;
    padding: 0;
  }
  .article-layout.has-aside {
    display: block;
  }
  .nav-row,
  .article-aside,
  .archive-margin,
  .entry-share,
  .comments-area,
  .site-footer,
  .reading-progress {
    display: none;
  }
  .journal-grid {
    grid-template-columns: 1fr 1fr;
  }
  .journal-card:nth-child(n) {
    grid-column: auto;
  }
}

:where(
    .has-widget-sidebar.archive,
    .has-widget-sidebar.page-template-page-journal-archive
  )
  .archive-heading {
  max-width: 1200px;
}
