/*
 * Vanilla Cream: a re-implementation of the ThemeFuse "Vanilla Cream" kit in plain CSS
 * (no Bootstrap, no jQuery, no plugins). Colours, type and shapes follow the original;
 * buttons, boxes and menus are gradients instead of image sprites.
 */

/* ---------- Fonts (Open Sans, SIL Open Font License, see fonts/OFL.txt) ---------- */

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/open-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/open-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/open-sans-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/open-sans-italic-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/open-sans-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/open-sans-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Base ---------- */

:root {
  --text: #605647;
  --heading: #3e362b;
  --link: #a2731f;
  --link-hover: #8d8569;
  --green: #558b1d;
  --line-dark: #e1dbd2;
  --line-light: #f9f7f1;
  --box-shadow: 1px 3px 5px #b5ada2;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 21px;
  color: var(--text);
  background: #e6e1d6 url(images/bg.jpg) center top repeat;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #aba98c; color: #333; text-shadow: none; }

a { color: var(--link); text-decoration: none; }
a:hover, a:focus { color: var(--link-hover); }
a:focus-visible { outline: 2px solid #a1c879; outline-offset: 2px; border-radius: 3px; }

h1, h2, h3, h4, h5, h6 {
  color: var(--heading);
  font-weight: 600;
  line-height: 1.2em;
  margin: 0 0 .7em;
  text-shadow: 0 1px 1px #fff;
}
h1 { font-size: 29px; }
h2 { font-size: 25px; }
h3 { font-size: 23px; }
h4 { font-size: 19px; }
h5 { font-size: 17px; }
h6 { font-size: 14px; }

p { margin: 0 0 16px; text-shadow: 0 2px 0 rgba(255, 255, 255, .5); }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; }

.container { max-width: 1170px; margin: 0 auto; padding: 0 15px; }

/* ---------- Header and main menu ---------- */

.site-header { padding: 18px 0 10px; text-align: center; }

.site-header .languages { text-align: right; font-size: 11px; text-transform: uppercase; }
.site-header .languages a { color: #807367; margin-left: 12px; }
.site-header .languages a.current { color: var(--green); font-weight: 700; }

.site-title { margin: 22px 0 26px; }
.site-title a {
  font-size: 42px;
  line-height: 1.1;
  font-weight: 700;
  text-transform: uppercase;
  color: #f6f2e4;
  text-shadow: 0 2px 3px rgba(175, 169, 160, .75);
}
.site-title a:hover { color: #fff; }

.dropdown {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 8px;
  border: 1px solid #c7bfb2;
  border-top-color: #c0b8a9;
  border-bottom-color: #978a7a;
  border-radius: 6px;
  box-shadow: 0 2px 10px -1px #80776a;
  background: linear-gradient(to bottom, #f8f7f5 0%, #e2dcd5 94%, #bfb09f 100%);
}
.dropdown li { position: relative; }
.dropdown a {
  display: block;
  padding: 14px 32px;
  font-size: 14px;
  color: #5d4f3e;
}
.dropdown li:hover > a,
.dropdown a:focus-visible,
.dropdown li.current-menu-item > a {
  color: #5e503f;
  box-shadow: inset 0 0 18px rgba(84, 47, 0, .26);
  background: linear-gradient(to bottom, #f4f1eb 0%, #cfc6b1 94%, #bfb09f 100%);
}
/* a longer menu stays on one line on medium screens */
@media (max-width: 1199px) {
  .dropdown a { padding: 14px 18px; }
}

/* ---------- Layout ---------- */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 30px;
}
.content, .sidebar { padding-top: 20px; padding-bottom: 30px; }

/* ---------- Boxes ---------- */

.boxed {
  position: relative;
  margin-bottom: 50px;
  border-radius: 8px;
  background: linear-gradient(to bottom, #fdfdfb 0%, #f8f6f1 1%, #f5f2eb 100%);
  box-shadow: var(--box-shadow);
}

/* ---------- Buttons (gradients instead of buttons.png) ---------- */

.btn {
  display: inline-block;
  height: 36px;
  padding: 0 24px;
  line-height: 34px;
  border-radius: 5px;
  border: 1px solid #d9b071;
  border-bottom-color: #b98944;
  font-size: 13px;
  white-space: nowrap;
  color: #fff;
  text-shadow: 1px 1px 1px rgba(132, 101, 51, .6);
  background: linear-gradient(to bottom, #f4dcae 0%, #e8c587 55%, #dcae67 100%);
  box-shadow: 0 2px 3px rgba(132, 101, 51, .3), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn:hover, .btn:focus { color: #fefae5; background: linear-gradient(to bottom, #f0d39c 0%, #e0b56f 55%, #d2a055 100%); }
.btn:active { box-shadow: inset 0 2px 4px rgba(84, 47, 0, .3); }

.btn-white {
  color: #504433;
  text-shadow: 1px 1px 1px rgba(255, 255, 255, .75);
  border-color: #ddd8cf;
  border-bottom-color: #b9b2a6;
  background: linear-gradient(to bottom, #fbfaf8 0%, #ece8e1 100%);
}

.btn-left, .btn-right {
  border-color: #a6cc80;
  border-bottom-color: #7fa85a;
  text-shadow: 1px 1px 1px #7c9b5f;
  background: linear-gradient(to bottom, #cde7b0 0%, #a9d27f 100%);
  font-size: 11px;
  text-transform: uppercase;
}
.btn-left:hover, .btn-right:hover { color: #fff; background: linear-gradient(to bottom, #bfdf9d 0%, #95c467 100%); }
.btn-left { border-radius: 5px 3px 3px 5px; clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%); padding-left: 26px; }
.btn-right { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); padding-right: 26px; }

/* ---------- Post items ---------- */

.post-item { position: relative; margin-bottom: 50px; }
.post-item .inner { padding: 32px; }

.post-item .post-title { font-size: 29px; font-weight: 400; margin: 4px 0 16px; }
.post-item .post-title a { color: var(--heading); }
.post-item .post-title a:hover { color: var(--link-hover); }
.post-single .post-title { font-weight: 600; margin-bottom: 14px; }

.post-headline {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #a2731f;
}

.post-meta-top { margin-bottom: 15px; }
.post-meta-top > span {
  display: inline-block;
  height: 22px;
  line-height: 22px;
  padding: 0 20px 0 25px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--green);
  background: url(images/posted.png) no-repeat 0 0;
}
.post-meta-top > span a { color: var(--green); }
.post-meta-top > span a:hover { color: var(--link-hover); }
.post-meta-top .post-date { background-position: 0 -22px; }
.post-meta-top .post-blog { background: none; padding-left: 0; }
.post-meta-top .post-blog::before { content: '·'; padding-right: 10px; }
.post-meta-top .post-language { background: none; padding-left: 0; color: var(--link-hover); }
.post-meta-top .post-language::before { content: '·'; padding-right: 10px; color: var(--green); }

.post-desc { margin-bottom: 24px; }
.post-desc p { margin-bottom: 10px; }

.post-meta-bot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.post-single .post-meta-bot { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line-dark); box-shadow: inset 0 1px 0 var(--line-light); }

.translations { margin: 0; font-size: 12px; }
.translations a { font-weight: 600; margin-left: 4px; }

.notice {
  padding: 10px 16px;
  border-radius: 6px;
  background: #faf3dc;
  box-shadow: inset 0 0 0 1px #ecdcae;
  color: #8a6a24;
  font-size: 12px;
}

.list-header { margin-bottom: 30px; }
.list-header h1 { font-weight: 400; margin-bottom: 10px; }

.post-intro-text p { font-size: 15px; font-weight: 600; color: #a2731f; line-height: 23px; }
.post-intro-text p:last-child { margin-bottom: 0; }

.breadcrumb { margin: 0 0 4px; font-size: 12px; text-transform: uppercase; }

.error-page { text-align: center; }
.error-status { font-size: 64px; line-height: 1; font-weight: 800; color: #e2d9c4; text-shadow: 0 1px 0 #fff; margin: 10px 0 18px; }

/* ---------- Text of posts and pages ---------- */

.entry { overflow-wrap: break-word; }
.entry h2 { font-size: 23px; margin-top: 1.2em; }
.entry h3 { font-size: 19px; margin-top: 1.2em; }
.entry h4, .entry h5, .entry h6 { font-size: 15px; margin-top: 1.2em; }
.entry ul, .entry ol { margin: 0 0 16px 22px; }
.entry ul { list-style: disc; }
.entry ol { list-style: decimal; }
.entry li { margin-bottom: 4px; }
.entry img { border-radius: 6px; box-shadow: 0 2px 4px rgba(0, 0, 0, .15); }
.entry blockquote {
  margin: 0 0 16px;
  padding: 4px 0 4px 22px;
  border-left: 3px solid #d9c49a;
  font-style: italic;
  color: #7a6b52;
}
.entry pre, .entry code { font-family: Consolas, 'Courier New', monospace; font-size: 12px; }
.entry pre { overflow-x: auto; padding: 12px 16px; border-radius: 5px; background: #ece8df; box-shadow: inset 1px 1px 3px rgba(118, 108, 100, .26); }
.entry table { border-collapse: collapse; margin-bottom: 16px; max-width: 100%; }
.entry th, .entry td { padding: 5px 10px; border-bottom: 1px solid var(--line-dark); text-align: left; vertical-align: top; }
.entry hr { border: 0; border-top: 1px solid #99907a; border-bottom: 1px solid #f1eeea; margin: 20px 0; }
/* a lost image: an empty span.missing-image labelled with the image's description */
.entry .missing-image {
  display: inline-block;
  max-width: 100%;
  padding: 18px 24px;
  border: 1px dashed #c8bda7;
  border-radius: 6px;
  color: #a39780;
  font-size: 11px;
  font-style: italic;
  vertical-align: middle;
}
.entry .missing-image::before { content: attr(aria-label); }

/* ---------- Tags (tag.png, as in the original) ---------- */

.tagcloud a {
  display: inline-block;
  height: 29px;
  line-height: 28px;
  margin: 5px 3px;
  padding-right: 16px;
  font-size: 12px;
  white-space: nowrap;
  color: #3e362b;
  text-shadow: 0 1px 0 #fff;
  background: url(images/tag.png) no-repeat right -29px;
}
.tagcloud a span { display: block; height: 29px; padding-left: 26px; background: url(images/tag.png) no-repeat left 0; }
.tagcloud a:hover { color: var(--link-hover); }

.tagcloud.style2 a { margin: 3px 0 3px 4px; padding-right: 20px; font-size: 11px; color: #436315; text-shadow: 1px 1px 1px rgba(255, 255, 255, .75); background-position: right -87px; }
.tagcloud.style2 a span { padding-left: 27px; line-height: 23px; background-position: left -58px; }

/* ---------- Sidebar widgets ---------- */

.widget-container { margin-bottom: 30px; }
.widget-container .inner { padding: 22px 28px 20px; }
.widget-container .widget-title { font-size: 20px; margin-bottom: 13px; }

.widget_categories ul { border-top: 2px solid #e7e3dc; border-bottom: 1px solid #fbfbf8; }
.widget_categories li { position: relative; }
.widget_categories li a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 10px 13px 14px;
  border-top: 1px solid #fbfbf8;
  border-bottom: 2px solid #e7e3dc;
  color: #675d45;
  text-shadow: 1px 1px 1px rgba(255, 255, 255, .75);
}
.widget_categories li a:hover, .widget_categories li a:focus-visible {
  margin-top: -2px;
  padding-top: 15px;
  padding-bottom: 15px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  text-shadow: 1px 1px 1px #68854d;
  background: linear-gradient(to bottom, #a1c879 0%, #90bc67 100%);
  box-shadow: inset 0 0 8px rgba(44, 44, 44, .4);
}
.widget_categories .count { font-size: 11px; color: #a39780; }
.widget_categories li a:hover .count { color: #eef6e4; }

.widget_categories details { margin-top: 12px; }
.widget_categories summary { cursor: pointer; font-size: 12px; font-weight: 600; color: var(--link); text-transform: uppercase; }
.widget_categories details[open] summary { margin-bottom: 8px; }

.widget_recent_entries li { padding: 12px 0 13px; border-bottom: 1px solid var(--line-dark); border-top: 1px solid var(--line-light); }
.widget_recent_entries li:first-child { border-top: 0; }
.widget_recent_entries li:last-child { border-bottom: 0; }
.widget_recent_entries .post-title { display: block; font-size: 12px; line-height: 19px; color: var(--text); }
.widget_recent_entries .post-title:hover { color: #c0b9a0; }

/* ---------- Comments ---------- */

.comment-list { margin-bottom: 26px; }
.comment-list h2 { font-size: 23px; margin-bottom: 30px; }
.comment-list li.comment { position: relative; padding-left: 80px; }
.comment-list .children { margin-top: 0; }
.comment-list .children li.comment::before {
  content: '';
  position: absolute;
  top: 7px;
  left: -28px;
  width: 11px;
  height: 11px;
  background: url(images/comment_sub.png) no-repeat;
}
.comment-body {
  position: relative;
  margin-bottom: 22px;
  padding: 22px 20px 18px;
  border-top: 1px solid #fcfbf9;
  border-left: 1px solid #fcfbf9;
  border-radius: 5px;
  background: linear-gradient(to bottom, #f5f4ee 0%, #ece9dd 100%);
  box-shadow: 1px 2px 16px -2px rgba(0, 0, 0, .2);
}
.comment-arrow { position: absolute; top: 14px; left: -7px; z-index: 2; width: 7px; height: 12px; background: url(images/comment_arrow.png) no-repeat; }
.comment-avatar {
  position: absolute;
  top: 0;
  left: -80px;
  width: 65px;
  height: 65px;
  border: 4px solid #fbfbfb;
  border-radius: 5px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, .2);
  background: linear-gradient(to bottom, #e9e2cf, #d8ccb0);
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  line-height: 57px;
  text-align: center;
  text-shadow: 0 1px 1px rgba(84, 47, 0, .4);
}
.comment-author { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; font-size: 12px; color: #a2731f; }
.link-author { font-size: 18px; color: var(--heading); }
.comment-entry p:last-child { margin-bottom: 0; }

/* ---------- Comment form (the kit's form with background, forms.html) ---------- */

.comment-form { padding-bottom: 26px; }
.comment-form h2 { margin: 0; padding: 20px 34px; font-size: 19px; border-bottom: 1px solid #d8d4c7; box-shadow: 0 1px 0 #fbfaf8; }
.comment-form form, .comment-form-sent { padding: 18px 34px 0; }
.comment-form-note { font-size: 12px; color: #8d8569; }
.comment-form .field { margin-bottom: 14px; }
.comment-form label { display: block; padding-bottom: 8px; font-size: 10px; line-height: 1.2; text-transform: uppercase; letter-spacing: .04em; color: #5c5c5c; }
.comment-form input,
.comment-form textarea,
.search-form input {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0 16px;
  font: inherit;
  color: #3a3a3a;
  border: 1px solid;
  border-color: #c0b9ae #dad4c9 #dad4c9 #c0b9ae;
  border-radius: 5px;
  background: #e8e4db;
}
.comment-form input, .search-form input { height: 36px; }
.comment-form textarea { min-height: 120px; padding: 10px 16px; resize: vertical; }
.comment-form input:focus,
.comment-form textarea:focus,
.search-form input:focus { outline: 2px solid #a1c879; outline-offset: 1px; background: #efebe3; }
.comment-form .invalid input,
.comment-form .invalid textarea { border-color: #c4452c; }
.comment-form .field-error { display: block; margin-top: 6px; font-size: 12px; color: #b0391f; }
.comment-form .actions { margin: 0; }
.comment-form button.btn, .search-form button.btn { font-family: inherit; cursor: pointer; }
.comment-form-sent { margin: 0; font-weight: 600; color: var(--green); }

/* ---------- Search (the kit's search widget, index.html) ---------- */

.search-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.search-form input { flex: 1 1 140px; width: auto; min-width: 0; -webkit-appearance: none; appearance: none; }
.search-form input::-webkit-search-decoration { -webkit-appearance: none; }
.search-form .btn { flex: none; }
.widget_search .inner { padding: 18px 22px 18px 26px; }
.search-header .search-form { margin-bottom: 12px; }
.search-summary { margin: 0; font-size: 13px; color: #8d8569; }

/* ---------- Pagination ---------- */

.tf_pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 30px; }
.tf_pagination .inner_links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 5px;
  border: 1px solid #ddd8cf;
  border-bottom-color: #b9b2a6;
  background: linear-gradient(to bottom, #fbfaf8 0%, #ece8e1 100%);
  box-shadow: 0 2px 3px rgba(132, 101, 51, .2);
}
.tf_pagination .page-numbers { display: inline-block; padding: 0 5px; font-size: 11px; line-height: 34px; color: #665b4d; }
.tf_pagination a.page-numbers:hover, .tf_pagination .page_current { color: #23a836; font-weight: 700; }

/* ---------- Footer ---------- */

.footer-dark { background: #3e362b; color: #8d8680; padding: 30px 0 34px; border-top: 1px solid #000; box-shadow: inset 0 1px 0 #6e6961; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 6px 26px; padding-bottom: 22px; border-bottom: 1px solid #000; box-shadow: 0 1px 0 #5b544b; }
.footer-menu a { color: #d7cfc2; font-size: 13px; text-transform: uppercase; }
.footer a:hover { color: #b9b8b8; }
.footer_bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 20px; font-size: 11px; color: #736f6a; }
.footer_bottom a { color: #8d8680; margin-left: 14px; }

/* ---------- Small screens ---------- */

@media (max-width: 991px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .content { padding-bottom: 0; }
}

@media (max-width: 600px) {
  .site-title a { font-size: 30px; }
  .dropdown { display: flex; }
  .dropdown a { padding: 10px 14px; }
  .post-item .inner { padding: 20px; }
  .post-item .post-title { font-size: 23px; }
  .comment-list li.comment { padding-left: 0; }
  .comment-avatar, .comment-arrow, .comment-list .children li.comment::before { display: none; }
  .comment-list .children { margin-left: 18px; }
  .comment-form h2 { padding: 16px 20px; }
  .comment-form form, .comment-form-sent { padding: 16px 20px 0; }
}
