@import url("https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;700&display=swap");

:root {
  /* TODO: use css vars more for easier theme changes */
  --bg: #000000;
  --fg: #ffffff;
  --col-l: #ffffff;
  --col-m: #ffffff;
  --text: #fff;
  --dark-text: #fff;
  --light-text: #fff;

  --base-lh: 1em;
  --h-lh: 1.6em;
  --p-lh: 1.6em;

  --ff-copy: "Zen Kaku Gothic New", serif;
  --ff-h: var(--ff-copy);
  --ls: -0.015rem;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: var(--base-lh);
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquotebefore,
blockquoteafter,
qbefore,
qafter {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

body.home #site-logo {
  opacity: 0;
  -webkit-animation: fadeindown 1s;
  animation: fadeindown 1s;
  -webkit-animation-delay: 0s;
  animation-delay: 0s;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
}

body #site-logo-container h1 a {
  text-decoration: none;
}

body.home #site-introduction {
  height: 100vh;
}

body.home #site-introduction #mobile-site-navigation-toggle {
  opacity: 0;
  -webkit-animation: fadeindown 1s;
  animation: fadeindown 1s;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
  -webkit-animation-delay: 0.5s;
  animation-delay: 0.5s;
}

body.home #site-introduction #site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
}

body.home #site-introduction #site-header li {
  opacity: 0;
  -webkit-animation: fadeindown 1s;
  animation: fadeindown 1s;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
}

@media screen and (max-width: 1000px) {
  body.home #site-introduction #site-header li {
    -webkit-animation: none;
    animation: none;
    opacity: 1;
  }
}

body.home #site-introduction #site-header li:nth-child(0) {
  -webkit-animation-delay: 0.5s;
  animation-delay: 0.5s;
}

body.home #site-introduction #site-header li:nth-child(1) {
  -webkit-animation-delay: 0.6s;
  animation-delay: 0.6s;
}

body.home #site-introduction #site-header li:nth-child(2) {
  -webkit-animation-delay: 0.7s;
  animation-delay: 0.7s;
}

body.home #site-introduction #site-header li:nth-child(3) {
  -webkit-animation-delay: 0.8s;
  animation-delay: 0.8s;
}

body.home #site-introduction #site-header li:nth-child(4) {
  -webkit-animation-delay: 0.9s;
  animation-delay: 0.9s;
}

body.home #site-introduction #site-header li:nth-child(5) {
  -webkit-animation-delay: 1s;
  animation-delay: 1s;
}

body.home #site-introduction #site-header li:nth-child(6) {
  -webkit-animation-delay: 1.1s;
  animation-delay: 1.1s;
}

body.home #site-introduction #site-header li:nth-child(7) {
  -webkit-animation-delay: 1.2s;
  animation-delay: 1.2s;
}

body.home #site-introduction #site-header li:nth-child(8) {
  -webkit-animation-delay: 1.3s;
  animation-delay: 1.3s;
}

body.home #site-introduction #site-header li:nth-child(9) {
  -webkit-animation-delay: 1.4s;
  animation-delay: 1.4s;
}

body #site-introduction #page-info {
  position: absolute;
  top: 2em;
}

body.home #site-introduction #page-info {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

body.home #site-introduction #page-info > * {
  opacity: 0;
  -webkit-animation: fadein 1s;
  animation: fadein 1s;
  -webkit-animation-delay: 1.3s;
  animation-delay: 1.3s;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
}

body.home #site-introduction #page-info #hero-scroll-down-indicator {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  color: var(--dark-text);
}

body.home #site-introduction #page-info #hero-scroll-down-indicator i {
  -webkit-animation-timing-function: linear;
  animation-timing-function: linear;
  -webkit-animation: bounce 5s infinite;
  animation: bounce 5s infinite;
  -webkit-animation-delay: 3s;
  animation-delay: 3s;
}

body.home #site-content {
  opacity: 0;
  -webkit-animation: fadeindown 1s;
  animation: fadeindown 1s;
  -webkit-animation-delay: 1.5s;
  animation-delay: 1.5s;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
}

body.home.admin-bar #site-introduction {
  height: calc(100vh - 31px);
}

@media screen and (max-width: 1000px) {
  body.home.admin-bar #site-introduction {
    height: calc(100vh - 46px);
  }
}

@-webkit-keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@-webkit-keyframes fadeindown {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, -2rem, 0);
    transform: translate3d(0, -2rem, 0);
  }
  to {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeindown {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, -2rem, 0);
    transform: translate3d(0, -2rem, 0);
  }
  to {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}

@-webkit-keyframes bounce {
  0% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  10% {
    -webkit-transform: translateY(-30px);
    transform: translateY(-30px);
  }
  14% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  17% {
    -webkit-transform: translateY(-10px);
    transform: translateY(-10px);
  }
  20% {
    -webkit-transform: none;
    transform: none;
  }
  100% {
    -webkit-transform: none;
    transform: none;
  }
}

@keyframes bounce {
  0% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  10% {
    -webkit-transform: translateY(-30px);
    transform: translateY(-30px);
  }
  14% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  17% {
    -webkit-transform: translateY(-10px);
    transform: translateY(-10px);
  }
  20% {
    -webkit-transform: none;
    transform: none;
  }
  100% {
    -webkit-transform: none;
    transform: none;
  }
}

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

.cleared {
  content: "";
  display: table;
  clear: both;
}

html {
  background-color: var(--bg);
  font-size: 62.5%;
}

body {
  letter-spacing: var(--ls);
  font-family: var(--ff-copy), serif;
  color: var(--fg);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  font-size: 1.6rem;
}

#wpadminbar {
  border-bottom: solid 1px #444;
}

#site-container {
  min-height: 100vh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  overflow: hidden;
}

a {
  display: inline-block;
  color: var(--col-l);
  text-decoration: underline;
  /* border-bottom: dotted 1px var(--col-l); */
}

hr {
  border: 0;
  border-top: solid 0.1rem #666;
  margin: 1.5em 0;
}

h1 {
  font-size: 3.6rem;
}

h2 {
  font-size: 2.8rem;
}

h3 {
  font-size: 2.4rem;
}

h4 {
  font-size: 2rem;
}

h5 {
  font-size: 1.8rem;
}

h6 {
  font-size: 1.6rem;
}

#site-logo {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  z-index: 2;
}

a#site-logo {
  border-bottom: none;
}

a#site-logo img {
  max-width: 300px;
  max-height: 100px;
}

@media screen and (max-width: 1000px) {
  a#site-logo img {
    max-width: 200px;
    max-height: 66px;
  }
}

#site-introduction {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: space-between;
  -ms-flex-align: space-between;
  align-items: space-between;
}

#site-introduction #page-info {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  text-align: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
  background-color: transparent;
  font-size: 3.6rem;
  line-height: 5rem;
  width: 100vw;
  /* padding: 2em; */
  /* padding-top: 4em; */
}

#site-introduction #page-info #hero-scroll-down-indicator {
  display: none;
  position: absolute;
  bottom: 0;
  text-align: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  font-size: 3.2rem;
  padding: 2em;
  cursor: pointer;
}

body #site-header {
  background-image: -webkit-linear-gradient(
    top,
    rgba(0, 0, 0, 0.9),
    transparent
  );
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent);
}

#site-header {
  font-weight: 400;
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  padding: 2rem 2rem;
  -webkit-box-pack: space-between;
  -ms-flex-pack: space-between;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  z-index: 1;
}

#page-title {
  color: var(--dark-text);
}

#page-title,
#page-content h1,
#page-content h2,
#page-content h3,
#page-content h4,
#page-content h5,
#page-content h6,
#site-header {
  font-family: var(--ff-h), serif;
}

@media screen and (max-width: 1000px) {
  #site-header {
    padding: 1rem 2rem;
  }
}

#site-header #site-logo-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

#site-header #mobile-menu-toggle {
  display: none;
}

#site-header #mobile-site-navigation-toggle {
  cursor: pointer;
  display: none;
  margin: 0;
  color: #fff;
  border: solid 0.1rem #fff;
  padding: 1rem;
  padding-bottom: 0.75rem;
  border-radius: 0.15rem;
  margin-left: auto;
}

#site-header #mobile-site-navigation-toggle::after {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-line-pack: start;
  align-content: flex-start;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  content: attr(data-close-label);
  font: inherit;
  font-size: 1.2rem;
  line-height: 1rem;
  padding: 1rem 1rem;
  text-align: center;
  height: 250%;
  width: calc(100% + 0.2rem);
  background: #111;
  border-radius: 0.1em;
  border: solid 0.1rem #111;
  margin: -1px;
  opacity: 0;
  visibility: hidden;
}

#site-header #mobile-site-navigation-toggle:hover {
  color: #fff;
  background-color: transparent;
}

@media screen and (max-width: 1000px) {
  #site-header #mobile-site-navigation-toggle {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    position: relative;
    text-transform: uppercase;
  }
}

#site-header
  #mobile-menu-toggle:checked
  ~ #mobile-site-navigation-toggle::after {
  opacity: 1;
  visibility: visible;
  border: solid 0.1rem #111;
}

#site-header .menu-top-navigation {
  position: absolute;
  z-index: 20;
}

#site-header #mobile-menu-toggle:checked ~ .menu-top-navigation-container ul {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

@media screen and (min-width: 1000px) {
  #site-header .menu-top-navigation-container {
    font-size: 2rem;
    margin: 0 auto;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
  }

  #site-header .menu-top-navigation-container ul {
    height: 3em;
  }
}

#site-header .menu-top-navigation-container ul {
  letter-spacing: 0.1em;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  /* -webkit-box-flex: 1; */
  /* -ms-flex: 1; */
  /* flex: 1; */
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin: 0;
  padding: 0;
}

@media screen and (max-width: 1000px) {
  #site-header .menu-top-navigation-container ul {
    display: none;
    background-color: #111;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    text-align: center;
    padding: 1rem;
    position: fixed;
    top: 85px;
    left: 0;
    right: 0;
  }
}

#site-header .menu-top-navigation-container ul li {
  display: block;
  line-height: 1em;
}

@media screen and (max-width: 1000px) {
  #site-header .menu-top-navigation-container ul li {
    font-size: 2.4rem;
    padding: 0.8rem;
  }
}

#site-header .menu-item a {
  color: var(--col-m);
  text-decoration: none;
  letter-spacing: var(--ls);
}

#site-header .menu-top-navigation-container ul li.current-menu-item a {
  color: #ccc;
}

#site-header .menu-top-navigation-container ul li a {
  border-bottom: none;
  display: block;
  padding: 0 0.8em;
  -webkit-transition: color 0.2s ease;
  transition: color 0.2s ease;
}

#site-header .menu-top-navigation-container ul li a:hover {
  color: #fff;
}

@media screen and (max-width: 1000px) {
  body.admin-bar #site-introduction .menu-top-navigation-container ul {
    top: calc(46px + 85px);
  }
}

#page-content {
  margin-top: 8em;
}

body.home #page-content {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  width: 100%;
  margin-top: 0;
}

#page-content ul,
#page-content ol,
#page-content p,
#page-content blockquote,
#page-content h1,
#page-content h2,
#page-content h3,
#page-content h4,
#page-content h5,
#page-content h6,
.content-wrapper {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

.content-wrapper {
  padding: 2rem 1rem;
}

@media screen and (min-width: 1000px) {
  #page-content {
  }
}

#page-content ol,
#page-content ul {
  padding-left: 2em;
  list-style: disc;
}

#page-content pre,
#page-content code {
  max-width: 100%;
  font-family: monospace;
  white-space: pre-wrap;
  word-wrap: break-word;
}

#page-content strong,
#page-content b {
  font-weight: bold;
}

#page-content em,
#page-content i {
  font-style: italic;
}

#page-content blockquote {
  border-left: solid 1px #888;
  padding-left: 2rem;
  color: #444;
}

#page-content h1,
#page-content h2,
#page-content h3,
#page-content h4,
#page-content h5,
#page-content h6 {
  line-height: var(--h-lh);
}

#page-content ul,
#page-content ol,
#page-content blockquote,
#page-content p {
  margin-top: 1em;
  margin-bottom: 1em;
  display: block;
}

#page-content ul,
#page-content ol,
#page-content p,
#page-content blockquote {
  line-height: var(--p-lh);
}

#page-content img,
#page-content iframe,
#page-content figure {
  display: block;
  text-align: center;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  max-height: 100vh;
}

@media screen and (min-width: 1000px) {
  #page-content iframe {
    /* TODO: this is gross - fix it */
    height: 360px;
  }
}

#page-content img figcaption,
#page-content figure figcaption {
  font-size: 75%;
  padding-bottom: 0.5rem;
  text-align: center;
}

#page-content img.alignleft,
#page-content figure.alignleft {
  float: left;
  margin-right: 2em;
  max-width: 40%;
}

@media screen and (max-width: 1000px) {
  #page-content img.alignleft,
  #page-content figure.alignleft {
    float: none;
    margin: 0 auto;
    max-width: 100%;
  }
}

#page-content img.alignright,
#page-content figure.alignright {
  float: right;
  margin-left: 2em;
  max-width: 50%;
}

@media screen and (max-width: 1000px) {
  #page-content img.alignright,
  #page-content figure.alignright {
    float: none;
    margin: 0 auto;
    max-width: 100%;
  }
}

@media screen and (min-width: 1000px) {
  #page-content {
    font-size: 1.8rem;
  }
}

#site-footer {
  font-size: 75%;
  line-height: var(--h-lh);
  margin: 0 auto;
  color: var(--text);
  text-shadow: 0 0.1rem 0.1rem rgba(255, 255, 255, 0.2);
  width: 100%;
  -ms-flex-item-align: end;
  align-self: flex-end;
}

@media screen and (min-width: 1000px) {
  #site-footer {
    margin-top: 2em;
  }
}

#site-footer a {
  color: #ccc;
  text-decoration: underline;
  border: 0;
}

#site-footer .menu {
  margin-top: 1rem;
  margin-left: 1.25em;
  list-style: disc;
}

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

.desktop-third {
  width: 100%;
}

.desktop-half {
  width: 100%;
}

@media screen and (min-width: 1000px) {
  #site-header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
  }

  .desktop-third {
    max-width: 33.333%;
  }

  .desktop-half {
    max-width: 50%;
  }
}

.blog-li,
.practice-li {
  padding: 0.5em;
}

.blog-li,
.practice-li a {
  border: 0;
  color: #fff;
  padding: 1em;
  display: block;
  background-color: rgba(255, 255, 255, 0.15);
  transition: color 0.2s ease, background-color 0.2s ease, top 0.2s ease;
  position: relative;
  top: 0;
  border-radius: 2px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.practice-li a {
  text-decoration: underline;
  text-align: center;
}

.practice-li a:focus,
.practice-li a:hover {
  background-color: rgba(255, 255, 255, 0.8);
  color: var(--col-l);
  top: -0.1em;
}

.blog-dt {
  color: var(--col-l);
  border-right: solid 0.15em rgba(255, 255, 255, 0.5);
  padding-right: 0.5em;
  margin-right: 0.5em;
}

#page-content .avatar {
  width: 256px;
  height: 256px;
  border-radius: 1000px;
  object-fit: cover;
  object-position: 50% 50%;
  margin-top: 1em;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.25);
  margin-bottom: 3em;
  margin-top: 2em;
}

.video-overlay {
  position: absolute;
  bottom: 4em;
  left: 0;
  padding: 0.5em;
  background-color: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  text-align: left;
  font-size: 1em;
}

.video-overlay h1 {
  padding: 0;
  line-height: 1;
  font-size: 3rem;
  font-weight: 700;
}

.video-overlay ul li {
  padding: 0;
  font-size: 1.8rem;
  border: 0;
  line-height: 1.5;
}

.video-overlay ul li a {
  padding: 0;
  border: 0;
  text-decoration: none;
  border-bottom: solid 0.1em currentColor;
}

.video-overlay ul li a:after {
  display: inline;
  content: " ⇒";
}

@media screen and (min-width: 1000px) {
  .video-overlay {
    padding: 0.5em;
    padding-left: 3em;
  }

  .video-overlay h1 {
    line-height: 1;
    font-size: 6rem;
  }
}

#hero-video {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  min-width: 100vw;
  min-height: 100vh;
  object-fit: cover;
}

.anchor-only {
  position: absolute;
}
