@font-face {
  font-family: "Titillium Web";
  src: url("../fonts/titillium-web-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Titillium Web";
  src: url("../fonts/titillium-web-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Amaranth";
  src: url("../fonts/amaranth-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --primary-color: #33bbcc;
  --text-color: #303030;
  --medium-text-color: rgba(0, 0, 0, 0.75);
  --light-text-color: rgba(0, 0, 0, 0.5);
  --light-border-color: rgba(0, 0, 0, 0.15);
  --page-background-color: #fff;
  --text-font: "Titillium Web", Arial, Helvetica, sans-serif;
  --title-font: "Amaranth", Arial, Helvetica, sans-serif;
}

html {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  color: var(--text-color);
  background: #303030;
  font-family: var(--text-font);
  font-size: 17px;
  line-height: 1.75;
}

button,
input,
select,
textarea {
  color: var(--text-color);
  font: inherit;
}

a {
  color: var(--primary-color);
  background-color: transparent;
  text-decoration: none;
}

a:visited {
  color: var(--primary-color);
}

a:hover,
a:focus,
a:active {
  color: var(--text-color);
}

a:focus,
button:focus-visible {
  outline: 2px dotted currentColor;
  outline-offset: 3px;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  clear: both;
  margin: 0.75em 0;
  line-height: 1.4;
}

h1 {
  font-size: 36px;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 24px;
}

p {
  margin: 1.5em 0;
}

ul,
ol {
  margin: 1.5em 0;
  padding-left: 1.25em;
}

table {
  width: 100%;
  margin: 1.5em 0;
  border: 0;
  border-spacing: 0;
  border-collapse: collapse;
  table-layout: auto;
}

th,
td {
  padding: 0.3em 0.6em;
  border: 1px solid var(--light-border-color);
  text-align: initial;
  vertical-align: top;
}

th {
  background: rgba(0, 0, 0, 0.05);
  font-weight: 400;
}

.site {
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 5em;
  background: var(--page-background-color);
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  padding: 0.6em 1em;
  color: #fff;
  background: #303030;
}

.skip-link:focus {
  top: 1rem;
  color: #fff;
}

.header-main {
  padding: 3em 0;
}

.site-header {
  position: relative;
}

.site-title {
  display: inline-block;
  margin: 0.15em 0;
  padding: 0;
  color: var(--text-color);
  font-family: var(--title-font);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.4;
}

.site-title a,
.site-title a:visited {
  color: var(--text-color);
}

.site-title a:hover,
.site-title a:active {
  color: var(--text-color);
  text-decoration: underline;
}

.primary-navigation-wrap {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  height: 100%;
  align-items: center;
}

.primary-navigation {
  position: relative;
  display: flex;
  align-items: center;
}

.main-navigation ul {
  display: flex;
  flex-flow: row wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-navigation a {
  display: block;
  margin-top: -1px;
  padding: 0.6em 0.8em 0.8em;
  border-top: 0.3em solid transparent;
  color: var(--text-color);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.main-navigation a:visited {
  color: var(--text-color);
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation a:active {
  color: var(--light-text-color);
}

.main-navigation a[aria-current="page"] {
  border-color: var(--text-color);
}

.menu-toggle {
  display: none;
  width: 100%;
  margin: 0;
  padding: 0.75em 0;
  border: 0;
  color: var(--text-color);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.menu-icon {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 14px;
  margin-right: 0.65em;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  vertical-align: -1px;
}

.menu-icon::after {
  position: absolute;
  top: 4px;
  left: 0;
  width: 100%;
  border-top: 2px solid currentColor;
  content: "";
}

.site-content {
  padding: 3em 0 1em;
}

.content-area {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
}

.page-article,
.archive-page,
.post-article,
.error-page {
  max-width: 100%;
  margin: 0 0 3em;
}

.page-title,
.entry-title {
  margin: 0;
  padding: 0;
  color: var(--text-color);
  font-family: var(--title-font);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.entry-title a,
.entry-title a:visited {
  color: var(--text-color);
}

.entry-title a:hover,
.entry-title a:active {
  text-decoration: underline;
}

.entry-content {
  font-size: 18px;
}

.entry-content a {
  text-decoration: underline;
}

.entry-content > :first-child {
  margin-top: 1.5em;
}

.entry-content > p:first-child {
  margin-top: 0.5em;
}

.home .table-scroll {
  width: 100%;
  max-width: 795px;
  margin: 1.5em auto;
}

.home .table-scroll table {
  margin: 0;
}

.home .table-scroll th,
.home .table-scroll td {
  padding: 9px;
  border-color: var(--text-color);
  background: transparent;
  text-align: center;
  word-break: break-word;
  overflow-wrap: normal;
}

.content-image {
  display: block;
  clear: both;
  margin-right: auto;
  margin-left: auto;
}

.entry-meta {
  margin: 0.5em 0 0;
  color: var(--light-text-color);
  font-size: 15px;
}

.entry-meta a {
  color: var(--medium-text-color);
  text-decoration: underline;
}

.post-list {
  margin-top: 2em;
  padding: 0;
  list-style: none;
}

.post-list-item {
  margin: 0 0 2em;
  padding: 0 0 2em;
  border-bottom: 1px solid var(--light-border-color);
}

.post-list-item:last-child {
  border-bottom: 0;
}

.post-list-item h2 {
  margin: 0;
  font-family: var(--title-font);
}

.post-list-item p {
  margin-bottom: 0;
}

.legacy-note {
  padding: 0.75em 1em;
  border-left: 4px solid var(--primary-color);
  background: rgba(51, 187, 204, 0.08);
}

.comment-area {
  margin-top: 3em;
  padding-top: 2em;
  border-top: 1px solid var(--light-border-color);
}

.comment-area h2 {
  font-family: var(--title-font);
}

.comment {
  padding-left: 1.25em;
  border-left: 4px solid var(--light-border-color);
}

.comment-author,
.comment-date {
  margin: 0;
}

.comment-date {
  color: var(--light-text-color);
  font-size: 15px;
}

.footer-wrap {
  border-top: 1px solid var(--light-border-color);
}

.site-info {
  padding: 3em 0;
}

.site-info p {
  margin: 0;
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: var(--primary-color);
  font-size: 22px;
  line-height: 42px;
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease, background 0.2s ease;
}

.back-to-top:hover,
.back-to-top:focus {
  color: #fff;
  background: var(--text-color);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

@media only screen and (max-width: 80em) {
  .site {
    padding: 0 3em;
  }

  .header-main,
  .site-info {
    padding: 2em 0;
  }

  .site-content {
    padding: 2em 0 1em;
  }

  .page-article,
  .archive-page,
  .post-article,
  .error-page {
    margin-bottom: 2em;
  }
}

@media only screen and (max-width: 70em) {
  .site-title {
    font-size: 40px;
  }

  .page-title,
  .entry-title {
    font-size: 32px;
  }
}

@media only screen and (max-width: 60em) {
  .header-main {
    padding-top: 1.5em;
    text-align: center;
  }

  .site-title {
    display: block;
  }

  .menu-toggle {
    display: block;
    width: auto;
    margin-left: auto;
  }

  .primary-navigation {
    display: block;
    position: static;
  }

  .main-navigation {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 100;
    width: min(260px, calc(100vw - 4em));
  }

  .main-navigation ul {
    display: none;
    color: #fff;
    background: #303030;
  }

  .main-navigation.toggled-on ul {
    display: block;
  }

  .main-navigation a,
  .main-navigation a:visited {
    margin: 0;
    padding: 1em 1.5em;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
  }

  .main-navigation a:hover,
  .main-navigation a:focus,
  .main-navigation a:active,
  .main-navigation a[aria-current="page"] {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
  }

  .site-info {
    text-align: center;
  }

  .page-title,
  .entry-title {
    font-size: 36px;
  }
}

@media only screen and (max-width: 50em) {
  .site {
    padding: 0 2em;
  }

  .page-title,
  .entry-title {
    font-size: 32px;
  }
}

@media only screen and (max-width: 40em) {
  .page-title,
  .entry-title {
    font-size: 28px;
  }

  .entry-content {
    font-size: 17px;
  }

}

@media only screen and (max-width: 30em) {
  .site-title {
    font-size: 36px;
  }

  .page-title,
  .entry-title {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
