/*
Theme Name: Oblomovka
Theme URI: http://www.oblomovka.com/
Description: Theme for Oblomovka site
Version: 0.1
Author: Danny O'Brien
Author URI: http://www.spesh.com/danny/
Tags: green, two columns, widgets

	Oblomovka
	 http://www.oblomovka.com/public/oblomovka/wp_theme/

	This theme was designed and built by Danny O'Brien
	whose blog you will find at http://www.oblomovka.com/

	The CSS, XHTML and design is released under GPL:
	http://www.opensource.org/licenses/gpl-license.php

*/

/* RESET */

/* BEGIN OBLOMOVKA */

/* TYPE: Charter everywhere for text and headings, served from the theme so
   every reader gets it (Bitstream's free release; see fonts/charter-license.txt),
   and the system sans for the sidebar and search box. */

@font-face { font-family: "Charter Web"; src: url(fonts/charter_regular.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Charter Web"; src: url(fonts/charter_italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Charter Web"; src: url(fonts/charter_bold.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Charter Web"; src: url(fonts/charter_bold_italic.woff2) format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }

:root {
  --serif: "Charter Web", Charter, 'Bitstream Charter', 'Sitka Text', Cambria, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --link: #0b4f8a;   /* 5:1 on the content green; the old #196ec4 was 3.1:1 */
}

/* GENERAL */

body {
  margin: 0;
  padding: 0;
  background: #a8c0a8;
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.55;
  font-kerning: normal;
  color: #000000;
 
}

p {
  margin-block-start: 0.5em;
  }

hr {
  width: 10%;
  border: thin outset;
}

.hooray {
  display: none;
}

:link {
    color: var(--link);
}

a {
    text-decoration: underline;
    text-decoration-color: rgba(11, 79, 138, 0.3);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover {
    text-decoration-color: currentColor;
}

input {
  background-color: #d5e5d5; 
  font-size: 0.8rem;
  border: 1px solid #b0c0b0;
  border-radius: 3px;
  padding: 4px;
  width: 90%; /* Set the width to 100% to fit within its parent container */
  box-sizing: border-box; /* Include padding and border in the element's total width */
  margin: 0; /* Remove any margin that might cause overflow */
}

/* CORNERPIC */

img.cornerpic {
  width: 160px;
  border: 3px double black;
}

/* TOPBOX */

#topbox {
  background: #a8c0a8;
  height: 166px;
  margin-top: 0;
  white-space: nowrap;
  color: #cce5cc;
}

#topbox h1 {
  display: inline;
  vertical-align: bottom;
  font-size: 5.5rem;
  font-family: var(--serif);
  letter-spacing: -0.01em;
  -webkit-text-stroke: 0.03em currentColor;   /* Charter stops at Bold; this thickens it */
  text-transform: lowercase;
}

#searchformspan {
  display: inline;
  text-align: right;
  vertical-align: bottom;
  font-family: var(--sans);
  font-size: 0.8rem;
  width: 141px;
}


/* SIDEBAR */

#sidebar {
  float: left;
  margin-left: 10px;
  width: 146px;
  background-color: #a8c0a8;
  padding: 1px 5px 10px;
}

#sidebar *  {
  font-family: var(--sans);
  font-size: 0.875rem;
  margin: 0;
  padding-left: 5px;
  padding-right: 5px;
}

#sidebar h3 {
  margin-top: 10px;
}

/* CONTENT */


#content {
  float: left;
  padding: 1px 2em 10px;
  margin-right: 1px;
  background-color: #b6ceb6;
  width: 75%;
  max-width: 37em; /* about 70 characters a line */
  margin-left: auto; /* Center the content */
  margin-right: auto; /* Center the content */
}
#fore {
  font-weight: bold;
}

.quote,
.adbox {
  font: normal x-small var(--serif);
  border: 1px solid #c0d0c0;
  background: #a8c0a8;
  padding: 5px;
}

.links {
  clear: right;
  float: right;
  font: normal x-small var(--serif);
  border: 1px solid #000000;
  background: #a8c0a8;
  padding: 5px;
  margin-bottom: 1em;
  width: 121px;
}

.oblinkinfo {
    text-align: center;
    margin: -5px;
    margin-top: 0px;
    border-top: thin solid #102010;

    background: #90a090;
}


.picture {
  border: thin double #c0d0c0;
  border-width: 3px;
  background: #a0b0a0;
  padding: 0px;
  float: left;
  margin: 10px;
  margin-top: 1.2em;
  margin-left: 2px;
  font-size: 0.8rem;
  font-style: italic;
  text-align: center;
  }

.footnote {
  margin-left: 10%;
  margin-right: 10%;
  font-size: 0.8rem;
}

.postmetadata {
  font-size: 0.8rem;
}


.search {
  background-color: yellow;
}

.date {
}

.permalink {
  text-decoration: none;
  color: #049;
}

.permalink:hover {
  text-decoration: underline;
  }

h1, h2, h3 {
  font-family: var(--serif);
  text-wrap: balance;
  color: #000000;
  margin-top: 1em;
  margin-bottom: 0.2em;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
  font-weight: bold;
}

h2 {
  font-size: 2.1rem;
  font-weight: bold;
  border-bottom: 2px solid #405050;
  padding-bottom: 6px;
  letter-spacing: -0.01em;
}

/* A post's title on its own page: lower case, like the titles on the front page */
.post-title {
  text-transform: lowercase;
}

h3 {
  font-size: 1.5rem;
  font-weight: bold;
}

.title {
  font-size: 2rem;
  font-weight: bold;
  text-transform: lowercase;
  margin-bottom: 1em;
  display: block;
  line-height: 1.2;
  text-wrap: wrap;   /* balance goes wrong beside the floated search box */
} 
.title {
  font-size: 2rem;
  font-weight: bold;
  text-transform: lowercase ;
}



#bigbar .quote P {
  color: #c0d0c0;
  margin: 10px;
  width: 80;
  font: normal x-small var(--serif);
  margin-left: 0px;
  }

#content .quote P {
  float: right;
  font: normal x-small var(--serif);
  width: 121px;
  background: #a0b0a0;
  }

#content .adbox P {
  float: right;
  font: normal x-small var(--serif);
  width: 120px;
  background: #a0b0a0;
  padding: 5px;
  margin: 10px;
  margin-left: 10px;
  margin-right: 10px;
  }


#content BLOCKQUOTE {
  font-size: 0.95em;   /* upright: long passages of italic are tiring */
  color: #1c2e1e;
  padding-left: 0.9em;
  border-left: 3px solid #7d9c7e;
}

/* Subheadings inside a post: lower case like the titles, a step down in size */
#content .wp-block-heading {
  font-size: 1.35rem;
  text-transform: lowercase;
  margin-top: 1.6em;
}

/* No one-word last lines; quotes hang into the margin where supported */
#content p, #content li {
  text-wrap: pretty;
  hanging-punctuation: first;
}

.urlsummary {
    padding-left: 10%;
    padding-right: 10%;
  }
.urlsummary CITE {
  font-size: 0.7rem;
  font-variant: small-caps;
}



/* BEGIN WORDPRESS 

/* Begin Typography & Colors */





/* Begin Lists

	Special stylized non-IE bullets
	Do not work in Internet Explorer, which merely default to normal bullets. */

html>body .entry ul {
	margin-left: 0px;
	padding: 0 0 0 30px;
	list-style: none;
	padding-left: 10px;
	text-indent: -10px;
	}

html>body .entry li {
	margin: 7px 0 8px 10px;
	}

.entry ul li:before, #sidebar ul ul li:before {
	content: "\00BB \0020";
	}

.entry ol {
	padding: 0 0 0 35px;
	margin: 0;
	}

.entry ol li {
	margin: 0;
	padding: 0;
	}

.postmetadata ul, .postmetadata li {
	display: inline;
	list-style-type: none;
	list-style-image: none;
	}

#sidebar ul, #sidebar ul ol {
	margin: 0;
	padding: 0;
    list-style-type: none;
	list-style-image: none;
	}

#sidebar ul li {
	list-style-type: none;
	list-style-image: none;
	}

#sidebar ul p, #sidebar ul select {
	}

#sidebar ul ul, #sidebar ul ol {
	}

#sidebar ul ul ul, #sidebar ul ol {
	}

ol li, #sidebar ul ol li {
	list-style: decimal outside;
	}

#sidebar ul ul li, #sidebar ul ol li {
	padding: 0;
	}
/* End Entry Lists */



/* Begin Form Elements */
#searchform {
  display: inline;
  text-align: center;
  padding: 0px;
  float: right;
  width: 131px;
  font: normal x-small var(--sans);
  border: thin solid #000000;
  border-width: 1px;
  background:  #aebeae;
  margin-bottom: 1em;
	}


#searchsubmit {
	padding: 0px;
	}

.entry form { /* This is mainly for password protected posts, makes them look better. */
	text-align:center;
	}

select {
	width: 130px;
	}

#commentform input {
	width: 170px;
	padding: 2px;
	margin: 5px 5px 1px 0;
	}

#commentform textarea {
	width: 100%;
	padding: 2px;
	}

#commentform #submit {
	margin: 0;
	float: right;
	}
/* End Form Elements */



/* Begin Comments*/
.alt {
	margin: 0;
	padding: 10px;
	}

.commentlist {
	padding: 0;
	text-align: justify;
	}

.commentlist li {
	margin: 15px 0 3px;
	padding: 5px 10px 3px;
	list-style: none;
	}

.commentlist p {
	margin: 10px 5px 10px 0;
	}

#commentform p {
	margin: 5px 0;
	}

.nocomments {
	text-align: center;
	margin: 0;
	padding: 0;
	}

.commentmetadata {
	margin: 0;
	display: block;
	}
/* End Comments */





/* Begin Calendar */
#wp-calendar {
	empty-cells: show;
	margin: 10px auto 0;
	width: 155px;
	}

#wp-calendar #next a {
	padding-right: 10px;
	text-align: right;
	}

#wp-calendar #prev a {
	padding-left: 10px;
	text-align: left;
	}

#wp-calendar a {
	display: block;
	}

#wp-calendar caption {
	text-align: center;
	width: 100%;
	}

#wp-calendar td {
	padding: 3px 0;
	text-align: center;
	}

#wp-calendar td.pad:hover { /* Doesn't work in IE */
	background-color: #fff; }
/* End Calendar */



/* Begin Various Tags & Classes */
acronym, abbr, span.caps {
	cursor: help;
	}

acronym, abbr {
	border-bottom: 1px dashed #999;
	}

blockquote {
	margin: 15px 30px 0 10px;
	padding-left: 20px;
	border-left: 5px solid #ddd;
	}

blockquote cite {
	margin: 5px 0 0;
	display: block;
	}

.center {
	text-align: center;
	}

.hidden {
	display: none;
	}

hr {
	display: none;
	}

a img {
	border: none;
	}

.navigation {
	display: block;
	text-align: center;
	margin-top: 10px;
	margin-bottom: 60px;
	}
/* End Various Tags & Classes*/



/* Captions */
.aligncenter,
div.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption {
	border: 1px solid #ddd;
	text-align: center;
	background-color: #f3f3f3;
	padding-top: 4px;
	margin: 10px;
	-moz-border-radius: 3px;
	-khtml-border-radius: 3px;
	-webkit-border-radius: 3px;
	border-radius: 3px;
}

.wp-caption img {
	margin: 0;
	padding: 0;
	border: 0 none;
}

.wp-caption p.wp-caption-text {
	font-size: 11px;
	line-height: 17px;
	padding: 0 4px 5px;
	margin: 0;
}

figcaption {
    font-style: italic;
    margin-top: 10px;
    font-size: 12px;
    text-align: center;
}

/* End captions */


/* "Daisy, Daisy, give me your answer do. I'm half crazy all for the love of you.
	It won't be a stylish marriage, I can't afford a carriage.
	But you'll look sweet upon the seat of a bicycle built for two." */

/* MOBILE -- appended to style.css; needs the viewport meta in header.php */

/* Safe at every width */
#content img, #content figure, #content video {
  max-width: 100%;
  height: auto;
}
/* An iframe has no intrinsic size, so height:auto would collapse it to
   150px; keep its height attribute and only stop it overflowing. */
#content iframe { max-width: 100%; }

/* Video embeds: centred, full column width up to 640px, 16:9.
   Use <figure class="video"> round the iframe or <video>; YouTube and
   Vimeo iframes and WordPress embed blocks get the same shape anyway. */
#content figure.video {
  max-width: 640px;
  margin: 1.5em auto;
}
#content figure.video iframe,
#content figure.video video,
#content iframe[src*="youtube"],
#content iframe[src*="vimeo"],
#content .wp-has-aspect-ratio iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
}
#content figure.video video { aspect-ratio: auto; }   /* real video knows its own shape */
#content figure.video figcaption { text-align: center; }
#content { overflow-wrap: break-word; }
#content pre, .urvanov-syntax-highlighter-syntax { max-width: 100%; overflow-x: auto; }
#content pre { font-size: 0.85em; }

/* LAYOUT (2026): a centred page. The woodcut sits over the sidebar column,
   the wordmark lines up with the left edge of the text, and the search
   field sits in the masthead. */

:root {
  --field: #c8dcc8;     /* form fields: a step lighter than the content green */
  --muted: #33503a;     /* dates, metadata: 5.3:1 on the content green, 4.6:1 on the page */
  --rule: #7d9c7e;
  --sidelink: #083c69;  /* links on the darker page green */
}

@media (min-width: 701px) {
  body {
    display: grid;
    grid-template-columns: 1fr 166px minmax(0, 50rem) 1fr;   /* 166px: the woodcut with its border, so it meets the content box */
    grid-template-rows: auto 1fr auto;
  }
  #topbox {
    grid-column: 2 / 4;
    grid-row: 1;
    display: grid;
    grid-template-columns: subgrid;
    align-items: end;
    height: auto;
    padding: 2rem 0 0;
    white-space: normal;
  }
  #topbox > a { grid-column: 1; line-height: 0; }
  img.cornerpic { display: block; }
  #topbox .mast {
    grid-column: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 0 0.35rem 0.5rem;   /* wordmark snug against the woodcut; search ends at the content box edge */
  }
  #topbox h1 { display: block; margin: 0; line-height: 0.78; }
  #sidebar {
    grid-column: 2;
    grid-row: 2;
    float: none;
    width: auto;
    margin: 0;
    padding: 1.5rem 0 2rem 4px;
  }
  #content {
    grid-column: 3;
    grid-row: 2;
    float: none;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 1.75rem 3rem 3rem;
  }
  #sitefoot { grid-column: 2 / 4; grid-row: 3; }
}

/* Search: a plain field; the label and button stay for screen readers */
#topbox .cal { margin: 0; }
#searchformspan { display: block; width: auto; }
#topbox #searchform {
  float: none; display: flex; gap: 0; width: auto;
  border: 0; background: none; margin: 0; padding: 0;
}
#topbox #searchform label,
#topbox #searchsubmit {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
}
#topbox #searchform #s {
  width: 13rem;
  font: 0.95rem var(--sans);
  color: #000;
  background: var(--field);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 6px 10px;
}
#topbox #searchform #s::placeholder { color: var(--muted); }

/* Sidebar */
#sidebar a:link { color: var(--sidelink); }
#sidebar h3 { text-transform: lowercase; }
#sidebar .years {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 1px 0.9em;
  padding-top: 2px;
}
#sidebar .years a { padding: 0; }

/* A post's own page: the date under the title, no rule */
.post-title { border-bottom: 0; padding-bottom: 0; margin-bottom: 0.15em; }
.post-date, h3.date {
  font: 600 0.8rem/1.4 var(--sans);
  letter-spacing: 0.04em;
  color: var(--muted);
}
.post-date { margin: 0 0 1.6em; }
.post-date a:link, .post-date a:visited,
h3.date a:link, h3.date a:visited { color: inherit; text-decoration: none; }

/* Front page: the date is a quiet label above each day; the title is the link */
h3.date {
  margin: 3.5em 0 0.4em;
  padding-top: 0.9em;
  border-top: 1px solid var(--rule);
}
.entry:first-of-type h3.date { margin-top: 0.5em; border-top: 0; padding-top: 0; }
h2.title { border-bottom: 0; padding-bottom: 0; margin: 0 0 0.6em; }
.title a:link, .title a:visited { color: #000; text-decoration: none; }
.title a:hover { text-decoration: underline; text-decoration-color: var(--rule); }

/* End of a post */
.postmetadata, .postmeta {
  font: 0.85rem/1.5 var(--sans);
  color: var(--muted);
}
.postmeta { margin: 2.5em 0 0; padding-top: 0.9em; border-top: 1px solid var(--rule); }
.postnav {
  display: flex; justify-content: space-between; gap: 2rem;
  margin: 1.2em 0 3em;
}
.postnav a { display: block; max-width: 60%; text-decoration: none; line-height: 1.3; }
.postnav a[rel="next"] { text-align: right; margin-left: auto; }
.postnav span {
  display: block;
  font: 600 0.75rem var(--sans); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.2em;
}

/* Comment form: labels above the fields, fields in the page's own colours */
#respond { text-transform: lowercase; font-size: 1.35rem; margin: 0 0 0.6em; }
#commentform p { display: flex; flex-direction: column-reverse; margin: 0 0 0.9em; }
#commentform label small { font: 0.85rem var(--sans); color: var(--muted); }
#commentform input[type=text], #commentform textarea {
  width: 100%; max-width: 26rem;
  font: 1rem var(--serif);
  background: var(--field);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 7px 10px;
  margin: 0.2em 0 0;
  box-sizing: border-box;
}
#commentform textarea { max-width: none; min-height: 9rem; }
#commentform #submit {
  float: none; width: auto; align-self: flex-start;
  font: 600 0.9rem var(--sans);
  color: #fff; background: #2f4a31; border: 0; border-radius: 4px;
  padding: 8px 16px; cursor: pointer;
}

/* Footer */
#sitefoot {
  padding: 1.5rem 0 3rem;
  font: 0.85rem var(--sans);
  color: var(--muted);
  text-align: center;
}
#sitefoot a:link { color: var(--sidelink); }
#sitefoot .sep { margin: 0 0.7em; color: var(--rule); }

@media (max-width: 700px) {
  body {
    display: flex;
    flex-direction: column;
    font-size: 1.0625rem;        /* 17px: 'large' is a touch big at 390px */
  }

  /* Masthead: same picture and title, scaled down, no fixed height */
  #topbox {
    height: auto;
    white-space: normal;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 8px 12px 6px;
  }
  img.cornerpic { width: 72px; display: block; }
  #topbox h1 {
    font-size: clamp(2.2rem, 11vw, 4rem);
    margin: 0;
    line-height: 0.9;
  }

  /* Content first, full width */
  #content {
    order: 1;
    float: none;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 4px 16px 16px;
  }
  /* Sidebar after the posts, as a compact link strip */
  #sidebar {
    order: 2;
    float: none;
    width: auto;
    margin: 0;
    padding: 12px 16px 24px;
  }
  #sidebar .textwidget { display: flex; flex-wrap: wrap; gap: 0 1.2em; }
  #sidebar .textwidget h3 { flex-basis: 100%; }
  #sidebar * { font-size: 0.9rem; }
  #sidebar a { display: inline-block; padding: 4px 0; }   /* tap targets */
  #sidebar select { width: 100%; font-size: 1rem; padding: 6px; }

  /* Search: full-width row above the posts, not a floated box */
  #searchform {
    float: none;
    display: flex;
    width: auto;
    gap: 6px;
    border: none;
    background: none;
    margin: 8px 0 0;
    font-size: 0.9rem;
  }
  #searchform label { display: none; }
  #searchform input { font-size: 1rem; padding: 6px; }   /* >=16px stops iOS zoom */
  #searchform #s { flex: 1; width: auto; }
  #searchsubmit { width: auto; padding: 6px 10px; }

  /* Headings tuned for a narrow column */
  .title { font-size: 1.6rem; line-height: 1.2; display: block; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  h3.date { margin-top: 1.5em; }

  /* Things that float beside text: stack them instead */
  .alignleft, .alignright, .picture, .links,
  #content .quote P, #content .adbox P {
    float: none;
    width: auto !important;
    margin: 1em 0;
  }
  .navigation .alignleft, .navigation .alignright { margin: 0; }

  #content blockquote { margin: 1em 0; padding-left: 12px; }
  .footnote, .urlsummary { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }

  #commentform input, #commentform textarea { width: 100%; font-size: 1rem; }
  .commentlist { text-align: left; }   /* justify makes rivers on a phone */

  /* Wide data tables scroll sideways inside their own box */
  #content table:not(.crayon-table) {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }
}

/* Phones: the masthead search gets its own full-width row */
@media (max-width: 700px) {
  #topbox { flex-wrap: wrap; }
  #topbox .mast { display: contents; }
  #topbox .cal { flex-basis: 100%; margin-top: 8px; }
  #topbox #searchform #s { width: 100%; font-size: 1rem; }
  #sitefoot { order: 3; padding: 0 16px 2rem; }
  .postnav { flex-direction: column; gap: 1em; }
  .postnav a { max-width: none; }
}
