/* cyrillic */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/jost/v15/92zatBhPNqw73oDd4iYl.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/jost/v15/92zatBhPNqw73ord4iYl.woff2) format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/jost/v15/92zatBhPNqw73oTd4g.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Overpass';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/overpass/v13/qFdH35WCmI96Ajtm81GoU9vyww.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Overpass';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/overpass/v13/qFdH35WCmI96Ajtm81GhU9vyww.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* latin-ext */
@font-face {
  font-family: 'Overpass';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/overpass/v13/qFdH35WCmI96Ajtm81GrU9vyww.woff2) format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Overpass';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/overpass/v13/qFdH35WCmI96Ajtm81GlU9s.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --c-bg: #1e1e1e;
  --c-border: #0f0f0f;
  --c-text: #ddd;
  --c-accent: #fff78c;

  --container-width: 1000px;
  --avatar-size: 60px;

  --spacing-h: 2px;

  --grid-layout:
    "content"
    / 100%;

  --grid-post:
    "avatar  title"
    "avatar  tags"
    "avatar  music"
    "avatar  date"
    "content content"
    "footer  footer"
    / fit-content(120px) 1fr;
}

@media (min-width: 568px) {
  :root {
    --avatar-size: 80px;
    --spacing-h: 10px;
    --grid-layout:
    "content right"
    / minmax(calc(100% - 72px), var(--container-width)) 1fr;
  }
}

@media (min-width: 1200px) {
  :root {
    --avatar-size: 100px;
    --spacing-h: 20px;

    --grid-layout:
    "left content right"
    / 1fr var(--container-width) 1fr;

    --grid-post:
    "avatar  title"
    "avatar  tags"
    "avatar  music"
    "avatar  date"
    "avatar content"
    "footer  footer"
    / fit-content(120px) 1fr;
  }
}

@view-transition {
  navigation: auto;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

h1, h2, h3 {
  margin: 0;
  font-family: "Overpass", "century gothic", futura, arial, helvetica, sans-serif;
  line-height: 1;
}

h1 {
  font-size: 48px;
  font-weight: 700;
}

.postlist {
  position: relative;
}

a,
summary {
  text-decoration: none;
  color: var(--c-accent);

  &:is(:hover, :focus) {
    cursor: pointer;
    text-decoration: underline;
  }
}

.button {
  display: flex;
  align-items: center;
  gap: 0 var(--spacing-h);
  background-color: var(--c-bg);
  border-radius: 4px;
  outline: 1px solid currentColor;
  text-decoration: none;
  transition: background-color .2s ease-out, font-weight .2s ease-out;

  &:hover,
  &:focus,
  &:active,
  &:focus-visible {
    outline: 3px solid currentColor;
    text-decoration: none;
    font-weight: 500;

    &[href] {
      background-color: var(--c-border);
    }
  }

  &[aria-current] {
    font-weight: 500;
    outline-width: 3px;
  }
}

.button--flow-center {
  justify-content: center;
  text-align: center;
}

.button--flow-reverse {
  justify-content: end;
  flex-flow: row-reverse;
}

.button--size-medium {
  padding: 5px 10px;
}

.header {
  position: relative;
  height: 400px;
  padding: 37px 30px 37px 167px;
  background-image: url(/img/header.jpg);
  background-image: image-set(
    "/img/header.avif" type("image/avif"),
    "/img/header.webp" type("image/webp"),
    "/img/header.jpg" type("image/jpeg")
  );
  background-position: center 20%;
  background-size: cover;
  box-shadow: inset 0 -10px 20px var(--c-bg);
  text-shadow: 0 1px 2px var(--c-border);
}

.header__title {
  font-family: "Overpass", "century gothic", futura, arial, helvetica, sans-serif;
  font-size: 60px;
  font-weight: 700;
  line-height: 1;
}
.header__subtitle {
  font-size: 22px;
}

.header__nav {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 150px;
  padding-right: 2px;
  border-right: 1px solid var(--c-bg);
  overflow-y: scroll;
  scrollbar-width: thin;
  scrollbar-color: var(--c-accent) var(--c-bg);

  &::-webkit-scrollbar {
    width: 8px;
  }
  &::-webkit-scrollbar-thumb {
    background-color: var(--c-accent);
  }
  
  &:before, &:after { /* decorative shadow over sticky element */
    --shadow-direction: to bottom;
    content: '';
    display: block;
    position: sticky;
    width: 100%;
    height: 10px;
    background-image: linear-gradient(var(--shadow-direction), var(--c-bg) 0%, transparent 100%);
  }
  &:before {
    top: 0;
  }
  &:after {
    --shadow-direction: to top;
    bottom: 0;
  }
}
.document {
  scrollbar-width: thin;
  scrollbar-color: var(--c-accent) var(--c-bg);

  &::-webkit-scrollbar {
    width: 8px;
  }
  &::-webkit-scrollbar-thumb {
    background-color: var(--c-accent);
  }
}
.page {
  display: grid;
  grid-template: var(--grid-layout);

  padding: 0;
  margin: 0;

  background-color: var(--c-bg);
  background-image: url("/img/background.jpg");
  background-image: image-set(
    "/img/background.avif" type("image/avif"),
    "/img/background.webp" type("image/webp"),
    "/img/background.jpg" type("image/jpeg")
  );
  background-position: center -75px;
  color: var(--c-text);

  text-transform: lowercase;
  font-family: "Jost", "Proxima Nova", Calibri, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 20px;
}

.page__content {
  grid-area: content;

  background-color: var(--c-bg);
  border-left: 1px solid var(--c-border);
  border-right: 1px solid var(--c-border);
}

.page__title {
  padding: 40px 30px 30px;
  font-size: 60px;
  font-weight: 700;
}

.page__about {
  padding: 0 30px;
}

.page__aside {
  display: none;
}

.page__aside--left {
  grid-area: left;

  @media (min-width: 1200px) {
    display: block;
  }
}

.page__aside--right {
  grid-area: right;

  @media (min-width: 568px) {
    display: block;
  }
}
.post {
  display: grid;
  grid-template: var(--grid-post);
  padding: 20px 30px;
  gap: 0 10px;
  margin-bottom: 20px;
}

.post__title {
  grid-area: title;
  align-self: center;
  margin: 0;
  word-wrap: anywhere;
  font-size: 30px;
  font-weight: 700;
}

.post__author {
  grid-area: avatar;
  align-self: center;
  width: var(--avatar-size);
  margin-top: 20px;
  margin-right: var(--spacing-h);

  .avatar {
    display: block;
    width: var(--avatar-size);
    height: var(--avatar-size);
  }
}

.post__meta {
  font-weight: 200;
  line-height: 1.2;
}

.post__tags {
  grid-area: tags;
}

.post__date {
  grid-area: date;
  align-self: center;
  margin: 0;
}

.post__music {
  grid-area: music;
  align-self: center;
  margin: 0;
}

.post__content {
  margin-top: 30px;
  grid-area: content;

  p {
    margin-block-start: 0;
    line-height: 1.2;
  }

  img {
    max-width: 100%;
    height: auto;
  }
}
.post__footer {
  margin-top: 30px;
  grid-area: footer;
  display: grid;
  gap: 0 .2em;

  .button:has(.avatar):hover .avatar {
    transform: translateY(10px) rotate(0deg);
  }
}

@media (min-width: 568px) {
  .post__title {
    font-size: 48px;
  }
  .post__footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1200px) {
  .page--template-post .post__title {
    font-size: 60px;
    font-weight: 700;
  }
  .post__author {
    position: sticky;
    top: 40px;
    align-self: stretch;
  }
}

.nav {
  background-color: var(--c-bg);
}

.nav__list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 2px;
  list-style-type: none;
  justify-content: space-around;
  gap: 4px 4px;
  font-weight: 200;

  & & {
    margin-top: 2px;
    margin-bottom: -2px;
    padding: 2px 0 2px 8px;
  }
}
.tags {
  display: flex;
  gap: 0 .2em;
}

.tags__list {
  padding: 0;
  margin: 0;
  list-style: none;

  &::before {
    content: '🏷 ';
    vertical-align: middle;
  }
}
.tags__item {
  display: inline;

  &:not(:last-of-type)::after {
    content: ', ';
  }
}

.avatar {
  margin-top: -20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: inset 0 0 10px var(--c-bg), inset 0 0 10px var(--c-border);
  transform: translateY(10px) rotate(-10deg);
  transition: transform .2s ease, clip-path .2s ease;

  &::before {
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: center;
  }

  &:hover {
    transform: translateY(10px) rotate(0deg);
  }
}