:root {
  --accent: hsl(30, 34%, 44%);
  --accent-bg: hsl(30, 34%, 95%);
  --default-font-size: 1.6rem;
  --color: #000000;
  --color-white: #ffffff;
  --content-width: 100rem;
  --grid-vgap: 7rem;
  --grid-hgap: 7rem;

  --btn-border: var(--border, 1px solid #ccc);
  --btn-font-size: var(--default-font-size, 1.6rem);
}
/* MED */
@media screen and (max-width: 56.25em) {
  :root {
    --grid-hgap: 4rem;
  }
}
/* SMALL */
@media screen and (max-width: 37.5em) {
  :root {
    --grid-hgap: 2rem;
  }
}

* {
  margin: 0;
  padding: 0;
}

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

html {
  font-size: 62.5%;
}
@media only screen and (max-width: 56.25em) {
  html {
    font-size: 56.25%;
  }
}

body {
  color: var(--color);
  font-family: 'M PLUS 2', sans-serif;
  font-size: var(--default-font-size);
  line-height: 1.7;
  font-weight: normal;
}


/* ========================================================================= */
/* reset */
/* ========================================================================= */
p, h1, h2, h3, h4 {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

a, button {
  color: var(--color);
  cursor: pointer;
  border-radius: 0;
  border: none;
  text-decoration: none;
}

form {
  display: block;
}

/* ========================================================================= */
/* LAYOUT */
/* ========================================================================= */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.page_content {
  flex: 1;
}

.content-container {
  padding-left: var(--grid-hgap);
}

.content-container > * {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding-right: var(--grid-hgap);
}


/* ========================================================================= */
/* BTN */
/* ========================================================================= */
.tag {
  display: inline-block;
  line-height: 1.5;
  font-size: 1.1rem;
  font-weight: bold;
  padding: .3rem 1rem;
  color: #666;
  border: 1px solid #bbb;
  border-radius: 1rem;
  white-space: nowrap;
  background-color: #ffffff40;
}


/* ========================================================================= */
/* BTN */
/* ========================================================================= */
.btn, .btn:link, .btn:visited {
  display: inline-block;
  line-height: 1.5;
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--accent);
  padding: .4rem 1.4rem;
  border: 1px solid;
  border-radius: 1rem;
  white-space: nowrap;
}
a.btn:hover, .btn:active,
button.btn:hover, .btn:active {
  background-color: var(--accent-bg);
}



/* ========================================================================= */
/* GRID */
/* ========================================================================= */
.grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  padding-right: 0;
}
.grid > * {
  width: 33.33333%;
  padding-right: var(--grid-hgap);
  padding-bottom: var(--grid-vgap);
}
/* MED */
@media screen and (max-width: 56.25em) {
  .grid > * {
    width: 50%;
  }
}
/* SMALL */
@media screen and (max-width: 37.5em) {
  .grid > * {
    width: 100%;
  }
}




/* ========================================================================= */
/* NAVBAR */
/* ========================================================================= */
.navbar {
  border-top: 1.1rem solid var(--accent);
}
.navbar__nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 5.3rem;
}
.navbar__nav > * {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.navbar__brand {
  font-weight: bold;
  font-size: 17px;
  text-transform: capitalize;
  padding-left: 2rem;
  padding-right: 2rem;
  margin-left: -2rem;
}
.navbar__brand:hover {
  background-color: var(--accent-bg);
}


/* ========================================================================= */
/* FOOTER */
/* ========================================================================= */
.footer {
  display: flex;
  justify-content: center;
  padding: 4rem 0rem;
}
.footer__copyright {
  font-size: 1.3rem;
  letter-spacing: .2rem;
  font-weight: bold;
  opacity: .7;
}



/* ========================================================================= */
/* BLOG INDEX */
/* ========================================================================= */
.blogs {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.blogs__header {
  min-height: 30vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blogs__title {
  display: block;
  width: 100%;
  font-size: 4.1rem;
  font-weight: bold;
}
.blogs__subtitle {
  display: block;
  width: 100%;
  font-size: 1.52rem;
  margin-bottom: 4rem;
}
.blogs__featured {
  display: block;
  width: 100%;
}


/* ========================================================================= */
/* BLOG_ITEM */
/* ========================================================================= */
.blog_item {
  display: flex;
  flex-direction: column;
}
.blog_item__image {
  width: 100%;
  aspect-ratio: 3/2;
}
.blog_item__contents {
  padding: 2.5rem 0 1.1rem 0;
  background-color: #ffffff;
  border-radius: .5rem;
}
.blog_item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.5rem;
}
.blog_item__tags .btn {
  color: var(--color);
}
.blog_item__tags .btn:hover,
.blog_item__tags .btn:active {
  background: #00000010;
}
.blog_item__date {
  font-size: 1.3rem;
  opacity: .6;
  margin-bottom: .5rem;
}
.blog_item__title {
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 1.4;
}
.blog_item__intro {
  font-size: 1.3rem;
  margin-bottom: .75rem;
}
.blog_item__link {
  display: block;
}

.blogs__featured {
  margin-bottom: var(--grid-vgap);
}

.blogs__featured .blog_item__contents {
  padding: 2.6rem 2.6rem 2.6rem 2.6rem;
  margin: -5.7rem 6.4rem 0 6.4rem;
  box-shadow: 0 0 10px #00000030;
}
/* SMALL */
@media screen and (max-width: 37.5em) {
  .blogs__featured .blog_item__contents {
    padding: 2.5rem 0 1.1rem 0;
    margin: inherit;
    box-shadow: none;
  }
}


/* ========================================================================= */
/* BLOG SEARCH */
/* ========================================================================= */
.search_bar {
  margin-bottom: 3rem;
}
.search {
  display: flex;
  border: 1px solid #00000040;
  transition: all .2s linear;
}
.search_input {
  flex: 1;
  padding: 1rem 2rem;
  border: none;
  border-right: 1px solid #00000040;
  font-size: 1.8rem;
}
.search_button {
  border: none;
  background-color: transparent;
  padding: 1rem 2rem;
  cursor: pointer;
  transition: all .2s linear;
}
.search_button:hover {
  color: var(--accent);
}
.search_relevency {
  font-size: 1.3rem;
  opacity: .6;
  font-weight: bold;
}

/* ========================================================================= */
/* BLOG PAGE */
/* ========================================================================= */
.blog_page__header {
  padding-top: 3.8rem;
  padding-bottom: 6rem;
  background-image: url('/static/img/blog_bg.png');
  background-size: cover;
  background-position: bottom center;
  background-repeat: no-repeat;
  overflow: hidden;
  border-bottom: 1px solid #00000010;
}
.blog_page__header_content {
  display: flex;
  justify-content: space-between;
  gap: var(--grid-hgap);
}
/* SMALL */
@media screen and (max-width: 37.5em) {
  .blog_page__header_content {
    flex-direction: column-reverse;
  }
}


.blog_page__header_content > *:nth-child(1) {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog_page__image {
  width: 50%;
  aspect-ratio: 5/6;
}
/* SMALL */
@media screen and (max-width: 56.25em) {
  .blog_page__image {
    width: 100%;
    aspect-ratio: 3/2;
  }
}
.blog_page__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.5rem;
}
.blog_page__date {
  font-size: 1.5rem;
  opacity: .6;
  margin-bottom: 1rem;
}
.blog_page__title {
  font-size: 3.2rem;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 2rem;
}
.blog_page__intro {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 2.6rem;
}
.blog_page__content {
  padding-top: 5.7rem;
  padding-bottom: 5.7rem;
}
.blog_page__gallery {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  padding-right: 0;
}
.blog_page__gallery > * {
  width: 33.33333%;
  padding-right: var(--grid-hgap);
  padding-bottom: var(--grid-vgap);
}
/* MED */
@media screen and (max-width: 56.25em) {
  .blog_page__gallery > * {
    width: 50%;
  }
}
/* SMALL */
@media screen and (max-width: 37.5em) {
  .blog_page__gallery > * {
    width: 100%;
  }
}
.blog_page__gallery_image {
  width: 100%;
  aspect-ratio: 3/2;
}
.blog_page__gallery_caption {
  font-size: 1.4rem;
}
.blog_page__bottom_nav {
  border-top: 1px solid #00000010;
  display: flex;
  justify-content: space-between;
  padding-top: var(--grid-vgap);
}
.blog_page__bottom_nav > * {
  min-width: 12rem;
  text-align: center;
}
.blog_page__bottom_nav .disabled {
  color: #ccc;
}


/* ========================================================================= */
/* markdown */
/* ========================================================================= */
.richtext {
  margin-bottom: var(--grid-vgap);
}
.richtext p {
  margin: 0 0 10px;
}
.richtext h1,
.richtext h2,
.richtext h3,
.richtext h4,
.richtext h5,
.richtext h6 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.1;
  color: inherit;
}
.richtext h1 {
  font-size: 36px;
  margin-top: 50px;
}
.richtext h2 {
  font-size: 30px;
  margin-top: 40px;
}
.richtext h3 {
  font-size: 24px;
  margin-top: 30px;
}
.richtext h4 {
  font-size: 18px;
}
.richtext h5 {
  font-size: 14px;
}
.richtext h6 {
  font-size: 12px;
}
.richtext hr {
  margin-top: 26px;
  margin-bottom: 20px;
  border: 0;
  border-top: 1px solid #eee;
}
.richtext blockquote {
  padding: 10px 20px;
  margin: 0 0 20px;
  font-size: 17.5px;
  border-left: 5px solid #eee;
}
.richtext ul, ol {
  padding-left: 40px;
  margin-top: 0;
  margin-bottom: 10px;
}
.richtext code {
  padding: 2px 4px;
  font-size: 90%;
  color: #c7254e;
  background-color: #f9f2f4;
  border-radius: 4px;
}
.richtext pre {
  display: block;
  padding: 9.5px;
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.42857143;
  color: #333;
  word-break: break-all;
  word-wrap: break-word;
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.richtext pre code {
  padding: 0;
  font-size: inherit;
  color: inherit;
  white-space: pre-wrap;
  background-color: transparent;
  border-radius: 0;
}
.richtext table {
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
  background-color: transparent;
  border-spacing: 0;
  border-collapse: collapse;
}
.richtext table > thead > tr > th,
.richtext table > tbody > tr > th,
.richtext table > tfoot > tr > th,
.richtext table > thead > tr > td,
.richtext table > tbody > tr > td,
.richtext table > tfoot > tr > td {
  padding: 8px;
  line-height: 1.42857143;
  vertical-align: top;
  border-top: 1px solid #ddd;
}
.richtext table > caption + thead > tr:first-child > th,
.richtext table > colgroup + thead > tr:first-child > th,
.richtext table > thead:first-child > tr:first-child > th,
.richtext table > caption + thead > tr:first-child > td,
.richtext table > colgroup + thead > tr:first-child > td,
.richtext table > thead:first-child > tr:first-child > td {
  border-top: 0;
  text-align: left;
}
.richtext table > thead > tr > th {
  vertical-align: bottom;
  border-bottom: 2px solid #ddd;
}
.richtext table > tbody > tr:nth-child(2n+1) > td,
.richtext table > tbody > tr:nth-child(2n+1) > th {
  background-color: #f9f9f9;
}
.richtext a {
  color: #428bca;
}
.richtext img {
  max-width: 80%;
  vertical-align: middle;
  border: 0;
}

/* ========================================================================= */
/* UTILS */
/* ========================================================================= */
.bg-image--fill {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}