/* 2sustain.dk — власна верстка за виглядом архівного сайта (тема Twenty Eleven): сіре тло, біла сторінка 1000 px,
   назва й опис сайта, широка фотосмуга шапки, темна смуга меню з підменю, системний шрифт Helvetica/Arial. */
:root {
  --bg: #e2e2e2;
  --page: #fff;
  --text: #373737;
  --head: #222;
  --muted: #666;
  --link: #1b8be0;
  --line: #ddd;
  --soft: #f9f9f9;
  --bar-top: #252525;
  --bar-bottom: #0a0a0a;
  --green: #2e7d4f;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: 0 2em;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.625 "Helvetica Neue", Helvetica, Arial, sans-serif;
}
a { color: var(--link); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: .5em 1em; z-index: 10; }
.skip:focus { left: 1em; top: 1em; }

#page { max-width: 1000px; margin: 2em auto; background: var(--page); }

/* Шапка */
#branding { border-top: 2px solid #bbb; padding-bottom: 10px; position: relative; }
#branding .titles { padding: 3.65625em 7.6% 0; }
#site-title { margin: 0 0 .25em; font-size: 30px; font-weight: bold; line-height: 1.2; }
#site-title a { color: #111; }
#site-title a:hover, #site-title a:focus { color: var(--link); text-decoration: none; }
#site-description { margin: 0 0 3.65625em; color: #7a7a7a; font-size: 14px; font-weight: normal; }
#branding .header-image { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 288; object-fit: cover; }

/* Меню */
#access {
  background: var(--bar-bottom);
  background-image: linear-gradient(var(--bar-top), var(--bar-bottom));
  box-shadow: rgba(0, 0, 0, .4) 0 1px 2px;
  margin: 0 auto 6px;
  width: 100%;
  position: relative;
  z-index: 5;
}
#access ul { list-style: none; margin: 0; padding: 0 0 0 calc(7.6% - .8125em); font-size: 14px; }
#access li { position: relative; display: inline-block; }
#access a { display: block; color: #eee; line-height: 3.333em; padding: 0 1.2125em; }
#access a:hover, #access a:focus, #access li:hover > a, #access li:focus-within > a {
  background: #efefef; background-image: linear-gradient(#f9f9f9, #e5e5e5); color: #373737; text-decoration: none;
}
#access a[aria-current="page"], #access .is-section > a { font-weight: bold; }
#access .sub-menu {
  display: none; position: absolute; top: 3.333em; left: 0; width: 240px; padding: 0;
  background: #fff; box-shadow: rgba(0, 0, 0, .2) 0 3px 3px; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px;
}
#access .sub-menu li { display: block; }
#access .sub-menu a { color: #444; font-size: 13px; line-height: 1.5em; padding: 10px 10px 10px 1.2125em; border-bottom: 1px dotted var(--line); }
#access .sub-menu a:hover, #access .sub-menu a:focus { background: #f9f9f9; color: #373737; }
#access li:hover > .sub-menu, #access li:focus-within > .sub-menu { display: block; }
.mnav { display: none; }

/* Сітка вмісту */
#main { padding: 1.625em 0 0; overflow: hidden; }
.two-column #primary { float: left; width: 100%; margin: 0 -26.4% 0 0; }
.two-column #content { margin: 0 34% 0 7.6%; }
.two-column #secondary { float: right; width: 18.8%; margin-right: 7.6%; }
.singular #content { margin: 0 7.6%; }

.entry-title { color: var(--head); font-size: 26px; font-weight: bold; line-height: 1.5em; margin: 0 0 .8125em; }
.singular .entry-title { padding-top: .8125em; }
.entry-content h2 { color: #000; font-size: 18px; font-weight: bold; line-height: 1.4; margin: 1.6em 0 .6em; }
.entry-content p, .entry-content ul { margin: 0 0 1.625em; }
.entry-content ul { padding-left: 2.5em; }
.entry-content li { margin-bottom: .4em; }
.entry-content .lead { font-size: 17px; }
.featured { margin: 0 0 1.625em; }
.featured img { width: 100%; height: auto; border: 1px solid var(--line); padding: 6px; background: #fff; }

/* Перелік статей на головній і розділах */
.post-list { border-top: 1px solid var(--line); margin-top: 1em; }
.post-list .section-title { color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: .1em; line-height: 2.6em; text-transform: uppercase; margin: 1.5em 0 0; }
.post { display: grid; grid-template-columns: 180px 1fr; gap: 1.2em; padding: 1.5em 0; border-bottom: 1px solid var(--line); }
.post img { width: 180px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); padding: 4px; }
.post h2, .post h3 { font-size: 20px; line-height: 1.4; margin: 0 0 .4em; }
.post h2 a, .post h3 a { color: var(--head); }
.post h2 a:hover, .post h3 a:hover { color: var(--link); }
.post p { margin: 0; }
.more { display: inline-block; margin-top: .5em; font-size: 13px; }

/* Сайдбар */
.widget { margin: 0 0 2.2em; }
.widget-title { color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: .1em; line-height: 2.6em; text-transform: uppercase; margin: 0; }
.widget ul { list-style: square; margin: 0 0 0 1.5em; padding: 0; font-size: 14px; }
.widget li { margin-bottom: .5em; }
.widget p { font-size: 14px; margin: 0 0 .8em; }

/* Сторінка 404 */
.not-found .code { color: #ccc; font-size: 64px; font-weight: bold; line-height: 1; padding-top: .5em; }

/* Футер */
#colophon { clear: both; margin-top: 2em; }
#colophon .footer-widgets { display: grid; grid-template-columns: 2fr 1fr; gap: 2em; padding: 1.625em 7.6%; border-top: 1px solid var(--line); }
#colophon .footer-widgets p { font-size: 13px; color: var(--muted); margin: 0 0 .8em; }
#colophon .footer-widgets ul { list-style: none; margin: 0; padding: 0; font-size: 13px; }
#colophon .footer-widgets li { margin-bottom: .4em; }
#site-generator { background: var(--soft); border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 2.2em; padding: 2.2em .5em; text-align: center; }

/* Вузькі екрани: одна колонка, меню розкривається */
@media (max-width: 800px) {
  body { padding: 0 1em; }
  #page { margin: 1em auto; }
  #branding .titles { padding: 1.5em 1em 0; }
  #site-title { font-size: 24px; }
  #site-description { margin-bottom: 1.5em; }
  .two-column #primary { float: none; margin: 0; }
  .two-column #content, .singular #content { margin: 0 1em; }
  .two-column #secondary { float: none; width: auto; margin: 2em 1em 0; }
  #access ul.menu { display: none; }
  .mnav { display: block; }
  .mnav summary { color: #eee; cursor: pointer; line-height: 3em; padding: 0 1em; list-style: none; display: flex; justify-content: space-between; align-items: center; }
  .mnav summary::-webkit-details-marker { display: none; }
  .mnav .bars { display: inline-flex; flex-direction: column; gap: 4px; }
  .mnav .bars i { display: block; width: 20px; height: 2px; background: #eee; }
  .mnav ul { list-style: none; margin: 0; padding: 0 0 .5em; }
  .mnav li { display: block; }
  .mnav a { color: #eee; display: block; padding: .6em 1em; border-top: 1px solid #333; }
  .mnav ul ul a { padding-left: 2em; font-size: 13px; color: #ccc; }
  .mnav a[aria-current="page"] { font-weight: bold; }
  .entry-title { font-size: 22px; }
  .post { grid-template-columns: 1fr; }
  .post img { width: 100%; }
  #colophon .footer-widgets { grid-template-columns: 1fr; padding: 1.5em 1em; }
}
