:root {
  --ink: #262124;
  --ink-soft: #6a6065;
  --accent: #b67a91;
  --accent-soft: #eddde4;
  --accent-pale: #f8f1f4;
  --surface: #faf8f9;
  --line: #e6e0e3;
}

body {
  max-width: 1200px;
  margin: auto;
  padding: 1.25rem;
  line-height: 1.55;
  color: var(--ink);
  background: #ffffff;
}

a {
  text-decoration: none;
  color: var(--accent);
}

main a[href] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

main a[href]::after {
  content: "↗";
  display: inline-block;
  margin-left: 0.18em;
  font-size: 0.8em;
  line-height: 1;
}
/* a:visited {
  color: lightcoral;
} */
/* a:active {
  color: rgb(104, 86, 206);
} */
/* a:hover {
  text-decoration: underline;
} */

p {
  white-space: pre-line;
}

/* header and footer areas */
.menu {
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.35rem;
  justify-content: center;
  margin: 0 0 0.8rem;
}
/* .grow  {
  background-color: red;
} */

.menu li {
  display: inline-block;
}
.article-meta,
.linkz {
  text-decoration: none;
  background: transparent;
  color: var(--ink-soft);
  text-shadow: none;
  padding: 0.2rem 0.45rem;
  border-radius: 2px;
  transition: background-color 120ms ease, color 120ms ease;
}
.customLinks {
  text-decoration: none;
  color: var(--ink);
  padding: 0.2rem 0.45rem;
  border-radius: 2px;
  transition: background-color 120ms ease, color 120ms ease;
}

.nav-active {
  background: var(--accent-soft);
  color: var(--ink);
  text-shadow: none;
}

.nav-spetial {
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  text-shadow: none;
}

.nav-spetial-active {
  color: var(--ink);
}

.menu a:hover {
  background: var(--accent-pale);
  color: var(--ink);
}

.lbl {
  text-align: left;
  display: flex;
  flex-grow: 1;
  justify-content: flex-start;
}

.menu,
.article-meta,
footer {
  text-align: center;
}
.title {
  font-size: 1.1em;
}
footer a {
  text-decoration: none;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0 0 1.4rem;
}

/* code */
pre {
  border: 1px solid var(--line);
  box-shadow: none;
  padding: 1em;
  overflow-x: auto;
}
code {
  background: var(--surface);
}
pre code {
  background: none;
}

/* misc elements */
img,
iframe,
video {
  max-width: 100%;
}
main {
  hyphens: auto;
}
blockquote {
  background: var(--surface);
  border-left: 5px solid rgba(201, 142, 165, 0.55);
  padding: 3px 1em 3px;
}

table {
  margin: auto;
  border-top: 1px solid var(--ink-soft);
  border-bottom: 1px solid var(--ink-soft);
}
table thead th {
  border-bottom: 1px solid var(--line);
}
th,
td {
  padding: 5px;
}
thead,
tfoot,
tr:nth-child(even) {
  background: var(--surface);
}

/* list */

.linkList {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 0;
  margin: 0;
}
.linkList li {
  list-style: none;
  display: flex;
  align-items: start;
  gap: 15px;
  padding: 10px;
  /* border: 1px solid white; */
  /* border-radius: 8px; */
}
.linkList li:hover span {
  text-decoration: underline;
  text-decoration-color: var(--accent);
}
.linkList li img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}
.linkList li {
  flex-shrink: 0;
}

.linkList li .box {
  flex-grow: 1;
}

.linkList li .box span {
  font-size: 16px;
  color: var(--ink);
  display: block;
  margin-bottom: 5px;
}
.linkList li .box div {
  margin: 0;
  text-decoration: none;
  text-align: left;
  font-size: 14px;
  color: var(--ink-soft);
}

.image-wrapper img {
  width: 100%;
  height: auto;
}


.image-wrapper {
  margin: 0;
  padding: 0;
}

.to-top-button[hidden] {
  display: none;
}

.to-top-button {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 200;
  width: 3.5rem;
  height: 3.5rem;
  border: 0;
  border-radius: 3px;
  background: var(--ink);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(38, 33, 36, 0.22);
  transition: transform 120ms ease, background-color 120ms ease;
}

.to-top-button:hover {
  background: var(--accent);
  transform: translateY(-2px);
}
