/*
 * bobbyvoicu.ro theme (spec §6). Written from scratch to match the old Genesis + Maker Pro look, including the
 * site's customizer accent (#007745) and its custom CSS (green post line, framed images, green blockquotes).
 * No JavaScript; the mobile menu is a <details> element.
 */

/* ------------------------------------------------------------------ fonts (self-hosted, SIL OFL) */
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 300 700; 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 700; 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Martel"; font-style: normal; font-weight: 200; font-display: swap;
  src: url(../fonts/martel-200-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: "Martel"; font-style: normal; font-weight: 200; font-display: swap;
  src: url(../fonts/martel-200-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Martel"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/martel-700-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: "Martel"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/martel-700-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Martel"; font-style: normal; font-weight: 900; font-display: swap;
  src: url(../fonts/martel-900-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: "Martel"; font-style: normal; font-weight: 900; font-display: swap;
  src: url(../fonts/martel-900-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/roboto-condensed-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: "Roboto Condensed"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/roboto-condensed-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ------------------------------------------------------------------ tokens */
:root {
  --text: #12302e;
  --accent: #007745;          /* customizer colour of the old site */
  --rule: #f2f2f2;
  --quote-bg: #ecf9ec;
  --quote-rule: #008000;
  --muted: #6b7a79;
  --sans: "Open Sans", "Helvetica", Arial, sans-serif;
  --serif: "Martel", Georgia, serif;
  --cond: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.612;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}
article, aside, details, figcaption, figure, footer, header, main, nav, section, summary { display: block; }
ol, ul { margin: 0; padding: 0; }
li { list-style: none; }
p { margin: 0 0 1.625em; padding: 0; }
b, strong { font-weight: 700; }
small { font-size: 80%; }
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sup { top: -.5em; }
sub { bottom: -.25em; }
img { border: 0; height: auto; max-width: 100%; }
hr { overflow: hidden; width: 100%; height: 0; border: none; border-bottom: 1px solid #eee; margin: 0 0 40px; padding: 40px 0 0; }

h1, h3, h4, h5, .entry-title {
  margin: 0 0 1.612rem;
  line-height: 1.2;
  font-family: var(--cond);
  font-weight: 700;
  text-transform: uppercase;
}
h2 { font-size: 30px; font-family: var(--serif); font-weight: 200; line-height: 1.612em; margin: 0 0 1.612rem; }
h1 { font-size: 2em; }
h3 { font-size: 32px; }
h4 { font-size: 24px; }
h5 { font-size: 18px; }
h6 { font-size: 14px; margin: 0 0 20px; font-weight: 400; }
h6, .entry-meta, .comment-meta { text-transform: uppercase; letter-spacing: .1em; }

a { color: var(--accent); text-decoration: none; border-bottom: 1px solid; }
a:hover, a:focus { border-color: transparent; }
:focus { outline: 1px dotted rgba(0, 0, 0, .2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: #fff; }

blockquote {
  margin: 20px;
  padding: 20px;
  background: var(--quote-bg);
  border-left: 5px solid var(--quote-rule);
  font-size: medium;
  font-weight: 500;
}
blockquote p:last-child, blockquote p:last-of-type { margin-bottom: 0; }
cite { font-style: italic; font-weight: 700; font-size: small; }

code, pre { font-family: Monaco, Menlo, Consolas, "Courier New", monospace; font-size: 12px; color: var(--text); border: 1px solid #e1e1e8; background: #f7f7f9; }
code { padding: 2px 4px; }
pre { display: block; padding: 9.5px; margin: 0 0 10px; line-height: 18px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; }
pre code { padding: 0; border: 0; background: transparent; white-space: pre-wrap; }

table { border-collapse: collapse; border-spacing: 0; line-height: 2; margin-bottom: 40px; width: 100%; }
tbody { border-bottom: 1px solid #ddd; }
td, th { text-align: left; padding: 6px 8px 6px 0; vertical-align: top; }
td { border-top: 1px solid #ddd; }
/* layout tables kept as HTML (spec §4.4 M7, no header row) scroll sideways instead of widening the page */
.entry-content table:not(:has(> thead)) { display: block; overflow-x: auto; max-width: 100%; }
th { font-weight: 700; }

.screen-reader-text, .skip-link a:not(:focus) {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { margin: 0; }
.skip-link a:focus { position: fixed; top: 8px; left: 8px; z-index: 10; background: #fff; padding: 12px 16px; border: 1px solid var(--accent); }

/* ------------------------------------------------------------------ structure */
.site-container { max-width: 1440px; margin: 0 auto; }
.wrap { margin: 0 auto; padding: 0 5%; }
.wrap::after, .site-inner::after { content: ""; display: table; clear: both; }
.site-header .wrap::after { content: none; }
.site-inner { clear: both; margin-top: 40px; }

/* ------------------------------------------------------------------ header and menu */
.site-header { width: 100%; padding: 40px 0; position: relative; }
.site-header .wrap { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.title-area { margin-top: 10px; }
.site-title { font-family: var(--serif); font-size: 20px; font-weight: 900; line-height: 1.2; margin: 0; text-transform: none; }
.site-title a { color: var(--text); border: 0; }

.menu li { display: inline-block; position: relative; }
.menu a { display: block; border: 0; color: var(--text); text-transform: uppercase; letter-spacing: .05em; font-weight: 400; }
.menu a:hover, .menu .current-menu-item > a { color: var(--accent); }

.nav-primary { display: none; }
/* mobile: a <details> whose menu opens below the title and pushes the page down; the toggle sits at the top right */
.nav-mobile { flex-basis: 100%; }
.nav-mobile > summary { position: absolute; top: 44px; right: 5%; list-style: none; cursor: pointer; color: var(--text); padding: 2px; line-height: 0; }
.nav-mobile > summary::-webkit-details-marker { display: none; }
.nav-mobile > summary .icon-close { display: none; }
.nav-mobile[open] > summary .icon-open { display: none; }
.nav-mobile[open] > summary .icon-close { display: inline; }
.nav-mobile .menu li { display: block; width: 100%; }
.nav-mobile .menu li:first-child { margin-top: 20px; }
.nav-mobile .menu a { padding: 10px 0; font-size: 15px; }

@media only screen and (min-width: 800px) {
  .site-header { padding: 60px 0 50px; }
  .title-area { margin-top: 12px; }
  .nav-mobile { display: none; }
  .nav-primary { display: block; text-align: right; }
  .nav-primary .menu a { font-size: 12px; margin: 0 0 0 24px; padding: 15px 0; }
}
@media only screen and (min-width: 1024px) {
  .nav-primary .menu a { margin: -2px 0 0 36px; }
}

/* ------------------------------------------------------------------ content and sidebar */
@media only screen and (min-width: 1024px) {
  body { font-size: 18px; }
  h2 { font-size: 40px; }
  h3 { font-size: 50px; }
  .wrap { max-width: 1280px; }
  .content { float: left; width: 70%; }
  .sidebar { float: right; width: 25%; }
}

.entry { margin-bottom: 40px; position: relative; }
.entry.post {               /* "the post bottom green line" of the old custom CSS */
  padding: 10px 0 0;
  clear: both;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--accent);
}
.entry-title { text-transform: none; font-size: 40px; overflow-wrap: anywhere; }
.entry-title a { color: var(--text); border: 0; }
.entry-title a:hover { color: var(--accent); }
.entry-meta { font-size: 14px; }
.entry-header .entry-meta { margin-bottom: 2rem; line-height: 2; }
.category-plain { color: inherit; }
.archive-note { font-size: 14px; margin: -1em 0 1.625em; color: var(--muted); }
.archive-note a { color: var(--accent); }

.entry-content p, .entry-content ul, .entry-content ol, .textwidget p, .author-box p { margin-bottom: 2rem; line-height: 2; }
.entry-content ul, .entry-content ol { margin-left: 40px; }
.entry-content ul li { list-style-type: disc; }
.entry-content ol li { list-style-type: decimal; }
.entry-content ul ul, .entry-content ol ol, .entry-content ul ol, .entry-content ol ul { margin-bottom: 0; }
.entry-content li > p { margin-bottom: .5rem; }
.entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6 { margin-top: .5em; }

/* images: the old custom CSS framed every post image */
.entry img { border: 2px solid #c0c0c0; box-shadow: 5px 5px 5px #ccc; vertical-align: middle; }
.entry-content a:has(> img) { border-bottom: 0; }
/* an image alone in its paragraph is centred: "aligncenter" was the most common alignment, and the old left/right
   floats are not kept (spec §4.4 M9) */
.entry-content p > img:only-child, .entry-content p > a:only-child > img:only-child { display: block; margin: 0 auto; }
.entry-content p > a:only-child:has(> img:only-child) { display: block; width: fit-content; margin: 0 auto; }
.entry-content figure { margin: 30px 0; }
.entry-content figure img { display: block; }
.entry-content figcaption { font-size: 14px; font-style: italic; color: var(--muted); margin-top: 12px; line-height: 1.6; }
.entry-content table img { box-shadow: none; }

/* embeds: responsive 16:9 */
.embed { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 0 0 2rem; background: #000; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-slideshare { aspect-ratio: 597 / 486; background: #fff; }
.embed-google, .embed-other { aspect-ratio: 4 / 3; background: #fff; }
.entry-content > iframe, .entry-content p > iframe { max-width: 100%; border: 0; }
.embed-gone { color: var(--muted); }
.embed-gone em { font-style: italic; }
.twitter-tweet, .instagram-media { max-width: 550px; }

/* author box: 80px round avatar in a 120px left gutter */
.author-box { position: relative; padding: 40px 0 40px 120px; margin-bottom: 120px; min-height: 160px; }
.author-box .avatar { position: absolute; left: 0; top: 35px; width: 80px; height: 80px; border-radius: 40px; border: 0; box-shadow: none; }
.author-box-title { margin: 0 0 5px; font-size: 24px; }

/* listings */
.archive-description { margin-bottom: 120px; }
.archive-title { font-size: 40px; margin: 0; }

.pagination { margin: 40px 0; text-align: center; }
.pagination ul { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.pagination li { border-radius: 2px; overflow: hidden; }
.pagination li a { display: block; padding: 8px 16px; border: 0; }
.pagination li a:hover, .pagination li.active a { background: var(--accent); color: #fff; }
.pagination-omission { padding: 8px 6px; }

/* Arhiva page and hidden indexes */
.archive-intro { color: var(--muted); font-size: 14px; }
.archive-year { margin: 1.5rem 0 .75rem; }
.entry-content ul.archive-index { margin-left: 0; }
.entry-content ul.archive-index li { list-style: none; margin-bottom: 10px; line-height: 1.5; }
.archive-index time { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* comments (Genesis comment-list look, no avatars, no form) */
.entry-comments { margin-bottom: 60px; }
.comment-list li { list-style: none; }
.comment { padding: 20px 0; margin-bottom: 40px; border-bottom: 1px solid var(--rule); }
.comment:last-child { border-bottom: 0; }
.comment-header { line-height: 1; margin-bottom: 40px; }
.comment-author { margin: 6px 0 2px; font-weight: 700; }
.comment-author a { font-weight: 700; }
.comment-meta { margin: 0; }
.comment-meta a { font-size: 12px; text-transform: uppercase; }
.comment-content p { margin-bottom: 1.625em; }
.comment-content p:last-child { margin-bottom: 0; }
.comment-content blockquote { margin: 10px 0; padding: 10px 15px; }
.comment .children { margin-left: 40px; margin-top: 20px; border-left: 1px solid var(--rule); padding-left: 0; }
.comment .children .comment { padding-left: 20px; }
@media only screen and (max-width: 599px) {
  .comment .children { margin-left: 12px; }
  .comment .children .comment { padding-left: 12px; }
}

/* sidebar */
.sidebar { margin-top: 40px; }
@media only screen and (min-width: 1024px) { .sidebar { margin-top: 0; } }
.widget { border-bottom: 1px solid var(--rule); margin-bottom: 40px; padding-bottom: 40px; word-wrap: break-word; }
.widget:last-child { border-bottom: 0; }
.widget-title { font-family: var(--cond); font-weight: 700; text-transform: uppercase; font-size: 16px; line-height: 1.2; margin: 0 0 1.612rem; }
.widget ul li { list-style: none; margin-bottom: 16px; }

/* footer */
.site-footer { padding: 40px 0; font-size: 14px; text-align: center; }
.site-footer p { margin: 0; }

/* error pages */
.error-page .entry-title { font-size: 40px; }

/* small screens */
@media only screen and (max-width: 599px) {
  blockquote { margin: 20px 0; padding: 15px; }
  /* wide (layout) tables scroll sideways instead of widening the page */
  .entry-content table { display: block; overflow-x: auto; max-width: 100%; }
  .entry-content ul, .entry-content ol { margin-left: 24px; }
}
