:root {
  --bg: #000000;
  --bg-2: #1b1b1b;
  --text: #999999;
  --text-muted: #8c8c8c;
  --heading: #cfcfcf;
  --link: #8c8c8c;
  --link-hover: #cfcfcf;
  --red: #f04848;
  --red-large: #dd2222;
  --menu-active-bg: #990200;
  --menu-active-fg: #ffffff;
  --line: #333333;
  --mono: "Courier New", Courier, monospace;
  --display: "Oswald", "Arial Narrow", sans-serif;
}

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url("../fonts/oswald-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: "Oswald";
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url("../fonts/oswald-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;
}

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

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

body {
  margin: 0;
  background: var(--bg) url("../images/img05.jpg") repeat;
  color: var(--text);
  font: 14px/1.8 var(--mono);
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; }

a { color: var(--link); }
a:hover, a:focus-visible { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--heading); outline-offset: 2px; }

strong { color: #f2f2f2; letter-spacing: 1px; }
em { color: #f0f0f0; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--mono);
  font-weight: normal;
  text-transform: uppercase;
  color: var(--heading);
  line-height: 1.3;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 8px 12px;
  background: var(--menu-active-bg);
  color: var(--menu-active-fg);
}
.skip:focus { left: 8px; z-index: 10; }

.wrapper {
  padding-bottom: 30px;
  background: var(--bg-2) url("../images/img01.jpg") repeat;
}

.header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 16px 20px;
}

.logo { margin: 0; line-height: 1; text-transform: uppercase; font-family: var(--display); font-weight: 400; }
.logo-first { display: block; margin-left: 4px; font-size: 28px; letter-spacing: 2px; color: var(--heading); }
.logo-last {
  display: block;
  font-size: 63px;
  line-height: 72px;
  letter-spacing: 3px;
  color: var(--red-large);
  text-decoration: none;
}
.logo-last:hover, .logo-last:focus-visible { color: var(--red-large); }

.menu ul { display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; list-style: none; }
.menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 5px;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -1px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
}
.menu a:hover, .menu a:focus-visible { color: var(--menu-active-fg); }
.menu a[aria-current="page"] { background: var(--menu-active-bg); color: var(--menu-active-fg); }

.lang-switch { margin: 0; padding: 0; list-style: none; font-size: 12px; text-transform: uppercase; }
.lang-switch a { color: var(--text); }

.banner {
  display: block;
  width: 100%;
  max-width: 1000px;
  max-height: 40vh;
  margin: 0 auto 30px;
  object-fit: cover;
}

.post {
  display: block;
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px;
  background: var(--bg);
  border-radius: 15px;
}

.title {
  margin-bottom: 20px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-size: 2.1em;
  letter-spacing: -1px;
  color: var(--red-large);
  text-shadow: 0 1px 1px #333;
}

.entry { text-align: justify; }
.entry p, .entry ul, .entry ol { margin-top: 0; }

.portrait { float: right; margin: 6px 0 6px 12px; padding: 4px; }

.byline em, .role { font-size: 12px; letter-spacing: -1px; color: var(--text-muted); }
.source { text-align: right; font-size: 13px; color: var(--text-muted); }

.untranslated { padding: 8px 12px; border-left: 3px solid var(--menu-active-bg); color: var(--heading); }

.accordion details { border-top: 1px solid var(--line); }
.accordion details:first-child { border-top: 0; }
.accordion summary {
  padding: 12px 0;
  cursor: pointer;
  font-size: 1.3em;
  text-transform: uppercase;
  color: var(--heading);
}
.accordion summary .role { display: block; margin-left: 1.3em; font-size: 12px; text-transform: none; }
.accordion summary:hover .critic { color: var(--menu-active-fg); }
.essay-title { padding: 10px; font-size: 16px; font-weight: bold; letter-spacing: 1px; text-align: center; }
.essay-title a { color: var(--red); text-decoration: none; }
.essay-title a:hover, .essay-title a:focus-visible { text-decoration: underline; }

.footer {
  padding: 50px 16px 15px;
  font: 12px/1.6 Geneva, Arial, Helvetica, sans-serif;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer p { margin: 0 0 10px; }
.footer p + p { text-transform: none; }
.footer .mail { color: var(--red); text-decoration: none; }
.footer .mail:hover, .footer .mail:focus-visible { text-decoration: underline; }

@media (max-width: 600px) {
  .header { padding-top: 16px; }
  .logo-first { font-size: 20px; }
  .logo-last { font-size: 44px; line-height: 52px; }
  .menu a { padding: 8px; font-size: 14px; }
  .banner { margin-bottom: 16px; }
  .post { padding: 16px; border-radius: 0; }
  .title { font-size: 1.75em; }
  .entry { text-align: left; }
  .portrait { float: none; display: block; margin: 0 auto 12px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.categories ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 0;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.categories li + li::before { content: "|"; padding: 0 8px; color: var(--line); }
.categories a { color: var(--red); text-decoration: none; }
.categories a:hover, .categories a:focus-visible { text-decoration: underline; }

.categoria {
  margin: 28px 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--menu-active-bg);
  font-size: 1.3em;
  color: var(--heading);
  text-shadow: 0 -1px 1px #333, #000 0 1px 1px;
  scroll-margin-top: 16px;
}

.list { text-align: left; }
.list table { width: 100%; margin: 0 0 20px; border-collapse: collapse; font-size: 13px; }
.list caption {
  padding: 4px 8px;
  text-align: left;
  font-size: 12px;
  color: var(--heading);
  background: var(--bg-2);
  border-radius: 5px;
}
.list caption .count, .accordion summary .count { color: #ffcc00; }
.list th { padding: 6px 4px 2px; font-size: 11px; font-weight: normal; text-align: left; color: var(--heading); border-bottom: 1px solid var(--line); }
.list td { padding: 4px; vertical-align: top; }
.list .mark { width: 1.5em; text-align: center; color: var(--heading); }
.list .name { color: var(--red); }
.list .name a { color: var(--red); text-decoration: none; }
.list .name a:hover, .list .name a:focus-visible { text-decoration: underline; }
.list .year { width: 5em; text-align: center; color: #ffffff; }
.list .source { color: var(--text); }
.list .summary { display: block; color: var(--text); }
.list.accordion summary { font-size: 1.1em; }

.artwork {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 24px 30px;
  align-items: start;
}
.artwork .title { grid-column: 1 / -1; }
.artwork-facts { display: contents; }
.artwork-facts dl, .artwork-facts .series, .artwork-facts .entry, .artwork-facts .untranslated { grid-column: 1; }
.artwork dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; }
.artwork dt { color: var(--heading); text-transform: uppercase; font-size: 12px; padding-top: 2px; }
.artwork dd { margin: 0; color: var(--red); }
.artwork .series { color: var(--text); }
.artwork-image { grid-column: 2; grid-row: 2 / span 4; margin: 0; }
.artwork-image a { display: block; }
.artwork-image img { display: block; width: 100%; border: 1px solid var(--line); padding: 4px; border-radius: 3px; background: var(--bg); }
.placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg-2);
  color: var(--text);
  text-align: center;
}
.pager {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.pager-back { margin: 0 auto; }

@media (max-width: 700px) {
  .artwork { grid-template-columns: minmax(0, 1fr); }
  .artwork-facts dl, .artwork-facts .series, .artwork-facts .entry, .artwork-facts .untranslated, .artwork-image { grid-column: 1; grid-row: auto; }
  .artwork-image { order: -1; }
  .artwork .title { order: -2; }
}

@media (max-width: 600px) {
  .list thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .list table, .list tbody, .list caption { display: block; width: 100%; }
  .list tr { display: block; position: relative; padding: 6px 0 6px 1.5em; border-bottom: 1px solid var(--line); }
  .list td { display: block; padding: 0; width: auto; text-align: left; }
  .list .mark { position: absolute; left: 0; top: 6px; }
  .list .year { width: auto; text-align: left; }
}
