:root {
  --ink: #ffffff;
  --accent: #00e7ff;
  --deep: #151b2a;
  --panel: rgba(21, 27, 42, 0.86);
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background-color: var(--deep);
  background-image: linear-gradient(rgba(21, 27, 42, 0.12), rgba(21, 27, 42, 0.12)), url("images/website-background.png");
  background-attachment: fixed;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 300;
}

a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
a:hover { font-style: italic; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

img { max-width: 100%; height: auto; }
figure { margin-inline: 0; }
figcaption { font-size: 0.72em; text-align: center; }
iframe { max-width: 100%; border: 0; }
hr { border: 0; border-top: 1px solid #00a9af; }
h2 { font-size: 1.2em; }
p { margin-top: 0; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 30px;
  display: flex;
  width: 230px;
  height: 100vh;
  flex-direction: column;
  overflow-y: auto;
  padding-bottom: 24px;
}

.widget-text-alb-stanga {
  margin-top: 30px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  line-height: 1.35;
}

.widget-text-alb-stanga a { color: var(--accent); }
.menu-logox { display: flex; min-height: 0; flex: 1; flex-direction: column; }

.menu {
  margin: 0;
  padding: 0;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.48em;
  font-weight: 700;
  line-height: 1.08;
  list-style: none;
  text-transform: uppercase;
}

.menu li { margin-bottom: 0.08em; }
.menu a { text-decoration: none; }
.menu a:hover { text-decoration: underline; }

.logo { margin-top: auto; padding-top: 24px; }
.logo img { width: 42px; }

.menu-button { display: none; }

.main-wrapper {
  position: relative;
  max-width: 760px;
  margin-left: 240px;
  padding: 30px;
}

.content { padding-left: 40px; }

.post-title {
  margin-top: 2px;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 2.05em;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.archive .main-wrapper > .post-title,
.page-template-program .main-wrapper > .post-title { margin-left: 40px; }

.post-content {
  min-width: 0;
  color: #fff;
  font-size: 1.28em;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.post-content > :first-child { margin-top: 0; }
.post-content .has-medium-font-size { font-size: 1.08em; }
.post-content .has-small-font-size { font-size: 0.72em; line-height: 1.25; }

.archive .content { display: flex; flex-wrap: wrap; }
.archive .post-content { width: 50%; padding: 10px; }
.arhive-featured-img {
  width: 300px;
  height: 225px;
  max-width: 100%;
  margin-bottom: 8px;
  background: rgba(0, 0, 0, 0.3);
}
.arhive-featured-img img { width: 100%; height: 100%; object-fit: cover; }
.prog-event-title { margin-bottom: 8px; text-transform: uppercase; }
.uppercase { text-transform: uppercase; }
.small { font-size: 0.72em; line-height: 1.15; }

.wp-block-columns { display: flex; gap: 1.5rem; }
.wp-block-column { min-width: 0; flex: 1; }
.wp-block-embed__wrapper { position: relative; width: 100%; overflow: hidden; }

@media (max-width: 1024px) {
  body { font-size: 14px; }
  .main-wrapper { margin-left: 180px; }
  .sidebar { width: 190px; }
  .menu { font-size: 1.35em; }
}

@media (max-width: 870px) {
  .archive .post-content { width: 100%; }
}

@media (max-width: 600px) {
  body { background-attachment: scroll; background-size: auto 100vh; }
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 0 22px;
    overflow: visible;
  }
  .widget-text-alb-stanga { margin-top: 56px; font-size: 1em; }
  .menu-logox { position: static; }
  .menu-button {
    position: absolute;
    top: 20px;
    right: 22px;
    display: block;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: url("images/menu-button.png") center / contain no-repeat;
    cursor: pointer;
  }
  .vb-menu { display: none; padding-top: 8px; }
  .vb-menu.is-open { display: block; }
  .menu { padding-top: 8px; font-size: 1.6em; }
  .menu li { margin-bottom: 0; }
  .menu a { display: inline-block; padding: 6px 0; }
  .logo { position: absolute; top: 18px; left: 22px; margin: 0; padding: 0; }
  .main-wrapper { margin-left: 0; padding: 22px; }
  .content { padding-left: 0; }
  .archive .main-wrapper > .post-title,
  .page-template-program .main-wrapper > .post-title { margin-left: 0; }
  .archive .post-content { padding-inline: 0; }
  .post-title { font-size: 1.85em; }
  .post-content { font-size: 1.16em; }
  .wp-block-columns { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
}
