:root {
  /* background color */
  --color-darker: light-dark(#EFCCD2, #211522);
  /* header and cards color */
  --color-dark: light-dark(#A66041, #613659);
  --color-dark-hover: light-dark(#8ac8e2, #D3B1C2);
  --color-basic: light-dark(#FDF2ED, #ffe6fa);
  --color-bold: light-dark(#EFCCD2, #e4ceed);
  --color-gray-300: light-dark(#232527, #dadfe7);

  --color-register-active: #464358;
  --box-radius: 5px;
  --page-width-md: 60%;
  --page-width-lg: 75%;
  /* font-size: large; */
}

a {
  color: var(--color-bold);
  /* font-size: 18px; */
}

h1,
h2,
h3,
h4 {
  color: var(--color-bold);
}

ul {
  /* margin: 0; */
  /* padding: 0; */
  padding-left: 16px;
}

ul li {
  margin: 2px;
  ;
}

li p {
  margin-bottom: 5px;
}

ul ul li::marker {
  content: "• ";
  /* font-size: x-large; */
}

ul ul li {
  padding: 3px;
}

@font-face {
  font-family: Rubik;
  src: url("/fonts/Rubik-VariableFont_wght.ttf") format("truetype");
}

@font-face {
  font-family: Fantasque;
  src: url('/fonts/FantasqueSansMono-Regular.ttf') format("truetype");
}

@font-face {
  font-family: Montserrat;
  src: url("/fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
}

body {
  font-family: "Fantasque";
  background-color: var(--color-darker);
  /* width: 100vw; */
  /* max-width: 100vw; */
  /* font-size: large; */
  font-size-adjust: 0.7;
}

.header-container {
  max-width: 100%;
  display: flex;
  position: sticky;
  justify-content: center;
  top: 0px;
  z-index: 50;
  background-color: var(--color-darker);
  padding-bottom: 0.25rem;
}

.header {
  width: 100%;
  margin-top: 2px;
  border-bottom: 1px;
}

.header-child {
  padding: 5px;
  background-color: var(--color-dark);
  display: flex;
  justify-content: space-between;
  border-radius: var(--box-radius);
}

.header-child a {
  color: var(--color-basic);
  padding-left: 0.75rem;
  /* line-height: 2rem; */
}

a.title {
  color: var(--color-basic);
  font-size: x-large;
  text-decoration: none;
  padding: 0.25rem;
}

a.title:visited {
  color: var(--color-basic);
  font-size: x-large;
  text-decoration: none;
  padding: 0.25rem;
}

.header-nav {
  display: flex;
  padding: 0.5rem;
  padding-right: 1rem;
  gap: 0.5rem;
}

.header-nav a {
  color: var(--color-basic);
  font-size: larger;
}

.page-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.page-inner {
  /* padding: 1rem; */
  color: var(--color-basic);
}

.article-container {
  width: 100%;
  display: flex;
  justify-content: center;
  /* flex-direction: column; */
}

.post-summary {
  background-color: var(--color-dark);
  border-radius: var(--box-radius);
  padding: 1rem;
  margin-bottom: 0.75rem;
  display: flex;
  gap: 1rem;
}

img.summary-thumbnail {
  background-color: var(--color-bold);
  height: 250px;
  min-width: 250px;
  max-width: 250px;
  max-height: 250px;
  width: auto;
  height: auto;
}

.post-summary header {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.summary {
  width: 100%;
  /* font-size: large; */
}

.post {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem;
  background-color: var(--color-dark);
  border-radius: var(--box-radius);
  color: var(--color-basic);
  /* font-size: larger; */
}

.post-link {
  /* font-size: x-large; */
  font-weight: 600;
}

.title-header {
  display: block;
  font-size: x-large;
}

time {
  color: var(--color-gray-300);
}

time.small {
  /* font-size: small; */
}

hr {
  margin-top: 1rem;
  margin-bottom: 1rem;
  color: var(--color-basic)
}

.pagination-container {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  /* padding-inline: 2rem; */
}

.pagination-inner {
  width: 100%;
  display: flex;
  gap: 0.5rem;
}

.pagination-empty {
  width: 50%;
}

.pagination-button {
  background-color: var(--color-dark);
  border-radius: var(--box-radius);
  padding: 0.5rem;
  width: 50%;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  color: var(--color-gray-300);
  font-weight: 600;
  /* font-size: 18px; */
}

.readmore-container {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.readmore-line {
  border-bottom: 5px double var(--color-dark);
  width: 100%;
  justify-content: center;
  text-align: center;
  height: 1rem;
  margin-bottom: 1.5rem;
}

.readmore-line span {
  background-color: var(--color-darker);
  padding-inline: 0.4rem;
  color: var(--color-gray-300);
  line-height: 36px;
  /* font-size: larger; */
}

.svg-size {
  width: 2rem;
  height: 2rem;
}

.register-container {
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr))
}

.register-button {
  /* font-size: larger; */
  background-color: var(--color-darker);
  border: 1px black solid;
  padding: 4px;
  padding-top: 12px;
  transition-duration: 0.6s;
}

.enable-register-bit {
  background-color: var(--color-register-active);
  box-shadow: inset 5px 5px var(--color-register-active), inset -5px -5px var(--color-register-active);
  animation-duration: 1s;
  transition-duration: 0.6s;
  animation-name: fade-in;
}

.enable-register-bit span {
  display: none;
}

.enable-register-bit::after {
  color: var(--color-basic);
  content: "1";
}

.register-button:disabled {
  background-color: #587064;
}

.highlight pre {
  overflow-x: auto;
}

/* phone size  */
@media (width < 1024px) {
  .post-summary {
    flex-direction: column;
  }

  img.summary-thumbnail {
    display: block;
    max-height: unset;
    max-width: 100%;
    border-radius: var(--box-radius);
    box-shadow: none;
    width: auto;
    height: auto;
  }

  .post-summary header {
    flex-direction: column;
  }
}

/* medium size */
@media (width >=1024px) {
  .header {
    margin-top: 2rem;
    width: var(--page-width-md);
  }

  .page-container {
    margin-top: 2rem;
  }

  .article-container {
    margin-top: 2rem;
  }

  .post {
    width: var(--page-width-md);
  }

  .pagination-inner {
    width: var(--page-width-md);
  }

  .readmore-line {
    width: var(--page-width-md);
  }

  .page-inner {
    width: var(--page-width-md);
  }
}