/*
Theme Name: Kelly's Journal Modern
Theme URI: https://kellyscottage.com/journal/
Author: Organic Designs / modernized with OpenAI
Description: A modern PHP 8+ preservation rebuild of the original 2012 Artisteer art4_journal1 theme. Reuses Kelly's original artwork while replacing the obsolete Artisteer PHP framework.
Version: 0.2.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: kellys-journal-modern
Tags: blog, two-columns, right-sidebar, custom-menu, featured-images, responsive-layout
*/

:root {
  --kj-paper: #f4f0e5;
  --kj-paper-soft: #f4f1e6;
  --kj-page: #f3ecd9;
  --kj-brown: #6b5a4a;
  --kj-brown-dark: #644c3a;
  --kj-text: #796553;
  --kj-aqua: #87c4c4;
  --kj-aqua-hover: #a5cfc3;
  --kj-menu: #d1c1a8;
  --kj-max: 1000px;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  background: var(--kj-page) url('images/page.png') repeat;
  color: var(--kj-text);
  font-family: "Comic Sans MS", Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
a { color: var(--kj-text); text-decoration: none; }
a:hover, a:focus { color: #91aeb6; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: #fff; clip: auto !important; clip-path: none;
  color: #000; display: block; height: auto; left: 5px; padding: 12px;
  top: 5px; width: auto; z-index: 100000;
}

#art-main { width: 100%; min-height: 100vh; padding-top: 1px; }
.art-sheet {
  width: min(var(--kj-max), calc(100% - 20px));
  margin: 0 auto;
  background: rgba(244,240,229,.58);
  border-radius: 10px;
  box-shadow: 0 0 3px 2px rgba(0,0,0,.08);
  overflow: hidden;
}
.art-header {
  height: 394px;
  background-color: #f4f0e5;
  background-image: url('images/object0.png'), url('images/header.jpg');
  background-position: 0 0, 0 0;
  background-repeat: no-repeat;
  background-size: 1000px 394px, cover;
}

.art-nav {
  position: relative;
  padding: 12px 6px 0;
  min-height: 40px;
}
.art-menu-toggle {
  display: none;
  margin: 0 0 8px;
  padding: 7px 12px;
  border: 1px solid #fff;
  border-radius: 8px;
  background: var(--kj-menu);
  color: var(--kj-brown);
  cursor: pointer;
  font-weight: 700;
}
.art-hmenu {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.art-hmenu li { margin: 0; padding: 0; list-style: none; position: relative; }
.art-hmenu > li > a {
  display: block;
  min-height: 28px;
  padding: 5px 17px 4px;
  border-radius: 11px 11px 0 0;
  background: var(--kj-menu) url('images/menuitem.png') repeat-x;
  color: var(--kj-page);
  font-size: 11px;
  font-weight: 700;
  line-height: 19px;
  text-transform: uppercase;
}
.art-hmenu > li.current-menu-item > a,
.art-hmenu > li.current_page_item > a,
.art-hmenu > li.current-menu-ancestor > a {
  background-image: url('images/menuactiveitem.png');
  color: var(--kj-brown);
}
.art-hmenu > li > a:hover,
.art-hmenu > li > a:focus {
  background-image: url('images/menuhovereditem.png');
  color: var(--kj-paper-soft);
}
.art-hmenu .sub-menu {
  display: none;
  position: absolute;
  z-index: 20;
  top: 100%; left: 0;
  min-width: 180px;
  margin: 0; padding: 4px;
  list-style: none;
  background: var(--kj-paper-soft);
  box-shadow: 0 3px 12px rgba(0,0,0,.18);
}
.art-hmenu li:hover > .sub-menu,
.art-hmenu li:focus-within > .sub-menu { display: block; }
.art-hmenu .sub-menu a { display:block; padding:7px 9px; color: var(--kj-brown); }
.art-hmenu .sub-menu a:hover { color: var(--kj-aqua); }

.art-layout-wrapper { padding: 0; }
.art-content-layout-row {
  display: flex;
  align-items: flex-start;
  width: 100%;
}
.art-content {
  flex: 1 1 80%;
  min-width: 0;
  padding: 5px;
}
.art-sidebar1 {
  flex: 0 0 20%;
  width: 20%;
  padding: 0 5px 5px 0;
}

.art-post {
  margin: 0 0 10px;
  padding: 12px;
  background: var(--kj-paper);
  border-radius: 4px;
  box-shadow: 0 0 2px 1px rgba(0,0,0,.15);
}
.art-postheader {
  margin: 0 0 6px;
  color: #695949;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
}
.art-postheader::before {
  content: "";
  display: inline-block;
  width: 16px; height: 16px;
  margin-right: 6px;
  vertical-align: -2px;
  background: url('images/postheadericon.png') center/contain no-repeat;
}
.art-postheader a { color: var(--kj-brown); }
.art-postheader a:hover { color: var(--kj-aqua-hover); }
.art-postmeta,
.art-postfootericons {
  margin: 4px 0 10px;
  color: #8c7967;
  font-size: 12px;
}
.art-postcontent { font-size: 16px; }
.art-postcontent p { margin: 0 0 1em; }
.art-postcontent h1,
.art-postcontent h2,
.art-postcontent h3,
.art-postcontent h4,
.art-postcontent h5,
.art-postcontent h6 {
  margin: .8em 0 .35em;
  color: var(--kj-brown-dark);
  font-family: "Comic Sans MS", Tahoma, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.25;
}
.art-postcontent h1 { font-size: 23px; }
.art-postcontent h2 { font-size: 22px; }
.art-postcontent h3 { font-size: 20px; }
.art-postcontent blockquote {
  margin: 1em 0;
  padding: 16px 16px 16px 54px;
  background: var(--kj-paper-soft) url('images/postquote.png') 14px 14px no-repeat;
}
.art-postcontent ul { list-style-image: url('images/postbullets.png'); }
.art-postcontent table { max-width:100%; border-collapse: collapse; }
.art-postcontent th, .art-postcontent td { padding: 5px; border: 1px solid #d8cdbd; }

.art-block,
.widget {
  margin: 5px 0 10px;
  padding-bottom: 5px;
  background: var(--kj-paper-soft);
  border-radius: 2px;
  box-shadow: 1px 1px 2px 1px rgba(0,0,0,.20);
  overflow: hidden;
}
.art-blockheader,
.widget-title {
  margin: 0 0 7px;
  padding: 9px 10px;
  background: var(--kj-paper) url('images/blockheader.png') repeat-x;
  color: #786554;
  font-size: 14px;
  font-weight: 700;
}
.widget > :not(.widget-title):not(form),
.widget > form,
.widget > ul,
.widget > ol,
.widget > div { margin-left: 10px; margin-right: 10px; }
.widget ul, .widget ol { padding-left: 18px; }
.widget li { margin: 2px 0; }
.widget a { font-size: 13px; letter-spacing: .5px; }
.widget a:hover { color: var(--kj-aqua); }
.widget_search form { padding: 0 0 8px; }
.widget_search input[type="search"] { width: 100%; max-width: 100%; }

.navigation, .nav-links { text-align: center; margin: 12px 0; }
.nav-links { display:flex; justify-content:space-between; gap:15px; }
.page-numbers { padding: 3px 6px; }

.art-footer {
  position: relative;
  margin: 0 auto;
  padding: 10px;
  color: var(--kj-menu);
  font-family: "Palatino Linotype", Georgia, "Times New Roman", serif;
  font-size: 11px;
  letter-spacing: 3px;
  text-align: center;
}
.art-footer a { color: #eee9d7; }
.art-page-footer {
  margin: 6px auto 14px;
  color: #8c7c68;
  font: 10px Tahoma, Arial, sans-serif;
  text-align: center;
}
.art-page-footer a { color: #8c7c68; text-decoration: underline; }

.comment-list { list-style:none; padding:0; }
.comment-body { margin: 0 0 12px; padding:10px; background:rgba(255,255,255,.35); }
.comment-meta { font-size:12px; }
.comment-form textarea { width:100%; }

.wp-caption { max-width: 100%; }
.alignleft { float:left; margin:0 15px 10px 0; }
.alignright { float:right; margin:0 0 10px 15px; }
.aligncenter { display:block; margin-left:auto; margin-right:auto; }

@media (max-width: 1000px) {
  .art-sheet { width: calc(100% - 12px); }
  .art-header {
    height: auto;
    aspect-ratio: 1000 / 394;
    background-size: 100% 100%, 100% 100%;
  }
}
@media (max-width: 760px) {
  .art-menu-toggle { display: inline-block; }
  .art-hmenu { display:none; flex-direction:column; align-items:stretch; }
  .art-hmenu.is-open { display:flex; }
  .art-hmenu > li > a { border-radius: 7px; }
  .art-hmenu .sub-menu { position:static; display:block; box-shadow:none; margin-left:12px; }
  .art-content-layout-row { display:block; }
  .art-content, .art-sidebar1 { width:100%; padding:5px; }
  .art-sidebar1 { max-width:none; }
}

/* v0.2 legacy Artisteer compatibility */
.art-header-widgets {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}
.art-header-widgets .widget {
  pointer-events: auto;
}
.art-top-widget-areas,
.art-bottom-widget-areas {
  padding: 0 5px;
}
.art-footer-widget-areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  text-align: left;
}
.art-footer-widget-areas .widget {
  box-shadow: none;
  background: transparent;
}
.art-footer-widget-areas .widget-title {
  background: transparent;
}
ul.art-vmenu {
  margin: 0;
  padding: 0 5px 8px;
  list-style: none;
}
ul.art-vmenu li {
  margin: 0;
  padding: 0;
  list-style: none;
}
ul.art-vmenu a {
  display: block;
  padding: 6px 10px;
  color: #796553;
  text-decoration: none;
}
ul.art-vmenu a:hover,
ul.art-vmenu .current_page_item > a,
ul.art-vmenu .current-menu-item > a {
  color: #87c4c4;
}
.art-rss-tag-icon {
  position: absolute;
  bottom: 10px;
  left: 6px;
  width: 38px;
  height: 34px;
  background: url('images/footerrssicon.png') no-repeat left center;
}
@media (max-width: 760px) {
  .art-footer-widget-areas { grid-template-columns: 1fr; }
}
