/*
 * LAYOUT
 */
html {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
}

@media (min-width: 72em) {
  body {
    max-width: 72em;
    margin-top: 8px;
    margin-left: auto;
    margin-right: auto;
  }
  main {
    margin-left: 4em;
  }
}
.site-header, main, .site-footer {
  padding: 0.5em;
}

article {
  margin: 0;
  padding: 0;
}

.site-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0.5em;
}

h1, h2, h3, p, hr, figcaption {
  max-width: 42rem;
  margin-bottom: 0.5em;
  margin-top: 0.5em;
}

.text-width {
  max-width: 42rem;
}

.site-header nav {
  display: flex;
  flex-direction: row-reverse;
}

.page-link {
  margin-left: 1em;
  margin-right: 1em;
}

.columns {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1em;
}

.mtg-card {
  max-height: 18em;
  border-radius: 4.75%/3.35%; /* stolen from moxfield css */
}

p > img {
  max-width: 80%;
}

/* holy code smell batman! */
figure > p > a > .mtg-card {
  margin: 0.5em;
}

th, td {
  padding-left: 0.5em;
  padding-right: 0.5em;
}

/*
 * TYPOGRAPHY
 */
@font-face {
  font-family: cairopixel;
  src: url("/assets/cairopixel.woff2") format("woff2");
  src: url("/assets/cairopixel.woff") format("woff");
}
@font-face {
  font-display: swap;
  font-family: noto-sans;
  src: url("/assets/noto-sans-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
}
@font-face {
  font-display: swap;
  font-family: noto-sans;
  src: url("/assets/noto-sans-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
}
@font-face {
  font-display: swap;
  font-family: noto-sans-tc;
  src: url("/assets/noto-sans-tc-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
}
@font-face {
  font-display: swap;
  font-family: noto-sans-tc;
  src: url("/assets/noto-sans-tc-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
}
@font-face {
  font-display: swap;
  font-family: noto-sans;
  src: url("/assets/noto-sans-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
}
@font-face {
  font-display: swap;
  font-family: noto-sans;
  src: url("/assets/noto-sans-bolditalic.woff2") format("woff2");
  font-style: italic;
  font-weight: 700;
}
:root {
  font-family: noto-sans, noto-sans-tc, sans-serif;
}

.align-middle {
  vertical-align: middle;
}

/* Font faces */
.texttt {
  font-family: cairopixel, monospace;
  font-size: 16px;
}

.icon {
  font-family: cairopixel;
  font-size: 32px;
  padding-left: 2px;
  padding-right: 2px;
}

.textbf {
  font-weight: bold;
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: 0.2ex;
}

figcaption, figure > p {
  text-align: center;
}

/* Font sizes */
h1, .large {
  font-size: 1.8rem;
}

.large.texttt {
  font-size: 32px;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.2rem;
}

/*
 * COLOURS
 */
body {
  background: #ffc248;
  color: #202020;
}

.site-header {
  border-bottom: 1px solid #46494f;
}

main {
  background: #fffdf6;
}

.site-footer {
  border-top: 1px solid #46494f;
  background: #fffdf6;
}

.page-link, .site-title {
  color: #202020;
}

a {
  color: #28428a;
}

a:visited {
  color: #d1a110;
}

.stripes {
  background: repeating-linear-gradient(45deg, #fffdf6, #fffdf6 20px, #d3e4ff 20px, #d3e4ff 40px);
  background-size: 200% 200%;
  animation: barberpole 20s linear infinite;
  animation-play-state: paused;
}

.stripes:hover {
  animation-play-state: running;
}

@keyframes barberpole {
  100% {
    background-position: 100% 100%;
  }
}
/*
 * ORNAMENTATION
 */
html {
  cursor: url("/assets/cursor.png"), auto;
}

a {
  text-decoration-line: none;
}

a:hover {
  text-decoration-line: underline;
}

/*
h1 {
  border-top: 1px dashed $charcoal;
  border-bottom: 1px dashed $charcoal;
  padding-top: 0.5ex;
  padding-bottom: 0.5ex;

  background: linear-gradient(
    to right,
    $parchmentwhite,
    $skyblue 100%
  );
}
*/
.site-title {
  font-weight: bold;
}

.site-title:visited, .page-link:visited { /* eurgh xxx */
  color: #202020;
}

.border {
  border: 1px solid #46494f;
  border-radius: 4px;
  padding: 1px;
  background: #fffdf6;
}

.bounce {
  display: inline-block;
  animation-name: bounce;
  animation-duration: 0.8s;
  animation-iteration-count: infinite;
  animation-timing-function: steps(2, end);
}

@keyframes bounce {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(4px);
  }
}
.mtg-card {
  display: inline-block;
  position: relative;
  vertical-align: middle;
  transition: transform 0.2s ease-in-out;
  will-change: transform;
}

.mtg-card:hover {
  transform: scale(1.33);
  z-index: 1; /* s.t. it draws over any adjacent cards when hovered */
}

blockquote {
  margin-left: 1em;
  padding-left: 1em;
  border-left: 2px solid #d1a110;
}

/*# sourceMappingURL=main.css.map */